/* Il sito in un foglio solo, mobile first, chiaro e scuro dal sistema. Colori, caratteri, spazi e movimenti comuni sono
   in :root. I disegni sono SVG nelle pagine; si muove solo transform e opacity, e solo con prefers-reduced-motion
   no-preference. */

:root {
  color-scheme: light dark;
  --t-xs: 0.8125rem;
  --t-s: 0.875rem;
  --t-m: 0.9375rem;
  --t-base: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --t-l: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  --t-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --t-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --t-3xl: clamp(2rem, 0.9rem + 4.6vw, 4rem);
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --margine: max(clamp(1rem, 5vw, 2.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --sezione: clamp(2rem, 6vw, 4.5rem);
  --uscita: cubic-bezier(0.2, 0.7, 0.2, 1);
  --molla: cubic-bezier(0.3, 1.35, 0.5, 1);
  --raggio: 1.25rem;
  --raggio-grande: 1.75rem;
  --sfondo: #ffffff;
  --sfondo-tenue: #f2f7f4;
  --superficie: #ffffff;
  --testo: #0f1a15;
  --testo-tenue: #56635c;
  --linea: #d3ddd7;
  --linea-tenue: rgb(15 40 30 / 9%);
  --bordo-campo: #7d8a83;
  --barra: rgb(255 255 255 / 94%);
  --link: #00724e;
  --bottone: #00724e;
  --bottone-sopra: #005237;
  --bottone-testo: #ffffff;
  --bottone-ombra: 0 6px 16px -6px rgb(0 82 55 / 55%);
  --spento: #e6ece8;
  --spento-testo: #56635c;
  --chip: #e3f1ea;
  --nota: #fff6d6;
  --nota-testo: #4d3a00;
  --nota-bordo: #f0d27a;
  --esempio: #ffe066;
  --esempio-testo: #3d2e00;
  --marchio: #0a875f;
  --palla: #ffd84a;
  --palla-ombra: rgb(0 50 30 / 20%);
  --anello: linear-gradient(150deg, #0a875f, #6fdcae 55%, #ffd84a);
  --bagliore-verde: rgb(10 135 95 / 15%);
  --bagliore-pagina: rgb(10 135 95 / 9%);
  --terreno-linee: rgb(10 135 95 / 34%);
  --ombra: 0 1px 2px rgb(15 40 30 / 5%), 0 12px 32px rgb(15 40 30 / 8%);
  --ombra-alta: 0 2px 4px rgb(15 40 30 / 5%), 0 28px 60px -18px rgb(10 80 55 / 30%);
  --cornice: #111a16;
  --cornice-ombra: 0 2px 6px rgb(0 0 0 / 10%), 0 30px 60px -30px rgb(0 70 45 / 40%);
  --tg-sfondo: linear-gradient(160deg, #d8e5c3 0%, #b7d2ae 48%, #a3c8c4 100%);
  --tg-motivo: rgb(30 80 50 / 13%);
  --tg-barra: #f7f7f7;
  --tg-bolla: #ffffff;
  --tg-testo: #1d1d1f;
  --tg-tenue: #6b6b70;
  --tg-accento: #2481cc;
  --tg-scuro: rgb(30 60 40 / 66%);
  --tg-scuro-testo: #ffffff;
  --tg-ombra: 0 1px 1px rgb(0 0 0 / 12%);
  --logo: 1.875rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sfondo: #0c1612;
    --sfondo-tenue: #111d18;
    --superficie: #15231c;
    --testo: #eef3f0;
    --testo-tenue: #a3b2aa;
    --linea: #2e3f36;
    --linea-tenue: rgb(255 255 255 / 8%);
    --bordo-campo: #7f9188;
    --barra: rgb(12 22 18 / 94%);
    --link: #6fdcae;
    --bottone: #00724e;
    --bottone-sopra: #0a7d57;
    --bottone-ombra: 0 6px 18px -6px rgb(0 0 0 / 70%);
    --spento: #24302a;
    --spento-testo: #a3b2aa;
    --chip: #183a2c;
    --nota: #33290a;
    --nota-testo: #ffe7a3;
    --nota-bordo: #6b5512;
    --esempio: #5c4a00;
    --esempio-testo: #fff1b8;
    --anello: linear-gradient(150deg, #0a875f, #2f9f78 55%, #c9a92f);
    --palla-ombra: rgb(0 0 0 / 55%);
    --bagliore-verde: rgb(10 135 95 / 26%);
    --bagliore-pagina: rgb(10 135 95 / 20%);
    --terreno-linee: rgb(111 220 174 / 24%);
    --ombra: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 40%);
    --ombra-alta: 0 2px 4px rgb(0 0 0 / 40%), 0 28px 60px -18px rgb(0 0 0 / 70%);
    --cornice: #050a08;
    --cornice-ombra: 0 0 0 1px rgb(255 255 255 / 9%), 0 34px 70px -24px rgb(0 0 0 / 85%);
    --tg-sfondo: linear-gradient(160deg, #1d2a22 0%, #16231f 50%, #10202a 100%);
    --tg-motivo: rgb(255 255 255 / 6%);
    --tg-barra: #1c1c1d;
    --tg-bolla: #262628;
    --tg-testo: #ffffff;
    --tg-tenue: #9a9aa0;
    --tg-accento: #6ab3f3;
    --tg-scuro: rgb(255 255 255 / 14%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s8); }

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font: var(--t-base) / 1.47 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
main { flex: 1; }

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); }
p, ul, ol { margin: 0; }
p { text-wrap: pretty; }

.contenitore { width: min(100% - 2 * var(--margine), 68rem); margin-inline: auto; }
.stretto { width: min(100% - 2 * var(--margine), 42rem); margin-inline: auto; }
.contenitore .stretto { width: min(100%, 42rem); }
.flusso { display: grid; gap: var(--s4); align-content: start; }
.flusso > *, .eroe-griglia > *, .esempio > *, .piani > *, .piano > *, .acquista > *, .azioni > *, .domande > *,
.domande details > div > * { min-width: 0; }

.icona { width: 1.25rem; height: 1.25rem; flex: none; }

.salta {
  position: absolute;
  left: var(--s4);
  top: -4rem;
  z-index: 20;
  padding: var(--s2) var(--s4);
  border-radius: 999px;
  background: var(--bottone);
  color: var(--bottone-testo);
  font-weight: 600;
  text-decoration: none;
}
.salta:focus { top: var(--s2); }

.invisibile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Fascia, barra in alto e piede */

.fascia {
  padding: var(--s2) var(--s4);
  border-bottom: 1px solid var(--nota-bordo);
  background: var(--nota);
  color: var(--nota-testo);
  font-size: var(--t-s);
  text-align: center;
}

.testata {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--linea-tenue);
  background: var(--barra);
}
.testata .contenitore { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); min-height: 3.5rem; }
.marchio { display: flex; flex: none; padding: var(--s2) 0; text-decoration: none; }
.marchio img { width: auto; height: var(--logo); border-radius: 0; }
.testata nav { margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 0 var(--s1); padding: 0; list-style: none; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--s3);
  border-radius: 999px;
  color: var(--testo);
  font-size: var(--t-m);
  text-decoration: none;
}
.menu a:hover { background: var(--sfondo-tenue); }
.menu a[aria-current="page"] { background: var(--chip); font-weight: 600; }

