/* ============================================================
   Transizioni fluide tra pagine (View Transitions API nativa)
   ============================================================ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-vt-out 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: page-vt-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes page-vt-out { to { opacity: 0; transform: scale(0.99); } }
@keyframes page-vt-in { from { opacity: 0; transform: scale(1.01); } }

html.page-transition-fallback body {
  animation: page-fade-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
html.page-transition-fallback.is-leaving body {
  animation: page-fade-out 0.16s ease both;
}
@keyframes page-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  html.page-transition-fallback body,
  html.page-transition-fallback.is-leaving body { animation: none !important; }
}

/* ============================================================
   Autoscuola Giulia — design tokens, stile "Ive"
   Minimalismo, spazio, tipografia. Un solo accento (il navy del
   logo reale), usato con parsimonia. Il giallo compare solo come
   dettaglio puntuale, mai come sfondo.
   ============================================================ */

:root {
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --paper-dim: #F5F5F7;
  --paper-dim-2: #ECECEE;

  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --ink-faint: #86868B;

  --line: #D2D2D7;
  --line-soft: #E8E8ED;

  --accent: #2B52A1;
  --accent-dim: #EEF1F8;
  --accent-hover: #1F3E80;
  --gold: #C9A227;

  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter", monospace;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(24px, 5vw, 64px);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-pill: 980px;

  --shadow-soft: 0 2px 24px -8px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 20px 60px -16px rgba(0, 0, 0, 0.16);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset
   ============================================================ */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "cv01" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
}

p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--accent-dim); color: var(--accent); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 148px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head.center { max-width: 720px; margin-inline: auto; text-align: center; align-items: center; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.section h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
  font-weight: 400;
  line-height: 1.5;
}
.section-head.center .lede { margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }

@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* Testo di rimando che cambia in base a dove finisce l'elemento collegato (a fianco su desktop, sotto quando il grid-2 impila su mobile) */
.note-arrow-mobile { display: none; }
@media (max-width: 640px) {
  .note-arrow-desktop { display: none; }
  .note-arrow-mobile { display: inline; }
}

.section-dim { background: var(--paper-dim); }
.section-accent { background: var(--accent-dim); }
.section-accent .plate { background: rgba(255,255,255,0.55); border-color: rgba(43,82,161,0.14); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 590;
  font-size: 1rem;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: scale(1.025); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-dim); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

/* Pagina simulazione esame: testo e foto come in tutte le altre pagine (fianco a
   fianco su desktop), con la sezione della simulazione (regole + avvio) che
   occupa tutta la larghezza sotto di loro. Su mobile, dove testo/foto/sezione
   si impilano, l'ordine cambia solo visivamente (CSS, nessun elemento duplicato
   o spostato via JS): testo, poi la simulazione, poi la foto. */
.exam-hero-sim { grid-column: 1 / -1; padding-block: clamp(56px, 8vw, 96px) 0; }
@media (max-width: 640px) {
  .exam-hero-text { order: 1; }
  .exam-hero-sim { order: 2; padding-block: 24px 0; }
  .exam-hero-photo { order: 3; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 590;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.98rem;
}
.link-arrow::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(210, 210, 215, 0.4);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, 0.18); }

.nav {
  display: flex; align-items: center; justify-content: space-between; padding-block: 14px;
  /* La riga della nav ospita molte voci + CTA: le serve più spazio del container
     standard (1180px) usato per i contenuti, altrimenti va in overflow a destra. */
  max-width: 1700px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; flex-shrink: 0; }
.brand-text {
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sas {
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-dim);
}

/* Dropdown "Oltre la patente" nel menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-active .nav-dropdown-toggle {
  color: var(--ink);
  background: var(--paper-dim);
}
.nav-dropdown-caret { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-dim);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-search-toggle:hover, .nav-search-toggle[aria-expanded="true"] { background: var(--paper-dim); color: var(--ink); }
.nav-search-toggle svg { width: 19px; height: 19px; }

.nav-a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px;
  border: 1.5px solid var(--line-soft); background: none; cursor: pointer;
  color: var(--ink-soft);
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-a11y-toggle:hover, .nav-a11y-toggle[aria-pressed="true"] { background: var(--paper-dim); color: var(--ink); }
.nav-a11y-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

.brand-row { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-weather {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  white-space: nowrap;
}
.nav-weather svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-weather-sun { color: #B26B00; background: rgba(245, 166, 35, 0.16); }
.nav-weather-cloud { color: #5B6B85; background: rgba(91, 107, 133, 0.13); }
.nav-weather-rain { color: #2470B8; background: rgba(36, 112, 184, 0.13); }
.nav-weather-snow { color: #1CA0BE; background: rgba(28, 160, 190, 0.14); }
@media (max-width: 520px) { .nav-weather { display: none; } }

/* Modalita' "Lettura facilitata DSA": attiva solo con il pulsante DSA, il resto del sito resta invariato.
   Fonti: linee guida AID / AiutoDislessia.net (font sans-serif, interlinea 1,5-2, niente corsivo/giustificato,
   testo piu' grande) + evidenziazione delle parole chiave in grassetto e colore. */
