/* Firma&Paga — sito vetrina. Si appoggia a fp.css per i colori; qui solo il layout della landing. */
:root { --verde-scuro: #0A3D2A; --verde-notte: #06241A; --verde-neon: #34C77B; --crema: #F3F7F4; --inchiostro: #14211B;
  /* Curve di movimento comuni: "morbida" per comparse, "molla" con un filo di rimbalzo per piccoli elementi */
  --morbida: cubic-bezier(.2,.7,.2,1); --uscita: cubic-bezier(.16,1,.3,1); --molla: cubic-bezier(.34,1.56,.64,1); }
body.sito { font-size: 17px; overflow-x: hidden; }
.sito h1, .sito h2, .sito h3 { letter-spacing: -.02em; }
.sito .contenitore { max-width: 1120px; }

/* Testata */
.sito-testata { position: sticky; top: 0; z-index: 30; }
/* Lo sfondo vive in ::before: scorrendo si compatta (scaleY) e diventa vetro, senza cambiare l'altezza (niente layout shift) */
.sito-testata::before { content: ""; position: absolute; inset: 0; background: var(--sfondo); border-bottom: 1px solid var(--bordo); transform-origin: 50% 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s, box-shadow .35s; }
.sito-testata.compatta::before { transform: scaleY(.84); background: color-mix(in srgb, var(--sfondo) 84%, transparent); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); box-shadow: 0 10px 30px rgba(6,36,26,.10); }
.sito-testata .contenitore { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sito-testata.compatta .contenitore { transform: translateY(-5px); }
.sito-testata .logo svg { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sito-testata.compatta .logo svg { transform: scale(.88); }
@media (max-width: 760px) { .sito-testata.compatta::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--sfondo) 94%, transparent); } }
.sito-testata .btn { white-space: nowrap; }
@media (max-width: 420px) { .sito-testata .btn-link { display: none; } .sito-testata .logo { font-size: 1.15rem; } }
.sito-testata nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.sito-testata nav a { padding: 8px 12px; border-radius: 999px; color: var(--testo-2); font-weight: 600; font-size: .95rem; }
.sito-testata nav a:hover { background: var(--primario-tenue); color: var(--primario); text-decoration: none; }
/* Pillola che scivola sotto la voce indicata (mouse) o sulla sezione in vista: creata da sito.js, sostituisce lo sfondo all'hover */
.sito-testata nav.con-pillola { position: relative; }
.sito-testata nav.con-pillola a { position: relative; z-index: 1; transition: color .25s; }
.sito-testata nav.con-pillola a:hover { background: none; }
.sito-testata nav a.corrente { color: var(--primario); }
.nav-pillola { position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: var(--pw, 0px); border-radius: 999px; background: var(--primario-tenue); pointer-events: none; opacity: 0;
  transform: translate3d(var(--px, 0px), 0, 0); transition: transform .45s var(--uscita), width .45s var(--uscita), opacity .25s; }
.nav-pillola.vista { opacity: 1; }
.nav-pillola.salta { transition: opacity .25s; }
@media (max-width: 760px) { .sito-testata nav { display: none; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--testo); text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; }
.logo .amp { color: var(--primario); }