.piede {
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea-tenue);
  background: var(--sfondo-tenue);
  color: var(--testo-tenue);
  font-size: var(--t-s);
  line-height: 1.55;
}
.piede .flusso { gap: var(--s2) var(--s5); align-items: center; }
.piede strong { color: var(--testo); font-weight: 600; }
.piede nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s4); padding: 0; list-style: none; }
.piede nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--testo); text-decoration: none; }
.piede nav a:hover { text-decoration: underline; }
.piede .recesso { color: var(--link); font-weight: 600; }

/* Bottoni */

.azioni { display: grid; gap: var(--s3); }
.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 3.25rem;
  padding: 0 clamp(1.125rem, 4vw, 1.75rem);
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bottone) linear-gradient(rgb(255 255 255 / 9%), rgb(255 255 255 / 0%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), var(--bottone-ombra);
  color: var(--bottone-testo);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.bottone:hover { background-color: var(--bottone-sopra); }
.bottone svg { width: 1.25rem; height: 1.25rem; flex: none; }
.bottone.secondario { border-color: var(--link); background: transparent; box-shadow: none; color: var(--link); }
.bottone.secondario:hover { background: var(--sfondo-tenue); }
.bottone:disabled { border-color: var(--linea); background: var(--spento); box-shadow: none; color: var(--spento-testo); cursor: not-allowed; }
.bottone.largo { width: 100%; }
.sotto { color: var(--testo-tenue); font-size: var(--t-s); }
.piccolo { color: var(--testo-tenue); font-size: var(--t-s); }

/* Home */

.eroe { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(1rem, 6vw - 0.5rem, 4.5rem) 0 clamp(1rem, 4vw, 3rem); }
.eroe .flusso { gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.eroe h1 { max-width: 12em; }
.eroe-griglia { display: grid; gap: clamp(1.25rem, 6vw, 4.5rem); align-items: center; }
.sottotitolo { max-width: 34em; color: var(--testo-tenue); font-size: var(--t-l); line-height: 1.4; }
.invito { display: grid; gap: var(--s3); justify-items: start; }
.invito .bottone { width: 100%; }
.prezzo-riga { color: var(--testo); font-size: 1rem; }

.esempio { display: grid; gap: var(--s3); margin: 0; }
.esempio figcaption { text-align: center; }
.scena { position: relative; isolation: isolate; }
.scena::before {
  content: "";
  position: absolute;
  inset: -12% -20% -8%;
  z-index: -2;
  background: radial-gradient(closest-side at 50% 55%, var(--bagliore-verde), transparent);
  pointer-events: none;
}
.terreno {
  position: absolute;
  left: 50%;
  top: 77%;
  z-index: -1;
  display: none;
  width: 36rem;
  max-width: none;
  color: var(--terreno-linee);
  translate: -50% -50%;
  transform: perspective(50rem) rotateX(62deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  pointer-events: none;
}
.eroe::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: min(30rem, 70%);
  background: radial-gradient(70% 100% at 50% 0, var(--bagliore-pagina), transparent);
  pointer-events: none;
}
.palla { display: none; }
.palla-ombra { fill: var(--palla-ombra); }
.palla-corpo { fill: var(--palla); stroke: rgb(255 255 255 / 90%); }
.palla-corpo circle { stroke: none; }

.sezione { padding: clamp(0.25rem, 2vw, 1.5rem) 0 clamp(1.5rem, 5vw, 4rem); }
.sezione .flusso { gap: var(--s3); }
.punti { display: grid; gap: var(--s3); padding: 0; list-style: none; font-size: var(--t-base); }
.punti li { display: flex; align-items: center; gap: var(--s3); text-wrap: pretty; }
.punti .icona { width: 2.25rem; height: 2.25rem; padding: 0.4375rem; border-radius: 0.75rem; background: var(--chip); color: var(--link); }
.tutte a { display: inline-flex; align-items: center; gap: var(--s1); }
.tutte .icona { width: 1rem; height: 1rem; }

/* Telefono e chat di Telegram */

.telefono {
  position: relative;
  width: min(100%, 21.5rem);
  margin-inline: auto;
  padding: 0.3125rem;
  border-radius: 2.25rem;
  background: var(--cornice);
  box-shadow: var(--cornice-ombra);
}
.schermo { position: relative; overflow: hidden; border-radius: 1.9375rem; background: var(--tg-barra); }
.tg-testata { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linea-tenue); color: var(--tg-testo); }
.tg-testata img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.tg-testata > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.tg-testata b { display: block; font-size: 1rem; line-height: 1.2; }
.tg-testata small { color: var(--tg-tenue); font-size: var(--t-xs); }
.tg-indietro { color: var(--tg-accento); font-size: 1.625rem; line-height: 1; }
.tg-chat { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s3) var(--s4); background: var(--tg-sfondo); }
.tg-motivo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tg-motivo); }
.tg-messaggio { position: relative; align-self: flex-start; width: 94%; }
.tg-bolla {
  display: flow-root;
  padding: 0.4375rem 0.625rem 0.375rem;
  border-radius: 1rem 1rem 1rem 0.375rem;
  background: var(--tg-bolla);
  color: var(--tg-testo);
  font-size: var(--t-m);
  line-height: 1.36;
  box-shadow: var(--tg-ombra);
}
.tg-bolla b { font-weight: 600; }
.tg-ora { float: right; margin: 0.375rem 0 -0.25rem 0.625rem; color: var(--tg-tenue); font-size: 0.75rem; white-space: nowrap; }
.tg-tastiera { display: grid; gap: var(--s1); margin-top: var(--s1); }
.tg-tasto {
  display: block;
  padding: var(--s2) 0.375rem;
  border-radius: 0.625rem;
  background: var(--tg-scuro);
  color: var(--tg-scuro-testo);
  font-size: var(--t-s);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Pagine */

.pagina { position: relative; isolation: isolate; padding: var(--sezione) 0 clamp(3rem, 8vw, 6rem); }
.pagina:not(:has(.testo))::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(30rem, 80%);
  background: radial-gradient(70% 100% at 50% 0, var(--bagliore-pagina), transparent);
  pointer-events: none;
}
.pagina > .flusso { gap: clamp(1rem, 2.5vw, 1.75rem); }
.pagina h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.intestazione { display: grid; gap: var(--s3); max-width: 42rem; margin-inline: auto; text-align: center; }
.intestazione p { color: var(--testo-tenue); font-size: var(--t-l); }
.introduzione { color: var(--testo-tenue); font-size: var(--t-l); }
.nota { padding: var(--s4) clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--nota-bordo); border-radius: 0.875rem; background: var(--nota); color: var(--nota-testo); font-size: 1rem; }
.nota b { font-weight: 700; }
.riquadro { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--linea-tenue); border-radius: var(--raggio-grande); background: var(--sfondo-tenue); }
.riquadro h2 { font-size: var(--t-xl); letter-spacing: -0.01em; }
.riquadro p { color: var(--testo-tenue); font-size: 1rem; }
.con-icona { position: relative; padding-left: 2.25rem; }
.con-icona .icona { position: absolute; left: 0; top: 0.0625rem; color: var(--link); }

