/* WAVLY, le pagine pubbliche (29/11/2026): presentazione, prezzi, pagine legali.
   Stessa identità dello studio (la Bolla con la W): base scura, tre fluo con un compito ciascuno
   (verde acqua le azioni, blu il calendario, orchidea i numeri), Gabarito per i titoli e Hanken Grotesk per il testo.
   Caratteri serviti da wavly.dev, nessuna richiesta a terzi. Misure fluide: clamp e auto-fit, dal 1440 al 320. */

@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/caratteri/gabarito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/caratteri/gabarito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/caratteri/hanken-grotesk-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/caratteri/hanken-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --fondo: #04141F; --fondo-2: #0A2230; --fondo-3: #0F2C3D;
  --superficie: rgba(232, 251, 244, .045); --superficie-2: rgba(232, 251, 244, .08);
  --riga: rgba(232, 251, 244, .10); --riga-2: rgba(232, 251, 244, .18);
  --testo: #E8FBF4; --testo-2: #A3BEC8; --testo-3: #7F9CA8;
  --acqua: #1CFFB4; --acqua-scuro: #03261C; --blu: #3D6BFF; --blu-chiaro: #8FA9FF; --orchidea: #FF5CD6;
  --f-tit: 'Gabarito', 'Avenir Next', system-ui, sans-serif;
  --f-testo: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --r: 18px; --r-g: 28px; --r-p: 999px;
  --uscita: cubic-bezier(.16, 1, .3, 1); --molla: cubic-bezier(.34, 1.56, .64, 1);
  --largo: 1200px;
  --lato: clamp(16px, 4.2vw, 48px);
  --spazio: clamp(56px, 9vw, 120px);
  --t-hero: clamp(2.35rem, 1.2rem + 4.6vw, 4.6rem);
  --t-h2: clamp(1.85rem, 1.1rem + 2.7vw, 3.1rem);
  --t-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --t-testo: clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-grande: clamp(1.06rem, .98rem + .45vw, 1.32rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--fondo); color: var(--testo); font: 400 var(--t-testo)/1.6 var(--f-testo);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acqua); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-tit); letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--largo) + 2 * var(--lato)); margin: 0 auto; padding: 0 var(--lato); }
.salta { position: absolute; left: var(--lato); top: -80px; z-index: 50; background: var(--acqua); color: var(--acqua-scuro);
  padding: 12px 18px; border-radius: var(--r-p); font-weight: 700; text-decoration: none; }
.salta:focus { top: 12px; }
.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* il fondo: tre bagliori lenti, uno per fluo (come nello studio) */
.mare { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mare i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .22; }
.mare i:nth-child(1) { background: #0FB98A; left: -28vmax; top: -30vmax; }
.mare i:nth-child(2) { background: var(--blu); right: -30vmax; top: 10vh; opacity: .16; }
.mare i:nth-child(3) { background: var(--orchidea); left: 20vw; bottom: -52vmax; opacity: .08; }

/* ── la testata ── */
.testata { position: sticky; top: 0; z-index: 40; background: rgba(4, 20, 31, .72); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--riga); }
.testata .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; color: var(--testo); text-decoration: none; min-height: 44px; }
.marchio svg { width: 36px; height: 36px; flex: none; }
.marchio span { font: 800 1.45rem/1 var(--f-tit); letter-spacing: -.04em; }
.voci { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.voci a { color: var(--testo-2); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: var(--r-p);
  min-height: 44px; display: inline-flex; align-items: center; transition: color .15s, background .15s; }
.voci a:hover, .voci a[aria-current="page"] { color: var(--testo); background: var(--superficie-2); }
.voci .bottone { margin-left: 8px; }
.menu-tasto { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--riga-2);
  background: var(--superficie); color: var(--testo); cursor: pointer; align-items: center; justify-content: center; }
.menu-tasto svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-tasto { display: inline-flex; }
  .voci { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px; margin: 0;
    padding: 16px var(--lato) 28px; background: rgba(4, 20, 31, .97); border-bottom: 1px solid var(--riga);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--uscita), visibility 0s .2s; }
  .voci a { font-size: 1.15rem; padding: 14px 16px; }
  .voci .bottone { margin: 8px 0 0; justify-content: center; }
  .testata[data-aperta="1"] .voci { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--uscita); }
}

/* ── bottoni: un paio solo (pieno verde acqua, contorno) ── */
.bottone { --b: var(--acqua); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: var(--r-p); font: 700 1rem/1.1 var(--f-testo); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--b); background: var(--b); color: var(--acqua-scuro); white-space: nowrap;
  transition: transform .18s var(--molla), box-shadow .2s, background .15s, color .15s; }
