/* Drittabox · stile «pop». Palette: Corallo, Sole, Cobalto, Verde, Lilla su fondo Crema; Inchiostro per testo e contorni. */

/* Font ospitati sul sito, gli stessi file della pagina principale (../../../assets/fonts/, cioè assets/fonts/ nella radice), nessuna richiesta a Google o ad altri siti: Bricolage Grotesque (titoli)
   e Inter (testo), entrambi sotto SIL Open Font License 1.1 (licenze in assets/fonts/OFL-*.txt). Sono gli stessi
   file WOFF2 che serviva Google Fonts (sottoinsiemi latin e latin-ext; sono font variabili: Bricolage con gli assi
   opsz 12–96 e wght 200–800, Inter con wght 100–900) e le stesse regole, con gli stessi pesi dichiarati
   (Bricolage 600, 700, 800; Inter 400, 500, 600) e lo stesso unicode-range: il browser scarica latin-ext solo se
   nella pagina c'è un carattere di quel gruppo. font-display: swap: finché il font non arriva si vede quello di
   sistema. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../../../assets/fonts/bricolage-grotesque-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../assets/fonts/inter-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;
}


/* Colori. Testo normale sempre almeno 4.5:1 sul suo fondo (WCAG AA), anche nel tema scuro.
   Sui colori pieni (corallo, sole, verde, lilla) il testo è sempre --on-color, l'inchiostro scuro. */
