/*
|--------------------------------------------------------------------------
|  Bookpay — livello grafico e animazioni del sito pubblico
|--------------------------------------------------------------------------
|
|  Si appoggia sopra style.css (compilato dagli SCSS) senza cambiarne la
|  struttura: aggiunge profondita', movimento e rifiniture. Caricato solo
|  da resources/views/layouts/website.blade.php.
|
|  Le animazioni "allo scroll" partono solo se site.js ha aggiunto la
|  classe .fx a <html>: senza JavaScript tutto resta visibile.
|  Con prefers-reduced-motion il movimento viene spento in fondo al file.
|
*/

:root {
	--bp: #453ef0;
	--bp-2: #6f8cff;
	--bp-3: #a855f7;
	--bp-ink: #15132b;
	--bp-text: #3e3e3e;
	--bp-muted: #6b6a80;
	--bp-soft: #f5f3ff;
	--bp-line: rgba(21, 19, 43, .08);
	--bp-ease: cubic-bezier(.22, 1, .36, 1);
	--bp-spring: cubic-bezier(.34, 1.56, .64, 1);
	--bp-shadow: 0 1px 2px rgba(21, 19, 43, .04), 0 12px 32px -12px rgba(41, 33, 140, .18);
	--bp-shadow-lg: 0 2px 4px rgba(21, 19, 43, .04), 0 30px 60px -20px rgba(41, 33, 140, .30);
}

@property --bp-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

html { scroll-behavior: smooth; }

body.bp-site {
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: rgba(69, 62, 240, .18); color: var(--bp-ink); }


/* ── Barra di avanzamento lettura ──────────────────────────────────── */

.bp-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 10001;
	pointer-events: none;
	transform: scaleX(var(--bp-p, 0));
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--bp), var(--bp-2), var(--bp-3));
	box-shadow: 0 0 12px rgba(69, 62, 240, .5);
}
html[dir="rtl"] .bp-progress { transform-origin: 100% 50%; }


/* ── Aurora di sfondo (hero) ───────────────────────────────────────── */

.bp-aurora {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 980px;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
	mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.bp-aurora::before {
	/* griglia di puntini, sfumata ai bordi */
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(69, 62, 240, .22) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
	opacity: .55;
}

.bp-aurora span {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
	will-change: transform;
}

.bp-aurora span:nth-child(1) {
	width: 560px; height: 560px;
	top: -160px; right: -60px;
	background: radial-gradient(circle at 30% 30%, #8b84ff, rgba(69, 62, 240, 0) 70%);
	animation: bp-drift-a 18s ease-in-out infinite alternate;
}

.bp-aurora span:nth-child(2) {
	width: 460px; height: 460px;
	top: 140px; right: 26%;
	background: radial-gradient(circle at 50% 50%, #9fd0ff, rgba(111, 140, 255, 0) 70%);
	opacity: .45;
	animation: bp-drift-b 22s ease-in-out infinite alternate;
}

.bp-aurora span:nth-child(3) {
	width: 420px; height: 420px;
	top: 60px; left: -140px;
	background: radial-gradient(circle at 50% 50%, #e6c8ff, rgba(168, 85, 247, 0) 70%);
	opacity: .5;
	animation: bp-drift-c 20s ease-in-out infinite alternate;
}

@keyframes bp-drift-a {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(-120px, 90px, 0) scale(1.15); }
}
@keyframes bp-drift-b {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(140px, -60px, 0) scale(.9); }
}
@keyframes bp-drift-c {
	0%   { transform: translate3d(0, 0, 0) scale(.95); }
	100% { transform: translate3d(110px, 70px, 0) scale(1.1); }
}

/* il contenuto sta sopra l'aurora */
body.bp-site > section,
body.bp-site > footer { position: relative; z-index: 1; }


/* ── Navbar ────────────────────────────────────────────────────────── */

body.bp-site .nav {
	transition: background-color .4s var(--bp-ease), box-shadow .4s var(--bp-ease), backdrop-filter .4s;
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: saturate(170%) blur(14px);
	backdrop-filter: saturate(170%) blur(14px);
}

body.bp-site .nav.is-scrolled {
	background: rgba(255, 255, 255, .82);
	box-shadow: 0 1px 0 var(--bp-line), 0 14px 34px -18px rgba(41, 33, 140, .28);
}

body.bp-site .nav img { transition: transform .5s var(--bp-ease); }
body.bp-site .nav a:hover img { transform: scale(1.03); }

body.bp-site .nav .centerlinks a {
	position: relative;
	border-bottom: 0 !important;
	padding: 6px 2px;
	transition: color .3s;
}
body.bp-site .nav .centerlinks a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bp), var(--bp-3));
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform .45s var(--bp-ease);
}
body.bp-site .nav .centerlinks a:hover::after,
body.bp-site .nav .centerlinks a.selected::after {
	transform: scaleX(1);
	transform-origin: 0 50%;
}

