/* ============================================================
   Produttori Latte Aurelia — Società Cooperativa Agricola
   Concept: "Heritage cooperativo, dal 1984"
   Retrò anni '70-'80, badge/etichette d'epoca, carta e calore.
   Palette: crema · arancio bruciato · verde-acqua · bruno
   ============================================================ */

:root {
  --crema:      #F3E9D2;
  --crema-2:    #EADFC2;
  --crema-3:    #E4D6B4;
  --arancio:    #C0562A;
  --arancio-d:  #9E4420;
  --verde:      #2E6E6A;
  --verde-d:    #23524F;
  --bruno:      #3A2A1E;
  --bruno-2:    #5A4636;
  --bruno-60:   rgba(58, 42, 30, 0.66);
  --line:       rgba(58, 42, 30, 0.18);
  --line-2:     rgba(58, 42, 30, 0.10);

  --font-sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

  --radius:    10px;
  --radius-lg: 20px;
  --shadow:    0 26px 60px -30px rgba(58, 42, 30, 0.55);
  --shadow-sm: 0 14px 34px -22px rgba(58, 42, 30, 0.5);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* rumore/grana carta d'epoca */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--bruno);
  background: var(--crema);
  line-height: 1.62;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.07rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* trama carta di fondo, leggerissima */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(192, 86, 42, 0.05), transparent 60%),
    var(--grain);
  background-size: auto, 160px 160px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--arancio);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--bruno); color: var(--crema);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--arancio);
  outline-offset: 3px;
  border-radius: 4px;
}

/* grana riutilizzabile sopra le immagini */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.28;
  mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--arancio); color: var(--crema); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--arancio-d); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--crema); border-color: rgba(243, 233, 210, 0.7); }
.btn-ghost:hover { background: var(--crema); color: var(--bruno); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--verde-d); border-color: var(--verde); }
.btn-outline:hover { background: var(--verde); color: var(--crema); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 233, 210, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 26px -22px rgba(58, 42, 30, 0.7); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--arancio); }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 6px rgba(58,42,30,0.25)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bruno-2);
}
.brand-line2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem;
  font-style: italic; letter-spacing: 0.01em; color: var(--bruno);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.brand-coop {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.56rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--verde-d);
  padding: 0.16rem 0.42rem; border: 1.5px solid rgba(46, 110, 106, 0.45); border-radius: 4px;
  font-style: normal;
}

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-list a {
  display: inline-block; padding: 0.5rem 0.9rem; font-weight: 600;
  font-size: 0.95rem; border-radius: 999px; position: relative; color: var(--bruno);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.32rem;
  height: 2px; background: var(--arancio); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--verde); color: var(--crema); }
.nav-cta:hover { background: var(--verde-d); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--bruno); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bruno); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transform-origin: center 40%; will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(58,42,30,0.55) 0%, rgba(58,42,30,0.15) 30%, rgba(58,42,30,0.72) 100%),
    linear-gradient(96deg, rgba(58,42,30,0.82) 0%, rgba(58,42,30,0.28) 55%, rgba(192,86,42,0.22) 100%);
}

.hero-year {
  position: absolute; z-index: 1; right: clamp(-1rem, 1vw, 2rem); bottom: clamp(-1.4rem, -1vw, 0);
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(7rem, 4rem + 24vw, 22rem); line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 2px rgba(243, 233, 210, 0.22);
  pointer-events: none; user-select: none; letter-spacing: -0.02em;
}

.hero-content {
  position: relative; z-index: 3;
  min-height: min(90vh, 800px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 5rem; padding-bottom: 5.5rem;
  max-width: 780px;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
  font-weight: 700; color: rgba(243, 233, 210, 0.94); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--arancio); display: inline-block; }
.eyebrow-dark { color: var(--verde-d); }
.eyebrow-dark::before { background: var(--arancio); }
.eyebrow-light { color: rgba(243, 233, 210, 0.9); }
.eyebrow-light::before { background: var(--crema); }