:root {
  --corallo: #FF6B4A;
  --sole: #FFC93C;
  --cobalto: #2A44D8;
  --verde: #3DDC84;
  --lilla: #B9A7FF;
  --crema: #FFF7EC;
  --on-color: #1C1840;

  --bg: var(--crema);
  --bg-tint: #FFEFD9;
  --surface: #FFFFFF;
  --surface-2: #FFF3E2;
  --ink: #1C1840;
  --text: #34305C;
  --muted: #5C5880;
  --line: #EADFCF;
  --line-strong: #CFC2AE;
  --edge: #1C1840;
  --pop-shadow: #1C1840;
  --accent: var(--cobalto);
  --accent-ink: #FFFFFF;
  --save: #0E7A45;
  --sel-bg: #E8EBFF;
  --warn-bg: #FFE7E0;
  --warn-ink: #B3341A;
  --tip-bg: #E4F9EC;
  --tip-ink: #0B6B3C;
  --focus: var(--cobalto);
  --ic-fill: var(--sole);

  --lg-bolla: #2A44D8;
  --lg-cella: #4F66F0;
  --lg-maniglia: #A9B5FF;
  --lg-word: #1C1840;

  --radius: 24px;
  --radius-sm: 14px;
  --font-head: 'Bricolage Grotesque', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* Tema scuro: solo se scelto con il pulsante in alto (data-theme="scuro", messo dallo script nel <head>).
   Il sito parte sempre chiaro, anche se il sistema è scuro: i colori pop rendono meglio su crema. */
:root[data-theme="scuro"] {
  --corallo: #FF7A59;
  --bg: #14122B;
  --bg-tint: #1A1735;
  --surface: #1F1C3D;
  --surface-2: #2A2650;
  --ink: #FFF7EC;
  --text: #D9D5F0;
  --muted: #A7A2CC;
  --line: #3A3566;
  --line-strong: #5B55A0;
  --edge: #5B55A0;
  --pop-shadow: #08071A;
  --accent: #8C9BFF;
  --accent-ink: #14122B;
  --save: #6EE7A8;
  --sel-bg: #2E3470;
  --warn-bg: #3A1E22;
  --warn-ink: #FF9C80;
  --tip-bg: #163A2C;
  --tip-ink: #8FF2C0;
  --focus: var(--sole);
  --ic-fill: #FF7A59;
  --lg-bolla: #3D55E6;
  --lg-cella: #2A3CB8;
  --lg-maniglia: #A9B5FF;
  --lg-word: #FFF7EC;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; } /* titoli che ricevono il focus via script dopo il calcolo */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.card { background: var(--surface); border: 2.5px solid var(--edge); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--pop-shadow); }

/* Logo */
.lg-bolla { fill: var(--lg-bolla); stroke: var(--lg-bolla); }
.lg-cella { fill: var(--lg-cella); }
.lg-maniglia { fill: var(--lg-maniglia); }
.lg-word { stroke: var(--lg-word); }
.logo { display: block; height: 34px; width: auto; aspect-ratio: 448 / 96; }
.logo--footer { height: 30px; }

/* Barra in alto */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav > a:hover { background: var(--surface-2); }
.nav > a:not(.nav__cta) { display: none; }
@media (min-width: 560px) { .nav > a:not(.nav__cta) { display: inline-block; } }
.nav__cta { background: var(--sole); color: var(--on-color) !important; font-weight: 700 !important; border: 2px solid var(--on-color); box-shadow: 3px 3px 0 var(--pop-shadow); }
/* Pulsante tema: luna in chiaro (porta allo scuro), sole in scuro (porta al chiaro). */
.tema { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.tema:hover { background: var(--surface-2); }
/* selettore «Stile» (../../assets/stile.css): bordo spesso come il pulsante del tema */
:root { --stile-bordo: 2px solid var(--ink); }
/* Telefono: logo, selettore «Stile», tema e «Calcola» in una riga. Sotto i 400 px «Calcola» lascia il posto al
   selettore: il calcolatore è subito sotto la testata (e c'è il link «Vai al calcolatore» per la tastiera). */
@media (max-width: 420px) {
  .topbar__in { gap: 8px; }
  .topbar .logo { height: 26px; }
  .nav { gap: 4px; }
  .tema { width: 40px; height: 40px; }
  .nav__cta { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 399px) { .nav__cta { display: none !important; } }
.tema:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 999px; }
.tema svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tema__sole { display: none; }
:root[data-theme="scuro"] .tema__sole { display: block; }
:root[data-theme="scuro"] .tema__luna { display: none; }
.nav__cta:hover { background: var(--sole) !important; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pop-shadow); }

/* Testata: un blocco corallo con il titolo e la scena casa → furgone → locker */
.hero { padding: 20px 0 4px; }
.hero__card { position: relative; display: grid; gap: 4px; align-items: end; background: var(--corallo); color: var(--on-color); border: 3px solid var(--edge); border-radius: 32px; box-shadow: 8px 8px 0 var(--pop-shadow); padding: 24px 20px 0; overflow: hidden; }
@media (min-width: 900px) { .hero__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 28px 20px 8px 44px; } }
.hero__copy { padding-bottom: 8px; }
@media (min-width: 900px) { .hero__copy { padding-bottom: 26px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--crema); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 14px; font-weight: 600; }
.eyebrow svg { width: 18px; height: 18px; background: var(--verde); border-radius: 50%; padding: 2px; }
.hero h1 { color: var(--on-color); font-size: clamp(46px, 7vw, 78px); font-weight: 800; line-height: .95; margin-top: 18px; letter-spacing: -0.025em; }
.hl { white-space: nowrap; background: linear-gradient(transparent 58%, var(--sole) 58%, var(--sole) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; margin-top: 16px; color: var(--on-color); max-width: 30ch; }
.pills { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 2px solid var(--on-color); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; color: var(--on-color); }
/* aprendo un link a un risultato, il modulo vuoto non si vede per un attimo prima di essere riempito (index.html, data-apre) */
:root[data-apre] body > :not(.topbar) { visibility: hidden; }
.hero__art { display: block; width: 100%; height: auto; margin: 0 auto; max-width: 560px; }
/* La scena (disegnata in index.html), un po' elastica come lo stile: il furgone va e torna sobbalzando, il pacco vola
   sull'arco, chi aspetta saluta, le nuvole scorrono, il sole respira, ogni tanto lo sportello del locker si chiude e si
   riapre. Il primo fotogramma è il disegno com'è. Gira solo mentre si vede (../../assets/animazioni.js, is-ferma). */
[data-scena].is-ferma, [data-scena].is-ferma * { animation-play-state: paused !important; }
.pt-sole { transform-box: fill-box; transform-origin: center; animation: pt-sole 4s ease-in-out infinite; }
.pt-nuvola { animation: pt-nuvola 14s ease-in-out infinite; }
.pt-nuvola--2 { animation-duration: 18s; animation-direction: reverse; }
.pt-nuvola--3 { animation-duration: 16s; }
.pt-furgone { animation: pt-va 7s cubic-bezier(.45, 0, .3, 1) infinite; }
.pt-sobbalzo { animation: pt-sobbalzo .6s cubic-bezier(.34, 1.56, .64, 1) infinite alternate; }
.pt-pacco { transform-box: fill-box; transform-origin: center; animation: pt-vola 3s ease-in-out infinite; }
.pt-braccio { transform-box: fill-box; transform-origin: right bottom; animation: pt-saluta 3.2s ease-in-out infinite; }
.pt-sportello { transform-box: fill-box; transform-origin: left center; animation: pt-sportello 9s ease-in-out infinite; }
.pt-anta { transform-box: fill-box; transform-origin: right center; transform: scaleX(0); animation: pt-anta 9s ease-in-out infinite; }
@keyframes pt-sole { 0%, 100% { transform: none; } 50% { transform: scale(1.07); } }
@keyframes pt-nuvola { 0%, 100% { transform: none; } 50% { transform: translateX(22px); } }
@keyframes pt-va { 0%, 100% { transform: none; } 38%, 52% { transform: translateX(-34px); } }
@keyframes pt-sobbalzo { from { transform: none; } to { transform: translateY(-2.5px); } }
@keyframes pt-vola { 0%, 100% { transform: none; } 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes pt-saluta { 0%, 45%, 100% { transform: none; } 10%, 30% { transform: rotate(-16deg); } 20%, 40% { transform: rotate(8deg); } }
@keyframes pt-sportello { 0%, 56%, 92%, 100% { transform: none; } 62%, 86% { transform: scaleX(0); } }
@keyframes pt-anta { 0%, 58%, 90%, 100% { transform: scaleX(0); } 64%, 84% { transform: none; } }

/* Il modulo: due blocchi grandi */
.calc { padding-top: 28px; padding-bottom: 8px; display: grid; gap: 24px; scroll-margin-top: 72px; }
.blocks { display: grid; gap: 24px; }
@media (min-width: 900px) { .blocks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; } }
.block { background: var(--surface); border: 3px solid var(--edge); border-radius: 28px; box-shadow: 6px 6px 0 var(--pop-shadow); overflow: hidden; min-width: 0; }
.block__head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 96px 14px 18px; background: var(--sole); border-bottom: 3px solid var(--edge); }
.block--corallo .block__head { background: var(--corallo); padding-right: 84px; }
@media (min-width: 520px) { .block__head { padding-right: 120px; } .block--corallo .block__head { padding-right: 150px; } }
.block__head h3 { font-size: clamp(21px, 5.6vw, 28px); font-weight: 800; color: var(--on-color); }
.block__n { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--crema); border: 2.5px solid var(--on-color); color: var(--on-color); font: 800 20px/1 var(--font-head); }
.block__art { position: absolute; right: 12px; bottom: -4px; height: 70px; width: auto; }
.block__art--van { height: 50px; right: 8px; }
@media (min-width: 520px) { .block__art { height: 86px; right: 14px; } .block__art--van { height: 72px; right: 10px; } }
.block__body { padding: 18px 18px 22px; display: grid; gap: 16px; }
@media (min-width: 520px) { .block__body { padding: 20px 22px 24px; } }

