/* Token di colore: Inchiostro, Miele e Cera sono i colori ufficiali del marchio (requisiti/design.md DES-01).
   Contrasti verificati WCAG AA: testo/sfondo 15.9:1, testo secondario 7.6:1, link 6.7:1 (chiaro);
   testo 15.9:1, secondario 8.7:1, link 8.2:1 (scuro). Il miele sul chiaro (1.9:1) è solo decorativo, mai testo. */
:root {
  color-scheme: light dark;
  --bg: #F5F2EB;
  --surface: #EDE8DD;
  --fg: #16181D;
  --muted: #4A4D55;
  --accent: #7A4A00;
  --honey: #E9A23B;
  --ink: #16181D;
  --line: #D6D0C2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181D;
    --surface: #22252C;
    --fg: #F5F2EB;
    --muted: #B8B5AE;
    --accent: #E9A23B;
    --line: #353943;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 2px; }

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.logo { display: block; height: 2.25rem; width: auto; }
.lingua { font-size: 0.9375rem; font-weight: 600; }
.lingua a { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; display: inline-block; }
.lingua a:hover { border-color: var(--accent); }

.apertura { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.15; margin: 0 0 1.25rem; letter-spacing: -0.02em; }
.apertura p { font-size: 1.1875rem; color: var(--muted); margin: 0; max-width: 38rem; }

section { padding: 3rem 0 0.5rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.25rem; }
h2::before { content: ""; display: block; width: 3.5rem; height: 4px; margin-bottom: 0.9rem; background: var(--honey); }
section p { margin: 0 0 1rem; max-width: 38rem; }
ul.punti, ol.punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; max-width: 38rem; }
.punti li { background: var(--surface); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.punti span { color: var(--muted); }
ol.punti { counter-reset: n; }
ol.punti li { position: relative; padding-left: 3.5rem; }
ol.punti li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 1rem; top: 1rem; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; background: var(--honey); color: var(--ink);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.75rem; text-align: center;
}
.contatto { font-size: 1.25rem; font-weight: 600; }

footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; font-size: 0.9375rem; color: var(--muted); }
footer p { margin: 0 0 0.35rem; }
.errore { padding-top: 4rem; padding-bottom: 2rem; }
.errore p { margin: 0 0 1rem; }

/* Impaginazione da computer (mobile-first: sotto i 64rem resta quella da telefono) */
@media (min-width: 64rem) {
  .wrap { max-width: 72rem; padding-left: 2rem; padding-right: 2rem; }
  .apertura { padding: 5.5rem 0; }
  h1 { font-size: clamp(2.9rem, 4.2vw, 3.75rem); max-width: 22ch; margin-bottom: 1.75rem; }
  .apertura p { font-size: 1.3125rem; max-width: 44rem; }
  section { display: grid; grid-template-columns: 16rem 1fr; column-gap: 3rem; align-items: start; padding-top: 5rem; }
  section h2 { grid-column: 1; grid-row: 1 / span 9; }
  section > :not(h2) { grid-column: 2; }
  ul.punti, ol.punti { max-width: none; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .punti li { padding: 1.25rem 1.5rem; }
  ol.punti li { padding-left: 4rem; }
  ol.punti li::before { left: 1.25rem; top: 1.25rem; }
  footer { margin-top: 6rem; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 2rem; }
  footer p { margin: 0; }
}