.hero h1 {
  color: var(--crema);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.4rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 em { color: #E9B08A; }
.hero-sub {
  color: rgba(243, 233, 210, 0.92); font-size: clamp(1.05rem, 1rem + 0.45vw, 1.28rem);
  max-width: 600px; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Badge / timbro circolare d'epoca ---------- */
.hero-badge, .coop-stamp {
  position: relative; width: 132px; height: 132px; flex: none;
}
.hero-badge {
  position: absolute; z-index: 4; top: clamp(4.5rem, 8vw, 6rem); right: var(--gutter);
}
.badge-ring { width: 100%; height: 100%; will-change: transform; }
.badge-ring text {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 8.6px; letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero-badge .badge-ring text { fill: rgba(243, 233, 210, 0.92); }
.coop-stamp .badge-ring text { fill: var(--crema); }

.hero-badge .badge-core, .coop-stamp .stamp-core {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.hero-badge .badge-core {
  color: var(--crema);
}
.badge-est { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.25em; }
.badge-yr { display: block; font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 0.9; }

/* ---------- Fascia dati ---------- */
.stats { background: var(--verde); color: var(--crema); }
.stats-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(243, 233, 210, 0.2);
  border-inline: 1px solid rgba(243, 233, 210, 0.2);
}
.stat {
  background: var(--verde); padding: 2rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
}
.stat-num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1; color: var(--crema);
}
.stat-label { font-size: 0.8rem; color: rgba(243, 233, 210, 0.82); letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 3rem + 6vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2, .split-text h2, .contatti-info h2, .showcase-text h3 {
  font-size: clamp(1.95rem, 1.35rem + 2.8vw, 3.2rem);
  margin: 0.5rem 0 0.9rem;
}
.section-lead { color: var(--bruno-60); font-size: 1.08rem; max-width: 56ch; }

/* Split layout */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.split-text p { color: var(--bruno-60); margin-bottom: 1.3rem; }

/* Cooperativa points */
.points { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.7rem; }
.points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.pt-dot {
  flex: none; width: 12px; height: 12px; margin-top: 0.5rem; border-radius: 50%;
  background: var(--arancio); box-shadow: 0 0 0 4px rgba(192, 86, 42, 0.16);
}
.points div { display: flex; flex-direction: column; color: var(--bruno-60); }
.points strong { color: var(--bruno); font-weight: 700; margin-bottom: 0.1rem; }

/* Split media — cornice d'epoca + etichetta + timbro */
.split-media { position: relative; }
.framed {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 6px solid var(--crema); box-shadow: var(--shadow);
  outline: 1px solid var(--line);
}
.framed img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.framed-tag {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  background: var(--arancio); color: var(--crema);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(58, 42, 30, 0.8);
}
.coop-stamp {
  position: absolute; z-index: 3; right: -14px; bottom: -18px;
  width: 118px; height: 118px;
  background: var(--verde-d); border-radius: 50%;
  display: grid; place-content: center;
  box-shadow: var(--shadow-sm); border: 2px solid rgba(243, 233, 210, 0.4);
}
.stamp-core {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: 1.75rem; color: var(--crema); line-height: 0.95;
}
.stamp-core small { font-family: var(--font-sans); font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; }

/* ---------- Products ---------- */
.products { background: var(--crema-2); }
.product-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: 1fr;
}
.card {
  background: var(--crema); border-radius: var(--radius);
  padding: 1.9rem 1.7rem 2rem; border: 1.5px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--arancio); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-index {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.6rem;
  color: var(--verde); line-height: 1;
}
.card h3 { font-size: 1.35rem; margin: 0.5rem 0 0.5rem; }
.card p { color: var(--bruno-60); }

/* Product showcase */
.product-showcase {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--crema); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.showcase-media { overflow: hidden; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.showcase-text { padding: clamp(1.8rem, 4vw, 3rem); align-self: center; }
.showcase-text h3 { margin-top: 0; }
.showcase-text p { color: var(--bruno-60); margin-bottom: 1.6rem; }

/* ============================================================
   Timeline orizzontale pinnata — "Dalla stalla al prodotto"
   ============================================================ */
.timeline { position: relative; background: var(--bruno); color: var(--crema); isolation: isolate; }
.tl-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tl-bg img {
  width: 100%; height: 120%; object-fit: cover;
  transform: translateY(-6%); will-change: transform;
}
.tl-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,42,30,0.86) 0%, rgba(58,42,30,0.7) 45%, rgba(35,82,79,0.72) 100%);
}
.timeline .grain { opacity: 0.22; }

.tl-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  z-index: 2; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.tl-head { max-width: 680px; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.tl-head h2 { font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem); margin: 0.4rem 0 0.9rem; }
.tl-head h2 em { color: #E9B08A; }
.tl-lead { color: rgba(243, 233, 210, 0.86); max-width: 60ch; }
.tl-hint {
  margin-top: 1rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--arancio);
}

.tl-viewport { overflow: hidden; }
.tl-track {
  display: flex; gap: clamp(1rem, 2.5vw, 1.8rem); list-style: none;
  padding-inline: var(--gutter); width: max-content;
  will-change: transform;
}
.tl-panel {
  flex: none; width: clamp(240px, 68vw, 360px);
  background: rgba(243, 233, 210, 0.06);
  border: 1.5px solid rgba(243, 233, 210, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  backdrop-filter: blur(2px);
}
.tl-panel h3 { font-size: 1.4rem; color: var(--crema); }
.tl-panel p { color: rgba(243, 233, 210, 0.82); font-size: 0.98rem; }
.tl-n {
  font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; color: var(--arancio); line-height: 1;
}
.tl-year {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 0.9; color: #E9B08A;
}
.tl-panel--intro { background: rgba(192, 86, 42, 0.22); border-color: rgba(233, 176, 138, 0.5); }
.tl-panel--end { background: rgba(46, 110, 106, 0.3); border-color: rgba(46, 110, 106, 0.6); }

.tl-progress {
  margin: clamp(1.4rem, 3vw, 2.2rem) var(--gutter) 0;
  height: 4px; border-radius: 999px; background: rgba(243, 233, 210, 0.18);
  overflow: hidden;
}
.tl-progress span { display: block; height: 100%; width: 0; background: var(--arancio); border-radius: 999px; }

/* ---------- Contatti ---------- */
.contatti { background: var(--crema-2); }
.contatti-split { align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin: 1.8rem 0; }
.contact-list li { display: grid; gap: 0.25rem; }
.c-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; color: var(--arancio); }
.contact-list a { font-size: 1.08rem; transition: color 0.25s var(--ease); }
.contact-list a:hover { color: var(--verde-d); }

.map-embed {
  margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--crema); outline: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; }