.presets { border: 0; padding: 0; margin: 0; min-width: 0; }
.presets__label, .choice legend { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { flex: 0 0 calc(25% - 6px); display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 4px 8px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--ink); font: 600 13px/1.1 var(--font-body); cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .15s; }
.chip:active { transform: scale(.94); transition-duration: .15s; }
.chip svg { width: 30px; height: 30px; }
.ic-f { fill: var(--ic-fill); }
.chip:hover { border-color: var(--edge); }
.chip[aria-pressed="true"] { background: var(--sole); color: var(--on-color); border-color: var(--on-color); box-shadow: 3px 3px 0 var(--pop-shadow); --ic-fill: #FFFFFF; }

.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .dims { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; min-width: 0; } /* start: un errore lungo in un campo non allunga le caselle degli altri */
.field__label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field__box { display: flex; align-items: center; min-width: 0; border: 2.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 0 12px; transition: border-color .15s; }
.field__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field__box input { scroll-margin-top: 120px; flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 20px/1 var(--font-body); padding: 13px 0; font-variant-numeric: tabular-nums; }
.field__box input::placeholder { color: var(--muted); font-weight: 500; font-size: 16px; }
.unit { color: var(--muted); font-size: 14px; font-weight: 600; }
.field.has-err .field__box { border-color: var(--warn-ink); background: var(--warn-bg); animation: vibra .32s ease both; }
@keyframes vibra { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.field__err { font-size: 12.5px; font-weight: 600; color: var(--warn-ink); }
.field__err:empty { display: none; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: -8px; }

.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seg label { position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; height: 100%; padding: 10px 6px 12px; border: 2.5px solid var(--line); border-radius: 18px; background: var(--surface-2); color: var(--ink); font: 700 14px/1.2 var(--font-body); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.seg img { width: 60px; height: auto; }
@media (min-width: 520px) { .seg img { width: 70px; } }
.seg span:hover { border-color: var(--edge); }
@media (hover: hover) { .seg span:hover { transform: translateY(-3px); } }
.seg label:active span { transform: translate(2px, 2px) scale(.97); transition-duration: .15s; } /* al tocco si schiaccia */
.seg input:checked + span { border-color: var(--edge); background: var(--sel-bg); box-shadow: 4px 4px 0 var(--accent); }
.seg input:checked + span::after { content: ''; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); animation: pt-scatta .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.seg input:checked + span::before { content: ''; position: absolute; top: 12px; right: 14.5px; width: 6px; height: 10px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); z-index: 1; animation: pt-spunta .4s cubic-bezier(.34, 1.56, .64, 1) .06s both; }
@keyframes pt-scatta { from { opacity: 0; transform: scale(0); } }
@keyframes pt-spunta { from { opacity: 0; transform: rotate(45deg) scale(0); } to { opacity: 1; transform: rotate(45deg); } }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 400px) { .seg span { font-size: 13px; padding: 8px 4px 10px; } .seg img { width: 52px; } }

.more { border: 2px dashed var(--line-strong); border-radius: 16px; }
.more summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--ink); font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '+'; font: 700 22px/1 var(--font-body); color: var(--ink); }
.more[open] summary::after { content: '–'; }
.more__sum { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 13px; text-align: right; }
.more__grid { display: grid; gap: 12px; padding: 0 14px 14px; }
@media (min-width: 520px) { .more__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
select { width: 100%; font: 600 15px var(--font-body); color: var(--ink); background: var(--surface); border: 2.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 10px; }
select:focus-visible { border-color: var(--accent); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font: 700 17px/1.1 var(--font-body); padding: 15px 22px; border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s; text-align: center; }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--pop-shadow); }
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--pop-shadow); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--pop-shadow); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 2.5px solid var(--edge); font-size: 15px; padding: 11px 16px; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--big { font: 800 22px/1 var(--font-head); padding: 20px 34px; width: min(100%, 520px); }
.btn--big svg { width: 26px; height: 26px; }
.btn--block { width: 100%; }
.calc__go { display: grid; justify-items: center; gap: 10px; }
.calc__foot { font-size: 13px; color: var(--muted); text-align: center; }

