/* ==========================================================================
   Masseria Cilentana — foglio di stile principale
   Brand board "03 / SANS & MC — Black & Gold"
   Mobile-first. Nessuna dipendenza esterna, font self-hosted (GDPR).
   ========================================================================== */

/* ---------- Font (self-hosted, SIL OFL — vedi /assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/assets/fonts/cormorant-sc-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --nero: #191917;        /* Nero Soffice */
  --latte: #FFFEF8;       /* Bianco Latte */
  --oro: #B39858;         /* Oro Champagne — solo su fondo nero o per linee decorative */
  --caldo: #F2EEE5;       /* Bianco Caldo */

  /* Derivati per accessibilità (WCAG 2.1 AA) */
  --oro-testo: #76622F;   /* oro scurito: ≥ 5:1 su latte e caldo, per testo su fondo chiaro */
  --grigio: #4A4944;      /* testo secondario su fondo chiaro (≥ 8:1) */
  --latte-80: #D9D7CF;    /* testo secondario su fondo nero (≥ 11:1) */
  --linea: #E2DCCD;

  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 10vw, 8rem);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--latte);
  color: var(--nero);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--oro); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--oro-testo); outline-offset: 3px; }
.section--dark :focus-visible, .footer-upper :focus-visible, .hero__panel :focus-visible { outline-color: var(--oro); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.25rem; }
em, .serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.label {
  display: block;
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .32em;
  text-transform: lowercase; /* Cormorant SC rende il minuscolo come maiuscoletto */
  color: var(--oro-testo);
  margin-bottom: 1rem;
}
.section--dark .label, .hero__panel .label, .footer-upper .label { color: var(--oro); }

/* breve filetto oro sotto i titoli */
.rule::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--oro);
  margin-top: 1.1rem;
}
.center .rule::after, .rule--center::after { margin-left: auto; margin-right: auto; }

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--grigio);
  max-width: 40em;
}
.section--dark .lead { color: var(--latte-80); }
.muted { color: var(--grigio); }
.small { font-size: .875rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 46rem; }
.section { padding: var(--space) 0; }
.section--tight { padding: calc(var(--space) * .6) 0; }
.section--caldo { background: var(--caldo); }
.section--dark { background: var(--nero); color: var(--latte); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1.5rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--nero); color: var(--latte); padding: .75rem 1.25rem;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--latte);
  border-bottom: 1px solid var(--linea);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--nero); }
.brand__logo { width: auto; height: 2.75rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand__kicker {
  font-size: .56rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--oro-testo);
}
.brand__name {
  font-size: .9rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: .25rem;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 1px solid var(--nero); color: var(--nero);
  font: 600 .72rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  padding: .75rem .9rem; cursor: pointer; border-radius: var(--radius); min-height: 44px;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.1rem; height: 1px; background: currentColor; position: relative;
  transition: transform .25s var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--latte); border-bottom: 1px solid var(--linea);
  padding: 1rem var(--gutter) 2rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem 0; text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--linea);
}
.site-nav a[aria-current="page"] { color: var(--oro-testo); }
.lang-switch { display: flex; gap: .25rem; margin-top: 1.25rem; font-size: .78rem; letter-spacing: .18em; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .5rem; border: 0; text-transform: uppercase;
}
.lang-switch span[aria-current] { font-weight: 700; color: var(--nero); }
.lang-switch a { color: var(--grigio); }

@media (min-width: 75rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 1.5rem;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 1.4rem; }
  .site-nav a { border: 0; padding: .5rem 0; font-size: .68rem; letter-spacing: .16em; position: relative; white-space: nowrap; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px; background: var(--oro);
    transition: right .3s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
  .lang-switch { margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--linea); }
  .lang-switch a, .lang-switch span { min-width: 2.25rem; padding: 0 .25rem; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 48px; padding: .9rem 1.75rem;
  font: 600 .74rem/1.2 var(--font-sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--nero); border-radius: var(--radius);
  background: var(--nero); color: var(--latte); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--nero); }