html.a11y-readable {
  font-size: 106%;
  --font-body: "Lexend", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Lexend", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
html.a11y-readable body { letter-spacing: 0.01em; background: #fff; }
html.a11y-readable p, html.a11y-readable li, html.a11y-readable td, html.a11y-readable th {
  line-height: 1.75 !important;
  letter-spacing: 0.01em;
  text-align: left !important;
}
html.a11y-readable p { margin-bottom: 1.1em; }
html.a11y-readable em, html.a11y-readable i, html.a11y-readable cite {
  font-style: normal !important;
  font-weight: 600;
}

/* Parole chiave evidenziate in grassetto + colore, solo in modalita' DSA */
html.a11y-readable strong {
  font-weight: 800;
  padding: 0.05em 0.28em;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
html.a11y-readable strong.a11y-hl-1 { color: #1e3a8a; background: #dbeafe; }
html.a11y-readable strong.a11y-hl-2 { color: #7c2d12; background: #fef3c7; }
html.a11y-readable strong.a11y-hl-3 { color: #14532d; background: #dcfce7; }
html.a11y-readable strong.a11y-hl-4 { color: #581c87; background: #f3e8ff; }

.nav-search-panel {
  position: sticky;
  top: 61px;
  z-index: 95;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 30px -18px rgba(0, 0, 0, 0.18);
}
.nav-search-panel .container { padding-block: 18px; }
.nav-search-panel .hero-search { max-width: 480px; margin-inline: auto; }
.nav-search-panel .hero-search-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 20px -12px rgba(0, 0, 0, 0.14);
}
.nav-search-panel .hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 8px 20px -12px rgba(0, 0, 0, 0.14);
}
.nav-cta {
  display: inline-flex;
  background: rgba(37, 211, 102, 0.55);
  backdrop-filter: blur(16px) saturate(2);
  -webkit-backdrop-filter: blur(16px) saturate(2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 8px 20px -10px rgba(37, 211, 102, 0.5);
}
.nav-cta:hover { background: rgba(32, 189, 90, 0.65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px -10px rgba(37, 211, 102, 0.6); }
.mobile-drawer .nav-cta-mobile .btn-primary {
  background: rgba(37, 211, 102, 0.55);
  backdrop-filter: blur(16px) saturate(2);
  -webkit-backdrop-filter: blur(16px) saturate(2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px -10px rgba(37, 211, 102, 0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

/* Cassetto "a strappo": il pannello resta fermo a sinistra, sotto la pagina;
   tutto il resto (page-shell) scorre verso destra per rivelarlo. Il pannello
   NON è discendente di page-shell, quindi il suo position:fixed non viene
   mai spezzato dal transform del contenitore che si sposta. */
.page-shell {
  position: relative;
  background: var(--paper);
  min-height: 100vh;
  z-index: 10;
}
.mobile-drawer { display: none; }

@media (max-width: 1700px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links:not(.mobile-drawer) { display: none; }

  .page-shell {
    transition: transform 0.35s var(--ease);
    box-shadow: none;
  }
  .page-shell.is-pushed {
    transform: translateX(min(280px, 85vw));
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.35);
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 85vw);
    background: var(--accent);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 2px;
    overflow-y: auto;
    z-index: 5;
  }

  .mobile-drawer a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    padding: 12px 4px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
  }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current="page"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-drawer .nav-cta-mobile { display: block; margin-top: 20px; }
  .mobile-drawer .nav-cta-mobile .btn-primary { width: 100%; text-align: center; }

  /* Sul mobile il dropdown resta sempre aperto, come un'etichetta seguita dai link */
  .mobile-drawer .nav-dropdown { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .mobile-drawer .nav-dropdown-toggle {
    pointer-events: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 16px 4px 6px;
    width: 100%;
    justify-content: flex-start;
  }
  .mobile-drawer .nav-dropdown-caret { display: none; }
  .mobile-drawer .nav-dropdown-active .nav-dropdown-toggle,
  .mobile-drawer .nav-dropdown-toggle:hover {
    background: none;
  }
  .mobile-drawer .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 8px;
  }
  .mobile-drawer .nav-dropdown-menu a {
    font-size: 1rem;
    padding: 10px 16px 10px 16px;
    border-radius: 0;
    border-bottom: none;
    white-space: normal;
    width: 100%;
  }
}
.nav-cta-mobile { display: none; }
.nav-backdrop { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-block: clamp(64px, 11vw, 140px) clamp(56px, 9vw, 108px); }

.hero-eyebrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 650;
  line-height: 1.03;
  color: var(--ink);
}

.hero-slogan {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 20px;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 1.2rem;
  max-width: 48ch;
  margin-top: 22px;
  line-height: 1.5;
}

.hero-actions { margin-top: 36px; }

.hero-search { position: relative; margin-top: 40px; max-width: 420px; }
.hero-search-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 8px; }
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hero-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.hero-search-icon { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; }
.hero-search-box input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}
.hero-search-box input::placeholder { color: var(--ink-faint); }

.hero-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink-faint);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.hero-search-clear svg { width: 12px; height: 12px; }
.hero-search-clear:hover { background: var(--ink-soft); }
.hero-search-box.has-value .hero-search-clear { display: flex; }

.hero-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  list-style: none; margin: 0; padding: 8px;
  max-height: 340px; overflow-y: auto;
  z-index: 20;
}
.hero-search-result a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
}
.hero-search-result a strong { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.hero-search-result a span { font-size: 0.78rem; color: var(--ink-faint); }
.hero-search-result a:hover, .hero-search-result.is-active a { background: var(--paper-dim); }
.hero-search-empty { padding: 12px 14px; font-size: 0.85rem; color: var(--ink-faint); text-align: center; }

/* Tabella punti patente */
.points-search { max-width: 480px; margin: 28px auto 0; }
.points-search-empty { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--ink-faint); }
.points-table-wrap { margin-top: 32px; overflow-x: auto; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-m); box-shadow: var(--shadow-lift); }
.points-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.points-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); background: var(--paper-dim-2); padding: 14px 20px; }
.points-table td { padding: 14px 20px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--ink); vertical-align: middle; }
.points-table td span.points-article { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--ink-faint); }
.points-table th:last-child, .points-table td:last-child { text-align: center; width: 90px; }
.points-table tr[hidden] { display: none; }
.points-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--accent-dim); color: var(--accent); font-weight: 700; font-size: 0.88rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Foto hero integrata */
.hero-photo-col { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-photo-fade img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroPhotoFade 18s infinite;
}
.hero-photo-fade img:nth-of-type(1) { animation-delay: 0s; }
.hero-photo-fade img:nth-of-type(2) { animation-delay: 6s; }
.hero-photo-fade img:nth-of-type(3) { animation-delay: 12s; }
@keyframes heroPhotoFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  28% { opacity: 1; }
  34% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-fade img { animation: none; opacity: 0; }
  .hero-photo-fade img:first-of-type { opacity: 1; }
}