/* Risultato */
.results { padding: 40px 0 16px; scroll-margin-top: 72px; }
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 20px; }
.results__head h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; }
.results__meta { color: var(--muted); font-size: 14px; font-weight: 500; }
.results__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 980px) { .res-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.res-full { grid-column: 1 / -1; display: grid; gap: 12px; min-width: 0; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

/* Il biglietto: a sinistra il servizio e il percorso, a destra (sotto, sul telefono) il prezzo enorme */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 3px solid var(--edge); border-radius: 28px; box-shadow: 8px 8px 0 var(--pop-shadow); overflow: hidden; }
@media (min-width: 640px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 230px; }
  .ticket__main, .ticket__foot { grid-column: 1; }
  .ticket__stub { grid-column: 2; grid-row: 1 / span 2; }
}
.ticket__main { display: grid; gap: 14px; align-content: start; padding: 22px 18px 20px; min-width: 0; }
@media (min-width: 520px) { .ticket__main { padding: 26px 26px 22px; } }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: var(--verde); color: var(--on-color); border: 2px solid var(--on-color); font: 800 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; }
.badge svg { width: 15px; height: 15px; }
.dritta__name { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.dritta__via { color: var(--muted); font-size: 14px; margin-top: 4px; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 12px 10px; border-radius: 18px; background: var(--surface-2); }
.route__leg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.route__leg img { width: 58px; height: auto; }
.route__k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.route__v { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.route__mid { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); }
.route__mid img { width: 64px; height: auto; }
.route__arrow { width: 22px; height: 22px; color: var(--ink); }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.facts-row span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--ink); font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.facts-row svg { width: 16px; height: 16px; }
.ticket__stub { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 24px 18px 22px; background: var(--sole); color: var(--on-color); border-top: 3px dashed var(--on-color); }
.ticket__stub::before, .ticket__stub::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 3px solid var(--edge); top: -17px; }
.ticket__stub::before { left: -17px; }
.ticket__stub::after { right: -17px; }
@media (min-width: 640px) {
  .ticket__stub { border-top: 0; border-left: 3px dashed var(--on-color); padding: 24px 20px; }
  .ticket__stub::before { left: -17px; top: -17px; }
  .ticket__stub::after { left: -17px; right: auto; top: auto; bottom: -17px; }
}
.dritta__price { font-family: var(--font-head); font-weight: 800; font-size: clamp(54px, 9vw, 70px); color: var(--on-color); line-height: .9; white-space: nowrap; letter-spacing: -0.03em; }
.dritta__price small { display: block; font: 600 13px var(--font-body); color: var(--on-color); text-align: left; margin-top: 8px; letter-spacing: 0; }
.dritta__price .da { font-size: .4em; letter-spacing: 0; }
@media (max-width: 519px) { .dritta__price { margin-left: 0; } .dritta__price small { text-align: left; } }
.save-chip { background: var(--verde); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 14px; padding: 8px 12px; font: 800 17px/1.15 var(--font-head); }
.save-chip small { display: block; font: 600 12.5px/1.3 var(--font-body); }
.save-chip--hint { background: var(--crema); }
.ticket__foot { display: grid; gap: 12px; padding: 16px 18px 22px; min-width: 0; }
@media (min-width: 520px) { .ticket__foot { padding: 16px 26px 24px; } }
@media (min-width: 640px) { .ticket__foot { padding-top: 0; } }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ticket__actions .btn--primary { flex: 1 1 220px; }
.toast { font-size: 13.5px; color: var(--save); font-weight: 700; }
.toast:empty { display: none; }