body.bp-site .nav .tb a {
	/* overflow:hidden (effetto luce) sposta la baseline degli inline-block:
	   l'allineamento esplicito tiene i due bottoni sulla stessa riga */
	vertical-align: middle;
	transition: transform .35s var(--bp-ease), box-shadow .35s var(--bp-ease), border-color .3s, background-color .3s;
	cursor: pointer;
}
body.bp-site .nav .tb a:hover {
	transform: translateY(-2px);
	border-color: rgba(69, 62, 240, .45);
	box-shadow: 0 10px 22px -12px rgba(69, 62, 240, .55);
}
body.bp-site .nav .tb a:nth-child(2) {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, var(--bp), #5b54ff 50%, var(--bp-2));
	background-size: 200% 100%;
	box-shadow: 0 8px 20px -10px rgba(69, 62, 240, .8);
	transition: background-position .6s var(--bp-ease), transform .35s var(--bp-ease), box-shadow .35s var(--bp-ease);
}
body.bp-site .nav .tb a:nth-child(2):hover {
	background-position: 100% 0;
	box-shadow: 0 14px 28px -12px rgba(69, 62, 240, .9);
}

body.bp-site .nav .bars a { display: inline-block; transition: transform .3s var(--bp-spring); }
body.bp-site .nav .bars a:active { transform: scale(.9); }


/* ── Effetto "lucentezza" sui bottoni principali ───────────────────── */

.bp-shine { position: relative; overflow: hidden; isolation: isolate; }
.bp-shine::after {
	content: '';
	position: absolute;
	top: -50%;
	bottom: -50%;
	left: -60%;
	width: 40%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg) translateX(0);
	animation: bp-shine 5.5s var(--bp-ease) infinite;
}
.bp-shine:hover::after { animation-duration: 1.4s; }

@keyframes bp-shine {
	0%, 62%  { transform: skewX(-20deg) translateX(0); }
	100%     { transform: skewX(-20deg) translateX(460%); }
}


/* ── Hero ──────────────────────────────────────────────────────────── */

body.bp-site .main .n1 {
	position: relative;
	background: rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-color: rgba(69, 62, 240, .16);
	box-shadow: 0 6px 18px -10px rgba(69, 62, 240, .45);
}
body.bp-site .main .n1 i {
	display: inline-block;
	animation: bp-nudge 2.4s var(--bp-ease) infinite;
}
@keyframes bp-nudge {
	0%, 60%, 100% { transform: translateX(0); }
	30%           { transform: translateX(3px); }
}

body.bp-site .main h1 {
	letter-spacing: -.02em;
	color: var(--bp-ink);
}