.contatti-form {
  background: var(--crema); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
}
.field { margin-bottom: 1.15rem; display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .opt { font-weight: 400; color: var(--bruno-60); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--bruno);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--crema-2); resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--verde); background: var(--crema); outline: none; }
.field input.invalid, .field textarea.invalid { border-color: var(--arancio-d); }
.form-note { min-height: 0; font-size: 0.95rem; margin-bottom: 0.4rem; }
.form-note.ok { color: var(--verde-d); font-weight: 700; }
.form-note.err { color: var(--arancio-d); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bruno); color: rgba(243, 233, 210, 0.82); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-inner { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.brand-footer .brand-mark { color: var(--arancio); }
.brand-footer .brand-line1 { color: rgba(243, 233, 210, 0.6); }
.brand-footer .brand-line2 { color: var(--crema); }
.footer-brand p { margin-top: 1rem; max-width: 36ch; color: rgba(243, 233, 210, 0.62); }
.footer-col h4 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.2rem; color: var(--crema); margin-bottom: 0.7rem; }
.footer-col p { color: rgba(243, 233, 210, 0.7); line-height: 1.9; }
.footer-col a:hover { color: #E9B08A; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  border-top: 1px solid rgba(243, 233, 210, 0.16);
  padding-block: 1.5rem 2rem; font-size: 0.85rem; color: rgba(243, 233, 210, 0.55);
}
.footer-bottom .credit { font-family: var(--font-serif); font-style: italic; color: rgba(243, 233, 210, 0.7); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 620px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .cooperativa .split { grid-template-columns: 1.05fr 0.95fr; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-showcase { grid-template-columns: 1.1fr 0.9fr; }
  .contatti-split { grid-template-columns: 1.05fr 0.95fr; }
  .tl-panel { width: clamp(300px, 30vw, 380px); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); padding: 0.5rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform 0.4s var(--ease);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { border-bottom: 1px solid var(--line-2); }
  .nav-list a { display: block; padding: 1rem 0.2rem; font-size: 1.1rem; border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav-cta { background: transparent; color: var(--verde-d); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero badge non deve coprire il testo su schermi piccoli */
  .hero-badge { top: auto; bottom: 1.2rem; right: var(--gutter); width: 100px; height: 100px; }

  /* ---- Timeline: da pin orizzontale a carosello swipe verticale-friendly ---- */
  .timeline { height: auto !important; }
  .tl-sticky { position: static; height: auto; overflow: visible; padding-block: clamp(3.5rem, 8vw, 5rem); }
  .tl-viewport {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
  }
  .tl-track { transform: none !important; width: max-content; }
  .tl-panel { scroll-snap-align: start; width: clamp(240px, 78vw, 320px); }
  .tl-progress { display: none; }
}

@media (max-width: 400px) {
  .brand-coop { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }

  .hero-media img { transform: none !important; }
  .tl-bg img { transform: none !important; }
  .badge-ring { transform: none !important; }

  /* Timeline statica: niente pin, scroll orizzontale manuale */
  .timeline { height: auto !important; }
  .tl-sticky { position: static; height: auto; overflow: visible; }
  .tl-viewport { overflow-x: auto; }
  .tl-track { transform: none !important; }
  .tl-progress { display: none; }
}