.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.note svg { width: 18px; height: 18px; margin-top: 1px; }
.note--tip { background: var(--tip-bg); color: var(--tip-ink); }
.note--warn { background: var(--warn-bg); color: var(--warn-ink); font-weight: 500; }
.note--info { background: var(--surface-2); color: var(--text); }
.why { color: var(--ink); font-size: 15.5px; }
.verifica { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.verifica svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.verifica--check { color: var(--warn-ink); font-weight: 600; }

/* Dettagli che si aprono a richiesta (risultato) e sezioni "Buono a sapersi" */
.xd, .info__item { background: var(--surface); border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 4px 4px 0 var(--pop-shadow); min-width: 0; }
.xd > summary, .info__item > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font: 800 18px/1.15 var(--font-head); color: var(--ink); border-radius: 18px; }
.xd > summary::-webkit-details-marker, .info__item > summary::-webkit-details-marker { display: none; }
.xd > summary::after, .info__item > summary::after { content: ''; flex: none; width: 10px; height: 10px; margin: 0 4px 4px auto; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .15s; }
.xd[open] > summary::after, .info__item[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.xd__val { margin-left: auto; font: 700 14px/1.2 var(--font-body); color: var(--muted); text-align: right; }
.xd > summary:has(.xd__val)::after { margin-left: 4px; }
.xd__ico, .info__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--on-color); background: var(--sole); color: var(--on-color); }
.xd__ico svg, .info__ico svg { width: 22px; height: 22px; }
.xd__ico img { width: 34px; height: auto; }
.xd__ico--corallo, .info__ico--corallo { background: var(--corallo); }
.xd__ico--cobalto, .info__ico--cobalto { background: #8C9BFF; }
.xd__ico--verde, .info__ico--verde { background: var(--verde); }
.xd__ico--lilla, .info__ico--lilla { background: var(--lilla); }
.xd__ico--sole, .info__ico--sole { background: var(--sole); }
.xd__body, .info__body { padding: 2px 16px 18px; display: grid; gap: 12px; min-width: 0; }

.saving__big { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--save); line-height: 1; }
.saving__big small { font-size: .5em; font-weight: 700; }
.saving__msg { color: var(--ink); font-size: 15px; }
.bars { display: grid; gap: 12px; }
.bar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 600; }
.bar__top b { white-space: nowrap; }
.bar__sub { font-size: 12.5px; color: var(--muted); }
.bar__track { height: 14px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; overflow: hidden; border: 2px solid var(--edge); }
.bar__fill { height: 100%; border-radius: 999px; background: var(--lilla); transform-origin: left; animation: grow .6s ease-out both; }
.bar--win .bar__fill { background: var(--verde); }
@keyframes grow { from { transform: scaleX(0); } }
.counter { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 14px; }
.counter svg { width: 20px; height: 20px; color: var(--warn-ink); }