.hero-plate {
  position: relative;
  color: var(--ink);
  width: min(250px, 100%);
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    var(--shadow-lift);
}
.hero-plate-tag {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.hero-plate-date {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-plate-date span { font-size: 0.82rem; color: var(--ink-soft); }
.hero-plate-date strong { font-size: 1.08rem; font-weight: 650; color: var(--ink); }

.schedule-fallback { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.schedule-fallback a { color: var(--accent); font-weight: 650; }
.schedule-fallback strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 6px; }

.hero-plate-schedule { display: flex; flex-direction: column; gap: 9px; }
.hero-plate-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-plate-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-plate-item-value { font-size: 0.88rem; font-weight: 600; color: var(--ink); text-align: right; }

.hero-plate-floating {
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: min(230px, 74%);
  z-index: 2;
}
@media (max-width: 900px) { .hero-plate-floating { left: 0; bottom: -18px; } }
@media (max-width: 560px) {
  .hero-photo-col { max-width: 320px; margin-inline: auto; }
  .hero-plate-floating { position: static; margin-top: 20px; width: 100%; }
}

/* ============================================================
   Trust bar
   ============================================================ */

.trust-bar { border-bottom: 1px solid var(--line-soft); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-block: 18px; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.trust-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line); }

.card-index { font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.card h3 { font-size: 1.2rem; font-weight: 620; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.social-card { padding: clamp(30px, 4vw, 42px); }
.social-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 4px;
}
.social-icon svg { width: 26px; height: 26px; }

.card-link {
  margin-top: auto;
  font-weight: 590;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* Categorie patente: card pulite, niente stile targa */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.plate {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plate:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.plate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plate-code {
  font-weight: 650;
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.plate-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plate-icon svg { width: 25px; height: 25px; }
.plate-title { font-weight: 600; font-size: 1.02rem; margin-top: 8px; color: var(--ink); }
.plate ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.plate ul li { margin-bottom: 4px; }
/* Recensioni a rotazione */
.review-track { position: relative; min-height: clamp(170px, 24vw, 200px); margin-top: 16px; }
.review-slide {
  position: absolute; inset: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.review-slide.is-active { opacity: 1; pointer-events: auto; }
.review-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; }
.review-slide p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.review-slide footer { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.review-slide footer strong { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.review-slide footer span { font-size: 0.78rem; color: var(--ink-faint); }

.review-dots { display: flex; gap: 8px; margin-top: 14px; }
.review-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: var(--line); cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.review-dot.is-active { background: var(--accent); transform: scale(1.3); }

/* ============================================================
   Process (timeline)
   ============================================================ */

.process { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.process-step { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 640px) { .process-step { grid-template-columns: 1fr; gap: 8px; } }
.process-step .when { font-weight: 650; font-size: 0.95rem; color: var(--accent); }
.process-with-icons .process-step { grid-template-columns: 70px 44px 1fr; align-items: start; }
@media (max-width: 640px) { .process-with-icons .process-step { grid-template-columns: 32px 1fr; gap: 12px 16px; } .process-with-icons .process-step .when { grid-column: 1 / -1; } }
.process-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.process-icon svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .process-icon { width: 32px; height: 32px; } .process-icon svg { width: 17px; height: 17px; } }
.process-step h4 { font-size: 1.08rem; margin-bottom: 6px; font-weight: 600; }
.process-step p { color: var(--ink-soft); }

.step-shot {
  margin: 14px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 620px;
}
.step-shot img { width: 100%; height: auto; display: block; }
.step-shot figcaption {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--surface-alt, #f5f6f8);
  border-top: 1px solid var(--line-soft);
}

.section-graphic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
  margin: 28px 0 32px;
}

/* Callout */
.callout {
  background: var(--accent-dim);
  border-radius: var(--radius-m);
  padding: 26px 28px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
}
.callout strong { color: var(--ink); }
.callout-emphasis {
  display: flex; align-items: flex-start; gap: 18px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-soft);
  padding: 30px 32px;
  font-size: 1.02rem;
}
.callout-emphasis-icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.callout-emphasis strong { font-size: 1.12rem; }

/* Documenti richiesti */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.doc-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Orari */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.hours th { color: var(--ink-faint); font-weight: 500; width: 40%; }
.hours td { font-weight: 600; color: var(--ink); }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 4vw, 64px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-tile { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.contact-tile:last-child { border-bottom: none; }
.contact-tile .ic {
  width: 42px; height: 42px;
  background: var(--paper-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}
.contact-tile strong { display: block; font-size: 1rem; font-weight: 600; }
.contact-tile span { color: var(--ink-soft); font-size: 0.9rem; }

/* Form */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-slot {
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  padding: 16px;
}
.gallery-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-m); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-photo:hover img { transform: scale(1.05); }
.gallery-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: #fff; font-size: 0.85rem; font-weight: 500;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-photo:hover figcaption { opacity: 1; }
.gallery-photo img { cursor: zoom-in; }
.gallery-photo-square { aspect-ratio: 1/1; }

/* Bacheca dei Promossi */
.promossi-stats { text-align: center; max-width: 560px; margin: 0 auto 48px; font-size: 0.95rem; color: var(--ink-soft); }
.promossi-stats strong { color: var(--ink); }
.promossi-group { margin-bottom: 48px; }
.promossi-group-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.promossi-group-header h2 { font-size: 1.3rem; text-transform: capitalize; }
.promossi-load-wrap { text-align: center; margin-top: 12px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 6vw, 64px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-m); box-shadow: var(--shadow-lift); border: 1px solid var(--line-soft); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s var(--ease);
}
.lightbox-close:hover { background: var(--paper-dim); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
  z-index: 1;
}
.lightbox-nav:hover { background: var(--paper-dim); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:disabled { opacity: 0.25; cursor: default; }
.lightbox-nav:disabled:hover { background: var(--white); }
.lightbox-prev { left: clamp(8px, 3vw, 28px); }
.lightbox-next { right: clamp(8px, 3vw, 28px); }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
}

/* Testimonial */
.testimonial { padding: clamp(32px, 4vw, 48px) 0; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .testimonial { grid-template-columns: 1fr; } }
.testimonial .quote-mark { font-size: 3.4rem; line-height: 0.7; color: var(--accent); font-weight: 650; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--paper-dim); color: var(--ink-soft); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 28px; }
.footer-brand strong { font-weight: 650; color: var(--ink); font-size: 1rem; }
.site-footer h5 { font-weight: 650; font-size: 0.8rem; color: var(--ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: inherit; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.83rem; color: var(--ink-faint);
}

/* ============================================================
   WhatsApp float
   ============================================================ */

.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px;
  background: rgba(37, 211, 102, 0.55);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 12px 28px -10px rgba(37, 211, 102, 0.55),
    var(--shadow-lift);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.4s var(--ease), padding 0.4s var(--ease), background 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); background: rgba(32, 189, 90, 0.65); }
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-float-label {
  max-width: 0; opacity: 0; margin-left: 0;
  overflow: hidden; white-space: nowrap;
  font-size: 0.92rem; font-weight: 650;
  transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease) 0.1s, margin-left 0.4s var(--ease);
}
.wa-float.is-active {
  width: auto; padding-inline: 20px;
  justify-content: flex-start;
  animation: wa-float-bounce 0.6s var(--ease);
}
.wa-float.is-active .wa-float-label { max-width: 200px; opacity: 1; margin-left: 10px; }

@keyframes wa-float-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  55% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ============================================================
   Naviga qui float — stessa impostazione del pulsante WhatsApp,
   impilato sopra di esso. Al click apre una scelta tra Apple Maps
   e Google Maps, invece di indovinare il sistema operativo.
   ============================================================ */

.nav-float-group { position: fixed; bottom: 94px; right: 24px; z-index: 90; }

.nav-float {
  width: 56px; height: 56px;
  background: rgba(43, 82, 161, 0.55);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 12px 28px -10px rgba(43, 82, 161, 0.55),
    var(--shadow-lift);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-float:hover { transform: scale(1.06); background: rgba(31, 62, 128, 0.65); }
.nav-float svg { width: 24px; height: 24px; flex-shrink: 0; }

.nav-float-menu {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-float-menu[hidden] { display: none; }
.nav-float-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.nav-float-menu a:hover { background: var(--paper-dim); }
.nav-float-menu a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

/* ============================================================
   Modale promozionale — sovraimpressione sopra l'header, per
   avvisi temporanei in home (chiusura estiva, nuovo corso, ecc.),
   una sola immagine + chiusura. Più istanze possono coesistere nel
   markup: js/promo-modal.js decide quale mostrare, una alla volta.
   ============================================================ */

.promo-modal {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 26, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.promo-modal.is-visible { opacity: 1; pointer-events: auto; }
.promo-modal-inner {
  position: relative; display: inline-flex; max-width: 100%;
  transform: scale(0.94); transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo-modal.is-visible .promo-modal-inner { transform: scale(1); }
.promo-modal-inner img {
  display: block; height: auto;
  width: min(92vw, 720px);
  max-height: 82vh;
  border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}
.promo-modal-close {
  position: absolute; top: -16px; right: -16px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s var(--ease);
}
.promo-modal-close:hover { transform: scale(1.1); }
.promo-modal-close svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .promo-modal { padding: 16px; }
  .promo-modal-inner img { width: min(94vw, 480px); }
  .promo-modal-close { width: 32px; height: 32px; top: -12px; right: -12px; }
  .promo-modal-close svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-modal { transition: opacity 0.3s ease; transform: none; }
}

/* ============================================================
   Hero photo — rapporto d'aspetto uniforme per le foto hero a
   due colonne, indipendentemente dalle dimensioni native del file
   ============================================================ */

.hero-photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-m); box-shadow: var(--shadow-lift);
  object-fit: cover;
}
.hero-photo.is-landscape { aspect-ratio: 3 / 2; }
.hero-photo.is-portrait { aspect-ratio: 2 / 3; }

/* Cornice per documenti/foto con testo incorporato: nessun crop, solo padding */
.doc-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-frame img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 0; box-shadow: none;
}

/* ============================================================
   Reveal
   ============================================================ */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Photo scenes (Ken Burns), niente tagli diagonali
   ============================================================ */

.map-frame {
  position: relative;
  aspect-ratio: 21/8;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
}
.map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  filter: grayscale(0.4) contrast(1.02);
}
@media (max-width: 640px) { .map-frame { aspect-ratio: 4/5; } }

/* ============================================================
   Video embed — riquadro 16:9 per video YouTube incorporati
   ============================================================ */

.video-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-l); overflow: hidden; }
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-card-body { padding: 20px 22px 24px; }
.video-card-index { font-size: 0.8rem; font-weight: 650; color: var(--accent); text-transform: uppercase; letter-spacing: 0.02em; }
.video-card-body h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.video-card-body p { color: var(--ink-soft); font-size: 0.95rem; }