.btn--ghost { background: transparent; color: var(--nero); }
.btn--ghost:hover { background: var(--nero); color: var(--latte); }
.section--dark .btn, .hero__panel .btn { background: var(--oro); border-color: var(--oro); color: var(--nero); }
.section--dark .btn:hover, .hero__panel .btn:hover { background: transparent; color: var(--oro); }
.section--dark .btn--ghost { background: transparent; color: var(--latte); border-color: var(--latte); }
.section--dark .btn--ghost:hover { background: var(--latte); color: var(--nero); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Segnaposto immagini ---------- */
.ph { margin: 0; }
.ph__box {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  width: 100%; aspect-ratio: 3 / 2;
  background: var(--caldo);
  border: 1px solid var(--oro);
  color: var(--oro-testo);
  text-align: center; padding: 1rem;
  font-size: .78rem; letter-spacing: .12em;
}
.ph__box::before {
  content: ""; position: absolute; inset: .6rem; border: 1px solid var(--linea); pointer-events: none;
}
.ph__file { font-weight: 600; text-transform: none; letter-spacing: .06em; }
.ph__size { color: var(--grigio); font-size: .72rem; }
.ph--wide .ph__box { aspect-ratio: 16 / 9; }
.ph--square .ph__box { aspect-ratio: 1 / 1; }
.ph--tall .ph__box { aspect-ratio: 4 / 5; }
.ph--map .ph__box { aspect-ratio: 4 / 3; }
.ph figcaption, .figure figcaption { font-size: .82rem; color: var(--grigio); margin-top: .75rem; }
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--nero); }
.hero__media .ph__box, .hero__media img { aspect-ratio: auto; height: clamp(22rem, 72vh, 44rem); width: 100%; object-fit: cover; border: 0; }
.hero__media .ph__box { border-bottom: 1px solid var(--oro); }
.hero__panel {
  position: relative; background: var(--nero); color: var(--latte);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  text-align: center;
}
@media (min-width: 56rem) {
  .hero__panel {
    max-width: 52rem; margin: -9rem auto 0; padding: 4rem 4rem 3.5rem;
    border-top: 1px solid var(--oro);
  }
}
.wordmark { margin: 0; font-family: var(--font-sans); line-height: 1; }
.wordmark__kicker {
  display: block; font-size: .7rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1.1rem;
}
.wordmark__name {
  display: block; font-size: clamp(1.6rem, 5.4vw, 3.1rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  margin-right: -.2em; /* compensa il tracking dell'ultima lettera */
}
.tagline {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--latte); margin: 1.5rem 0 0;
}
.hero__curve { width: min(26rem, 80%); margin: 1.75rem auto 0; color: var(--oro); }

/* ---------- Page header (pagine interne) ---------- */
.page-head { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1.25rem; }
.page-head__curve { position: absolute; right: -6rem; bottom: 0; width: 34rem; max-width: 90%; color: var(--oro); opacity: .7; pointer-events: none; }

/* ---------- Divisore a curve oro ---------- */
.divider { color: var(--oro); padding: 0 var(--gutter); }
.divider svg { width: 100%; max-width: var(--max); height: 3rem; margin: 0 auto; }
.section--dark .divider, .divider--dark { color: var(--oro); }

/* ---------- Card pilastri ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--latte); border: 1px solid var(--linea); padding: 2rem 1.75rem 1.75rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.section--caldo .card { background: var(--latte); }
.card:hover { border-color: var(--oro); }
.card__num { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--oro-testo); line-height: 1; }
.card h3 { margin-top: 1rem; }
.card h3::after { content: ""; display: block; width: 2rem; height: 1px; background: var(--oro); margin-top: .9rem; }
.card p { font-size: .97rem; color: var(--grigio); }
.card .link-arrow { margin-top: auto; }
.card__link::before { content: ""; position: absolute; inset: 0; } /* intera card cliccabile */