.fit { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 520px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.fit svg { width: 22px; height: 22px; padding: 2px; border-radius: 50%; border: 2px solid var(--on-color); }
.fit .yes svg { color: var(--on-color); background: var(--verde); }
.fit .no svg { color: var(--on-color); background: var(--corallo); }
.fit b { color: var(--ink); display: block; font-weight: 700; }
.fit small { color: var(--muted); font-size: 12.5px; }
.fit__vol { font-size: 13.5px; color: var(--muted); }
.panel__sub { color: var(--muted); font-size: 14px; }

.alts { display: grid; gap: 10px; }
.alt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; }
.alt:hover { border-color: var(--edge); }
.alt__name { font-weight: 700; color: var(--ink); }
.alt__price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); text-align: right; white-space: nowrap; }
.alt__sub { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.alt__tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); margin-left: 6px; vertical-align: 1px; }

.market { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; border: 2.5px solid var(--edge); background: var(--lilla); color: var(--on-color); box-shadow: 4px 4px 0 var(--pop-shadow); }
.market b { color: var(--on-color); }
.market > div { display: grid; gap: 6px; font-size: 14.5px; }
.market img { width: 52px; height: auto; flex: none; }

.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-weight: 800; color: var(--ink); white-space: nowrap; }
tr.is-best td { background: var(--tip-bg); }
tr.is-off td { color: var(--muted); }
.svc { font-weight: 700; color: var(--ink); }
.svc small { display: block; font-weight: 400; color: var(--muted); }
/* Telefono: la tabella di «Tutte le opzioni» diventa un elenco di schede (servizio e prezzo in alto, poi percorso e
   tempi), come nello stile principale: niente prezzi nascosti a destra da far scorrere di lato. I ruoli nel codice
   (role="table", "row", "cell") la tengono una tabella per i lettori di schermo; le intestazioni restano per loro. */