.photo-scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--ink);
  border-radius: var(--radius-l);
  margin-inline: var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}
.photo-scene img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.photo-scene::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 40%, transparent 65%);
  pointer-events: none;
}
.photo-caption {
  position: absolute; left: clamp(24px, 4vw, 44px); bottom: 22px; right: clamp(24px, 4vw, 44px);
  z-index: 1; color: var(--white);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.photo-caption h3 { color: var(--white); font-size: clamp(1.15rem, 2.2vw, 1.6rem); max-width: 32ch; font-weight: 600; }
.photo-credit { font-size: 0.7rem; color: rgba(255,255,255,0.6); white-space: nowrap; }
@media (max-width: 640px) {
  .photo-scene { aspect-ratio: auto; margin-inline: 20px; width: calc(100% - 40px); }
  .photo-scene img { height: auto; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) { .photo-scene img { animation: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Variante per immagini con testo/branding già incorporato: niente overlay scuro, niente zoom */
.photo-scene-plain { background: var(--white); }
.photo-scene-plain::after { content: none; }
.photo-scene-plain img { animation: none; object-fit: cover; object-position: center; }

/* ============================================================
   Listino: card prezzi pulite
   ============================================================ */

.price-group-label {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: 0 0 16px;
}
.price-group-label.is-not-first { margin-top: 44px; }

.price-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-m); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.price-card[hidden], .grid.price-grid[hidden] { display: none; }
.listino-search { text-align: center; }
.listino-search-empty { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--ink-faint); }
.listino-search-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-size: 0.92rem; font-weight: 650; color: var(--accent);
}
.listino-search-hint svg { width: 16px; height: 16px; animation: listino-hint-bounce 1.2s ease-in-out infinite; }
.listino-search-hint[hidden] { display: none; }
@keyframes listino-hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.price-card-head { padding: 22px 24px 4px; }
.price-card-head .card-index { color: var(--accent); }
.price-card-head h3 { font-size: 1.15rem; margin-top: 6px; font-weight: 620; }
.price-card-body {
  padding: 14px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.price-row > span:first-child {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-row > span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.price-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1.5px solid var(--ink);
  padding-top: 10px;
  margin-top: 4px;
}
.price-total > span:first-child { font-weight: 600; color: var(--ink); }
.price-total > span:last-child {
  font-size: 1.4rem;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  background: linear-gradient(100deg, rgba(255,214,0,0) 0%, rgba(255,209,0,0.4) 24%, rgba(255,209,0,0.4) 76%, rgba(255,214,0,0) 100%);
  padding: 2px 8px;
  border-radius: 2px;
}
.price-note { margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.5; }
.price-note-list { margin-top: 6px; padding-left: 18px; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.6; }
.price-note-list li { margin-bottom: 2px; }

/* Tabelle di confronto tra più soluzioni di prezzo (es. Manuale/Automatico, Base/Plus/Premium Plus) */
.price-card-wide { grid-column: 1 / -1; }
.price-card-wide .price-card-head { padding-bottom: 8px; }
.price-table-wrap { padding: 10px 24px 4px; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 11px 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table th:not(:first-child), .price-table td:not(:first-child) { border-left: 1px solid var(--line-soft); }
.price-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 650;
  color: var(--accent);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}
.price-table thead th:first-child { text-align: left; color: var(--ink-faint); }
.price-table tbody th {
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-table tbody td { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.price-table tbody td.is-muted { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; }
.price-table tbody tr:not(:last-child) th,
.price-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line-soft); }
.price-table td small, .price-table th small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--ink-faint); margin-top: 2px; }
.price-table tbody tr.price-table-total th,
.price-table tbody tr.price-table-total td { border-top: 1.5px solid var(--ink); padding-top: 14px; font-weight: 650; }
.price-table tbody tr.price-table-total td {
  font-size: 1.3rem;
  background-image: linear-gradient(100deg, rgba(255,214,0,0) 0%, rgba(255,209,0,0.4) 24%, rgba(255,209,0,0.4) 76%, rgba(255,214,0,0) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 88% 60%;
}
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 10px 12px; font-size: 0.85rem; }
  .price-table tbody tr.price-table-total td { font-size: 1.1rem; }
}
.price-card-foot { padding: 14px 24px; border-top: 1px solid var(--line-soft); }
.price-download { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 590; color: var(--accent); text-decoration: none; }
.price-download svg { width: 15px; height: 15px; }