/* ---------- Cifre chiave ---------- */
.facts { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--latte); padding: 2rem 1.5rem; text-align: center; }
.section--caldo .facts li { background: var(--caldo); }
.facts__value { display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; }
.facts__label { display: block; margin-top: .6rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grigio); }
.section--dark .facts { background: #3a3934; border-color: #3a3934; }
.section--dark .facts li { background: var(--nero); }
.section--dark .facts__value { color: var(--oro); }
.section--dark .facts__label { color: var(--latte-80); }

/* ---------- Elenco con filetti ---------- */
.list-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--linea); }
.list-lines li { padding: 1rem 0 1rem 1.75rem; border-bottom: 1px solid var(--linea); position: relative; }
.list-lines li::before { content: ""; position: absolute; left: 0; top: 1.85rem; width: .9rem; height: 1px; background: var(--oro); }
.section--dark .list-lines, .section--dark .list-lines li { border-color: #3a3934; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--oro); }
.timeline__item { position: relative; padding: 0 0 3rem 2.75rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: .95rem; height: .95rem;
  border: 1px solid var(--oro); background: var(--latte); border-radius: 50%;
}
.timeline__item--key::before { background: var(--oro); }
.timeline__year { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.timeline__item h3 { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: .4rem 0 .6rem; }
.timeline__item p { color: var(--grigio); max-width: 38em; }
@media (min-width: 56rem) {
  .timeline::before { left: 50%; }
  .timeline__item { width: 50%; padding: 0 3.5rem 3.5rem 0; text-align: right; }
  .timeline__item::before { left: auto; right: -.475rem; }
  .timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 3.5rem 3.5rem; text-align: left; }
  .timeline__item:nth-child(even)::before { right: auto; left: -.475rem; }
  .timeline__item:nth-child(odd) p { margin-left: auto; }
}

/* ---------- Diagramma a tre passi ---------- */
.steps { display: grid; gap: 2.5rem; margin: 3rem 0 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { text-align: center; position: relative; }
.step svg { width: 9rem; height: 9rem; margin: 0 auto 1.25rem; color: var(--oro); }
.step__n { display: block; font-family: var(--font-sc); letter-spacing: .3em; font-size: .9rem; color: var(--oro); text-transform: lowercase; }
.step h3 { margin: .35rem 0 .5rem; }
.step p { color: var(--latte-80); font-size: .97rem; max-width: 22em; margin: 0 auto; }
@media (min-width: 48rem) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 4.5rem; right: -1.75rem; width: 1.5rem; height: 1px; background: var(--oro);
  }
}

/* ---------- Banda formaggio / brand ---------- */
.brand-cheese { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: .01em; }
.badge {
  display: inline-block; border: 1px solid currentColor; padding: .35rem .8rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.section--dark .badge { color: var(--oro); }
.badge--light { color: var(--oro-testo); }
.quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.3; margin: 0 auto; max-width: 30ch;
}
.quote::before, .quote::after { color: var(--oro); }
.quote::before { content: "« "; }
.quote::after { content: " »"; }

/* ---------- Note in evidenza / placeholder testuali ---------- */
.note {
  border-left: 1px solid var(--oro); padding: .25rem 0 .25rem 1.25rem; margin: 2rem 0; color: var(--grigio); font-size: .95rem;
}
.section--dark .note { color: var(--latte-80); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.address { font-style: normal; }
.address strong { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .4rem; }
.dl { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.dl dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-testo); }
.dl dd { margin: .2rem 0 0; }

.form { display: grid; gap: 1.5rem; }
.field label, .field legend { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--nero);
  background: var(--latte); border: 1px solid #8F8B80; border-radius: var(--radius);
  padding: .85rem 1rem; min-height: 48px;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--oro-testo); outline-offset: 1px; border-color: var(--nero); }