/* Piani */

.piani { display: grid; grid-template-columns: repeat(auto-fit, min(100%, 25rem)); justify-content: center; gap: var(--s5); isolation: isolate; padding: 0; list-style: none; }
.piano {
  position: relative;
  display: grid;
  gap: var(--s3);
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--raggio-grande);
  background: var(--superficie);
  box-shadow: var(--ombra-alta);
  text-align: center;
}
.piano::before, .codice-riquadro::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--raggio-grande) + 2px);
  background: var(--anello);
}
.piano h3 { color: var(--testo-tenue); font-size: var(--t-base); font-weight: 600; letter-spacing: 0; }
.prezzo { overflow-wrap: anywhere; font-size: clamp(3.25rem, 15vw, 4.75rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.periodo { font-size: var(--t-l); font-weight: 600; }
.al-mese { justify-self: center; padding: var(--s1) var(--s3); border-radius: 999px; background: var(--chip); color: var(--testo); font-size: var(--t-m); }
.acquista { display: grid; gap: var(--s4); margin-top: var(--s3); text-align: left; }
.campo { display: grid; gap: var(--s2); font-weight: 600; }
.campo select, .campo input, .modulo input {
  width: 100%;
  min-width: 0;
  min-height: 3.125rem;
  padding: 0 var(--s3);
  border: 1px solid var(--bordo-campo);
  border-radius: 0.875rem;
  background: var(--superficie);
  color: var(--testo);
  font: inherit;
}
.campo .sotto { font-weight: 400; }
.maiuscolo { text-transform: uppercase; }
.metodi { color: var(--testo-tenue); font-size: var(--t-m); text-align: center; }
.metodi .icona { display: inline-block; margin-right: var(--s2); color: var(--link); vertical-align: -0.3em; }
.metodo { display: inline-block; }

/* Domande */

.domande { display: grid; gap: var(--s3); }
.domande details { border: 1px solid var(--linea-tenue); border-radius: var(--raggio); background: var(--sfondo-tenue); }
.domande details[open] { background: var(--superficie); box-shadow: var(--ombra); }
.domande summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  border-radius: inherit;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
  list-style: none;
}
.domande summary::-webkit-details-marker { display: none; }
.domande summary:hover { color: var(--link); }
.domande summary::after {
  content: "+" / "";
  display: grid;
  flex: none;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--chip);
  color: var(--link);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
}
.domande details[open] summary::after { transform: rotate(45deg); }
.domande details > div { display: grid; gap: var(--s2); padding: 0 var(--s5) var(--s5); color: var(--testo-tenue); }

