/* ═══════════════════════════════════════════════════════════
   Sami Auto — sami-auto.com
   Direzione: la foto del salone sotto il Grappa fa da apertura.
   Carta calda, grigio profondo, un solo accento verde petrolio.
   ═══════════════════════════════════════════════════════════ */

/* ── Font self-hosted (nessuna chiamata a Google: GDPR) ───── */
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-latin-ext.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Token ─────────────────────────────────────────────────── */
:root {
  --ink:      #1A1D1C;   /* grigio profondo, non nero pieno */
  --ink-2:    #2A2F2D;
  --paper:    #F6F3EE;   /* carta calda */
  --paper-2:  #EAE5DD;   /* sabbia, per le sezioni alternate */
  --white:    #FFFFFF;
  --petrol:   #0F5750;   /* unico accento */
  --petrol-2: #0A423C;
  --petrol-lt:#E4EFEC;
  --muted:    #5E645F;
  --muted-lt: #B6BDB8;
  --rule:     rgba(26, 29, 28, .12);
  --rule-lt:  rgba(246, 243, 238, .18);

  --disp: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --sec: clamp(3.5rem, 9vw, 7rem);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* L'attributo hidden deve sempre vincere.
   Il browser applica display:none agli elementi con hidden, ma qualsiasi
   regola display: scritta qui dentro (per esempio .form { display: block })
   ha la meglio e l'elemento resta visibile. È già successo: dopo l'invio
   il modulo non spariva e restava sopra al messaggio di conferma.
   Con !important il problema non si ripresenta. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol); color: var(--white);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}
/* su fondo scuro il verde non si vede: serve un anello chiaro */
.hero :focus-visible, .bar :focus-visible,
.cta :focus-visible, .foot :focus-visible, .dock :focus-visible {
  outline-color: var(--white);
}

/* ── Tipografia ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--disp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 1.25rem;
}
.h2 {
  font-family: var(--disp);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.028em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.h2--light { color: var(--paper); }

/* ── Wordmark ──────────────────────────────────────────────── */
.wordmark {
  font-family: var(--disp);
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: -.01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.wordmark__a { color: var(--ink); }
.wordmark__b { color: var(--petrol); margin-left: .28em; }
/* sopra la foto e sui fondi scuri il marchio si schiarisce */
.wordmark--light .wordmark__a { color: var(--paper); }
.wordmark--light .wordmark__b { color: var(--white); opacity: .62; }

/* ── Bottoni ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--disp);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .01em;
  padding: .8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease,
              color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--go    { background: var(--petrol); color: var(--white); }
.btn--go:hover { background: var(--petrol-2); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--white); }

.btn--edge  { color: var(--ink); border-color: var(--rule); }
.btn--edge:hover { border-color: var(--ink); }

.btn--ghost { color: var(--paper); border-color: var(--rule-lt); }
.btn--ghost:hover { background: rgba(246, 243, 238, .12); border-color: rgba(246, 243, 238, .4); }

.btn--lg    { padding: 1rem 1.75rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* ── Barra superiore ───────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar__in {
  max-width: 1160px; margin-inline: auto;
  padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.bar__nav { display: none; margin-left: auto; gap: 1.75rem; }
.bar__nav a {
  font-size: .9rem; color: var(--muted);
  text-decoration: none; transition: color .16s ease;
}
.bar__nav a:hover { color: var(--ink); }
.bar__act { margin-left: auto; display: flex; gap: .6rem; }
.bar__act .btn--edge { display: none; }

@media (min-width: 900px) {
  .bar__nav { display: flex; }
  .bar__act { margin-left: 0; }
  .bar__act .btn--edge { display: inline-flex; }
}

/* barra scura: usata sulla pagina di valutazione, che non ha foto */
.bar--dark { background: var(--ink); border-bottom-color: var(--rule-lt); }
.bar--dark .bar__nav a { color: var(--muted-lt); }
.bar--dark .bar__nav a:hover { color: var(--paper); }

/* ── Hero: la foto è l'apertura ────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(30rem, 88svh, 46rem);
  display: flex; align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

/* il riquadro della foto — vedi commento in index.html per sostituirla */
.shot { position: absolute; inset: 0; background: var(--ink-2); }
/* la foto sta sopra il segnaposto e lo copre: se qualcuno aggiunge
   salone.jpg senza cancellare il segnaposto, si vede comunque bene */
.shot__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
/* il segnaposto sta in alto, non al centro: al centro finirebbe
   sopra il titolo e farebbe sembrare la pagina rotta */
.shot__ph {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  margin: 0; padding: clamp(3rem, 14vh, 7rem) 2rem 2rem;
  text-align: center; text-wrap: balance;
  font-family: var(--disp);
  font-size: clamp(.85rem, 2.2vw, 1.05rem); font-weight: 700;
  letter-spacing: .04em;
  color: rgba(246, 243, 238, .5);
  background:
    repeating-linear-gradient(45deg,
      rgba(246, 243, 238, .045) 0 12px,
      transparent 12px 24px);
}
/* velo scuro in basso: senza, il testo bianco non si legge su una foto chiara */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 15, 14, .92) 0%,
    rgba(12, 15, 14, .72) 28%,
    rgba(12, 15, 14, .25) 58%,
    rgba(12, 15, 14, .35) 100%);
  pointer-events: none;
}