/* Hero scuro */
.hero-scuro { position: relative; color: #E7EFEA; background: var(--verde-notte); overflow: hidden; isolation: isolate; }
/* Luci dell'hero su un livello a parte: deriva lenta (translate) + parallasse con scorrimento e mouse (transform) */
.hero-scuro::before { content: ""; position: absolute; inset: -12%; z-index: -1; pointer-events: none; background: radial-gradient(1200px 600px at 80% -10%, #0F7B4F 0%, transparent 60%), radial-gradient(800px 500px at -10% 110%, #1F5F46 0%, transparent 60%);
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--hy, 0) * 1px), 0); animation: deriva 22s ease-in-out infinite alternate; }
@keyframes deriva { from { translate: -2% -1%; } to { translate: 3% 2%; } }
.hero-scuro::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 80%); pointer-events: none; }
.hero-scuro .contenitore { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 860px) { .hero-scuro .contenitore { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; } }
.hero-scuro .occhiello { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(52,199,123,.14); border: 1px solid rgba(52,199,123,.35); color: var(--verde-neon); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
/* Ingresso dei testi dell'hero: salgono e passano da sfocati a nitidi, in sequenza */
.hero-scuro .anim { animation: entra .9s var(--uscita) both; }
.hero-scuro .anim:nth-child(1) { animation-delay: .05s } .hero-scuro .anim:nth-child(2) { animation-delay: .32s } .hero-scuro .anim:nth-child(3) { animation-delay: .46s } .hero-scuro .anim:nth-child(4) { animation-delay: .6s }
@keyframes entra { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 760px) { @keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } } }
/* Scorrendo, la colonna dei testi sale un po' più piano e sfuma (parallasse leggera, --h da sito.js) */
.hero-testo { transform: translate3d(0, calc(var(--h, 0) * -46px), 0); opacity: calc(1 - var(--h, 0) * .6); }
/* Griglia di puntini più luminosa che si accende attorno al puntatore (solo mouse: sito.js aggiunge .puntatore) */
.hero-griglia { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background-image: radial-gradient(rgba(140,240,187,.6) 1.2px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), #000, transparent 72%); mask-image: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), #000, transparent 72%); }
.hero-scuro.puntatore .hero-griglia { opacity: .85; }
.hero-scuro h1 em { background: linear-gradient(90deg, #34C77B, #8CF0BB, #34C77B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: luccica 5s linear infinite; }
@keyframes luccica { to { background-position: 200% 0; } }
.hero-scuro h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 18px 0 14px; color: #fff; }
.hero-scuro h1 em { font-style: normal; }
.hero-scuro .lead { font-size: 1.15rem; color: #B9CCC2; max-width: 50ch; margin-bottom: 22px; }
.hero-scuro .btn { background: var(--verde-neon); color: #06140D; }
.hero-scuro .btn:hover { background: #2BB06C; }
.sito .btn { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s, background .15s; }
.sito .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,123,79,.28); }
/* Riflesso che attraversa il pulsante: all'hover e, ogni tanto, da solo sulle CTA principali (solo transform) */
.sito .btn::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(0) skewX(-20deg); transition: transform .6s var(--morbida); pointer-events: none; }
.sito .btn:hover::after { transform: translateX(475%) skewX(-20deg); }
.hero-scuro .btn[data-magnete]::after, .piano.evidenza .btn::after, .cta-finale .btn::after { animation: brilla 6s 2.4s var(--morbida) infinite; }
.sito .btn:hover::after { animation: none; }
@keyframes brilla { 0%, 78% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(475%) skewX(-20deg); } }
.sito .btn:active { transform: translateY(0) scale(.97); }
.hero-scuro .btn-vetro { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hero-scuro .btn-vetro:hover { background: rgba(255,255,255,.14); }
.hero-prove { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: #B9CCC2; font-size: .9rem; }
.hero-prove span { display: inline-flex; align-items: center; gap: 6px; }
.hero-prove svg { width: 18px; height: 18px; color: var(--verde-neon); }

/* Telefono in CSS */
/* Livelli del telefono hero: -wrap (prospettiva) > -vola (scorrimento, --h) > .telefono (inclinazione col mouse + galleggio) */
.telefono-wrap { perspective: 1200px; position: relative; }
.telefono-vola { transform: translate3d(0, calc(var(--h, 0) * 90px), 0) rotateX(calc(var(--h, 0) * 22deg)) scale(calc(1 - var(--h, 0) * .12)); opacity: calc(1 - var(--h, 0) * .7); transform-style: preserve-3d; }
.telefono { position: relative; width: 300px; max-width: 86%; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 42px; background: #0b1410; border: 10px solid #1b2a23; box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 2px #0a0f0c; transform-style: preserve-3d;
  transform: rotate(-4deg) rotateX(calc(var(--my, 0) * -9deg)) rotateY(calc(var(--mx, 0) * 12deg)); animation: galleggia 7s ease-in-out infinite, tel-arriva 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes galleggia { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes tel-arriva { from { opacity: 0; scale: .86; rotate: x 28deg; } to { opacity: 1; scale: 1; rotate: x 0deg; } }
/* Riflesso che segue il mouse e lo scorrimento */
.schermo::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 70%; z-index: 5; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 45%, rgba(255,255,255,.04) 60%, transparent);
  transform: translateX(calc(40% + var(--mx, 0) * 90% + var(--h, 0) * 220%)) skewX(-14deg); }
/* Alone pulsante e ombra a terra */
.telefono-alone { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(52,199,123,.32), rgba(52,199,123,.08) 55%, transparent); pointer-events: none; animation: respira-h 5s ease-in-out infinite; transform: translate3d(calc(var(--mx, 0) * -20px), calc(var(--my, 0) * -16px), 0); }
@keyframes respira-h { 0%, 100% { opacity: .75; scale: .94; } 50% { opacity: 1; scale: 1.04; } }
.telefono-ombra { position: absolute; left: 50%; bottom: -18px; width: 240px; height: 40px; margin-left: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); pointer-events: none; transform: translateX(calc(var(--mx, 0) * -26px)) scaleX(calc(1 - var(--my, 0) * .12)); animation: ombra-h 7s ease-in-out infinite; }
@keyframes ombra-h { 50% { scale: .86; opacity: .7; } }
.chip-fluttuante { position: absolute; left: -64px; top: 47%; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(6,36,26,.88); border: 1px solid rgba(52,199,123,.45); color: #DFF3E8; font-size: 12px; font-weight: 700; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: translateZ(60px); animation: appari .6s 2.95s var(--molla) both; white-space: nowrap; }
.chip-fluttuante svg { width: 15px; height: 15px; color: var(--verde-neon); }
.spunta-fluttuante { transform: translateZ(40px); }
@media (max-width: 860px) { .chip-fluttuante { left: -10px; top: 40%; } }
.telefono::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; background: #0b1410; border-radius: 999px; z-index: 3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); animation: isola 6s 3s ease-in-out infinite; }
@keyframes isola { 0%, 80%, 100% { width: 34%; } 86%, 94% { width: 46%; } }
.schermo { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: #F6F8F7; color: var(--inchiostro); font-size: 11px; display: flex; flex-direction: column; }
.schermo .barra { padding: 48px 16px 10px; background: #0F7B4F; color: #fff; font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.schermo .corpo { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.schermo .riga-s { background: #fff; border: 1px solid #DDE5E0; border-radius: 10px; padding: 8px 10px; }
.schermo .riga-s b { display: block; font-size: 11px; }
.schermo .riga-s small { color: #5A6B63; font-size: 10px; }
.schermo .tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; padding: 4px 2px; }
.schermo .firma-box { height: 54px; border: 1.5px dashed #BFCDC5; border-radius: 10px; background: #fff; position: relative; overflow: hidden; }
.schermo .firma-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.schermo .firma-box path { stroke: #14211B; stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: firma 1.7s 1.2s cubic-bezier(.45,.05,.4,1) forwards; }
@keyframes firma { to { stroke-dashoffset: 0; } }
.schermo .cta { margin-top: auto; background: #0F7B4F; color: #fff; text-align: center; font-weight: 800; padding: 11px; border-radius: 12px; font-size: 12px; }
/* Lo schermo del telefono hero si compila da solo: righe, totale, firma, poi il tocco su "Invia" e arriva il pagamento */
.schermo .riga-s, .schermo .tot, .schermo .firma-box, .schermo .cta { animation: tel-riga .55s var(--uscita) both; }
.schermo .riga-s:nth-child(1) { animation-delay: .7s; } .schermo .riga-s:nth-child(2) { animation-delay: .82s; } .schermo .tot { animation-delay: .94s; } .schermo .firma-box { animation-delay: 1.04s; }
.schermo .cta { animation: tel-riga .55s 1.12s var(--uscita) both, tel-tocco .5s 3.1s ease-in-out; }
@keyframes tel-riga { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tel-tocco { 40% { transform: scale(.94); background: #0B6340; box-shadow: 0 0 0 6px rgba(52,199,123,.25); } }
.spunta-fluttuante { position: absolute; right: -14px; top: 61%; background: #fff; color: var(--inchiostro); border-radius: 14px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-size: 12px; display: flex; gap: 8px; align-items: center; animation: appari-s .7s 3.45s cubic-bezier(.3,1.5,.5,1) both; z-index: 4; }
@keyframes appari-s { from { opacity: 0; scale: .7; translate: 0 16px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.spunta-fluttuante .cerchio { width: 26px; height: 26px; border-radius: 50%; background: #E8F5EE; color: #0F7B4F; display: inline-flex; align-items: center; justify-content: center; }
.spunta-fluttuante .cerchio svg { width: 16px; height: 16px; }
.spunta-fluttuante b { display: block; font-size: 12px; }
@keyframes appari { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.spunta-fluttuante .cerchio { animation: pulsa 2.4s 4.1s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(15,123,79,.35); } 50% { box-shadow: 0 0 0 8px rgba(15,123,79,0); } }

/* Striscia numeri */
.striscia { background: var(--verde-scuro); color: #DFF3E8; }
.striscia .contenitore { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 22px 16px; }
.striscia b { display: block; font-size: 1.5rem; color: #fff; }
.striscia span { font-size: .85rem; color: #B9CCC2; }
.striscia b span { font-size: inherit; color: inherit; font-variant-numeric: tabular-nums; }
/* Ogni numero ha una linea verde a sinistra che si "disegna" (scaleY) e un riflesso attraversa la striscia una volta */
.striscia { position: relative; overflow: hidden; }
.striscia .contenitore > div { position: relative; padding-left: 16px; }
.striscia .contenitore > div::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--verde-neon), rgba(52,199,123,.08)); transform-origin: 50% 0; }
.js .striscia .contenitore > div::before { transform: scaleY(0); transition: transform .9s var(--uscita); transition-delay: calc(var(--i, 0) * 90ms + .25s); }
.js .striscia .visibile > div::before, .sito-ko .striscia .contenitore > div::before { transform: none; }
.striscia .contenitore::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(140,240,187,.10), transparent); transform: translateX(-110%); }
.js .striscia .visibile::after { animation: striscia-luce 1.8s .35s var(--morbida) both; }
@keyframes striscia-luce { to { transform: translateX(380%); } }

/* Sezioni */
.sezione { padding: 72px 0; }
.sezione-tenue { background: var(--superficie); }
.sezione .intestazione { max-width: 60ch; margin-bottom: 36px; }
.sezione .intestazione .etichetta-s::before { content: ""; display: inline-block; width: 0; height: 2px; background: var(--primario); margin-right: 8px; vertical-align: middle; transition: width .6s .2s; }
.sezione .intestazione.visibile .etichetta-s::before { width: 28px; }
.sezione .intestazione .etichetta-s { color: var(--primario); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.sezione h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 6px 0 10px; }
.sezione .intestazione p { color: var(--testo-2); font-size: 1.05rem; }

/* Card problemi */
.problemi { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.problema { background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 16px; padding: 22px; box-shadow: var(--ombra); transition: transform .2s, box-shadow .2s; }
.problema:hover { --su: -4px; box-shadow: 0 18px 36px rgba(20,33,27,.13); }
.problema .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--errore-tenue); color: var(--errore); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.problema .ico svg { width: 22px; height: 22px; }
.problema h3 { font-size: 1.05rem; }
.problema p { color: var(--testo-2); margin: 0; font-size: .95rem; }

/* Timeline come funziona */
.passi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: passo; }
@media (max-width: 860px) { .passi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .passi { grid-template-columns: 1fr; } }
.passo { transition: transform .25s, box-shadow .25s, border-color .25s; }
.passo:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--primario); box-shadow: 0 16px 36px rgba(15,123,79,.14); }
.passo { position: relative; padding: 22px; background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 16px; }
.passo::before { counter-increment: passo; content: counter(passo, decimal-leading-zero); font-weight: 900; font-size: 2rem; color: var(--primario); opacity: .9; line-height: 1; display: block; margin-bottom: 10px; }
.passo h3 { font-size: 1.05rem; }
.passo p { color: var(--testo-2); font-size: .95rem; margin: 0; }

/* Funzioni */
.funzioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.funzione-c { display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.funzione-c:hover { background: var(--rilievo); border-color: var(--bordo); }
.funzione-c:hover .ico { transform: rotate(-6deg) scale(1.08); background: var(--primario); color: var(--su-primario); }
.funzione-c .ico { transition: transform .25s, background .25s, color .25s; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--primario-tenue); color: var(--primario); display: inline-flex; align-items: center; justify-content: center; }
.funzione-c .ico svg { width: 22px; height: 22px; }
/* Icone di problemi e funzioni: quando la griglia compare "scattano" in posizione con un filo di rimbalzo */
.js .problemi .ico, .js .funzioni .ico { opacity: 0; scale: .4; rotate: -18deg; transition: opacity .35s, scale .6s var(--molla), rotate .6s var(--molla), transform .25s, background .25s, color .25s; transition-delay: calc(var(--i, 0) * 75ms + .3s), calc(var(--i, 0) * 75ms + .3s), calc(var(--i, 0) * 75ms + .3s), 0s, 0s, 0s; }
.js .problemi.visibile .ico, .js .funzioni.visibile .ico, .sito-ko .problemi .ico, .sito-ko .funzioni .ico { opacity: 1; scale: 1; rotate: 0deg; }
.funzione-c b { display: block; margin-bottom: 2px; }
.funzione-c p { margin: 0; color: var(--testo-2); font-size: .93rem; }

/* Prezzi */
.interruttore-prezzi { display: inline-flex; background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 999px; padding: 4px; margin: 6px 0 26px; }
.interruttore-prezzi button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--testo-2); }
.interruttore-prezzi button.attivo { background: var(--primario); color: var(--su-primario); }
.interruttore-prezzi .sconto { font-size: .72rem; background: var(--avviso-tenue); color: var(--avviso); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.piani { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.piano { background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.piano { transition: transform .25s, box-shadow .25s; }
.piano:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,33,27,.14); }
.piano.evidenza:hover { transform: translateY(-10px); }
.piano .prezzo .valore { display: inline-block; }
/* Cambio mensile/annuale: le cifre scorrono (sito.js) e il prezzo fa un piccolo "battito" */
.piano .prezzo.cambia .valore { animation: prezzo-batte .5s var(--molla); }
@keyframes prezzo-batte { 40% { transform: translateY(-3px) scale(1.05); color: var(--primario); } }
.interruttore-prezzi { position: relative; }
.interruttore-prezzi button { position: relative; z-index: 1; transition: color .3s; }
.interruttore-prezzi .cursore { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--cw, 0px); border-radius: 999px; background: var(--primario); transform: translate3d(var(--cx, 0px), 0, 0); transition: transform .45s var(--uscita), width .45s var(--uscita); box-shadow: 0 6px 16px rgba(15,123,79,.3); }
.interruttore-prezzi.con-cursore button.attivo { background: none; }
/* Etichetta "Il più scelto": arriva dopo le card, con rimbalzo */
.js .piani .etich { opacity: 0; scale: .5; translate: 0 8px; transition: opacity .3s .8s, scale .6s .8s var(--molla), translate .6s .8s var(--molla); }
.js .piani.visibile .etich, .sito-ko .piani .etich { opacity: 1; scale: 1; translate: none; }
.piano.evidenza { border: 2px solid var(--primario); box-shadow: 0 20px 50px rgba(15,123,79,.18); transform: translateY(-6px); }
@media (max-width: 600px) { .piano.evidenza { transform: none; } .piano.evidenza:hover { transform: translateY(-4px); } }
.piano .etich { position: absolute; top: -13px; left: 22px; background: var(--primario); color: var(--su-primario); font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.piano h3 { font-size: 1.2rem; }
.piano .prezzo { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 10px 0 2px; }
.piano .prezzo small { font-size: .95rem; font-weight: 600; color: var(--testo-2); letter-spacing: 0; }
.piano .nota-prezzo { color: var(--testo-2); font-size: .85rem; min-height: 1.3em; }
.piano ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.piano li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.piano li svg { width: 18px; height: 18px; color: var(--primario); flex-shrink: 0; margin-top: 2px; }
.piano .btn { margin-top: auto; }

/* Fiducia / assistenza */
.fiducia { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .fiducia { grid-template-columns: 1fr; } }
.assist-card { background: var(--verde-scuro); color: #DFF3E8; border-radius: 20px; padding: 26px; }
.assist-card b { color: #fff; }
.assist-card .voce-a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.assist-card .voce-a:last-child { border-bottom: 0; }
.assist-card { position: relative; overflow: hidden; isolation: isolate; }
/* Alone che gira lento dietro la card assistenza */
.assist-card::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(52,199,123,.28), transparent); animation: respira-h 7s ease-in-out infinite; pointer-events: none; }
.assist-card .voce-a svg { transition: transform .4s var(--molla); }
.assist-card .voce-a:hover svg { transform: scale(1.15) rotate(-6deg); }
.assist-card svg { width: 22px; height: 22px; color: var(--verde-neon); flex-shrink: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--bordo); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { position: relative; padding-right: 34px; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--primario); transition: transform .4s var(--uscita); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--testo-2); animation: faq-entra .5s var(--uscita); }
.faq details { transition: background-color .3s; }
.faq details[open] summary { color: var(--primario); }
@keyframes faq-entra { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Apertura fluida (browser recenti: ::details-content + interpolate-size); altrove si apre di scatto */
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.2,.7,.2,1), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { transition: color .2s, translate .3s var(--uscita); }
.faq summary:hover { color: var(--primario); }
@media (hover: hover) { .faq summary:hover { translate: 4px 0; } }
/* Fallback per i browser senza ::details-content: altezza animata da sito.js su .faq-anima */
.faq details.faq-anima { overflow: hidden; }

/* CTA finale */
.cta-finale { position: relative; overflow: hidden; isolation: isolate; background: #0A3D2A; color: #fff; border-radius: 24px; padding: 48px 28px; text-align: center; }
/* Gradiente animato: un livello grande che ruota lentamente (solo transform) */
.cta-finale::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; z-index: -1; background: radial-gradient(closest-side at 36% 42%, #15965F, transparent), radial-gradient(closest-side at 66% 60%, #0F7B4F, transparent), radial-gradient(closest-side at 50% 50%, #0C5A3A, transparent); animation: gira 26s linear infinite; }
.cta-finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 240px at 50% 0%, rgba(52,199,123,.25), transparent 70%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px; pointer-events: none; }
@keyframes gira { to { transform: rotate(1turn); } }
.cta-finale h2 { color: #fff; }
.cta-finale p { color: #CFE6D9; }
.cta-finale .btn { background: #fff; color: #0A3D2A; }
.cta-finale .btn:hover { background: #E8F5EE; }

/* Piede */
.sito-piede { border-top: 1px solid var(--bordo); background: var(--superficie); padding: 40px 0 24px; font-size: .92rem; }

/* Animazione all'ingresso */
/* Gli stati nascosti valgono solo con JS attivo (html.js): senza JS tutto è visibile.
   Le comparse usano le proprietà singole translate/scale (non transform): così transform resta libero per
   sollevamento all'hover e inclinazione, e le due cose non si annullano a vicenda. */
.js .rivela { opacity: 0; translate: 0 26px; filter: blur(6px); transition: opacity .9s var(--morbida), translate 1s var(--uscita), filter .9s var(--morbida); }
.js .rivela.visibile, .sito-ko .rivela { opacity: 1; translate: none; filter: none; }
.js .rivela-figli.rivela { opacity: 1; translate: none; filter: none; }

/* Rivela a cascata per i figli (ritardo da --i, impostato da sito.js): salgono leggermente inclinati in prospettiva.
   I ritardi valgono solo per le proprietà della comparsa, non per hover (transform, ombre, bordi). */
.js .rivela-figli > * { opacity: 0; translate: 0 34px; scale: .96; filter: blur(5px);
  transition: opacity .8s var(--morbida), translate 1s var(--uscita), scale 1s var(--uscita), filter .8s var(--morbida), transform .3s var(--morbida), box-shadow .3s, border-color .3s, background-color .3s;
  transition-delay: calc(var(--i, 0) * 75ms), calc(var(--i, 0) * 75ms), calc(var(--i, 0) * 75ms), calc(var(--i, 0) * 75ms), 0s, 0s, 0s, 0s; }
.js .rivela-figli.visibile > *, .sito-ko .rivela-figli > * { opacity: 1; translate: none; scale: none; filter: none; }
/* Durante l'inclinazione col mouse il transform segue il puntatore con un piccolo ritardo morbido */
.inclina-su { transition-duration: .8s, 1s, 1s, .8s, .12s, .3s, .3s, .3s !important; }
@media (max-width: 760px) { .js .rivela, .js .rivela-figli > * { filter: blur(2px); } .js .rivela.visibile, .js .rivela-figli.visibile > * { filter: none; } }

/* ---- Scarica l'app ---- */
.scarica-app { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.scarica-pulsanti { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #0A1410; color: #fff; text-decoration: none; min-height: 56px; box-shadow: 0 10px 24px rgba(10,20,16,.25); transition: transform .15s, box-shadow .2s; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10,20,16,.3); text-decoration: none; color: #fff; }
.btn-store svg { width: 28px; height: 28px; color: #34C77B; flex-shrink: 0; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.15rem; }
.btn-store small { font-weight: 500; font-size: .72rem; opacity: .75; letter-spacing: .02em; }
.btn-store-chiaro { background: #fff; color: #0A1410; border: 1px solid rgba(10,20,16,.12); box-shadow: none; }
.btn-store-chiaro:hover { color: #0A1410; }
.btn-store-chiaro svg { color: #0A1410; }
.passi-app { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.passi-app li { counter-increment: p; position: relative; padding: 16px 16px 16px 60px; background: var(--rilievo, #fff); border: 1px solid rgba(10,20,16,.08); border-radius: 16px; }
.passi-app li::before { content: counter(p); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #0F7B4F; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.js .passi-app li::before { scale: 0; transition: scale .6s var(--molla); transition-delay: calc(var(--i, 0) * 75ms + .35s); }
.js .passi-app.visibile li::before, .sito-ko .passi-app li::before { scale: 1; }
.btn-store svg { transition: transform .4s var(--molla); }
.btn-store:hover svg { transform: rotate(-8deg) scale(1.12); }
@media (max-width: 860px) { .scarica-app { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .btn-store { flex: 1 1 100%; justify-content: center; } }
:root[data-tema="scuro"] .btn-store-chiaro, :root[data-tema="scuro"] .passi-app li { background: #16201B; color: #E7EFEA; border-color: #2A3832; }
:root[data-tema="scuro"] .btn-store-chiaro svg { color: #E7EFEA; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="chiaro"]) .btn-store-chiaro, :root:not([data-tema="chiaro"]) .passi-app li { background: #16201B; color: #E7EFEA; border-color: #2A3832; } :root:not([data-tema="chiaro"]) .btn-store-chiaro svg { color: #E7EFEA; } }

/* ---- Accessibilità: salta al contenuto ---- */
.salta-contenuto { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--primario); color: var(--su-primario); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .15s; }
.salta-contenuto:focus { top: 12px; text-decoration: none; }

/* ---- Piè di pagina a 4 colonne ---- */
.piede-griglia { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.sito-piede a { color: var(--testo-2); }
.sito-piede a:hover { color: var(--primario); }
.sito-piede .logo { color: var(--testo); }

/* ---- Briciole ---- */
.briciole-sito { padding-top: 18px; }
.briciole-sito ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--testo-2); }
.briciole-sito li + li::before { content: "›"; margin-right: 6px; color: var(--testo-2); }
.briciole-sito a { color: var(--testo-2); }
.briciole-sito [aria-current] { color: var(--testo); font-weight: 600; }

/* ---- Pagine legali ---- */
.sezione-legale { padding: 28px 0 72px; }
.testo-legale { max-width: 820px; }
.testo-legale h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 8px 0 8px; }
.testo-legale h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-top: .4rem; scroll-margin-top: 84px; }
.testo-legale h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.testo-legale p, .testo-legale li { color: var(--testo); line-height: 1.65; }
.testo-legale ul, .testo-legale ol { padding-left: 1.3rem; }
.testo-legale li { margin-bottom: .35rem; }
.testo-legale .tabella-wrap { margin: 12px 0 18px; }
.testo-legale .tabella td { font-size: .9rem; }
.legale-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--testo-2); font-size: .9rem; margin-bottom: 14px; }
.legale-meta b { color: var(--testo); }
.legale-nota { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--testo-2); background: var(--superficie); border: 1px dashed var(--bordo); border-radius: 12px; padding: 10px 14px; margin: 0 0 22px; }
.legale-nota svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--avviso); }
.legale-indice { background: var(--superficie); border: 1px solid var(--bordo); border-radius: 14px; padding: 14px 18px; margin: 0 0 8px; }
.legale-indice b { display: block; margin-bottom: 6px; }
.legale-indice ol { margin: 0; padding-left: 1.2rem; columns: 2 220px; column-gap: 28px; font-size: .92rem; }
.legale-indice li { margin-bottom: 4px; break-inside: avoid; }
.segnaposto { background: var(--avviso-tenue); color: var(--avviso); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.legale-box { border: 1px solid var(--bordo); border-left: 4px solid var(--primario); border-radius: 12px; padding: 12px 16px; background: var(--rilievo); margin: 12px 0; white-space: pre-line; }

/* ---- Pagine di atterraggio ---- */
.hero-scuro .occhiello-sito { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--verde-neon); margin: 0; }
.hero-scuro .hero-singolo { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .hero-scuro .hero-singolo { grid-template-columns: 1fr; } }
.hero-scheda { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 22px; color: #DFF3E8; }
.hero-scheda b { color: #fff; }
.hero-scheda ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.hero-scheda li { display: flex; gap: 10px; align-items: flex-start; }
.hero-scheda svg { width: 20px; height: 20px; color: var(--verde-neon); flex-shrink: 0; margin-top: 2px; }
.testo-seo { max-width: 72ch; }
.testo-seo p { color: var(--testo-2); font-size: 1.05rem; line-height: 1.7; }
.testo-seo h3 { margin-top: 1.4rem; }
.confronto { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.confronto th, .confronto td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bordo); vertical-align: top; }
.confronto tr:last-child th, .confronto tr:last-child td { border-bottom: 0; }
.confronto thead th { background: var(--superficie); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--testo-2); }
.confronto thead th:last-child { color: var(--primario); }
.confronto tbody th { font-weight: 700; width: 28%; }
.confronto td:last-child { color: var(--testo); font-weight: 600; }
.confronto td:nth-child(2) { color: var(--testo-2); }
@media (max-width: 600px) { .confronto, .confronto tbody, .confronto tr, .confronto th, .confronto td { display: block; width: 100%; } .confronto thead { display: none; } .confronto tbody th { border-bottom: 0; padding-bottom: 2px; width: 100%; } .confronto td { border-bottom: 0; padding-top: 2px; padding-bottom: 2px; } .confronto td[data-etichetta]::before { content: attr(data-etichetta) ": "; font-weight: 700; } .confronto td:last-child::before { color: var(--primario); } .confronto tr { border-bottom: 1px solid var(--bordo); padding-bottom: 10px; } .confronto tr:last-child { border-bottom: 0; } }
.per-chi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.per-chi a { display: block; background: var(--rilievo); border: 1px solid var(--bordo); border-radius: 16px; padding: 18px 20px; color: var(--testo); transition: transform .2s, border-color .2s, box-shadow .2s; }
.per-chi a:hover { --su: -4px; border-color: var(--primario); box-shadow: 0 18px 36px rgba(15,123,79,.14); text-decoration: none; }
.per-chi b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.per-chi span { color: var(--testo-2); font-size: .93rem; }
.per-chi .freccia { color: var(--primario); font-weight: 700; font-size: .9rem; margin-top: 8px; display: inline-block; transition: translate .35s var(--molla); }
.per-chi a:hover .freccia { translate: 5px 0; }

/* Card che reagiscono al puntatore (problemi, "per chi è"): sollevamento all'hover e, col mouse, inclinazione 3D + luce
   (sito.js imposta --rx/--ry/--lx/--ly). Su touch resta solo il sollevamento. */
.problema, .per-chi a { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--su, 0px)); }
.problema::after, .per-chi a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--lx, 50%) var(--ly, 0%), color-mix(in srgb, var(--primario) 10%, transparent), transparent 65%); }
@media (hover: hover) and (pointer: fine) { .problema:hover::after, .per-chi a:hover::after { opacity: 1; } }

/* =====================================================================
   Loader di marca (prima visita della sessione) — attivo solo con html.caricamento
   ===================================================================== */
@property --foro { syntax: "<length>"; inherits: false; initial-value: 0px; }
.caricatore { display: none; }
.caricamento .caricatore, .caricatore.esce { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; color: #DFF3E8;
  background: radial-gradient(700px 420px at 50% 42%, rgba(15,123,79,.55), transparent 70%), var(--verde-notte);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--foro), #000 calc(var(--foro) + 1px)); mask: radial-gradient(circle at 50% 46%, transparent var(--foro), #000 calc(var(--foro) + 1px));
  /* paracadute solo CSS: se tutto il resto fallisce, dopo 5 s sparisce comunque */
  animation: caricatore-via .01s 5s forwards; }
@keyframes caricatore-via { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.caricatore::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.caricatore.esce { --foro: 150vmax; transition: --foro .8s cubic-bezier(.7,0,.2,1), opacity .3s .6s; opacity: 0; pointer-events: none; }
.caricatore-centro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .4s; }
.caricatore.esce .caricatore-centro { transform: scale(.8); opacity: 0; }
.caricatore-logo { width: 76px; height: 76px; overflow: visible; filter: drop-shadow(0 10px 30px rgba(52,199,123,.35)); }
.caricatore-logo .c-foglio { fill: #0F7B4F; fill-opacity: 0; stroke: #34C77B; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-traccia .45s 0s cubic-bezier(.6,0,.3,1) forwards, c-riempi .25s .36s ease forwards; }
.caricatore-logo .c-carta { fill: #E8F5EE; opacity: 0; transform-origin: 32px 32px; transform: scale(.7); animation: c-carta .35s .42s cubic-bezier(.3,1.4,.5,1) forwards; }
.caricatore-logo .c-riga { stroke: #9FB2A8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-traccia .22s .52s ease-out forwards; }
.caricatore-logo .c-riga2 { animation-delay: .58s; }
.caricatore-logo .c-spunta { stroke: #0F7B4F; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-traccia .3s .62s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes c-traccia { to { stroke-dashoffset: 0; } }
@keyframes c-riempi { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes c-carta { to { opacity: 1; transform: none; } }
.caricatore-nome { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; opacity: 0; animation: entra-su .45s .15s cubic-bezier(.2,.7,.2,1) forwards; transform: translateY(8px); }
.caricatore-nome span { color: var(--verde-neon); }
@keyframes entra-su { to { opacity: 1; transform: none; } }
.caricatore-barra { width: 168px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.caricatore-barra i { display: block; height: 100%; background: linear-gradient(90deg, #0F7B4F, #34C77B, #8CF0BB); transform-origin: 0 50%; transform: scaleX(var(--carico, 0)); box-shadow: 0 0 12px #34C77B; }
.caricatore-perc { font-size: .8rem; color: #9FB8AC; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
/* Finché il loader è su, l'hero resta fermo al primo fotogramma: parte dopo */
.caricamento .hero-scuro *, .caricamento .hero-scuro *::before, .caricamento .hero-scuro *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .caricatore, .caricamento .caricatore { display: none !important; } }

/* Barra di avanzamento della lettura */
.lettura { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.lettura i { display: block; height: 100%; background: linear-gradient(90deg, #0F7B4F, #34C77B); transform-origin: 0 50%; transform: scaleX(var(--letto, 0)); box-shadow: 0 0 8px rgba(52,199,123,.6); }
.ridotto .lettura { display: none; }

/* Titoli: parole che salgono da una maschera, in sequenza */
.parola { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.parola > span { display: inline-block; transform: translateY(108%) rotate(6deg); transform-origin: 0 100%; opacity: 0; transition: transform 1s var(--uscita), opacity .6s; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.visibile .parola > span, .parola.via > span, .sito-ko .parola > span { transform: none; opacity: 1; }
.hero-scuro h1.parole-ok { opacity: 1; transform: none; animation: none; }
.hero-scuro h1 .parola > span { transition: none; animation: parola-su 1.05s var(--uscita) both; animation-delay: calc(var(--i, 0) * 65ms + 60ms); }
@keyframes parola-su { from { transform: translateY(108%) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* em con gradiente: resta un'unica parola-blocco (il gradiente non si spezza) */
.parola > em { display: inline-block; }

/* Card funzioni: bordo luminoso che segue il mouse (solo mouse) */
.funzione-c { position: relative; }
.funzione-c::before { content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), var(--primario), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.funzione-c::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--primario) 9%, transparent), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .funzione-c:hover::before, .funzione-c:hover::after { opacity: 1; } }
.funzione-c > * { position: relative; z-index: 1; }

/* Prezzi: bordo a gradiente che ruota lentamente sul piano in evidenza */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.piano.evidenza { border-color: transparent; }
.piano.evidenza::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--primario), #8CF0BB 12%, var(--primario) 28%, var(--primario) 60%, #34C77B 74%, var(--primario));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ruota-bordo 6s linear infinite; }
/* Alone esterno che respira: solo box-shadow di un livello trasparente (dentro la card non si vede nulla) */
.piano.evidenza::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 20px; box-shadow: 0 18px 60px rgba(52,199,123,.38); animation: alone-piano 5s ease-in-out infinite; pointer-events: none; }
@keyframes alone-piano { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.piani { isolation: isolate; }
.piano .etich { z-index: 1; }
@keyframes ruota-bordo { to { --ang: 1turn; } }
.piano .prezzo .valore { font-variant-numeric: tabular-nums; }

/* Pulsanti magnetici (solo mouse): sito.js imposta --mgx/--mgy */
[data-magnete] { translate: var(--mgx, 0px) var(--mgy, 0px); transition: translate .35s cubic-bezier(.2,.8,.2,1), transform .15s, box-shadow .2s, background .15s; }

/* =====================================================================
   "Riduci movimento" (preferenza di sistema o html.ridotto): tutto fermo, tutto visibile
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-scuro::before, .cta-finale::before, .assist-card::before, .spunta-fluttuante, .spunta-fluttuante .cerchio, .chip-fluttuante, .telefono, .telefono::before, .telefono-alone, .telefono-ombra, .hero-scuro h1 em,
  .schermo .riga-s, .schermo .tot, .schermo .firma-box, .schermo .cta, .sito .btn::after, .striscia .contenitore::after, .piano.evidenza::before, .piano.evidenza::after, .faq details p { animation: none !important; }
  .schermo .firma-box path { animation: none !important; stroke-dashoffset: 0; }
  .hero-scuro .anim, .js .rivela, .js .rivela-figli > *, .parola > span, .js .problemi .ico, .js .funzioni .ico, .js .piani .etich, .js .passi-app li::before, .js .striscia .contenitore > div::before {
    opacity: 1 !important; transform: none !important; translate: none !important; scale: none !important; rotate: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .hero-testo { transform: none; opacity: 1; }
  .hero-griglia, .schermo::after { display: none; }
  .problema, .per-chi a { transform: none !important; }
  [data-magnete] { translate: none; }
  .nav-pillola, .interruttore-prezzi .cursore, .faq summary::before, .faq summary::after { transition: none !important; }
  .faq details::details-content { transition: none !important; }
}