/* Testi lunghi: Termini e Privacy */

.testo { line-height: 1.65; }
.testo h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); line-height: 1.1; }
.testo h2 { margin-top: 2.25rem; padding-top: var(--s6); border-top: 1px solid var(--linea-tenue); font-size: var(--t-xl); letter-spacing: -0.015em; }
.testo h3 { margin-top: var(--s5); font-size: var(--t-base); }
.testo p, .testo ul, .testo ol, .testo table, .testo blockquote { margin-top: var(--s3); }
.testo ul, .testo ol { padding-left: var(--s5); }
.testo li::marker { color: var(--link); }
.testo ol.lettere { padding-left: 0; list-style: none; }
.testo li + li { margin-top: var(--s2); }
.testo .aggiornato { color: var(--testo-tenue); font-size: var(--t-m); }
.testo .nota { margin-bottom: var(--s5); }
.testo blockquote { margin-inline: 0; padding: var(--s4) var(--s5); border-left: 3px solid var(--marchio); border-radius: 0.25rem 0.875rem 0.875rem 0.25rem; background: var(--sfondo-tenue); }
.testo blockquote p:first-child { margin-top: 0; }
.tabella { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.47; }
.tabella th, .tabella td { overflow-wrap: anywhere; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabella th { color: var(--testo-tenue); font-size: var(--t-s); font-weight: 600; }

/* Grazie */

.codice-riquadro {
  position: relative;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--raggio-grande);
  background: var(--superficie);
  box-shadow: var(--ombra-alta);
  text-align: center;
}
.codice-riquadro h2 { color: var(--testo-tenue); font-size: var(--t-base); font-weight: 600; letter-spacing: 0; }
.codice {
  justify-self: center;
  max-width: 100%;
  padding: 0.3em 0.5em;
  border: 2px dashed var(--linea);
  border-radius: 0.875rem;
  background: var(--sfondo-tenue);
  font: 700 clamp(1.25rem, 6.4vw, 2.5rem) / 1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  user-select: all;
}
.etichetta-esempio { display: inline-block; padding: 0.1875rem var(--s3); border-radius: 999px; background: var(--esempio); color: var(--esempio-testo); font-size: var(--t-s); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.attesa { color: var(--testo-tenue); }

/* Moduli */

.modulo { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--linea-tenue); border-radius: var(--raggio-grande); background: var(--superficie); box-shadow: var(--ombra); }
.modulo fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.modulo label { display: grid; gap: var(--s2); font-weight: 600; }
.modulo fieldset.flusso { gap: var(--s5); }
.modulo label small { color: var(--testo-tenue); font-size: var(--t-s); font-weight: 400; }
.modulo input:disabled { background: var(--sfondo-tenue); color: var(--spento-testo); }
.campo select:hover, .campo input:hover, .modulo input:not(:disabled):hover { border-color: var(--testo); }
.campo select:focus, .campo input:focus, .modulo input:focus { border-color: var(--link); }