body.bp-site .main h1 span,
body.bp-site .bp-grad {
	background: linear-gradient(90deg, #453ef0, #6f8cff 30%, #a855f7 60%, #453ef0);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: bp-text-flow 9s linear infinite;
}
@keyframes bp-text-flow {
	to { background-position: 300% 0; }
}

/* Ingresso a cascata dei contenuti della hero (prima sezione della pagina) */
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > * {
	animation: bp-rise .9s var(--bp-ease) both;
}
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(1) { animation-delay: .05s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(2) { animation-delay: .14s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(3) { animation-delay: .23s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(4) { animation-delay: .32s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(5) { animation-delay: .41s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(6) { animation-delay: .50s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(7) { animation-delay: .59s; }
#offcanvasMenu + .main > .row > [class*="col-"]:first-child > *:nth-child(n+8) { animation-delay: .68s; }

@keyframes bp-rise {
	from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); }
	to   { opacity: 1; transform: none; filter: none; }
}

/* Immagine della hero: entra, poi galleggia. Il wrapper riceve il tilt dal mouse. */
.bp-hero-art {
	perspective: 1200px;
	animation: bp-zoom-in 1.2s var(--bp-ease) .2s both;
}
.bp-hero-art > img {
	/* le illustrazioni hanno uno sfondo chiaro rettangolare: i bordi sfumati
	   le fanno "galleggiare" sull'aurora invece di sembrare un riquadro */
	-webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
	mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
	transform: rotateX(var(--bp-rx, 0deg)) rotateY(var(--bp-ry, 0deg));
	transition: transform .6s var(--bp-ease);
	will-change: transform;
}
.bp-hero-art > img.bp-float { animation: bp-float 7s ease-in-out infinite; }

@keyframes bp-zoom-in {
	from { opacity: 0; transform: scale(.92) translateY(20px); }
	to   { opacity: 1; transform: none; }
}
@keyframes bp-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -14px; }
}

/* Le illustrazioni hanno lo sfondo bianco: "multiply" le fonde con l'aurora */
body.bp-site .main img.w-100,
body.bp-site .pronto img,
body.bp-site .controllo img { mix-blend-mode: multiply; }

/* Bottoni della hero */
body.bp-site .main a.btn,
body.bp-site .main a.first {
	transition: transform .35s var(--bp-ease), box-shadow .35s var(--bp-ease), border-color .3s, background-position .6s var(--bp-ease);
}
body.bp-site .main a.btn:hover {
	transform: translateY(-3px);
	border-color: rgba(69, 62, 240, .4);
	box-shadow: 0 14px 30px -16px rgba(69, 62, 240, .6);
}
body.bp-site .main .first {
	background: linear-gradient(110deg, var(--bp), #5b54ff 45%, var(--bp-2) 75%, var(--bp-3));
	background-size: 220% 100%;
	box-shadow: 0 12px 26px -14px rgba(69, 62, 240, .95);
}
body.bp-site .main .first:hover {
	background-position: 100% 0;
	color: #fff;
	box-shadow: 0 20px 36px -16px rgba(69, 62, 240, .95);
}
body.bp-site .main .first i,
body.bp-site .pronto a i { transition: transform .35s var(--bp-ease); }
body.bp-site .main .first:hover i,
body.bp-site .pronto a:hover i { transform: translateX(4px); }

body.bp-site .main .cars i {
	background: rgba(69, 62, 240, .06);
	transition: transform .4s var(--bp-spring), background-color .3s, color .3s;
}
body.bp-site .main .cars p:hover i,
body.bp-site .main .cars .row:hover i {
	transform: scale(1.18) rotate(-8deg);
	background: var(--bp);
	color: #fff;
}


/* ── Partner ───────────────────────────────────────────────────────── */

body.bp-site .integrato {
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-color: var(--bp-line);
	box-shadow: var(--bp-shadow);
}
body.bp-site .integrato img {
	filter: grayscale(1);
	opacity: .62;
	transition: filter .45s var(--bp-ease), opacity .45s, transform .45s var(--bp-spring);
}
body.bp-site .integrato img:hover {
	filter: none;
	opacity: 1;
	transform: scale(1.08);
}


/* ── Blocchi funzionalita' (fivecomponents) ────────────────────────── */

body.bp-site .fivecomponents {
	background: #fff;
	border-color: var(--bp-line);
	box-shadow: var(--bp-shadow);
	overflow: hidden;
}
/* Nei blocchi senza bordo (dentro le hero) niente card */
body.bp-site .fivecomponents[style*="border:none"] {
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

body.bp-site .fivecomponents .row > [class*="col"] {
	position: relative;
	padding-top: 18px;
	padding-bottom: 18px;
	border-radius: 16px;
	transition: transform .5s var(--bp-ease);
	isolation: isolate;
}
/* Riflesso che segue il mouse (variabili --mx/--my impostate da site.js) */
body.bp-site .fivecomponents .row > [class*="col"]::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(69, 62, 240, .09), transparent 65%);
	opacity: 0;
	transition: opacity .4s;
}
body.bp-site .fivecomponents .row > [class*="col"]:hover::before { opacity: 1; }

body.bp-site .fivecomponents i {
	position: relative;
	display: block;
	background: linear-gradient(145deg, #efedff, #e2e0ff);
	box-shadow: inset 0 0 0 1px rgba(69, 62, 240, .08), 0 8px 18px -10px rgba(69, 62, 240, .5);
	transition: transform .5s var(--bp-spring), background .4s, color .3s, box-shadow .4s;
}
body.bp-site .fivecomponents .row > [class*="col"]:hover i {
	transform: translateY(-4px) rotate(-6deg) scale(1.06);
	background: linear-gradient(145deg, var(--bp), var(--bp-2));
	color: #fff;
	box-shadow: 0 14px 26px -12px rgba(69, 62, 240, .85);
}
body.bp-site .fivecomponents h2 { font-weight: 600; color: var(--bp-ink); }


/* ── Mappa ─────────────────────────────────────────────────────────── */

body.bp-site .mappa-attivita h2 { letter-spacing: -.02em; color: var(--bp-ink); }
body.bp-site .mappa-attivita .mappa-box {
	border-color: var(--bp-line);
	box-shadow: var(--bp-shadow-lg);
}
body.bp-site .attivita-marker .dot { position: relative; }
body.bp-site .attivita-marker .dot::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid rgba(69, 62, 240, .55);
	animation: bp-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes bp-ping {
	0%   { transform: scale(1); opacity: .9; }
	80%, 100% { transform: scale(2.6); opacity: 0; }
}
body.bp-site .map-pop-wrap .leaflet-popup-content-wrapper { animation: bp-pop .45s var(--bp-spring) both; }
@keyframes bp-pop {
	from { opacity: 0; transform: translateY(8px) scale(.94); }
	to   { opacity: 1; transform: none; }
}


/* ── Categorie (perfetto) ──────────────────────────────────────────── */

body.bp-site .perfetto {
	background: #fff;
	border-color: var(--bp-line);
	box-shadow: var(--bp-shadow);
}
body.bp-site .perfetto h3 { letter-spacing: -.01em; color: var(--bp-ink); }
body.bp-site .perfetto .text-center:not(.col-12) {
	padding-top: 14px;
	padding-bottom: 14px;
	border-radius: 16px;
	cursor: default;
	transition: background-color .35s, transform .45s var(--bp-ease);
}
body.bp-site .perfetto .text-center:not(.col-12):hover {
	background: var(--bp-soft);
	transform: translateY(-4px);
}
body.bp-site .perfetto i {
	display: inline-block;
	transition: transform .55s var(--bp-spring), color .3s;
}
body.bp-site .perfetto .text-center:hover i {
	transform: translateY(-3px) scale(1.18);
	color: #6c47d5;
}


/* ── Call to action finale (pronto) ────────────────────────────────── */

body.bp-site .pronto {
	position: relative;
	border: 0;
	background: #fff;
	box-shadow: var(--bp-shadow-lg);
	isolation: isolate;
}
/* bordo luminoso che ruota */
body.bp-site .pronto::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--bp-angle), rgba(69, 62, 240, .12), var(--bp), var(--bp-3), rgba(111, 140, 255, .9), rgba(69, 62, 240, .12) 40%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: bp-spin 6s linear infinite;
}
@keyframes bp-spin { to { --bp-angle: 360deg; } }

body.bp-site .pronto img { animation: bp-float 6s ease-in-out infinite; }
body.bp-site .pronto h3 { color: var(--bp-ink); letter-spacing: -.01em; }
body.bp-site .pronto a {
	background: linear-gradient(110deg, var(--bp), #5b54ff 45%, var(--bp-2) 75%, var(--bp-3));
	background-size: 220% 100%;
	box-shadow: 0 12px 26px -14px rgba(69, 62, 240, .95);
	transition: transform .35s var(--bp-ease), box-shadow .35s, background-position .6s var(--bp-ease);
}
body.bp-site .pronto a:hover {
	color: #fff;
	transform: translateY(-3px);
	background-position: 100% 0;
	box-shadow: 0 20px 36px -16px rgba(69, 62, 240, .95);
}

body.bp-site .controllo a {
	transition: transform .35s var(--bp-ease), box-shadow .35s, background-color .3s, color .3s;
}
body.bp-site .controllo a:hover {
	transform: translateY(-3px);
	background: var(--bp);
	color: #fff;
	box-shadow: 0 16px 30px -16px rgba(69, 62, 240, .9);
}


/* ── Prezzi ────────────────────────────────────────────────────────── */

body.bp-site .pricing .pricing-billing { box-shadow: 0 10px 26px -18px rgba(69, 62, 240, .7); }
body.bp-site .pricing .pricing-billing__option { transition: background .35s var(--bp-ease), color .3s, box-shadow .35s, transform .3s var(--bp-spring); }
body.bp-site .pricing .pricing-billing__option:active { transform: scale(.96); }

body.bp-site .pricing-card {
	overflow: hidden;
	isolation: isolate;
	transform: perspective(1000px) rotateX(var(--bp-rx, 0deg)) rotateY(var(--bp-ry, 0deg)) translateY(var(--bp-ty, 0));
	transition: transform .5s var(--bp-ease), border-color .3s, box-shadow .4s;
}
body.bp-site .pricing-card:hover { --bp-ty: -6px; }
body.bp-site .pricing-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, .22), transparent 60%);
	opacity: 0;
	transition: opacity .4s;
}
body.bp-site .pricing-card:hover::before { opacity: 1; }

