/* ==========================================================================
   AUTOSCUOLA SERIATE - stile "poster foglio rosa"
   Tre sedi a Seriate (BG): Autoscuola Seriate, Guida sul Serio, Valleseriana.

   Idea: blocchi di colore pieni (blu profondo + rosa del foglio rosa) su
   fondo crema, titoli display enormi (Unbounded), foto ritagliate ad arco,
   griglia bento asimmetrica, marquee. Giovane, diretto, riconoscibile.

   Indice
   1. Variabili
   2. Base e tipografia
   3. Componenti (tag, bottoni, spunte, sticker)
   4. Header
   5. Home: hero, marquee, bento, sedi, percorso, metodo
   6. Blocchi condivisi (split, plate, cols-3, specs, sede-card, band)
   7. Testate pagine interne
   8. Moduli e tabelle
   9. Footer
   10. Animazioni
   11. Responsive
   ========================================================================== */

/* 1. Variabili e font ---------------------------------------------------- */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
}

:root {
  --blue:        #1d3fb3;
  --blue-deep:   #14297a;
  --blue-ink:    #0f1f5c;
  --pink:        #f77a8e;
  --pink-deep:   #e4566e;
  --pink-soft:   #ffe3e8;
  --cream:       #fbf7f2;
  --cream-deep:  #f1eae1;
  --ink:         #151a2d;
  --text:        #3c4258;
  --muted:       #737a90;
  --white:       #ffffff;
  --line:        rgba(21, 26, 45, 0.1);
  --green:       #1f8a5b;
  --danger:      #c73c3c;

  --display: 'Unbounded', 'Arial Black', sans-serif;
  --font:    'Outfit', 'Segoe UI', system-ui, sans-serif;

  --r-sm:  14px;
  --r:     22px;
  --r-lg:  32px;
  --r-xl:  40px;
  --pill:  999px;

  --shadow:    0 18px 40px -20px rgba(20, 41, 122, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(20, 41, 122, 0.45);

  --container: 1400px;
  --gutter:    clamp(18px, 4vw, 56px);
  --sec:       clamp(72px, 9vw, 128px);

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.5, 0.64, 1);
  --dur:         240ms;
  --dur-slow:    700ms;
}

/* 2. Base e tipografia --------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
}

h1, .page-title, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1, .page-title { font-size: clamp(2.3rem, 5.2vw, 4.6rem); letter-spacing: -0.045em; }
.page-title { margin: 0 0 0.5em; }
/* L'H1 contiene l'etichetta con la parola chiave e, sotto, il titolo grande */
.title-stack { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.title-stack .page-title { display: block; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-deep); }

img { max-width: 100%; height: auto; display: block; }
/* <picture> serve solo a offrire la versione WebP: non deve cambiare il layout */
picture { display: contents; }
picture > source { display: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: var(--blue-ink); }

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

.container--text > * { max-width: 76ch; }