/* Ricevuta del recesso */

.ricevuta { display: grid; margin: 0; }
.ricevuta > div { display: grid; gap: var(--s1) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--linea); }
.ricevuta > div:first-child { padding-top: 0; }
.ricevuta dt { color: var(--testo-tenue); font-size: var(--t-s); }
.ricevuta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Pagina non trovata */

.fuori { width: min(100%, 15rem); color: var(--terreno-linee); }
.fuori-traccia { color: var(--testo-tenue); }
.fuori-palla { fill: var(--palla); stroke: rgb(255 255 255 / 90%); }
.fuori-palla circle { stroke: none; }

/* Schermi più larghi */

@media (min-width: 40rem) {
  .invito .bottone { width: auto; }
  .azioni { display: flex; flex-wrap: wrap; }
  .codice-riquadro .azioni { justify-content: center; }
  .punti { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s4); }
  .punti li { padding: var(--s4) var(--s5) var(--s4) var(--s4); border: 1px solid var(--linea-tenue); border-radius: var(--raggio); background: var(--sfondo-tenue); }
  .telefono { padding: 0.625rem; border-radius: 3rem; }
  .schermo { border-radius: 2.375rem; }
  .schermo::before { content: ""; position: absolute; top: 0.625rem; left: 50%; z-index: 1; width: 5.75rem; height: 1.625rem; border-radius: 999px; background: var(--cornice); translate: -50% 0; }
  .tg-testata { padding-top: 2.75rem; }
  .esempio { gap: var(--s5); }
  .terreno { display: block; width: min(36rem, 100% + 4rem); }
  .palla { position: absolute; bottom: 9%; left: max(-3rem, 50% - 15rem); display: block; width: 2.5rem; pointer-events: none; }
  .ricevuta > div { grid-template-columns: 11rem 1fr; }
}