.bottone:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(28, 255, 180, .55); text-decoration: none; }
.bottone:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .06s; }
.bottone.leggero { background: transparent; color: var(--testo); border-color: var(--riga-2); }
.bottone.leggero:hover { border-color: var(--testo-2); box-shadow: none; background: var(--superficie); }
.bottone .freccia { transition: transform .2s var(--uscita); }
.bottone:hover .freccia { transform: translateX(3px); }
.voci .bottone { color: var(--acqua-scuro); padding: 10px 18px; }
.voci .bottone:hover { background: var(--acqua); }

/* ── sezioni: una per schermo ── */
main > section { padding: var(--spazio) 0; }
.sezione-alta { min-height: 100svh; display: grid; align-content: center; }
.occhiello { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--testo-2); }
.occhiello::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--acqua)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--acqua)) 20%, transparent); }
.h2 { font-size: var(--t-h2); font-weight: 800; margin-top: 14px; }
.sotto { color: var(--testo-2); font-size: var(--t-grande); max-width: 60ch; margin-top: 18px; }
.calendario-c { --c: var(--blu); }
.numeri-c { --c: var(--orchidea); }

/* ── il primo schermo ── */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; min-height: calc(100svh - 68px); display: flex; flex-direction: column; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; max-width: 15ch; margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--acqua), var(--blu-chiaro) 60%, var(--orchidea));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sotto { margin-left: auto; margin-right: auto; max-width: 56ch; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.fatto { margin-top: 18px; color: var(--testo-3); font-size: .95rem; }
.fatto b { color: var(--testo-2); font-weight: 700; }
.vetrina { position: relative; width: 100%; margin-top: clamp(32px, 5vw, 56px); flex: 1; min-height: 220px; }
.cornice { position: relative; border-radius: var(--r-g) var(--r-g) 0 0; border: 1px solid var(--riga-2); border-bottom: 0;
  background: var(--fondo-2); overflow: hidden; box-shadow: 0 -30px 120px -40px rgba(61, 107, 255, .45), 0 0 0 8px rgba(232, 251, 244, .025); }
.cornice img { width: 100%; }
.cornice::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--fondo)); }
.hero .cornice { max-height: 58vh; }