.price-group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.price-group-nav a {
  font-size: 0.86rem; font-weight: 550; color: var(--ink);
  text-decoration: none; border: 1px solid var(--line);
  padding: 9px 18px; border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.price-group-nav a:hover { border-color: var(--ink); background: var(--paper-dim); }

/* ============================================================
   Trova il tuo listino (finder guidato, listino.html)
   ============================================================ */
.finder-hub {
  background: var(--paper-dim);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: clamp(24px, 4vw, 36px);
  max-width: 640px;
  margin-inline: auto;
}
.finder-hub-col { display: flex; flex-direction: column; justify-content: center; }
.finder-hub-label { font-size: 1.05rem; font-weight: 650; color: var(--ink); margin: 0 0 16px; text-align: center; }
.finder-hub-divider { display: flex; align-items: center; gap: 14px; margin: 32px 0; color: var(--ink-faint); font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.finder-hub-divider::before, .finder-hub-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Da tablet in su: le due opzioni ("cerca" e "fatti guidare") affiancate,
   separate da un divisore verticale invece che orizzontale */
@media (min-width: 860px) {
  .finder-hub {
    max-width: 980px;
    display: flex;
    align-items: stretch;
    gap: 44px;
  }
  .finder-hub-col,
  .finder-hub > .finder {
    flex: 1 1 0;
    min-width: 0;
  }
  .finder-hub-col { justify-content: center; }
  .finder-hub-divider { flex-direction: column; margin: 0; }
  .finder-hub-divider::before, .finder-hub-divider::after { width: 1px; height: auto; flex: 1; }
}
.finder-label { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.02em; color: var(--accent); text-transform: uppercase; margin: 0 0 6px; }
.finder-title { font-size: 1.4rem; font-weight: 650; margin: 0 0 22px; letter-spacing: -0.01em; }

.finder-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.finder-dots span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background 0.25s var(--ease); }
.finder-dots span.on { background: var(--accent); }

.finder-q { font-size: 1.1rem; font-weight: 620; margin: 0 0 18px; }

.finder-options { display: flex; flex-direction: column; gap: 10px; }
.finder-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  padding: 14px 18px; font-family: inherit; font-size: 0.96rem; font-weight: 560; color: var(--ink);
  cursor: pointer; text-decoration: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.finder-opt:hover { border-color: var(--accent); background: var(--accent-dim); }
.finder-opt[hidden] { display: none; }
.finder-opt svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent); opacity: 0; transition: opacity 0.2s var(--ease); }
.finder-opt:hover svg { opacity: 1; }

.finder-back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--ink-soft); font-family: inherit; font-size: 0.86rem; font-weight: 550;
  cursor: pointer; padding: 0 0 16px;
}
.finder-back:hover { color: var(--accent); }

.finder-steps { display: none; }
.finder-steps.is-active { display: block; }

.finder-result { display: none; }
.finder-result.is-active { display: block; }
.finder-result-tag { display: inline-block; font-size: 0.78rem; font-weight: 650; color: var(--accent); background: var(--accent-dim); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.finder-result h3 { font-size: 1.25rem; font-weight: 650; margin: 0 0 22px; }
.finder-go {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-pill); padding: 13px 24px;
  font-family: inherit; font-size: 0.94rem; font-weight: 620; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.finder-go:hover { background: var(--accent-hover); }
.finder-restart {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--ink-soft); font-family: inherit; font-size: 0.86rem; font-weight: 550;
  cursor: pointer; margin-left: 14px;
}
.finder-restart:hover { color: var(--accent); }

.finder-highlight { transition: background 1.2s ease, box-shadow 1.2s ease; border-radius: var(--radius-s); background: var(--accent-dim); box-shadow: 0 0 0 8px var(--accent-dim); }

.finder-age-row { display: flex; gap: 10px; }
.finder-input {
  width: 110px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  padding: 14px 16px; font-family: inherit; font-size: 0.96rem; color: var(--ink);
}
.finder-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.finder-age-error { color: #B3261E; font-size: 0.85rem; margin-top: 10px; }
.finder-age-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 16px; padding: 14px 16px; background: var(--accent-dim); border-radius: var(--radius-s); }

/* ============================================================
   Badge (annunci/promozioni)
   ============================================================ */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 650; padding: 5px 12px; border-radius: var(--radius-pill); }