@media (min-width: 56rem) {
  .eroe-griglia { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

@media (min-width: 64rem) {
  .piede .flusso { grid-template-columns: 1fr auto; }
}

@media (max-width: 22.4375rem) {
  :root { --logo: 1.5rem; }
  .menu a { padding: 0 var(--s2); }
}

@media (forced-colors: active) {
  .piano::before, .codice-riquadro::before, .scena::before { display: none; }
}

@media print {
  .salta, .fascia, .testata, .piede, .azioni, #stampa { display: none !important; }
  .riquadro { padding: 0; border: 0; background: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes entra { from { opacity: 0; transform: translateY(0.75rem); } }
  @keyframes appare { from { opacity: 0; } }
  @keyframes posa { from { opacity: 0; transform: scale(0.94); } }
  @keyframes arriva {
    0% { opacity: 0; transform: scale(0.82); }
    60% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes rimbalzo {
    0% { opacity: 0; transform: translateY(-150%); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); }
    10% { opacity: 1; }
    42% { transform: translateY(0) scale(1.08, 0.9); animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
    64% { transform: translateY(-40%); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); }
    82% { transform: translateY(0) scale(1.03, 0.96); animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
    91% { transform: translateY(-10%); }
    100% { transform: none; }
  }
  @keyframes ombra-palla {
    0% { opacity: 0; transform: scale(0.3); }
    42% { opacity: 1; transform: none; }
    64% { transform: scale(0.65); }
    82% { transform: none; }
    91% { transform: scale(0.9); }
  }
  @keyframes vola { from { opacity: 0; transform: translate(-7rem, 3.5rem) scale(0.6); } }

  .eroe .flusso > * { animation: entra 0.5s var(--uscita) backwards; }
  .eroe .flusso > :nth-child(2) { animation-delay: 0.07s; }
  .eroe .flusso > :nth-child(n + 3) { animation-delay: 0.14s; }
  .scena::before, .terreno { animation: appare 1.2s ease 0.15s backwards; }
  .telefono { transform-origin: 50% 0; animation: posa 0.7s var(--uscita) 0.1s backwards; }
  .esempio figcaption { animation: appare 0.6s ease 0.6s backwards; }
  .tg-bolla { transform-origin: 0 0; animation: arriva 0.5s var(--uscita) 0.15s backwards; }
  .tg-riga { animation: entra 0.45s var(--uscita) 0.35s backwards; }
  .tg-riga + .tg-riga { animation-delay: 0.43s; }
  .palla-corpo, .palla-ombra { transform-box: fill-box; transform-origin: 50% 100%; }
  .palla-corpo { animation: rimbalzo 1.1s 0.35s backwards; }
  .palla-ombra { transform-origin: 50% 50%; animation: ombra-palla 1.1s 0.35s backwards; }
  .sezione .punti > li, .sezione .tutte { animation: entra 0.6s var(--uscita) 0.2s backwards; }
  .sezione .punti > li + li { animation-delay: 0.28s; }
  .sezione .tutte { animation-delay: 0.36s; }

  .pagina > * > :not(.invisibile) { animation: entra 0.5s var(--uscita) backwards; }
  .pagina > * > :nth-child(2) { animation-delay: 0.06s; }
  .pagina > * > :nth-child(n + 3) { animation-delay: 0.12s; }
  .codice:not([hidden]) { animation: arriva 0.5s var(--uscita) backwards; }
  .fuori-palla { transform-box: fill-box; transform-origin: 50% 50%; animation: vola 0.9s var(--uscita) 0.3s backwards; }
  .domande details[open] > div { animation: entra 0.35s var(--uscita); }

  .bottone, .menu a, .piede nav a, .domande details, .domande summary, .domande summary::after, .campo select,
  .campo input, .modulo input {
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.25s var(--uscita);
  }
  .bottone svg, .tutte .icona { transition: transform 0.25s var(--uscita); }
  .bottone:not(:disabled):hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 10px 24px -8px rgb(0 82 55 / 55%); }
  .bottone.secondario:not(:disabled):hover { box-shadow: none; }
  .bottone:not(:disabled):active { transform: scale(0.98); box-shadow: none; }
  .bottone:not(:disabled):hover svg { transform: translate(2px, -2px); }
  .tutte a:hover .icona { transform: translateX(3px); }
  .telefono { transition: transform 0.4s var(--uscita); }
  .telefono:hover { transform: translateY(-0.25rem); }
}