/* l'entrata del primo schermo, una volta: le righe salgono, poi l'onda scopre lo studio */
@media (prefers-reduced-motion: no-preference) {
  [data-entra] .entra { opacity: 0; transform: translateY(18px); animation: sale .9s var(--uscita) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  [data-entra] .cornice { clip-path: inset(100% 0 0 0 round var(--r-g) var(--r-g) 0 0); animation: scopre 1.25s var(--uscita) .45s forwards; }
  [data-entra] .onda-luce { animation: onda-sale 1.25s var(--uscita) .45s forwards; }
  .vetrina-dentro { overflow: hidden; border-radius: var(--r-g) var(--r-g) 0 0; }
  .marchio .bolla-liquido { animation: ondeggia 6s linear infinite; }
}
@keyframes sale { to { opacity: 1; transform: none; } }
@keyframes scopre { to { clip-path: inset(0 0 0 0 round var(--r-g) var(--r-g) 0 0); } }
@keyframes onda-sale { from { bottom: -17px; opacity: 1; } 82% { opacity: 1; } to { bottom: calc(100% - 17px); opacity: 0; } }
@keyframes ondeggia { to { transform: translateX(-32px); } }
.onda-luce { position: absolute; left: 0; right: 0; bottom: -17px; height: 34px; z-index: 2; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 q8 -7 16 0 t16 0 t16 0 t16 0' fill='none' stroke='%231CFFB4' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 64px 16px;
  filter: drop-shadow(0 0 10px rgba(28, 255, 180, .8)); }
.vetrina-dentro { position: relative; }

/* ── divisi: testo e figura ── */
.divisa { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.divisa.rovescia { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.divisa.rovescia > .testo { order: 2; }
@media (max-width: 900px) { .divisa, .divisa.rovescia { grid-template-columns: minmax(0, 1fr); } .divisa.rovescia > .testo { order: 0; } }
.figura { border-radius: var(--r-g); border: 1px solid var(--riga-2); overflow: hidden; background: var(--fondo-2);
  box-shadow: 0 30px 90px -40px rgba(61, 107, 255, .5); }
.figura img { width: 100%; transition: transform .6s var(--uscita); }
.figura:hover img { transform: scale(1.02); }
.punti { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.punti li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--testo-2); }
.punti li::before { content: ''; width: 26px; height: 26px; border-radius: 9px; margin-top: 1px;
  background: color-mix(in srgb, var(--c, var(--acqua)) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8FBF4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.punti b { color: var(--testo); font-weight: 700; }

/* ── l'approvazione: gli stati veri dello studio ── */
.binario { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: passo; }
.binario li { position: relative; padding: 22px 22px 24px; border-radius: var(--r-g); background: var(--superficie);
  border: 1px solid var(--riga); counter-increment: passo; transition: transform .2s var(--uscita), border-color .2s; }
.binario li:hover { transform: translateY(-2px); border-color: var(--riga-2); }
.binario .stato { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-p); font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--s) 16%, transparent); color: var(--s); }
.binario .stato::before { content: counter(passo); font: 800 .8rem/1 var(--f-tit); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--s); color: var(--fondo); }
.binario h3 { font-size: var(--t-h3); margin-top: 16px; }
.binario p { color: var(--testo-2); margin-top: 8px; font-size: .98rem; }
.regole { margin-top: 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.regola { padding: 18px 20px; border-left: 3px solid var(--acqua); background: linear-gradient(90deg, rgba(28, 255, 180, .07), transparent); border-radius: 0 var(--r) var(--r) 0; color: var(--testo-2); }
.regola b { color: var(--testo); }

/* ── il telefono ── */
.telefono { width: min(100%, 340px); margin: 0 auto; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #1B3A4B, #0A1C27);
  border: 1px solid var(--riga-2); box-shadow: 0 40px 100px -40px rgba(28, 255, 180, .35), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.telefono img { border-radius: 37px; width: 100%; }
.tasti { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tasto { display: inline-flex; align-items: center; gap: 10px; color: var(--testo-2); font-size: .98rem; }
kbd { font: 700 .9rem/1 var(--f-testo); min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center;
  border-radius: 10px; background: var(--superficie-2); border: 1px solid var(--riga-2); border-bottom-width: 3px; color: var(--testo); }

/* ── oggi e in arrivo ── */
.due { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: clamp(28px, 4vw, 48px); }
.colonna { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-g); background: var(--superficie); border: 1px solid var(--riga); }
.colonna h3 { font-size: var(--t-h3); display: flex; align-items: center; gap: 10px; }
.etichetta { display: inline-flex; padding: 4px 10px; border-radius: var(--r-p); font: 700 .78rem/1.3 var(--f-testo); letter-spacing: .02em; }
.etichetta.ora { background: rgba(28, 255, 180, .14); color: var(--acqua); }
.etichetta.dopo { background: rgba(143, 169, 255, .14); color: var(--blu-chiaro); }
.reti { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.reti span { padding: 9px 14px; border-radius: var(--r-p); border: 1px solid var(--riga-2); font-weight: 600; font-size: .95rem; color: var(--testo); }

/* ── i piani ── */
.piani { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: clamp(28px, 4vw, 48px); align-items: stretch; }
.piano { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-g);
  background: var(--superficie); border: 1px solid var(--riga); transition: transform .2s var(--uscita), border-color .2s; }
.piano:hover { transform: translateY(-2px); border-color: var(--riga-2); }
.piano.centro { background: linear-gradient(170deg, rgba(61, 107, 255, .16), rgba(28, 255, 180, .05) 70%); border-color: rgba(143, 169, 255, .4); }
.piano h3 { font-size: 1.5rem; }
.piano .per { color: var(--testo-2); margin-top: 8px; min-height: 3.2em; }
.prezzo { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; font-family: var(--f-tit); }
.prezzo .cifra { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--testo); font-variant-numeric: tabular-nums; }
.prezzo .unita { color: var(--testo-2); font: 600 1rem var(--f-testo); }
.prezzo-nota { color: var(--testo-3); font-size: .92rem; min-height: 1.5em; margin-top: 4px; }
.piano .bottone { margin-top: 24px; width: 100%; }
.piano ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--riga); padding-top: 22px; }
.piano li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--testo-2); font-size: .98rem; }
.piano li::before { content: '✓'; color: var(--acqua); font-weight: 800; }
.piano li.arriva::before { content: '◷'; color: var(--blu-chiaro); }
.piano li b { color: var(--testo); font-weight: 700; }
.periodo { display: inline-flex; padding: 5px; border-radius: var(--r-p); background: var(--superficie-2); border: 1px solid var(--riga); margin-top: 28px; }
.periodo button { min-height: 44px; padding: 10px 20px; border-radius: var(--r-p); border: 0; background: transparent; color: var(--testo-2);
  font: 700 1rem var(--f-testo); cursor: pointer; transition: background .2s, color .2s; }