@media (max-width: 599px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  table.opts { min-width: 0; display: block; }
  table.opts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.opts tbody { display: grid; gap: 8px; }
  table.opts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
  table.opts tr[hidden] { display: none; }
  table.opts td { display: block; padding: 0; border: 0; min-width: 0; background: none; }
  table.opts td:nth-child(1) { grid-column: 1; grid-row: 1; }
  table.opts td.num { grid-column: 2; grid-row: 1; font: 800 19px/1.1 var(--font-head); align-self: start; }
  table.opts td:nth-child(2), table.opts td:nth-child(3) { grid-column: 1 / -1; font-size: 14px; }
  table.opts td:nth-child(2)::before, table.opts td:nth-child(3)::before { content: attr(data-label) " "; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 4px; }
  table.opts tr.is-best { border: 2.5px solid var(--edge); background: var(--tip-bg); }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.tab:hover { border-color: var(--edge); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.excluded { font-size: 13.5px; }
.excluded summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.excluded ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }

.empty { padding: 28px 22px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty img { width: 110px; height: auto; }
.empty h3 { font-size: 24px; }

/* Buono a sapersi */
.section { padding: 56px 0; }
.section__title { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.info .wrap { display: grid; gap: 14px; }
.info .section__title { margin-bottom: 8px; }
.info__item { scroll-margin-top: 80px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; }
.steps img { height: 60px; width: auto; margin-bottom: 4px; }
.steps b { color: var(--ink); font: 800 17px var(--font-head); }
.facts { display: grid; gap: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; }
.fact__big { font: 800 34px/1 var(--font-head); color: var(--accent); }
.fact h3 { font-size: 17px; }
.src { font-size: 13px; margin-top: auto; padding-top: 4px; }
.info__body b { color: var(--ink); }
.sources { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sources li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14.5px; flex-wrap: wrap; }
.sources b { color: var(--ink); }
.sources__svc { display: grid; gap: 3px; min-width: 0; flex: 1 1 220px; }
.sources small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.sources small.is-check { color: var(--warn-ink); }
.sources a { align-self: flex-start; overflow-wrap: anywhere; }
.legal .sources li { background: var(--surface); border: 2px solid var(--line); }
/* Storico dei prezzi: discreto, sotto l'elenco delle fonti (lo scrive app.js da assets/storico-prezzi.js) */
.storico { font-size: 14px; color: var(--muted); }
.storico summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.storico p { margin: 8px 0 0; line-height: 1.5; }
.storico ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.storico b { color: var(--ink); font-weight: 600; }
.storico small { display: block; font-size: 13px; }
.storico a { overflow-wrap: anywhere; }
.faq { gap: 8px; }
.faq details { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0 14px; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 14px; font-size: 15px; }

.footer { border-top: 2px solid var(--line); background: var(--bg-tint); padding: 36px 0; }
.footer__in { display: grid; gap: 18px; }
@media (min-width: 820px) { .footer__in { grid-template-columns: auto 1fr; gap: 48px; align-items: center; } }
.footer__tag { margin-top: 8px; color: var(--ink); font-weight: 600; }
.footer__small { font-size: 13px; color: var(--muted); max-width: 640px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; }
.footer__links a { color: var(--ink); font-weight: 600; }

/* Pagine di testo (privacy.html, note-legali.html): una colonna leggibile, stessi titoli e card della pagina */
.legal { padding: 40px 0 64px; }
@media (min-width: 720px) { .legal { padding: 56px 0 80px; } }
.legal h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; }
.legal__meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal__brief { padding: 20px 22px; margin-top: 24px; display: grid; gap: 10px; }
.legal__brief ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal__brief b, .legal b { color: var(--ink); }
.legal h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin-top: 40px; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; font-weight: 700; margin-top: 22px; }
.legal p, .legal ul, .legal ol { margin: 12px 0 0; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 6px; }
.legal .sources { padding-left: 0; }
.legal a { overflow-wrap: anywhere; }
.legal__toc { margin-top: 20px; font-size: 15px; }
.legal__toc ol { margin-top: 6px; }

/* Animazioni del risultato, elastiche come lo stile (solo transform e opacity): il biglietto salta su, il furgone
   attraversa il percorso, il badge e il risparmio compaiono con un rimbalzo, poi le altre sezioni una dopo l'altra.
   Il prezzo conta (../../assets/animazioni.js). Con prefers-reduced-motion: reduce le spegne la regola in cima al file. */
.results__head { animation: appare .3s ease both; }
.ticket { animation: pt-entra .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.ticket .badge { transform-origin: left center; animation: rimbalzo .5s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
.save-chip { transform-origin: left center; animation: rimbalzo .55s cubic-bezier(.34, 1.56, .64, 1) .55s both; }
.route__mid img { animation: pt-attraversa .8s cubic-bezier(.34, 1.4, .64, 1) .2s both; }
.res-grid > .col > :not(.ticket), .res-full > *, .results .empty { animation: pt-sale .45s cubic-bezier(.34, 1.3, .64, 1) both; animation-delay: calc(.15s + var(--n, 0) * .07s); }
.res-grid > .col > :nth-child(2) { --n: 1; }
.res-grid > .col > :nth-child(3) { --n: 2; }
.res-grid > .col > :nth-child(n+4) { --n: 3; }
.res-full > * { --n: 4; }
.xd[open] > .xd__body, .info__item[open] > .info__body, .more[open] > .more__grid { animation: appare .25s ease both; }
@keyframes appare { from { opacity: 0; } }
@keyframes pt-entra { from { opacity: 0; transform: translateY(22px) rotate(-1.5deg) scale(.97); } }
@keyframes pt-sale { from { opacity: 0; transform: translateY(16px); } }
@keyframes rimbalzo { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
/* il furgone arriva da poco più a sinistra (la colonna è stretta: non deve passare sopra «Partenza») e frena con un rimbalzo */
@keyframes pt-attraversa { 0% { opacity: 0; transform: translateX(-45%); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* il prezzo che conta: il numero vero resta al suo posto (invisibile durante il conteggio, ma letto, copiato e
   stampato), sopra c'è la copia che conta, sulla stessa riga */
.conta { position: relative; display: inline-block; }
.conta__finto { position: absolute; top: 0; left: 0; right: 0; text-align: right; white-space: nowrap; pointer-events: none; -webkit-user-select: none; user-select: none; }
.conta.is-conta > .conta__vero { opacity: 0; }

/* Stampa: la dritta su carta, senza menu, modulo e pulsanti. Sempre in chiaro. */
@media print {
  :root, :root[data-theme="scuro"] {
    --bg: #fff; --bg-tint: #fff; --surface: #fff; --surface-2: #F5F2EC; --ink: #1C1840; --text: #222; --muted: #555;
    --line: #ccc; --line-strong: #999; --edge: #1C1840; --pop-shadow: transparent; --accent: #2A44D8; --accent-ink: #fff; --save: #0E7A45;
    --warn-bg: #fff; --warn-ink: #8A2F1E; --tip-bg: #fff; --tip-ink: #0B6B3C; --corallo: #FF6B4A; --ic-fill: #FFC93C;
    --lg-bolla: #2A44D8; --lg-cella: #4F66F0; --lg-maniglia: #A9B5FF; --lg-word: #1C1840;
    color-scheme: light;
  }
  body { font-size: 11pt; background: #fff; }
  /* niente animazioni sulla carta: tutto al suo posto, il prezzo vero e non quello che conta */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .conta__finto { display: none !important; }
  .conta.is-conta > .conta__vero { opacity: 1; }
  .topbar, .skip, .tema, .chips, .filters, .btn, .footer .logo, .ticket__actions { display: none !important; }
  body.has-result .hero, body.has-result .calc, body.has-result .info { display: none; }
  .section { padding: 16px 0; }
  .results { padding: 0; }
  /* in stampa il risultato va a blocchi, non a griglia: una griglia spezzata su più pagine faceva finire la riga
     «listini verificati… Fonti e storico» sopra le ultime righe di «Tutte le opzioni» */
  .res-grid, .res-grid > .col, .res-full { display: block; }
  .res-grid > * + *, .res-grid > .col > * + *, .res-full > * + * { margin-top: 14px; }
  .card, .ticket, .xd, .block { box-shadow: none; break-inside: avoid; }
  .xd:has(table) { break-inside: auto; } /* la tabella è più lunga di una pagina: niente pagine quasi vuote */
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  th { position: static; }
  .ticket__stub { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}