section { padding: var(--sec) 0; }
.bg-raised { background: var(--cream-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 3. Componenti ---------------------------------------------------------- */

/* Etichetta: pillola rosa, testo normale (niente maiuscolo spaziato) */
.editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-ink);
  background: var(--pink-soft);
  padding: 7px 14px;
  border-radius: var(--pill);
  line-height: 1.3;
  letter-spacing: normal;
  margin: 0 0 18px;
}
.editorial-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink);
}
.editorial-tag--dark { background: rgba(255, 255, 255, 0.14); color: #fff; }
.editorial-tag--dark::before { background: var(--pink); }
.editorial-tag--green { background: #e0f3e9; color: var(--green); }
.editorial-tag--green::before { background: var(--green); }

/* Bottoni: pillole grandi, spinta tattile */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-signal, .btn-primary {
  background: var(--pink);
  color: var(--blue-ink);
  box-shadow: 0 10px 24px -12px rgba(228, 86, 110, 0.7);
}
.btn-signal:hover, .btn-primary:hover {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(228, 86, 110, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-invert { background: var(--blue-ink); color: #fff; }
.btn-invert:hover { background: var(--ink); color: #fff; }

.btn-ghost-invert {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost-invert:hover { background: #fff; border-color: #fff; color: var(--blue-ink); }

/* Dentro i blocchi blu i bottoni "ghost" diventano bianchi */
.on-blue .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.on-blue .btn-ghost:hover { background: #fff; color: var(--blue-ink); border-color: #fff; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #19744c; color: #fff; }

.btn[disabled], .btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(15, 31, 92, 0.3); border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
  font-size: 1rem;
}
.btn-text::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: none; mask: none;
  position: relative;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.btn-text:hover { color: var(--blue-deep); }
.btn-text:hover::after { transform: translateX(4px); background-color: var(--pink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.actions--gap { margin-top: 28px; }

/* Distanza tra blocchi nella stessa sezione */
.block-gap { margin-top: clamp(48px, 6vw, 72px); }

/* Riquadro di approfondimento */
.callout {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 44px);
  background: var(--cream-deep); border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.callout h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.callout p { margin: 0 0 12px; max-width: 70ch; }

/* Elenchi con spunta (il "✓" nel markup è nascosto e sostituito) */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; color: var(--text); }
.check {
  flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; background: var(--pink); color: transparent; font-size: 0; position: relative;
}
.check::before {
  content: ""; position: absolute; inset: 0; background: var(--blue-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.on-blue .checklist li { color: rgba(255, 255, 255, 0.88); }
.on-blue .checklist strong { color: #fff; }

/* Foto ad arco */
.arch {
  border-radius: var(--pill) var(--pill) var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--cream-deep);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Sticker circolare con testo che ruota */
.sticker {
  width: 148px; height: 148px; position: relative;
  display: grid; place-items: center;
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker text {
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; fill: currentColor;
}
.sticker-core {
  width: 62px; height: 62px; border-radius: 50%; background: currentColor;
  display: grid; place-items: center;
}
.sticker-core span {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  color: var(--pink);
}

/* 4. Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--cream);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(21, 26, 45, 0.3); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
/* Logo: l'omino in auto di Autoscuola Seriate, ridisegnato in vettoriale.
   È una maschera: il colore lo decide il CSS (blu nell'header, rosa nel footer). */
.brand-logo {
  flex: 0 0 auto; display: block; width: 86px; height: 58px; background: var(--blue);
  -webkit-mask: url('../img/logo-autoscuola-seriate.svg') center / contain no-repeat;
          mask: url('../img/logo-autoscuola-seriate.svg') center / contain no-repeat;
}
.brand-info { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.brand-tagline { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-top: 3px; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; padding: 10px 16px;
  border-radius: var(--pill); font-size: 1rem; font-weight: 500; color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav a:hover { background: var(--cream-deep); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.header-cta { flex-shrink: 0; padding: 13px 22px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 46px; height: 46px; background: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; display: block; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Home ---------------------------------------------------------------- */

/* Hero: fascia blu a tutta larghezza, contenuto sulla griglia comune */
.hero { position: relative; padding: 0; background: var(--blue); color: #fff; overflow: hidden; }
.hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
}
.hero-copy .editorial-tag { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero-copy .page-title { color: #fff; margin: 0 0 22px; }
.hero-copy .page-title em { font-style: normal; color: var(--pink); }
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgba(255, 255, 255, 0.85); max-width: 46ch; margin-bottom: 32px; line-height: 1.5; }
.hero-copy .actions { margin-bottom: 36px; }

.hero-facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; font-size: 0.98rem; line-height: 1.35; color: rgba(255, 255, 255, 0.85); }
.hero-facts b { font-family: var(--display); font-size: 1.5rem; line-height: 1; font-weight: 700; color: #fff; letter-spacing: -0.03em; }

.hero-media { position: relative; }
.hero-media .arch { aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.hero-sticker {
  position: absolute; left: -44px; bottom: 40px; color: var(--blue-ink);
  background: var(--pink); border-radius: 50%;
  box-shadow: 0 20px 40px -18px rgba(228, 86, 110, 0.8);
}
.hero-sticker .sticker-core { background: var(--blue-ink); }
.hero-sticker .sticker-core span { color: var(--pink); }

/* Marquee */
.marquee {
  padding: 0;
  background: var(--pink); color: var(--blue-ink);
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 0;
  padding: 16px 0;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento patenti */
.bento-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px 60px; align-items: end; margin-bottom: 36px;
}
.bento-head h2 { margin: 0; }
.bento-head p { font-size: 1.12rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* altezza minima: se il testo è più lungo la riga cresce, non viene tagliato */
  grid-auto-rows: minmax(230px, auto);
  gap: 16px;
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  /* in alto resta libero lo spazio della freccia: il titolo non ci finisce sotto */
  border-radius: var(--r); overflow: hidden; padding: 72px 26px 26px; color: var(--ink);
  background: #fff; text-decoration: none;
  transition: box-shadow 300ms var(--ease);
  box-shadow: 0 1px 0 rgba(21, 26, 45, 0.04);
}
.tile:hover { box-shadow: var(--shadow); }
/* Le tessere sono link: al passaggio il testo tiene il suo colore
   (prima prendeva il blu dei link e sulle foto spariva) */
a.tile:hover { color: var(--ink); }
a.tile--photo:hover, a.tile--rinnovo:hover { color: #fff; }
.tile img { z-index: 0; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile--photo { color: #fff; }
.tile--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(15, 31, 92, 0.96) 0%, rgba(15, 31, 92, 0.7) 38%, rgba(15, 31, 92, 0.15) 68%, rgba(15, 31, 92, 0) 100%);
}
.tile > * { position: relative; z-index: 1; }
.tile-kicker { font-size: 0.9rem; font-weight: 600; opacity: 0.85; margin-bottom: 6px; }
.tile h3 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.7rem); color: inherit; }
.tile p { margin: 8px 0 0; font-size: 0.98rem; opacity: 0.9; max-width: 36ch; }
.tile .tile-arrow {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  transition: transform 500ms var(--ease-spring), background-color var(--dur);
}
.tile .tile-arrow::before {
  content: ""; width: 16px; height: 16px; background: var(--blue-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile:hover .tile-arrow { background: var(--pink); }
.tile:hover .tile-arrow::before { background: var(--blue-ink); }

.tile--b    { grid-column: span 2; grid-row: span 2; }
.tile--moto { grid-column: span 1; grid-row: span 2; }
.tile--eta  { grid-row: span 2; background: var(--pink); color: var(--blue-ink); padding-top: 26px; }
.tile--eta .big { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.06em; margin-bottom: 10px; }
.tile--eta p { max-width: 20ch; }
.tile--prof { grid-column: span 2; }
/* tessera bassa e larga: il testo occupa più altezza, il velo sale di più */
.tile--prof::after { background: linear-gradient(to top, rgba(15, 31, 92, 0.96) 0%, rgba(15, 31, 92, 0.86) 55%, rgba(15, 31, 92, 0.45) 100%); }
.tile--rinnovo { background: var(--blue); color: #fff; }
.tile--rinnovo .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: 8px; color: var(--pink); }
.tile--rinnovo .tile-arrow { background: rgba(255, 255, 255, 0.15); }
.tile--rinnovo .tile-arrow::before { background: #fff; }
.tile--app { background: #fff; }
.tile--app h3 { max-width: 56%; font-size: clamp(1rem, 1.2vw, 1.2rem); }
.tile--app .tile-arrow { background: var(--pink-soft); }
.tile--app img { inset: 16% -3% auto auto; width: 40%; height: auto; border-radius: 0; transform: rotate(-8deg); transition: transform 1s var(--ease); }
.tile--app:hover img { transform: rotate(-4deg) translateY(-8px); }

/* Sedi: titolo gigante a sinistra, righe con telefoni enormi a destra */
.sedi-section { background: var(--ink); color: #fff; }
.sedi-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sedi-intro { position: sticky; top: 110px; }
.sedi-intro h2 { color: #fff; }
.sedi-intro h2 em { font-style: normal; color: var(--pink); }
.sedi-intro p { color: rgba(255, 255, 255, 0.72); font-size: 1.12rem; max-width: 36ch; }
.sedi-intro .editorial-tag { background: rgba(255, 255, 255, 0.1); color: #fff; }

.sedi-list { list-style: none; margin: 0; padding: 0; }
.sedi-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center;
  padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.sedi-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.sedi-row h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; margin: 0 0 6px; }
.sedi-row h3 span { color: var(--pink); display: block; }
.sedi-row-meta { color: rgba(255, 255, 255, 0.7); font-size: 0.98rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sedi-row-phone {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: #fff; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: color var(--dur);
}
.sedi-row-phone:hover { color: var(--pink); }
.sedi-row .btn-text { grid-column: 1 / -1; color: var(--pink); }
.sedi-row .btn-text::after { background-color: var(--pink); }

/* Percorso: sei tappe su due righe da tre su desktop, a scorrimento su schermi stretti */
.steps-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; margin-bottom: 36px; }
.steps-head h2 { margin: 0; }
.steps-scroller {
  list-style: none; margin: 0; padding: 4px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.step {
  scroll-snap-align: start; background: #fff; border-radius: var(--r); padding: 26px 24px 28px;
  display: flex; flex-direction: column; min-height: 240px; position: relative;
}
.step-num {
  font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 0.85; letter-spacing: -0.06em;
  color: var(--pink);
}
.step:nth-child(even) .step-num { color: var(--blue); }
.step h3 { margin: 26px 0 8px; font-size: 1.35rem; }
.step p { margin: 0 0 14px; color: var(--text); font-size: 1rem; }
.step-note { display: inline-block; margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--blue-ink); background: var(--pink-soft); padding: 6px 12px; border-radius: var(--pill); align-self: flex-start; }
.steps-hint { display: none; color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* 6. Blocchi condivisi --------------------------------------------------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
.split--reverse > .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-deep); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .cat { font-size: 1rem; font-weight: 600; color: var(--pink-deep); margin-bottom: 14px; }
.split .checklist { margin-top: 22px; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.split h2 em { font-style: normal; color: var(--blue); }

.section-head, .section-head-centered { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .section-head-centered h2 { margin-bottom: 14px; }
.section-head p, .section-head-centered p { color: var(--text); font-size: 1.15rem; margin: 0; }

/* Schede con foto */
.plate-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plate-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plate {
  background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
}
.plate-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.plate-media img { width: 100%; height: 100%; object-fit: cover; }
.plate-top { padding: 26px 26px 6px; }
.plate-top .editorial-tag { margin-bottom: 12px; }
.plate-top h3 { margin: 0 0 4px; font-size: 1.45rem; }
.plate-top > span:not(.editorial-tag) { font-size: 0.98rem; color: var(--muted); display: block; }
.plate-body { padding: 10px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.plate-body > .btn-text, .plate-body > .actions { margin-top: auto; padding-top: 8px; }
/* Con più schede senza foto, la prima è più grande e colorata */
.plate-grid > .plate:first-child:not(:has(.plate-media)) { background: var(--blue); color: #fff; }
.plate-grid > .plate:first-child:not(:has(.plate-media)) h3,
.plate-grid > .plate:first-child:not(:has(.plate-media)) strong { color: #fff; }
.plate-grid > .plate:first-child:not(:has(.plate-media)) p,
.plate-grid > .plate:first-child:not(:has(.plate-media)) .plate-top > span:not(.editorial-tag) { color: rgba(255, 255, 255, 0.8); }
.plate-grid > .plate:first-child:not(:has(.plate-media)) .data-list { background: rgba(255, 255, 255, 0.1); }
.plate-grid > .plate:first-child:not(:has(.plate-media)) .data-list dt { color: rgba(255, 255, 255, 0.65); }
.plate-grid > .plate:first-child:not(:has(.plate-media)) .data-list dd,
.plate-grid > .plate:first-child:not(:has(.plate-media)) .data-list a { color: #fff; }
.plate-grid > .plate:first-child:not(:has(.plate-media)) .btn-text { color: var(--pink); }
.plate-grid > .plate:first-child:not(:has(.plate-media)) .btn-text::after { background-color: var(--pink); }

/* Elenco dati */
.data-list { margin: 0; display: grid; gap: 8px; background: var(--cream); padding: 16px 18px; border-radius: var(--r-sm); }
.data-list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; font-size: 0.95rem; }
.data-list dt { font-weight: 500; color: var(--muted); }
.data-list dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: break-word; }
/* Nelle schede a colonne lo spazio è poco: etichetta sopra, valore sotto, email e orari interi */
.plate .data-list div { grid-template-columns: 1fr; gap: 2px; }

/* Scheda sede con mappa */
.sede-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.sede-card .map-embed { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: saturate(0.85); }
.sede-card .sede-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sede-body .editorial-tag { align-self: flex-start; }
.sede-meta { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.sede-meta li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.sede-meta strong { font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.sede-meta a { font-weight: 600; }

/* Elenco a tre voci: righe piene */
.cols-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cols-3 li {
  /* terza colonna a larghezza fissa: titoli e testi restano allineati da una riga all'altra */
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) 230px; gap: 12px 40px; align-items: center;
  background: #fff; border-radius: var(--r); padding: 30px 34px;
}
.cols-3 li .editorial-tag { grid-column: 1 / -1; justify-self: start; margin: 0 0 -2px; }
.cols-3 h3 { margin: 0; font-size: 1.35rem; }
.cols-3 p { color: var(--text); margin: 0; }
.cols-3 .btn-text { justify-self: end; white-space: nowrap; }

/* Dati sintetici: valori grandi in display */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.spec { border-radius: var(--r); padding: 26px 26px 24px; background: #fff; }
.spec:nth-child(3n+1) { background: var(--blue); color: #fff; }
.spec:nth-child(3n+2) { background: var(--pink); color: var(--blue-ink); }
.spec-label { font-size: 0.92rem; font-weight: 500; opacity: 0.8; margin-bottom: 10px; }
.spec-val { font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.spec:nth-child(3n+1) .spec-label { color: rgba(255, 255, 255, 0.75); }
.spec:nth-child(3n+3) .spec-label { color: var(--muted); }
.spec:nth-child(3n+3) .spec-val { color: var(--ink); }

/* Fascia finale: rosa, titolo enorme */
.band { position: relative; background: var(--pink); color: var(--blue-ink); padding: clamp(64px, 8vw, 112px) 0; }
.band-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 32px 56px; }
.band h2 { color: var(--blue-ink); font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 14px; max-width: 20ch; }
.band p { color: rgba(15, 31, 92, 0.8); font-size: 1.15rem; max-width: 48ch; margin: 0; }
.band .btn-invert { background: var(--blue-ink); color: #fff; }
.band .btn-invert:hover { background: var(--ink); }
.band .btn-ghost-invert { border-color: rgba(15, 31, 92, 0.5); color: var(--blue-ink); }
.band .btn-ghost-invert:hover { background: var(--blue-ink); color: #fff; border-color: var(--blue-ink); }

/* Loghi e schermate al posto di una foto: si vedono interi, su fondo bianco */
.plate-media--logo, .split-media--logo { background: #fff; }
.plate-media--logo img, .split-media--logo img { object-fit: contain; padding: 22px; }
.page-hero--photo img.is-logo { object-fit: contain; background: #fff; padding: 26px; }

/* 7. Testate pagine interne --------------------------------------------- */

.page-hero {
  position: relative; background: var(--blue); color: #fff;
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(44px, 5.5vw, 80px);
}
/* Titolo a sinistra, testo a destra: la fascia è piena su tutta la griglia */
.page-hero .container {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  column-gap: clamp(32px, 6vw, 96px); align-items: end;
}
.page-hero .container > .breadcrumb,
.page-hero .container > .editorial-tag { grid-column: 1 / -1; justify-self: start; }
.breadcrumb { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.breadcrumb a:hover { color: var(--pink); }
.page-hero .editorial-tag { background: rgba(255, 255, 255, 0.12); color: #fff; }
.page-hero .page-title, .page-hero h1:not(.editorial-tag) { color: #fff; margin: 0; font-size: clamp(2.1rem, 4.6vw, 4rem); }
.page-hero p:not(.breadcrumb) { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0; }
.page-hero--photo .container { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.page-hero--photo h1:not(.editorial-tag) { margin-bottom: 16px; }
.page-hero .title-stack .page-title { margin: 0; }
.page-hero--photo img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}

/* 8. Moduli e tabelle ---------------------------------------------------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-card { width: 100%; background: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
label { display: block; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
label .req { color: var(--pink-deep); }
.field-hint { font-size: 0.88rem; color: var(--muted); margin: 0; }

input, select, textarea {
  width: 100%; padding: 15px 18px; border: 2px solid var(--cream-deep); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur);
}
input::placeholder, textarea::placeholder { color: #a3a8ba; }
input:hover, select:hover, textarea:hover { border-color: #ddd4c8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 63, 179, 0.12); }
textarea { resize: vertical; min-height: 140px; }

.field-error { display: none; margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--danger); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(199, 60, 60, 0.12); }
.field.is-invalid .field-error { display: block; }

.form-foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.form-foot p { font-size: 0.88rem; color: var(--muted); margin: 0; max-width: 44ch; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn[hidden] { display: none; }

.form-aside { position: sticky; top: 110px; background: var(--blue-ink); color: rgba(255, 255, 255, 0.8); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.form-aside h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.aside-phones { list-style: none; margin: 20px 0 24px; padding: 0; }
.aside-phones li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.aside-phones a { font-family: var(--display); font-weight: 600; color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.aside-phones a:hover { color: var(--pink); }
.form-aside .btn { width: 100%; }

.form-submit-note { margin-top: 18px; padding: 16px 20px; border-radius: var(--r-sm); background: #e0f3e9; color: #14603f; font-weight: 500; }
.form-submit-note strong { color: inherit; }
.form-submit-note.is-error { background: #fbe4e4; color: #9c2424; }
/* Campo-trappola per i robot: fuori dallo schermo, una persona non lo vede */
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.table-scroll { overflow-x: auto; margin: 24px 0; border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
thead th { background: var(--blue); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 16px 20px; text-align: left; }
thead th:first-child { border-top-left-radius: var(--r); }
thead th:last-child { border-top-right-radius: var(--r); }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--cream-deep); font-size: 1rem; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream); }

/* 404 */
.notfound { padding: clamp(60px, 10vw, 120px) 0; }
.notfound .container { text-align: center; max-width: 720px; }
.notfound .editorial-tag { margin-bottom: 16px; }
.notfound-code { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--pink); line-height: 0.9; letter-spacing: -0.07em; }
.notfound h1 { margin: 12px 0 16px; }
.notfound p { font-size: 1.2rem; margin-bottom: 32px; }
.notfound .actions { justify-content: center; }

/* 9. Footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 0.98rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(36px, 6vw, 88px); }
.footer-brand .brand-logo { width: 118px; height: 80px; background: var(--pink); margin-bottom: 4px; }
.footer-brand .brand-name { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); display: block; margin-top: 16px; line-height: 1; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: 16px; line-height: 1.6; max-width: 40ch; }
.footer-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #fff; font-weight: 500; }
.footer-links a:hover { color: var(--pink); }

.footer-sedi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.footer-sedi li { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); }
.footer-sedi b { color: #fff; font-family: var(--display); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.footer-sedi li > span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.footer-sedi a { font-family: var(--display); font-weight: 600; color: var(--pink); margin-top: 10px; font-size: clamp(0.92rem, 1.15vw, 1.05rem); letter-spacing: -0.02em; white-space: nowrap; }
.footer-sedi a:hover { color: #fff; }
.nowrap { white-space: nowrap; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 10. Animazioni --------------------------------------------------------- */

/* Usata dal menu mobile quando si apre */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 11. Responsive --------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav ul {
    display: none; position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    background: var(--ink); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: var(--r); box-shadow: var(--shadow-lg);
    animation: rise 300ms var(--ease) both;
  }
  .site-nav ul.open { display: flex; }
  .site-nav a { padding: 14px 18px; font-size: 1.1rem; color: #fff; border-radius: var(--r-sm); display: flex; }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .site-nav a[aria-current="page"] { background: var(--pink); color: var(--blue-ink); }

  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
  .tile--eta { grid-row: span 1; }
  .tile--app { grid-column: span 2; }

}

@media (max-width: 1024px) {
  .hero-block { grid-template-columns: 1fr; }
  .hero-media { margin-inline: auto; max-width: 560px; width: 100%; }
  .hero-media .arch { aspect-ratio: 4 / 3.4; }
  .hero-sticker { left: auto; right: -10px; bottom: auto; top: -30px; width: 120px; height: 120px; }
  .sedi-layout { grid-template-columns: 1fr; }
  .sedi-intro { position: static; }
  .bento-head, .steps-head { grid-template-columns: 1fr; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tre schede su due colonne: la terza prende tutta la riga, niente buco */
  .plate-grid:not(.plate-grid--2) > .plate:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

@media (max-width: 767px) {
  /* Tappe a scorrimento col dito: l'indizio dice che ce ne sono altre */
  .steps-scroller {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 300px;
    overflow-x: auto; padding: 4px var(--gutter) 12px;
    margin-inline: calc(-1 * var(--gutter));
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .steps-scroller::-webkit-scrollbar { display: none; }
  .steps-hint { display: block; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > .split-media { order: 0; }
  .page-hero .container, .page-hero--photo .container { grid-template-columns: 1fr; row-gap: 16px; }
  .page-hero--photo .container { row-gap: 28px; }
  .cols-3 li { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .cols-3 .btn-text { justify-self: start; }
  .specs { grid-template-columns: 1fr; }
  .sede-card { grid-template-columns: 1fr; }
  .sede-card .map-embed { min-height: 300px; }
  .footer-sedi { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; align-items: start; }
  .sedi-row { grid-template-columns: 1fr; gap: 6px; }
  .sedi-row-phone { font-size: 1.5rem; }
}

@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { min-height: 210px; grid-column: span 1 !important; grid-row: span 1 !important; }
  .tile--b, .tile--moto, .tile--prof { min-height: 320px; }
  .tile--app { min-height: 220px; }
  .tile--app h3 { font-size: 1.25rem; }
  .tile--app img { width: 44%; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .brand-logo { width: 62px; height: 42px; }
  .plate-grid, .plate-grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-facts li { flex-direction: row; align-items: baseline; gap: 10px; }
  .hero-facts b { font-size: 1.25rem; min-width: 2.4em; }
  .plate-grid:not(.plate-grid--2) > .plate:last-child:nth-child(odd) { grid-column: auto; }
  .sede-meta li { grid-template-columns: 1fr; gap: 2px; }
  .data-list div { grid-template-columns: 1fr; gap: 2px; }
  .hero-sticker { right: 6px; }
  .btn { white-space: normal; text-align: center; }
  .actions .btn { flex: 1 1 100%; }
  .steps-scroller { grid-auto-columns: 84%; }

  /* Tabelle a schede: nessuna colonna tagliata */
  .table-scroll { overflow: visible; background: none; }
  table { min-width: 0; background: none; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody, tbody tr, tbody td { display: block; }
  tbody tr { background: #fff; border-radius: var(--r); padding: 8px 20px; margin-bottom: 12px; }
  tbody tr:hover { background: #fff; }
  tbody td { padding: 12px 0; }
  tbody tr td:last-child { border-bottom: 0; }
  tbody td::before { content: attr(data-label); display: block; font-size: 0.86rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Banner cookie (compare solo se in js/main.js c'e' l'ID di Google Analytics)
   ========================================================================== */
.consenso {
  position: fixed; z-index: 150;
  left: var(--gutter); right: var(--gutter); bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--text);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  font-size: 0.98rem; line-height: 1.5;
}
.consenso[hidden] { display: none; }
.consenso p { margin: 0 0 16px; }
.consenso a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consenso-azioni { display: flex; gap: 12px; }
.consenso-azioni .btn { flex: 1 1 0; }
@media (max-width: 560px) {
  .consenso { left: 16px; right: 16px; bottom: 12px; padding: 18px; }
}
.link-consenso { background: none; border: 0; padding: 0; font: inherit; color: #fff; font-weight: 500; cursor: pointer; }
.link-consenso:hover { color: var(--pink); }