.periodo button[aria-pressed="true"] { background: var(--testo); color: var(--fondo); }
.periodo button:not([aria-pressed="true"]):hover { color: var(--testo); }
.risparmio { color: var(--orchidea); font-weight: 700; }
.mini-piani { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: clamp(28px, 4vw, 44px); }
.mini { display: block; padding: 24px; border-radius: var(--r-g); background: var(--superficie); border: 1px solid var(--riga); color: var(--testo); text-decoration: none;
  transition: transform .2s var(--uscita), border-color .2s; }
.mini:hover { transform: translateY(-2px); border-color: var(--riga-2); text-decoration: none; }
.mini h3 { font-size: 1.25rem; }
.mini p { color: var(--testo-2); margin-top: 6px; font-size: .98rem; }
.mini .prezzo { margin-top: 14px; }
.mini .prezzo .cifra { font-size: 2.2rem; }

/* tabella di confronto */
.confronto-box { margin-top: clamp(32px, 5vw, 56px); overflow-x: auto; border-radius: var(--r-g); border: 1px solid var(--riga); }
table.confronto { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .98rem; }
.confronto th, .confronto td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--riga); vertical-align: top; }
.confronto thead th { font: 800 1.05rem var(--f-tit); background: var(--superficie-2); position: sticky; top: 0; }
.confronto td:not(:first-child), .confronto th:not(:first-child) { text-align: center; width: 18%; }
.confronto tbody tr:hover { background: var(--superficie); }
.confronto .si { color: var(--acqua); font-weight: 800; }
.confronto .no { color: var(--testo-3); }
.confronto .arriva { color: var(--blu-chiaro); font-weight: 600; font-size: .9rem; }

/* domande */
.domande { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 10px; max-width: 820px; }
.domande details { border-radius: var(--r); background: var(--superficie); border: 1px solid var(--riga); }
.domande summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 44px; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 700 1.4rem var(--f-tit); color: var(--acqua); transition: transform .2s; }
.domande details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.domande details p { padding: 0 22px 20px; color: var(--testo-2); }

/* ── la richiesta di prova ── */
.prova { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
@media (max-width: 900px) { .prova { grid-template-columns: minmax(0, 1fr); } }
.modulo { padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-g); background: var(--fondo-2); border: 1px solid var(--riga-2);
  box-shadow: 0 30px 90px -50px rgba(28, 255, 180, .35); display: grid; gap: 16px; }