.field--check { display: flex; gap: .85rem; align-items: flex-start; }
.field--check input { width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; flex: none; accent-color: var(--nero); }
.field--check label { font-size: .92rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin: 0; }
.req { color: var(--oro-testo); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pagine legali ---------- */
.legal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.75rem; }
.legal h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-top: 1.75rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.25rem 0 2rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--linea); }
.legal th { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.updated { font-size: .85rem; color: var(--grigio); }

/* ---------- Footer ---------- */
.site-footer { font-size: .9rem; }
/* metà superiore: nero */
.footer-upper { background: var(--nero); color: var(--latte-80); padding: 4.5rem 0 3.5rem; }
.footer-upper a { color: var(--latte); }
/* metà inferiore: bianco latte, testo scuro (i loghi DOP stanno sul bianco senza cornice) */
.footer-lower { background: var(--latte); color: var(--grigio); padding: 2.5rem 0 2.25rem; border-top: 1px solid var(--oro); }
.footer-lower a { color: var(--nero); }
.footer-lower :focus-visible { outline-color: var(--oro-testo); }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { color: var(--latte); }
.footer-brand .brand__kicker { color: var(--oro); }
.footer-brand .tagline { font-size: 1.3rem; margin-top: 1.25rem; color: var(--latte-80); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: .45rem 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { font-size: .8rem; line-height: 1.75; }
.footer-legal p { margin: 0; }
.footer-legal__name { color: var(--nero); font-weight: 600; letter-spacing: .06em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linea); font-size: .78rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Animazione d'ingresso (progressiva: solo con JS) ---------- */
/* Solo gli elementi sotto la piega vengono nascosti (classe aggiunta da main.js):
   ciò che è visibile al caricamento non viene mai ritardato (LCP). */
.reveal.is-pending { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-pending.is-visible { opacity: 1; transform: none; }

/* ---------- Stampa ---------- */
@media print {
  .site-header, .site-nav, .nav-toggle, .divider, .hero__curve, .page-head__curve { display: none !important; }
  .section--dark, .footer-upper, .footer-lower, .hero__panel { background: #fff !important; color: #000 !important; }
}

/* ---------- Testo solo per screen reader ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: 1.5rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grigio); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--oro-testo); }
.breadcrumb a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { display: inline-block; padding: .3rem 0; }
.breadcrumb + .page-head { padding-top: clamp(2rem, 6vw, 4rem); }
h1 .label { line-height: 1.6; }

/* ---------- Riga descrittiva nell'hero ---------- */
.hero__meta {
  margin: 1.5rem 0 0; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--latte-80);
}

/* ---------- Foto ---------- */
.figure img { height: auto; background: var(--caldo); }
.figure--portrait { max-width: 30rem; margin-inline: auto; }
.hero__media img { object-position: 50% 62%; }
.btn .brand-cheese { font-family: inherit; font-style: inherit; font-weight: inherit; letter-spacing: inherit; }

/* ---------- Canali di vendita (pagina caseificio) ---------- */
.card__icon { width: 2.75rem; height: 2.75rem; color: var(--oro); }
.card--channel h3 { margin-top: 1.25rem; }
.card--channel p { margin-bottom: 0; }
.card--channel a { position: relative; z-index: 1; }
.channel-cta { margin-top: 3rem; }
.channel-cta .lead { margin-bottom: 0; }
.channel-cta .btn-row { margin-top: 1.25rem; }

/* ---------- Fascia fotografica a tutta larghezza ---------- */
.photo-band { margin: 0; }
.photo-band img { display: block; width: 100%; height: clamp(14rem, 38vw, 32rem); object-fit: cover; background: var(--caldo); }

/* ---------- Certificazione DOP dell'allevamento (footer) ---------- */
.footer-cert { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.footer-cert p { margin: 0; color: var(--nero); }
.footer-cert__logo { height: 4rem; width: auto; flex: none; }
.footer-cert__logos { display: flex; align-items: center; gap: .75rem; flex: none; }