.badge-active { background: #E4F5E8; color: #1B7A34; }
.badge-inactive { background: var(--paper-dim-2); color: var(--ink-faint); }
.badge-promo { background: #FDF0D3; color: #8A6512; }
.badge-corso { background: var(--accent-dim); color: var(--accent); }

/* ============================================================
   Quiz Vero o Falso — ricerca quesiti ufficiali
   ============================================================ */

.quiz-search { max-width: 620px; margin: 44px auto 0; position: static; }
.quiz-search .hero-search-box {
  padding: 18px 26px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}
.quiz-search .hero-search-box:focus-within { box-shadow: 0 0 0 4px var(--accent-dim), var(--shadow-soft); }
.quiz-search .hero-search-icon { width: 20px; height: 20px; }
.quiz-search .hero-search-box input { font-size: 1.02rem; }
.quiz-search-hint { margin-top: 12px; font-size: 0.85rem; color: var(--ink-faint); text-align: center; }

.quiz-status {
  display: block; margin: 0 0 22px; text-align: center;
  font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent);
}
.quiz-empty {
  margin: 12px auto 0; max-width: 420px; text-align: center;
  font-size: 0.95rem; color: var(--ink-faint); line-height: 1.6;
}
.quiz-empty[hidden], .quiz-results[hidden], .quiz-status[hidden] { display: none; }

.quiz-results { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }

.quiz-result-card {
  --quiz-accent: var(--ink-faint);
  --quiz-accent-bg: var(--paper-dim);
  display: flex; gap: 20px; align-items: center;
  background: var(--white); border-radius: var(--radius-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--quiz-accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.quiz-result-card.is-in { opacity: 1; transform: translateY(0); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.quiz-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.quiz-result-card.is-in:hover { transform: translateY(-3px); }
.quiz-result-card.is-true { --quiz-accent: #1B7A34; --quiz-accent-bg: #E4F5E8; }
.quiz-result-card.is-false { --quiz-accent: #B03A2E; --quiz-accent-bg: #FBE5E1; }

.quiz-result-img-wrap {
  flex-shrink: 0; width: 76px; height: 76px;
  border-radius: var(--radius-s);
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.quiz-result-img { width: 100%; height: 100%; object-fit: contain; }

.quiz-result-body { flex: 1; min-width: 0; }
.quiz-result-text { font-size: 1.02rem; color: var(--ink); margin: 0 0 12px; line-height: 1.5; font-weight: 500; }

.quiz-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 14px; border-radius: var(--radius-pill);
  color: var(--quiz-accent); background: var(--quiz-accent-bg);
}
.quiz-badge svg { width: 13px; height: 13px; }

.quiz-load-more-wrap { text-align: center; margin-top: 28px; }
.quiz-load-more-wrap[hidden] { display: none; }

@media (max-width: 560px) {
  .quiz-result-card { padding: 18px; gap: 14px; }
  .quiz-result-img-wrap { width: 60px; height: 60px; }
  .quiz-result-text { font-size: 0.96rem; }
}

/* ============================================================
   Codice della Strada — ricerca articoli codice e regolamento
   ============================================================ */

.cds-results { display: grid; gap: 18px; max-width: 780px; margin: 0 auto; }

.cds-result-card {
  background: var(--white); border-radius: var(--radius-m);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.cds-result-card.is-in { opacity: 1; transform: translateY(0); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.cds-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cds-result-card.is-in:hover { transform: translateY(-3px); }

.cds-article-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cds-article-badge {
  flex-shrink: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 13px; border-radius: var(--radius-pill);
  color: var(--accent); background: var(--accent-dim);
  white-space: nowrap;
}
.cds-article-badge-reg { color: var(--ink-faint); background: var(--paper-dim-2); }
.cds-article-title { font-size: 1.1rem; font-weight: 650; color: var(--ink); margin: 0; line-height: 1.35; }

.cds-text { font-size: 0.98rem; color: var(--ink); line-height: 1.6; margin: 0; }
.cds-text-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cds-text-toggle {
  display: inline-block; margin-top: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 0.85rem; font-weight: 650; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}

.cds-reg-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.cds-reg-label {
  display: block; margin-bottom: 12px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.cds-reg-item { padding: 14px 16px; background: var(--paper-dim); border-radius: var(--radius-s); margin-bottom: 10px; }
.cds-reg-item:last-child { margin-bottom: 0; }
.cds-reg-title { font-size: 0.96rem; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.35; }
.cds-reg-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }

@media (max-width: 560px) {
  .cds-result-card { padding: 18px 20px; }
  .cds-article-title { font-size: 1.02rem; }
}

/* ============================================================
   Guida Accompagnata — ricerca dedicata + tabella moduli corso
   ============================================================ */

.ga-results { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }
.ga-result-card {
  background: var(--white); border-radius: var(--radius-m);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--accent);
}
.ga-result-title { font-size: 1.05rem; font-weight: 650; color: var(--ink); margin: 0 0 8px; line-height: 1.35; }
.ga-result-text { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
@media (max-width: 560px) {
  .ga-result-card { padding: 18px 20px; }
  .ga-result-title { font-size: 1rem; }
}

.info-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-m); }
.info-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.info-table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 650;
  color: var(--accent); background: var(--accent-dim);
}
.info-table tbody th { font-weight: 700; color: var(--ink); font-size: 0.92rem; white-space: nowrap; }
.info-table tbody td { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.info-table tbody tr:not(:last-child) th,
.info-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line-soft); }

/* ============================================================
   Patente Internazionale — ricerca convenzione per Stato
   ============================================================ */

.intl-status {
  display: block; margin: 0 0 22px; text-align: center;
  font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent);
}
.intl-empty {
  margin: 12px auto 0; max-width: 420px; text-align: center;
  font-size: 0.95rem; color: var(--ink-faint); line-height: 1.6;
}
.intl-empty[hidden], .intl-results[hidden], .intl-status[hidden] { display: none; }

.intl-results { display: grid; gap: 16px; max-width: 680px; margin: 0 auto; }

.intl-result-card {
  --intl-accent: var(--ink-faint);
  --intl-accent-bg: var(--paper-dim);
  background: var(--white); border-radius: var(--radius-m);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--intl-accent);
}
.intl-result-card.is-nodoc { --intl-accent: #1B7A34; --intl-accent-bg: #E4F5E8; }
.intl-result-card.is-vienna { --intl-accent: var(--accent); --intl-accent-bg: var(--accent-dim); }
.intl-result-card.is-ginevra { --intl-accent: #8A6512; --intl-accent-bg: #FDF0D3; }
.intl-result-card.is-sospeso { --intl-accent: #B03A2E; --intl-accent-bg: #FBE5E1; }

.intl-result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.intl-result-name { font-size: 1.08rem; font-weight: 650; color: var(--ink); margin: 0; }
.intl-result-badge {
  flex-shrink: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: var(--radius-pill);
  color: var(--intl-accent); background: var(--intl-accent-bg);
  white-space: nowrap;
}
.intl-result-text { font-size: 0.96rem; color: var(--ink); line-height: 1.55; margin: 0 0 12px; }
.intl-result-note { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.5; margin: 0; font-style: italic; }

.intl-result-both {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 12px; padding: 12px 14px;
  background: var(--paper-dim); border-radius: var(--radius-s);
  font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5;
}
.intl-result-both svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--intl-accent); }

.intl-states-detail { margin-top: 4px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.intl-states-detail summary {
  cursor: pointer; font-weight: 650; font-size: 0.9rem; color: var(--accent);
  list-style: none;
}
.intl-states-detail summary::-webkit-details-marker { display: none; }
.intl-states-detail summary::before { content: "▸ "; }
.intl-states-detail[open] summary::before { content: "▾ "; }
.intl-states-intro { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.5; margin: 10px 0 14px; }
.intl-states-list { display: grid; grid-template-columns: 1fr 2fr; gap: 2px 16px; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.intl-states-list dt { font-weight: 650; font-size: 0.86rem; color: var(--ink); padding: 8px 0; border-top: 1px solid var(--line-soft); }
.intl-states-list dd { margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.intl-states-list dt:first-of-type, .intl-states-list dd:first-of-type { border-top: none; }
.intl-states-list dt.is-matched, .intl-states-list dd.is-matched { background: var(--accent-dim); }
.intl-states-list dt.is-matched { color: var(--accent); border-radius: var(--radius-s) 0 0 var(--radius-s); padding-left: 8px; }
.intl-states-list dd.is-matched { border-radius: 0 var(--radius-s) var(--radius-s) 0; padding-right: 8px; }

@media (max-width: 560px) {
  .intl-result-card { padding: 18px 20px; }
  .intl-result-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .intl-states-list { grid-template-columns: 1fr; }
  .intl-states-list dd { padding-top: 0; border-top: none; padding-bottom: 10px; }
}

/* ============================================================
   Simulazione Esame — replica della vera postazione touch screen
   (schema colori/layout dal software ministeriale "Quiz Patenti")
   ============================================================ */

.exam-view[hidden] { display: none; }

/* --- stage: resta incorporato nella pagina del sito, non a schermo intero --- */
#exam-stage { display: none; position: relative; }
#exam-stage.is-live { display: block; }

.exam-exit-btn {
  position: absolute; top: 4px; right: 4px; z-index: 20;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s var(--ease);
}
.exam-exit-btn:hover { background: rgba(0,0,0,0.55); }
.exam-exit-btn svg { width: 16px; height: 16px; }
.exam-exit-btn[hidden] { display: none; }

/* --- schermate "governative" (registrazione, riconoscimento, avvertenze, pronto) --- */
.exam-gov-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--gov-blue, #1450A3); color: var(--white);
  padding: 16px clamp(16px, 3vw, 28px);
}
.exam-gov-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.exam-gov-brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.exam-sim-badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; background: rgba(255,255,255,0.18); padding: 3px 8px; border-radius: var(--radius-pill); vertical-align: 2px; margin-left: 8px; }

.exam-stepper { display: flex; align-items: center; gap: 6px; }
.exam-stepper-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 650; color: rgba(255,255,255,0.55); text-align: center; width: 84px; }
.exam-stepper-dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.exam-stepper-dot svg { width: 12px; height: 12px; }
.exam-stepper-line { width: 30px; height: 2px; background: rgba(255,255,255,0.25); margin-bottom: 20px; }
.exam-stepper-item.is-done { color: var(--white); }
.exam-stepper-item.is-done .exam-stepper-dot { background: var(--white); color: var(--gov-blue, #1450A3); }
.exam-stepper-item.is-current { color: var(--white); }
.exam-stepper-item.is-current .exam-stepper-dot { background: var(--white); }

.exam-gov-body { background: var(--white); padding: clamp(24px, 4vw, 44px); text-align: center; }
.exam-gov-body h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--gov-blue, #1450A3); margin-bottom: 8px; }
.exam-gov-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 24px; }

.exam-lang-row { display: flex; justify-content: center; gap: 12px; margin: 18px 0 28px; }
.exam-lang-btn { width: 64px; height: 44px; border-radius: var(--radius-s); border: 2px solid var(--line-soft); background: var(--paper-dim); font-size: 1.4rem; cursor: pointer; }
.exam-lang-btn.is-active { border-color: var(--gov-blue, #1450A3); box-shadow: 0 0 0 3px var(--accent-dim); }
.exam-lang-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.exam-gov-text {
  text-align: left; max-width: 640px; margin: 0 auto 28px;
  background: var(--paper-dim); border-radius: var(--radius-s);
  padding: 18px 22px; max-height: 180px; overflow-y: auto;
  font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft);
}
.exam-gov-text p { margin: 0 0 12px; }
.exam-gov-text p:last-child { margin-bottom: 0; }

.exam-gov-btn {
  background: var(--gov-blue, #1450A3); color: var(--white); border: none;
  border-radius: var(--radius-s); padding: 13px 32px; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.02em; cursor: pointer; transition: background 0.2s var(--ease);
}
.exam-gov-btn:hover { background: var(--accent-hover); }

.exam-scan-box {
  width: 220px; height: 220px; margin: 0 auto 20px; position: relative;
  background: var(--paper-dim); border-radius: var(--radius-m); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.exam-scan-box svg.exam-scan-avatar { width: 96px; height: 96px; color: var(--line); }
.exam-scan-corner { position: absolute; width: 34px; height: 34px; border: 4px solid var(--gov-blue, #1450A3); }
.exam-scan-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.exam-scan-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.exam-scan-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.exam-scan-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.exam-scan-ring { position: absolute; inset: 14px; border-radius: 50%; border: 3px solid var(--gov-blue, #1450A3); animation: exam-scan-pulse 1.6s ease-in-out infinite; }
@keyframes exam-scan-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.97); } 50% { opacity: 0.9; transform: scale(1.02); } }

.exam-scan-status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper-dim); border-radius: var(--radius-pill);
  padding: 10px 20px; font-size: 0.82rem; font-weight: 650; color: var(--ink-soft);
}
.exam-scan-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gov-blue, #1450A3); animation: exam-spin 0.8s linear infinite; }
@keyframes exam-spin { to { transform: rotate(360deg); } }

.exam-ready-grid { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap; margin-bottom: 24px; }
.exam-ready-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--paper-dim); border: 2px solid var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--line); }
.exam-ready-avatar svg { width: 56px; height: 56px; }
.exam-ready-info { text-align: left; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.exam-ready-info-row { background: var(--paper-dim); border-radius: var(--radius-s); padding: 10px 16px; font-size: 0.85rem; color: var(--ink-soft); }
.exam-ready-info-row strong { color: var(--ink); }

.exam-rules {
  list-style: none; margin: 28px 0 0; padding: 0;
  max-width: 480px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
}
.exam-rules li {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  padding: 16px 20px; font-size: 0.95rem; color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.exam-rules svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.exam-rules strong { font-weight: 700; }

.exam-shell { max-width: 920px; margin: 0 auto; }

.exam-kiosk-frame {
  background: var(--ink); border-radius: var(--radius-l);
  padding: clamp(10px, 2vw, 16px);
  box-shadow: var(--shadow-lift);
}
.exam-kiosk-screen {
  background: var(--white); border-radius: var(--radius-m);
  overflow: hidden;
}

/* --- layout: sidebar blu + area domanda bianca --- */
.exam-layout { display: flex; min-height: 420px; }

.exam-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--gov-blue, #1450A3);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.exam-sidebar-box { background: var(--white); border-radius: var(--radius-s); padding: 12px 14px; }
.exam-sidebar-label { display: block; font-size: 0.72rem; color: var(--ink-faint); }
.exam-sidebar-box strong { display: block; font-size: 1rem; color: var(--ink); margin-top: 2px; }
.exam-sidebar-candidate { text-align: center; }
.exam-sidebar-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper-dim); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  color: var(--ink-faint);
}
.exam-sidebar-avatar svg { width: 24px; height: 24px; }
.exam-sidebar-candidate .exam-sidebar-label { margin-top: 4px; }
.exam-sidebar-timer { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 800; margin: 2px 0 10px; }
.exam-sidebar-timer.is-low { color: #B03A2E; }
.exam-sidebar-riepilogo-btn {
  width: 100%; background: var(--gov-blue, #1450A3); color: var(--white);
  border: none; border-radius: var(--radius-s); padding: 10px; font-weight: 650; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s var(--ease);
}
.exam-sidebar-riepilogo-btn:hover { background: var(--accent-hover); }
.exam-sidebar-footer { margin-top: auto; background: var(--white); border-radius: var(--radius-s); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.exam-sidebar-footer svg { width: 26px; height: 26px; color: var(--gov-blue, #1450A3); flex-shrink: 0; }
.exam-sidebar-footer span { font-size: 0.68rem; color: var(--ink-faint); line-height: 1.3; }

.exam-main { flex: 1; padding: clamp(18px, 3vw, 28px); min-width: 0; }
.exam-main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.exam-progress-label { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.exam-header-actions { display: flex; align-items: center; gap: 6px; }
.exam-bookmark-btn, .exam-audio-btn {
  background: none; border: none; cursor: pointer; padding: 4px; color: var(--ink);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.exam-bookmark-btn svg, .exam-audio-btn svg { width: 22px; height: 22px; }
.exam-bookmark-btn:hover, .exam-audio-btn:hover { transform: translateY(-1px); }
.exam-bookmark-btn.is-flagged { color: #C9A227; }
.exam-bookmark-btn.is-flagged svg { fill: currentColor; }
.exam-audio-btn.is-playing { color: var(--accent); }
.exam-audio-btn:disabled { opacity: 0.3; cursor: default; }

.exam-question-text-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.exam-question-flag { flex-shrink: 0; font-size: 1.1rem; margin-top: 1px; }
.exam-question-text { font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 500; color: var(--ink); line-height: 1.5; margin: 0; }
.exam-question-translation-row { border-bottom: none; padding-top: 4px; margin-top: -8px; }
.exam-question-translation { font-size: 0.9rem; font-style: italic; color: var(--ink-faint); font-weight: 400; }

.exam-question-row { display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.exam-question-img { width: 160px; height: 160px; object-fit: contain; background: var(--paper-dim); border: 1px solid var(--line-soft); border-radius: var(--radius-s); flex-shrink: 0; }
.exam-question-img[hidden] { display: none; }

.exam-answer-col { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.exam-answer-label { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.exam-vf-row { display: flex; gap: 14px; }
.exam-vf-btn {
  width: 64px; height: 64px; border-radius: var(--radius-s);
  border: 2px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.exam-vf-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.exam-vf-btn.is-selected { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* --- barra di navigazione inferiore (a tab, come la vera postazione) --- */
.exam-bottom-bar { display: flex; align-items: stretch; background: var(--paper-dim); border-top: 1px solid var(--line-soft); }
.exam-bottom-arrow {
  flex-shrink: 0; width: 56px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  background: var(--accent);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.exam-bottom-arrow svg { width: 18px; height: 18px; }
.exam-bottom-arrow:hover:not(:disabled) { background: var(--accent-hover); color: var(--white); }
.exam-bottom-arrow:disabled { opacity: 0.3; cursor: default; }
.exam-bottom-arrow.is-next { background: var(--accent); color: var(--white); }
.exam-bottom-arrow.is-next:hover { background: var(--accent-hover); color: var(--white); }

.exam-bottom-center { flex: 1; padding: 10px 12px; min-width: 0; }
.exam-bottom-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.exam-bottom-tab {
  flex: 1; text-align: center; padding: 6px 4px; border-radius: var(--radius-s);
  border: none; background: transparent; font-size: 0.8rem; font-weight: 650; color: var(--ink-faint);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.exam-bottom-tab.is-active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-soft); }
.exam-bottom-numbers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.exam-bottom-num {
  width: 30px; height: 30px; border-radius: var(--radius-s);
  border: 2px solid transparent; background: var(--white);
  font-size: 0.8rem; font-weight: 650; color: var(--ink-soft); cursor: pointer;
}
.exam-bottom-num.is-answered { background: var(--accent-dim); color: var(--accent); }
.exam-bottom-num.is-current { border-color: var(--accent); }

/* --- riepilogo: elenco, come la vera schermata --- */
.exam-review-title { text-align: center; padding: 18px 0 4px; margin: 0; font-size: 1.3rem; }
.exam-review-count { text-align: center; margin: 4px 0 0; font-size: 0.85rem; color: var(--ink-faint); }
.exam-review-list { max-height: 480px; overflow-y: auto; padding: 8px clamp(16px, 3vw, 28px) 4px; }
.exam-review-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.exam-review-row:last-child { border-bottom: none; }
.exam-review-num { flex-shrink: 0; width: 22px; font-weight: 700; color: var(--ink-faint); font-size: 0.85rem; }
.exam-review-thumb { flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; background: var(--paper-dim); border-radius: var(--radius-s); }
.exam-review-text-wrap { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; }
.exam-review-text { font-size: 0.85rem; color: var(--ink); line-height: 1.4; margin: 0; }
.exam-review-vf { flex-shrink: 0; display: flex; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.exam-review-vf span { color: var(--ink-soft); }
.exam-review-vf span.is-given { color: var(--accent); }
.exam-review-vf span.is-crossed { color: var(--line); text-decoration: line-through; }
.exam-review-flag-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--line); padding: 4px; }
.exam-review-flag-btn svg { width: 16px; height: 16px; }
.exam-review-flag-btn.is-flagged { color: #C9A227; }
.exam-review-flag-btn.is-flagged svg { fill: currentColor; }

.exam-badge-outcome { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.exam-badge-outcome svg { width: 14px; height: 14px; }
.exam-badge-outcome.is-correct { background: #E4F5E8; color: #1B7A34; }
.exam-badge-outcome.is-wrong { background: #FBE5E1; color: #B03A2E; }

.exam-review-actions { display: flex; justify-content: center; gap: 14px; margin: 20px 0 0; padding: 0 0 24px; flex-wrap: wrap; }
.exam-btn-indietro { background: var(--accent); color: var(--white); border: none; border-radius: var(--radius-s); padding: 12px 28px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; cursor: pointer; }
.exam-btn-indietro:hover { background: var(--accent-hover); }
.exam-btn-termina { background: #B03A2E; color: var(--white); border: none; border-radius: var(--radius-s); padding: 12px 28px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; cursor: pointer; }
.exam-btn-termina:hover { background: #8f2f25; }

.exam-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.exam-modal-overlay[hidden] { display: none; }
.exam-modal {
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-lift);
  padding: clamp(28px, 5vw, 40px); max-width: 420px; text-align: center;
}
.exam-modal h3 { font-size: 1.25rem; margin-bottom: 12px; }
.exam-modal p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin: 0 0 24px; }
.exam-modal-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.exam-result-badge {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800;
  padding: 16px 32px; border-radius: var(--radius-pill);
  margin: 0 auto 20px;
}
.exam-result-badge svg { width: 32px; height: 32px; }
.exam-result-badge.is-pass { background: #E4F5E8; color: #1B7A34; }
.exam-result-badge.is-fail { background: #FBE5E1; color: #B03A2E; }
.exam-result-stats { text-align: center; font-size: 1rem; color: var(--ink-soft); margin-bottom: 8px; }
.exam-result-hint { text-align: center; font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 40px; }

.exam-answer-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.exam-answer-line span { font-size: 0.78rem; font-weight: 650; padding: 4px 10px; border-radius: var(--radius-pill); }
.exam-answer-line .is-user-wrong { background: #FBE5E1; color: #B03A2E; }
.exam-answer-line .is-correct-answer { background: #E4F5E8; color: #1B7A34; }

@media (max-width: 720px) {
  .exam-layout { flex-direction: column; }
  .exam-sidebar { width: auto; flex-direction: row; flex-wrap: wrap; }
  .exam-sidebar-box { flex: 1; min-width: 130px; }
  .exam-sidebar-footer { display: none; }
  .exam-question-row { flex-direction: column; align-items: center; text-align: center; }
  .exam-answer-col { width: 100%; }
}
@media (max-width: 560px) {
  .exam-vf-btn { width: 56px; height: 56px; font-size: 1.3rem; }
  .exam-bottom-num { width: 26px; height: 26px; font-size: 0.72rem; }
  .exam-bottom-arrow { width: 44px; }
  .exam-gov-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .exam-stepper-item { width: 60px; font-size: 0.6rem; }
  .exam-stepper-line { width: 16px; }
  .exam-ready-grid { flex-direction: column; }
  .exam-ready-info { text-align: center; }
}

/* ============================================================
   Indicatore avanzamento pagina (scroll)
   ============================================================ */

.next-page-indicator {
  position: fixed; left: 50%; bottom: 96px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--white);
  padding: 12px 22px;
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 200;
  box-shadow: var(--shadow-lift);
  font-size: 0.86rem; font-weight: 550;
  white-space: nowrap;
}
.next-page-indicator.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.next-page-indicator.is-prev { top: calc(var(--gutter) + 68px); bottom: auto; transform: translateX(-50%) translateY(-16px); }
.next-page-indicator.is-prev.is-visible { transform: translateX(-50%) translateY(0); }
.next-page-indicator .np-arrow { display: inline-block; color: var(--white); opacity: 0.7; }
.next-page-indicator .np-track { width: 56px; height: 3px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; flex-shrink: 0; border-radius: 2px; }
.next-page-indicator .np-fill { position: absolute; inset: 0; width: 0%; background: var(--white); }
@media (max-width: 560px) { .next-page-indicator span:not(.np-arrow):not(.np-track) { display: none; } }