.hero__in {
  position: relative; z-index: 1;
  width: 100%; max-width: 1160px; margin-inline: auto;
  padding: clamp(3rem, 10vw, 5rem) var(--pad) clamp(2.5rem, 7vw, 4rem);
}
.hero__place {
  font-family: var(--disp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(246, 243, 238, .8);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .6rem;
}
.hero__place::before {
  content: ''; width: 2rem; height: 2px;
  background: var(--paper); opacity: .55; flex: none;
}

.hero__h1 {
  font-family: var(--disp);
  font-size: clamp(2.9rem, 12vw, 5.6rem);
  font-weight: 900; line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__h1 .l1, .hero__h1 .l2 { display: block; }
.hero__h1 .l2 { color: var(--paper); opacity: .62; }

/* DOPO la regola base: a parità di specificità vince l'ultima */
@media (min-width: 1000px) {
  .hero__h1 { font-size: clamp(3.6rem, 6.2vw, 5.6rem); }
}

.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.5;
  color: rgba(246, 243, 238, .88);
  max-width: 30ch;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* su telefono i bottoni prendono tutta la riga: bersagli più grandi */
@media (max-width: 519px) {
  .hero__cta .btn { width: 100%; }
}

/* ── Come funziona ─────────────────────────────────────────── */
.how { padding: var(--sec) 0; background: var(--paper); }

/* I passaggi restano tre, ma il marcatore non è 01/02/03: dire
   "primo, secondo, terzo" non serve a nessuno. Dice invece CHI fa
   quel passaggio — e siccome due su tre sono NOI, l'elenco stesso
   dimostra il "zero pensieri" invece di prometterlo. */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.step {
  display: flex; gap: clamp(1rem, 4vw, 2.5rem);
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: flex-start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__who {
  font-family: var(--disp);
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.05;
  flex: none;
  min-width: 3.4ch;
  letter-spacing: -.03em;
}
.step__who--tu  { color: var(--ink); }
.step__who--noi { color: var(--petrol); }
.step h3 {
  font-family: var(--disp);
  font-size: 1.28rem; font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 .4rem;
}
.step p { margin: 0; color: var(--muted); max-width: 52ch; }

.steps__note {
  font-family: var(--disp);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 800; letter-spacing: -.015em;
  margin: 1.75rem 0 0;
}
.steps__note b { color: var(--petrol); font-weight: 800; }

/* ── Vieni a trovarci + auto in vendita ────────────────────
   Le due cose stanno insieme perché parlano dello stesso posto
   fisico: l'indirizzo e quello che ci trovi dentro. */
.visit {
  padding: var(--sec) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.visit__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) {
  .visit__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.visit__b h2 { margin-bottom: 1rem; }
.visit__addr {
  font-style: normal; line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.visit__addr strong { color: var(--ink); }

.hours { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 22rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span { color: var(--muted); }

/* fuori orario si può comunque fissare un appuntamento telefonando */
.hours:has(+ .hours__note),
.info__list:has(+ .hours__note) { margin-bottom: 0; }
.hours__note {
  max-width: 22rem;
  margin: .6rem 0 1.5rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}
.hours__note a { color: var(--ink); font-weight: 600; text-decoration-color: var(--petrol); }

/* la vendita è il secondo mestiere: presente, ma non ruba la scena
   al modulo di valutazione, che è quello che porta i contatti */
.sale {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2rem);
  align-self: start;
}
.sale h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .75rem; }
.sale p { color: var(--muted); margin: 0 0 1.5rem; }

/* ── Fascia di chiusura ────────────────────────────────────── */
.cta {
  padding: var(--sec) 0;
  background: var(--petrol);
  color: var(--paper);
  text-align: center;
}
.cta .h2 { margin-inline: auto; max-width: 18ch; }
.cta__p {
  color: rgba(246, 243, 238, .8);
  max-width: 44ch; margin: 0 auto 2.25rem;
}
.cta__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (max-width: 519px) { .cta__row .btn { width: 100%; } }

/* ── Pagina di valutazione ─────────────────────────────────── */
.val {
  padding: clamp(2.5rem, 7vw, 4rem) 0 var(--sec);
  background: var(--paper);
  scroll-margin-top: 4rem;
}
.val__h1 {
  font-family: var(--disp);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 900; line-height: .96;
  letter-spacing: -.038em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.val__lead { color: var(--muted); max-width: 46ch; margin: 0 0 2.25rem; }

/* i tre punti di rassicurazione sotto il titolo */
.pts { list-style: none; display: grid; gap: .6rem; margin: 0 0 2.5rem; padding: 0; }
.pts li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .95rem; color: var(--muted);
}
.pts li::before {
  content: '';
  flex: none; width: 1.05rem; height: 1.05rem; margin-top: .28rem;
  border-radius: 50%;
  background: var(--petrol-lt);
  /* spunta disegnata, nessuna icona esterna da caricare */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%230F5750' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6.4l2 2L9 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}

/* ── Modulo ────────────────────────────────────────────────── */
.form {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  /* cambiando passaggio il modulo viene riportato in cima: senza questo
     la barra fissa in alto coprirebbe l'indicatore dei due passaggi */
  scroll-margin-top: 5rem;
}

/* Indicatore dei due passaggi. Dice anche che cosa viene dopo:
   sapere che restano solo i contatti aiuta ad andare avanti. */
.prog {
  display: flex; gap: .75rem;
  list-style: none; margin: 0 0 1.9rem; padding: 0;
}
.prog__i {
  flex: 1;
  font-size: .78rem; font-weight: 500;
  color: var(--muted);
  padding-top: .55rem;
  border-top: 3px solid var(--rule);
  transition: color .2s ease, border-color .2s ease;
}
.prog__i.is-on {
  color: var(--petrol); font-weight: 600;
  border-top-color: var(--petrol);
}

.btn__back {
  display: block; width: 100%;
  margin: 1.25rem 0 0; padding: .5rem;
  background: none; border: 0;
  font-family: var(--body); font-size: .88rem;
  color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.btn__back:hover { color: var(--ink); }

.fs { border: 0; padding: 0; margin: 0 0 2rem; }
.fs:last-of-type { margin-bottom: 1rem; }
.fs__lg {
  font-family: var(--disp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol);
  padding: 0 0 .9rem;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  margin-bottom: 1.4rem;
}

.row { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 680px) {
  .row--2 { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: repeat(3, 1fr); }
}

.f { display: block; margin-bottom: 1.1rem; }
.f__l {
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: .45rem;
}
.f__l b { color: var(--petrol); font-weight: 700; }

.f__i {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: .82rem .9rem;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
  appearance: none;
}
.f__i::placeholder { color: rgba(94, 100, 95, .6); }
.f__i:hover { border-color: rgba(26, 29, 28, .28); }
.f__i:focus {
  border-color: var(--petrol);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 87, 80, .12);
  outline: none;
}
.f__i.is-bad { border-color: #C0442B; background: #FDF3F1; }
.f__t { resize: vertical; min-height: 5.5rem; }

/* freccia disegnata per le select */
select.f__i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230F5750' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cons {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .88rem; line-height: 1.5;
  color: var(--muted);
  margin: 1.5rem 0;
}
.cons input {
  flex: none; width: 1.25rem; height: 1.25rem;
  margin-top: .12rem;
  accent-color: var(--petrol);
  cursor: pointer;
}
.cons a { color: var(--petrol); }
.cons b { color: var(--petrol); }

.form__note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin: 1rem 0 0;
}
.form__err {
  background: #FDF3F1;
  border: 1px solid rgba(192, 68, 43, .45);
  border-radius: 4px;
  color: #8E2E1B;
  padding: .85rem 1rem;
  font-size: .9rem;
  margin: 1.25rem 0 0;
}

/* ── Conferma ──────────────────────────────────────────────── */
.done { text-align: center; padding: 1rem 0; }
.done__p { color: var(--muted); max-width: 40ch; margin: 0 auto 2rem; }
.done__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ── Contatti ──────────────────────────────────────────────── */
.info { padding: var(--sec) 0; background: var(--paper); }
.info__grid { display: grid; gap: 3rem; }
.info__about p { color: var(--muted); max-width: 48ch; }

.info__card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  align-self: start;
}
.info__h {
  font-family: var(--disp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol);
  margin: 1.75rem 0 .7rem;
}
.info__h:first-child { margin-top: 0; }

.info__addr { font-style: normal; line-height: 1.65; }
.info__list { list-style: none; margin: 0; padding: 0; }
.info__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
}
.info__list li:last-child { border-bottom: 0; }
.info__list span { color: var(--muted); font-size: .9rem; }
.info__list a { font-weight: 600; text-decoration-color: var(--petrol); }
.info__map { margin: 0; }
.info__map a { font-weight: 600; text-decoration-color: var(--petrol); }

@media (min-width: 860px) {
  .info__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* blocco contatti compatto in fondo alla pagina di valutazione:
   chi arriva da un annuncio deve vedere che l'attività esiste davvero */
.proof {
  padding: var(--sec) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.proof__grid { display: grid; gap: 2rem; }
.proof__b h3 {
  font-family: var(--disp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 .6rem;
}
.proof__b p, .proof__b address {
  margin: 0; font-style: normal;
  color: var(--muted); line-height: 1.65;
}
.proof__b a { color: var(--ink); font-weight: 600; text-decoration-color: var(--petrol); }

@media (min-width: 720px) {
  .proof__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ── Footer ────────────────────────────────────────────────── */
.foot {
  background: var(--ink);
  color: var(--muted-lt);
  padding: 2.5rem 0;
}
.foot__in { display: grid; gap: 1.5rem; }
.wordmark--foot { font-size: 1rem; }
.foot__vat { font-size: .8rem; margin: .6rem 0 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__nav a { font-size: .85rem; text-decoration: none; }
.foot__nav a:hover { color: var(--paper); }

@media (min-width: 760px) {
  .foot__in { grid-template-columns: 1fr auto; align-items: center; }
  .foot__nav { justify-content: flex-end; }
}

/* ── Dock mobile ───────────────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(26, 29, 28, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule-lt);
}
.dock__b {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp);
  font-size: .88rem; font-weight: 700;
  padding: .8rem .5rem;
  border-radius: 4px;
  text-decoration: none;
}
.dock__b--go   { background: var(--petrol); color: var(--white); flex: 1.6; }
.dock__b--line { color: var(--paper); border: 1.5px solid var(--rule-lt); }

body { padding-bottom: 4.75rem; }

/* la pagina di valutazione non ha il dock: il modulo è già lì,
   e un bottone fisso in fondo coprirebbe quello di invio */
body.no-dock { padding-bottom: 0; }

@media (min-width: 900px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* ── Pagine di testo (privacy) ─────────────────────────────── */
.doc { padding: clamp(2.5rem, 7vw, 5rem) 0 var(--sec); }
.doc__h1 {
  font-family: var(--disp);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -.035em;
  margin: 0 0 1rem;
}
.doc__meta {
  color: var(--muted); font-size: .9rem;
  padding-bottom: 2rem; margin: 0 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.doc h2 {
  font-family: var(--disp);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.01em;
  margin: 2.5rem 0 .75rem;
  scroll-margin-top: 5rem;
}
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-color: var(--petrol); text-underline-offset: 2px; }
.doc__flag {
  background: var(--petrol-lt);
  border-left: 3px solid var(--petrol);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
}
.doc__back { margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