.campo { display: grid; gap: 7px; align-content: start; }
.campo > span { font-weight: 700; font-size: .95rem; }
.campo small { color: var(--testo-3); font-size: .88rem; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--riga-2);
  background: rgba(4, 20, 31, .7); color: var(--testo); font: 500 1rem var(--f-testo); transition: border-color .15s, box-shadow .15s; }
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--acqua); box-shadow: 0 0 0 4px rgba(28, 255, 180, .15); }
.campo [aria-invalid="true"] { border-color: #FF7AA8; }
.errore { color: #FF9CBE; font-size: .9rem; font-weight: 600; min-height: 0; }
.errore:empty { display: none; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.due-campi { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.modulo .bottone { width: 100%; margin-top: 4px; }
.modulo .nota { color: var(--testo-3); font-size: .9rem; }
.esito { padding: 22px; border-radius: var(--r); background: rgba(28, 255, 180, .1); border: 1px solid rgba(28, 255, 180, .35); }
.esito h3 { font-size: 1.3rem; }
.esito p { color: var(--testo-2); margin-top: 6px; }
.passi-prova { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; counter-reset: p; }
.passi-prova li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--testo-2); counter-increment: p; }
.passi-prova li::before { content: counter(p); width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  font: 800 1.1rem var(--f-tit); background: var(--superficie-2); color: var(--acqua); border: 1px solid var(--riga-2); }
.passi-prova b { color: var(--testo); display: block; }

/* ── il piede ── */
.piede { border-top: 1px solid var(--riga); padding: clamp(40px, 6vw, 64px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); margin-top: 0; background: rgba(4, 20, 31, .6); }
.piede-griglia { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.piede h2 { font: 700 .82rem/1.2 var(--f-testo); text-transform: uppercase; letter-spacing: .08em; color: var(--testo-3); }
.piede ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.piede ul a { color: var(--testo-2); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.piede ul a:hover { color: var(--testo); text-decoration: underline; }
.piede .chi { color: var(--testo-3); font-size: .92rem; margin-top: 12px; max-width: 34ch; }
.piede .riga-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--riga); color: var(--testo-3); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ── pagine legali ── */
.legale { padding: clamp(36px, 6vw, 72px) 0 var(--spazio); }
.legale .wrap { max-width: calc(780px + 2 * var(--lato)); }
.legale h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; }
.legale .aggiornato { color: var(--testo-3); margin-top: 12px; font-size: .95rem; }
.legale .indice { margin: 28px 0 0; padding: 18px 22px; border-radius: var(--r); background: var(--superficie); border: 1px solid var(--riga); }
.legale .indice ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; columns: 2 220px; }
.legale .indice a { color: var(--testo-2); }
.legale h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-top: 44px; scroll-margin-top: 96px; }
.legale h3 { font-size: 1.12rem; margin-top: 24px; }
.legale p, .legale li { color: var(--testo-2); }
.legale p { margin-top: 12px; }
.legale ul, .legale ol { padding-left: 1.25em; }
.legale li { margin-top: 6px; }
.legale b, .legale strong { color: var(--testo); }
.legale .riquadro { margin-top: 18px; padding: 18px 22px; border-radius: var(--r); background: rgba(61, 107, 255, .08); border: 1px solid rgba(143, 169, 255, .28); }
.legale .riquadro p:first-child { margin-top: 0; }
.da-completare { color: #FFD97A; }
.legale table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.legale th, .legale td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--riga); vertical-align: top; color: var(--testo-2); }
.legale th { color: var(--testo); font-weight: 700; }
.tabella-box { overflow-x: auto; }
.tabella-box table { min-width: 520px; }

@media (max-width: 560px) {
  .azioni .bottone { width: 100%; }
  .hero h1 { max-width: none; }
  .voci .bottone { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* aggiunte: sprite, ritardi dell'entrata, colori degli stati (niente stili in linea: la CSP non li vuole) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.e0 { --i: 0; } .e1 { --i: 1; } .e2 { --i: 2; } .e3 { --i: 3; } .e4 { --i: 4; }
.s1 { --s: #A3BEC8; } .s2 { --s: #FF5CD6; } .s3 { --s: #1CFFB4; } .s4 { --s: #8FA9FF; }
.punti.blu li::before { background: rgba(143, 169, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D5FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4.5l3 2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.dopo-prova { margin-top: 28px; color: var(--testo-2); padding: 16px 20px; border-radius: var(--r); background: var(--superficie); border: 1px solid var(--riga); }
.dopo-prova b { color: var(--testo); }
.piu-sotto { margin-top: 26px; }
.prezzi-testa { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.prezzi-testa h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; }
.prezzi-testa .sotto { margin: 18px auto 0; }
.oltre { text-align: center; color: var(--testo-2); margin-top: 22px; }
.sezione-media { padding: var(--spazio) 0; }
.quattro { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.quattro .h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.quattro .azioni { justify-content: center; }
.legale code { font-size: .88em; padding: 2px 7px; border-radius: 7px; background: var(--superficie-2); color: var(--testo); word-break: break-word; }

@media (max-width: 700px) {
  .vetrina { display: flex; justify-content: center; }
  .vetrina-dentro { width: min(100%, 320px); }
  .hero .cornice { max-height: 38svh; border-radius: 36px 36px 0 0; }
  .hero { padding-top: 28px; }
  .hero .azioni { margin-top: 22px; }
  .vetrina { margin-top: 24px; }
}
.prezzi-testa + .sezione-media { padding-top: 8px; }

@media (max-width: 640px) {
  .tabella-box table.a-schede { min-width: 0; }
  table.a-schede thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.a-schede, table.a-schede tbody, table.a-schede tr, table.a-schede td { display: block; width: 100%; }
  table.a-schede tr { padding: 14px 16px; margin-top: 12px; border-radius: var(--r); background: var(--superficie); border: 1px solid var(--riga); }
  table.a-schede td { border: 0; padding: 6px 0; }
  table.a-schede td::before { content: attr(data-l); display: block; font-weight: 700; color: var(--testo); font-size: .86rem; }
}
.legale .wrap.prova { max-width: calc(var(--largo) + 2 * var(--lato)); }
.legale .prova h1 { margin-top: 14px; }
