/* ============================================================================
   Gaia Food — Sito · Design System (vanilla, no build)
   Token + atomi riusabili dalle sezioni. Stile editoriale caldo "rivista
   gastronomica". Perno = bollino "Verificato sul campo". Niente prezzi nell'UI.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,900;1,9..144,400;1,9..144,600;1,9..144,900&family=Inter:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------- TOKENS --- */
:root {
  /* superfici / carta */
  --carta:        #F4F1EB;
  --carta-scura:  #EDE6DA;
  --quasi-bianco: #FBF9F5;
  --canvas:       #E7DECF;
  --bianco:       #ffffff;

  /* inchiostro / testo */
  --ink:        #1F1812;
  --ink-soft:   #564B41;
  --muted:      #75695B;
  --muted-2:    #8A7D6C;
  --faint:      #A89A87;

  /* verde */
  --verde:      #16A34A;
  --verde-deep: #15803D;
  --verde-pale: #E7F5EC;
  --verde-chiaro:#5fd089;

  /* celeste */
  --celeste:      #0EA5E9;
  --celeste-deep: #0C7FB0;
  --celeste-pale: #E2F2F9;

  /* terra */
  --terra:      #C2A07A;
  --terra-deep: #8C6838;
  --terra-pale: #F3E9D9;

  /* bordi */
  --bd:     #ECE4D7;
  --bd-2:   #E5DCCF;
  --bd-3:   #E0D7C8;

  /* banda scura "verde-bosco" */
  --bosco:  linear-gradient(165deg, #1d3b2b 0%, #102619 100%);
  /* gradiente azione */
  --grad-azione: linear-gradient(135deg, #16A34A, #0EA5E9);

  /* bollino verifica */
  --vb-valid-fg:   #15803D; --vb-valid-bg:   #E7F5EC; --vb-valid-ic:   #16A34A;
  --vb-expiring-fg:#8C6838; --vb-expiring-bg:#F3E9D9; --vb-expiring-ic:#B07D34;
  --vb-suspended-fg:#6F6456;--vb-suspended-bg:#ECE6DB;--vb-suspended-ic:#8A7D6C;

  /* raggi */
  --r-pill: 100px;
  --r-card: 22px;
  --r-card-lg: 28px;
  --r-btn: 14px;

  /* ombre */
  --sh-card:  0 1px 2px rgba(31,24,18,.05), 0 14px 32px -20px rgba(31,24,18,.30);
  --sh-card-2:0 18px 40px -22px rgba(31,24,18,.40);
  --sh-soft:  0 10px 22px -16px rgba(31,24,18,.28);
  --sh-btn:   0 8px 20px -10px rgba(31,24,18,.6);

  /* font */
  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* layout */
  --wrap-max: 1180px;
  --wrap-pad: 22px;
}

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

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

body {
  margin: 0;
  background: var(--carta);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: normal;
}

img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

a { color: inherit; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: #cdbfa6; border-radius: 11px; }

/* numeri tabellari dove servono */
.tnum, .km, .stat-num { font-variant-numeric: tabular-nums; }

/* focus visibile accessibile ovunque */
:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(22,163,74,.18); }

/* ------------------------------------------------------------ TIPOGRAFIA --- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}
h1 { font-size: clamp(44px, 6vw, 78px); line-height: .94; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.1; }
em { font-style: italic; }

p { margin: 0; }

.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* occhiello / eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow--muted { color: var(--muted-2); }
.eyebrow--terra { color: var(--terra); }      /* terra solo su label grandi */
.eyebrow--light { color: rgba(255,255,255,.85); }

/* enfasi serif corsiva colorata, ricorrente nei titoli */
.hl  { font-style: italic; color: var(--verde); }
.hl-celeste { font-style: italic; color: var(--celeste-deep); }
.hl-light { font-style: italic; color: var(--verde-chiaro); }

/* --------------------------------------------------------------- LAYOUT --- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

/* spaziatura verticale standard delle sezioni */
.section { padding-top: 92px; padding-bottom: 92px; }
.section--tight { padding-top: 60px; padding-bottom: 72px; }
.section--carta { background: var(--carta); }
.section--bianco { background: var(--quasi-bianco); border-top: 1px solid var(--bd-2); }
.section--bordi { border-top: 1px solid var(--bd-2); border-bottom: 1px solid var(--bd-2); }
.section--bosco { background: var(--bosco); }

/* intestazione centrata di sezione */
.sec-head { text-align: center; max-width: 34em; margin: 0 auto 48px; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 14px; }

/* griglie generiche usabili dalle sezioni */
.grid { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ----------------------------------------------------------------- NAV ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,241,235,.82);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--bd-2);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--bd-3);
  background: var(--bianco);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* wordmark = mark.png + GAIA (ink) FOOD (verde) */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__word {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.brand__word .food { color: var(--verde); }
/* su scuro */
.brand--light .brand__word { color: #fff; }
.brand--light .brand__word .food { color: #22C55E; }

/* ------------------------------------------------------------- BOTTONI ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  border-radius: var(--r-btn);
  padding: 14px 22px;
  min-height: 44px;
  text-decoration: none;
  transition: background .15s ease, filter .15s ease, transform .15s ease, box-shadow .15s ease;
  color: var(--bianco);
  background: var(--ink);
  box-shadow: var(--sh-btn);
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }

/* gradiente azione */
.btn-grad {
  background: var(--grad-azione);
  box-shadow: 0 12px 26px -12px rgba(14,165,233,.5);
}
.btn-grad:hover { filter: brightness(1.05); background: var(--grad-azione); }

/* verde pieno */
.btn-verde { background: var(--verde); }
.btn-verde:hover { background: var(--verde-deep); }

/* chiaro su scuro */
.btn-bianco { background: var(--bianco); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.btn-bianco:hover { background: #f3efe7; }

/* terra (sezione produttori) */
.btn-terra { background: var(--terra-deep); }
.btn-terra:hover { background: #7a5a2f; }

/* fantasma / outline */
.btn-ghost {
  background: var(--bianco);
  color: var(--ink);
  border: 1px solid var(--bd-3);
  box-shadow: none;
}
.btn-ghost:hover { background: #f3efe7; }

/* solo testo (es. "Accedi") */
.btn-text {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 11px 8px;
}
.btn-text:hover { background: transparent; color: #000; }

/* link freccia inline */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--verde-deep);
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
}
.btn-link:hover { color: var(--verde); }
.btn-link svg, .btn-link .ic { transition: transform .15s ease; }
.btn-link:hover svg, .btn-link:hover .ic { transform: translateX(3px); }

.btn-sm { padding: 11px 18px; font-size: 14px; min-height: 44px; }

/* sottolineato discreto (es. "Prova con Villetta Barrea") */
.link-underline {
  background: none; border: none; cursor: pointer;
  color: var(--verde-deep);
  font-family: var(--ff-ui);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.link-underline:hover { color: var(--verde); }

/* --------------------------------------------------------------- CHIP ------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bd);
  background: var(--bianco);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  padding: 9px 17px;
  min-height: 40px;
  font-family: var(--ff-ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--bd-3); background: #faf7f1; }
.chip.active, .chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bianco);
  border-color: var(--ink);
}

/* --------------------------------------------------------------- PILL ------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  line-height: 1;
}
.pill--verde {
  background: var(--verde-pale);
  border: 1px solid #c7e7d2;
  color: var(--verde-deep);
}
.pill--soft {
  background: var(--carta-scura);
  color: var(--ink-soft);
  padding: 9px 15px;
}
.pill--onphoto {
  background: rgba(255,255,255,.9);
  color: var(--verde-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
}
.pill--onphoto .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }

/* -------------------------------------------------------- VERIFY BADGE ----- */
/* Il perno del prodotto. 3 stati. icona + testo + data. */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 12px 6px 8px;
  border: 1px solid transparent;
}
.verify-badge .vb-ic { width: 16px; height: 16px; flex: none; }
.verify-badge .vb-txt { letter-spacing: .005em; }

/* compatto (dentro card / su foto) */
.verify-badge--compact { font-size: 11.5px; padding: 5px 10px 5px 7px; }
.verify-badge--compact .vb-ic { width: 14px; height: 14px; }

/* stati */
.verify-badge--valid {
  color: var(--vb-valid-fg);
  background: var(--vb-valid-bg);
  border-color: rgba(21,128,61,.16);
}
.verify-badge--valid .vb-ic { color: var(--vb-valid-ic); }

.verify-badge--expiring {
  color: var(--vb-expiring-fg);
  background: var(--vb-expiring-bg);
  border-color: rgba(140,104,56,.22);
}
.verify-badge--expiring .vb-ic { color: var(--vb-expiring-ic); }

.verify-badge--suspended {
  color: var(--vb-suspended-fg);
  background: var(--vb-suspended-bg);
  border-color: rgba(111,100,86,.22);
}
.verify-badge--suspended .vb-ic { color: var(--vb-suspended-ic); }

/* sopra foto = vetro chiaro (mantiene il colore testo dello stato) */
.verify-badge--onphoto {
  background: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------- PHOTO ---- */
/* trattamento foto: immagine + grana + scrim verso #1F1812 + label.
   uso: <figure class="photo"><img ...><span class="photo__label">…</span></figure>
   modificatori: .photo--scrim (scrim in basso), .photo--round (cerchio) */
.photo {
  position: relative;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
  background: var(--canvas);
  isolation: isolate;
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* grana leggera */
.photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(31,24,18,.16) 1px, transparent 1.4px);
  background-size: 4px 4px;
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* scrim verso l'inchiostro (~70% in basso) per leggibilità label */
.photo--scrim::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(31,24,18,0) 38%, rgba(31,24,18,.34) 72%, rgba(31,24,18,.72));
  pointer-events: none;
}
.photo__label {
  position: absolute;
  left: 22px; bottom: 20px; right: 22px;
  z-index: 3;
}
.photo__label .ph-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.photo__label .ph-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.9);
  margin-top: 4px;
}
.photo__label--sm { left: 16px; bottom: 14px; right: 14px; }
.photo__label--sm .ph-title { font-size: 20px; }
.photo__label--sm .ph-sub { font-size: 12px; margin-top: 3px; color: rgba(255,255,255,.88); }
.photo--round { border-radius: 50%; }

/* spunta verde "verificato" su foto (cerchi del come-funziona / nodi) */
.photo__check {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 4;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  color: var(--verde);
}

/* ----------------------------------------------------- PRODUCER CARD ------- */
/* foto 74px + nome Fraunces + luogo·km terra + verify-badge + chevron */
.pcard {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bianco);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 11px;
  box-shadow: var(--sh-soft);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.pcard:hover {
  box-shadow: var(--sh-card-2);
  transform: translateY(-2px);
  border-color: var(--bd-3);
}
.pcard__photo {
  position: relative;
  width: 74px; height: 74px;
  flex: none;
  border-radius: 15px;
  overflow: hidden;
}
.pcard__body { flex: 1; min-width: 0; }
.pcard__name {
  font-family: var(--ff-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.01em;
}
.pcard__meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.pcard__meta .km { color: var(--terra-deep); font-weight: 700; }
.pcard__badge { margin-top: 9px; }
.pcard__chev {
  flex: none;
  align-self: center;
  padding-right: 3px;
  color: #c3b6a3;
  display: flex; align-items: center;
}
.pcard[hidden] { display: none; }

/* ---------------------------------------------------------------- STAT ----- */
.stat { text-align: center; }
.stat__num {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num--verde { color: var(--verde); }
.stat__label { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.stat-sep { width: 1px; height: 38px; background: var(--bd-3); }

/* ---------------------------------------------------- CARD GENERICA -------- */
.card {
  background: var(--bianco);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--sh-card);
}
.card--flat { box-shadow: none; }
.card-glass {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px;
}

/* lista check (su scuro) */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  display: flex; align-items: center; gap: 13px;
  list-style: none;
  color: rgba(255,255,255,.92);
  font-size: 15.5px;
}
.checklist { margin: 0; padding: 0; }
.checklist .ck { color: var(--verde-chiaro); flex: none; }

/* ---------------------------------------------------------------- MODAL ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(31,24,18,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__panel {
  width: 430px;
  max-width: 100%;
  background: var(--quasi-bianco);
  border-radius: 26px;
  padding: 34px 32px 28px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--carta-scura);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal__close:hover { background: var(--bd-3); }
.modal__brand { display: flex; justify-content: center; margin-bottom: 6px; }
.modal__brand .brand__mark { width: 54px; height: 54px; }
.modal h2 { text-align: center; font-size: 24px; letter-spacing: -.01em; margin-top: 14px; }
.modal__sub { text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 7px 0 22px; }
.modal__methods { display: flex; flex-direction: column; gap: 10px; }
.method {
  width: 100%; height: 54px;
  border: 1px solid var(--bd-3);
  border-radius: 15px;
  background: var(--bianco);
  display: flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--ff-ui);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}
.method:hover { background: #f3efe7; }
.method__g {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #d8cdb8;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.method .ic { color: var(--terra-deep); }
.divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--bd-2); }
.divider span {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.modal__legal { margin: 14px 4px 0; font-size: 11px; line-height: 1.5; color: var(--faint); text-align: center; }
.modal__legal a { color: var(--muted); text-decoration: underline; }

/* --------------------------------------------------------------- FOOTER ---- */
.footer {
  background: var(--carta-scura);
  border-top: 1px solid var(--bd-2);
  padding: 54px 24px 40px;
}
.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__about { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 26em; margin-top: 16px; }
.footer__h {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  text-decoration: none; color: var(--ink-soft); font-size: 14.5px;
  background: none; border: none; padding: 0; text-align: left; font-family: var(--ff-ui); cursor: pointer;
}
.footer__link:hover { color: var(--ink); }
.footer__bar {
  max-width: 1200px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid #ddd0bd;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__bar span, .footer__bar a { font-size: 13px; color: var(--muted-2); text-decoration: none; }
.footer__bar a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 22px; }

/* ----------------------------------------------------------- UTILITIES ----- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 30px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.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;
}

/* icona inline (per gli SVG inline che le sezioni iniettano) */
.ic { display: inline-flex; flex: none; }

/* ----------------------------------------------------------- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--carta);
    border-bottom: 1px solid var(--bd-2);
    padding: 14px 24px 18px;
    box-shadow: 0 18px 30px -22px rgba(31,24,18,.4);
  }
  .nav__links.is-open .nav__link { padding: 10px 0; font-size: 16px; }
  .nav__toggle { display: inline-flex; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .sec-head { margin-bottom: 38px; }

  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .lead { font-size: 16px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

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