body.bp-site .pricing-card--evidenza::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--bp-angle), transparent, #a855f7, #6f8cff, transparent 35%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: bp-spin 5s linear infinite;
}

body.bp-site .pricing-card__amount { display: inline-block; }
body.bp-site .pricing-card__amount.bp-pop { animation: bp-flip .6s var(--bp-spring); }
@keyframes bp-flip {
	0%   { transform: translateY(0) rotateX(0); opacity: 1; }
	45%  { transform: translateY(-12px) rotateX(70deg); opacity: 0; }
	55%  { transform: translateY(12px) rotateX(-70deg); opacity: 0; }
	100% { transform: none; opacity: 1; }
}
body.bp-site .pricing-card__cta { position: relative; overflow: hidden; transition: filter .2s, transform .35s var(--bp-ease), box-shadow .35s; }
body.bp-site .pricing-card__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(168, 85, 247, .9); }
body.bp-site .pricing-card__list li i { transition: transform .45s var(--bp-spring); }
body.bp-site .pricing-card__list li:hover i { transform: scale(1.25) rotate(-10deg); }


/* ── Accesso / registrazione / recupero ────────────────────────────── */

body.bp-site .login {
	background:
		radial-gradient(600px 400px at 15% 20%, rgba(139, 132, 255, .22), transparent 70%),
		radial-gradient(500px 380px at 85% 80%, rgba(168, 85, 247, .16), transparent 70%),
		#f9fafe;
	overflow: hidden;
}
body.bp-site .login form {
	border: 1px solid var(--bp-line);
	border-radius: 22px;
	box-shadow: var(--bp-shadow-lg);
	animation: bp-card-in .8s var(--bp-ease) both;
}
@keyframes bp-card-in {
	from { opacity: 0; transform: translateY(24px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

body.bp-site .main form {
	background: linear-gradient(180deg, #ffffff, #f7f6ff);
	border: 1px solid var(--bp-line);
	box-shadow: var(--bp-shadow-lg);
	animation: bp-card-in .9s var(--bp-ease) .15s both;
}

body.bp-site .form-control {
	border-radius: 12px;
	border-color: #e4e3ef;
	transition: border-color .25s, box-shadow .25s, background-color .25s;
}
body.bp-site .form-control:hover { border-color: #cfcde6; }
body.bp-site .form-control:focus {
	border-color: var(--bp);
	box-shadow: 0 0 0 4px rgba(69, 62, 240, .14);
}
body.bp-site .form-check-input:checked { background-color: var(--bp); border-color: var(--bp); }
body.bp-site .login form button,
body.bp-site .main form button {
	border-radius: 14px;
	background: linear-gradient(110deg, var(--bp), #5b54ff 45%, var(--bp-2));
	background-size: 200% 100%;
	border: 0;
	box-shadow: 0 12px 26px -14px rgba(69, 62, 240, .95);
	transition: transform .3s var(--bp-ease), box-shadow .3s, background-position .6s var(--bp-ease);
}
body.bp-site .login form button:hover,
body.bp-site .main form button:hover {
	transform: translateY(-2px);
	background-position: 100% 0;
	box-shadow: 0 18px 32px -14px rgba(69, 62, 240, .95);
}
body.bp-site .login form button:active,
body.bp-site .main form button:active { transform: scale(.98); }


/* ── Footer ────────────────────────────────────────────────────────── */

body.bp-site footer {
	position: relative;
	background: linear-gradient(180deg, #f6f5fd, #efeefa);
}
body.bp-site footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(69, 62, 240, .45), rgba(168, 85, 247, .45), transparent);
}
body.bp-site footer h3 { font-weight: 600; color: var(--bp-ink); }
body.bp-site footer a:not(.d-lg-inline-block):not([target]) { transition: color .25s, transform .3s var(--bp-ease); }
body.bp-site footer a:not(.d-lg-inline-block):not([target]):hover { color: var(--bp); transform: translateX(4px); }
html[dir="rtl"] body.bp-site footer a:not(.d-lg-inline-block):not([target]):hover { transform: translateX(-4px); }
body.bp-site footer .social a {
	background: linear-gradient(145deg, var(--bp), var(--bp-2));
	transition: transform .4s var(--bp-spring), box-shadow .3s;
}
body.bp-site footer .social a:hover {
	transform: translateY(-3px) rotate(-6deg);
	box-shadow: 0 10px 20px -8px rgba(69, 62, 240, .8);
}


/* ── Menu mobile ───────────────────────────────────────────────────── */

body.bp-site #offcanvasMenu {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 0;
	box-shadow: 30px 0 60px -30px rgba(41, 33, 140, .35);
	transition: transform .5s var(--bp-ease) !important;
}
body.bp-site #offcanvasMenu .offcanvas-body > a,
body.bp-site #offcanvasMenu .offcanvas-body > .bp-lang-mobile { opacity: 0; transform: translateX(-16px); }
body.bp-site #offcanvasMenu.show .offcanvas-body > a,
body.bp-site #offcanvasMenu.show .offcanvas-body > .bp-lang-mobile,
body.bp-site #offcanvasMenu.showing .offcanvas-body > a,
body.bp-site #offcanvasMenu.showing .offcanvas-body > .bp-lang-mobile {
	animation: bp-slide-in .55s var(--bp-ease) both;
	animation-delay: calc(.08s + var(--bp-i, 0) * 55ms);
}
@keyframes bp-slide-in { to { opacity: 1; transform: none; } }
body.bp-site #offcanvasMenu .registrati {
	background: linear-gradient(110deg, var(--bp), var(--bp-2));
	box-shadow: 0 12px 26px -14px rgba(69, 62, 240, .95);
}
.offcanvas-backdrop.show { opacity: 1 !important; background: rgba(21, 19, 43, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }


/* ── Banner cookie ─────────────────────────────────────────────────── */

body.bp-site .cookielaw {
	background: rgba(21, 19, 43, .78);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	animation: bp-up .7s var(--bp-ease) .8s both;
}
body.bp-site .cookielaw button { transition: transform .3s var(--bp-spring), background-color .3s, color .3s; }
body.bp-site .cookielaw button:hover { transform: scale(1.05); background: var(--bp); color: #fff; }
@keyframes bp-up {
	from { transform: translateY(100%); }
	to   { transform: none; }
}


/* ── Rivelazione allo scroll ───────────────────────────────────────── */

.fx [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 34px, 0);
	transition:
		opacity .9s var(--bp-ease) calc(var(--bp-i, 0) * 85ms),
		transform 1s var(--bp-ease) calc(var(--bp-i, 0) * 85ms);
}
.fx [data-reveal="zoom"]  { transform: scale(.94) translate3d(0, 20px, 0); }
.fx [data-reveal="left"]  { transform: translate3d(-40px, 0, 0); }
.fx [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.fx [data-reveal].is-in {
	opacity: 1;
	transform: none;
}


/* ── Accessibilita': niente movimento se l'utente lo ha chiesto ────── */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.bp-aurora span { animation: none !important; }
	.fx [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991.98px) {
	.bp-aurora { height: 720px; }
	.bp-aurora span { filter: blur(50px); }
	.bp-aurora span:nth-child(1) { width: 380px; height: 380px; right: -120px; }
	.bp-aurora span:nth-child(2) { display: none; }
}
