/* ==========================================================================
   PAGINE DOCUMENTO — informativa privacy e cookie
   Si appoggia ai token di style.css. Un'informativa è un testo che nessuno
   vuole leggere: l'unica cosa che possiamo fare è renderla leggibile davvero
   — misura di riga corta, gerarchia netta, niente muri di legalese.
   ========================================================================== */

/* --- barra superiore ------------------------------------------------------ */
.dhdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dhdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 4.5rem;
  width: 100%;
  padding-inline: var(--gutter);
}
.dhdr__logo { flex-shrink: 0; display: flex; align-items: center; min-height: 2.75rem; }
.dhdr__logo img { width: auto; height: 2.5rem; max-width: none; mix-blend-mode: multiply; }
.dhdr__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg-muted);
  transition: color .3s var(--ease);
}
.dhdr__back:hover { color: var(--red); }

/* --- testata -------------------------------------------------------------- */
.dhero {
  padding: clamp(var(--s-8), 9vw, var(--s-10)) var(--gutter) clamp(var(--s-7), 6vw, var(--s-9));
  border-bottom: 1px solid var(--line);
}
.dhero__in { max-width: 62rem; margin-inline: auto; }
.dhero__occ {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
}
.dhero__t {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: var(--s-5);
}
.dhero__t .hand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--red);
}
.dhero__sub {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
}
.dhero__data {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* --- impianto: indice affiancato al testo -------------------------------- */
.dwrap {
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(var(--s-7), 6vw, var(--s-9)) var(--gutter) var(--s-10);
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
}

.dtoc { position: sticky; top: 6.5rem; }
.dtoc__t {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-3);
}
.dtoc a {
  display: block;
  padding: var(--s-2) 0;
  font-size: var(--t-sm);
  line-height: 1.35;
  color: var(--fg-muted);
  transition: color .3s var(--ease);
}
.dtoc a:hover { color: var(--fg); }
.dtoc a.is-on { color: var(--red); font-weight: 600; }

/* --- corpo del documento -------------------------------------------------- */
.dbody { max-width: 38rem; }
.dbody > section + section { margin-top: clamp(var(--s-7), 5vw, var(--s-8)); }

.dbody h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--s-4);
}
.dbody h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.dbody p { line-height: 1.7; }
.dbody p + p { margin-top: var(--s-4); }
.dbody a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.dbody a:hover { color: var(--red); }
.dbody strong { font-weight: 700; }

.dbody ul.dl { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.dbody ul.dl li {
  position: relative;
  padding-left: var(--s-5);
  line-height: 1.6;
}
.dbody ul.dl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: .625rem;
  height: 1px;
  background: var(--line-strong);
}

/* scheda dei dati: filetti, mai box pieni */
.dcard {
  margin-top: var(--s-5);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.dcard__r {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.dcard__r:last-child { border-bottom: 0; }
.dcard__k {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: .18em;
}
.dcard__v { line-height: 1.55; }

/* rilievo: un filetto rosso a sinistra, niente fondo pieno */
.dnota {
  margin-top: var(--s-5);
  padding: var(--s-4) 0 var(--s-4) var(--s-5);
  border-left: 3px solid var(--red);
}
.dnota p { font-size: var(--t-sm); line-height: 1.6; color: var(--fg-muted); }
.dnota strong { color: var(--fg); }

/* tabella dei cookie: righe, non griglia di celle */
.dtab { margin-top: var(--s-5); border-top: 2px solid var(--ink); }
.dtab__r {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.dtab__n { font-weight: 600; }
.dtab__d { font-size: var(--t-sm); color: var(--fg-muted); margin-top: var(--s-1); }
.dtab__t { font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); text-align: right; }

.dbody .btn { margin-top: var(--s-5); }

/* --- piè di pagina -------------------------------------------------------- */
.dftr {
  padding: var(--s-7) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.dftr__in {
  max-width: 62rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--t-xs);
  color: var(--fg-muted);
}
.dftr__in a { transition: color .3s var(--ease); }
.dftr__in a:hover { color: var(--red); }
.dftr__l { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
/* voci di navigazione, non testo corrente: area di tocco piena */
.dftr__l a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.dftr__credit a { color: inherit; }

/* --- adattamenti ---------------------------------------------------------- */
@media (max-width: 60rem) {
  .dwrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .dbody { max-width: none; }

  /* l'indice, appiattito, diventa una fascia di collegamenti scorrevole */
  .dtoc {
    position: static;
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
  }
  .dtoc__nav {
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dtoc__nav::-webkit-scrollbar { display: none; }
  /* nella fascia orizzontale i collegamenti sono l'unico bersaglio:
     devono restare comodi da colpire col pollice */
  .dtoc a {
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
  }

  .dcard__r { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .dtab__r { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .dtab__t { text-align: left; }
}

@media (max-width: 30rem) {
  .dhdr__logo img { height: 2.125rem; }
}

@media print {
  .dhdr, .dtoc, .dftr, .dhdr__back { display: none; }
  .dwrap { grid-template-columns: minmax(0, 1fr); max-width: none; padding: 0; }
  .dbody { max-width: none; }
  body { background: #fff; }
}

/* ==========================================================================
   PAGINA NON TROVATA
   Nessun "404" gigante: sarebbe un numero messo lì per riempire, e chi ci
   arriva non ha bisogno del codice di stato — ha bisogno di sapere dove
   andare. Le vie d'uscita sono righe da leggere, come l'indice del catalogo.
   ========================================================================== */
.nf {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 4.5rem - 9rem);
  min-height: calc(100svh - 4.5rem - 9rem);
  padding: clamp(var(--s-6), 5vw, var(--s-8)) var(--gutter);
}
.nf__in { width: 100%; max-width: 46rem; margin-inline: auto; }

.nf__t {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.03;
  margin-bottom: var(--s-5);
}
.nf__t .hand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--red);
}
.nf__p { max-width: 34rem; line-height: 1.65; color: var(--fg-muted); }
.nf__p + .nf__p { margin-top: var(--s-4); }
.nf__say { margin-bottom: var(--s-6); }

.nf__vie { border-top: 2px solid var(--ink); }
.nf__via {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.nf__via:hover { background: var(--paper-2); padding-left: var(--s-3); }
.nf__viaN {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.015em;
}
.nf__viaD {
  grid-column: 1;
  font-size: var(--t-sm);
  color: var(--fg-muted);
  line-height: 1.45;
}
.nf__viaF {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--line-strong);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.nf__via:hover .nf__viaF { color: var(--red); transform: translateX(.25rem); }

.nf__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
}
.nf__tel { font-size: var(--t-sm); color: var(--fg-muted); }
/* per il pubblico di questo sito il telefono è la via più probabile:
   deve essere un bersaglio pieno, non una parola sottolineata */
.nf__tel a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nf__tel a:hover { color: var(--red); }

@media (max-width: 60rem) {
  .nf { min-height: auto; }
  .nf__pie { flex-direction: column; align-items: stretch; }
  .nf__pie .btn { justify-content: center; }
  .nf__tel { text-align: center; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .nf { min-height: auto; padding-block: var(--s-6); }
}
