/* =====================================================================
   ALIVARI — Olio Extra Vergine di Oliva Biologico Calabrese
   Design system "Misura": craft millenaria + precisione ingegneristica.
   Light, sun-warmed Mediterranean palette with deep-olive shade anchors.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:        oklch(0.967 0.012 92);
  --paper-2:      oklch(0.938 0.017 88);
  --paper-3:      oklch(0.905 0.022 86);
  --sage:         oklch(0.905 0.026 134);

  /* Greens */
  --olive:        oklch(0.435 0.076 138);
  --olive-deep:   oklch(0.318 0.054 142);
  --olive-night:  oklch(0.238 0.040 145);

  /* Warmth */
  --gold:         oklch(0.805 0.128 84);
  --gold-deep:    oklch(0.620 0.114 74);
  --clay:         oklch(0.585 0.103 46);

  /* Ink */
  --ink:          oklch(0.252 0.022 142);
  --ink-soft:     oklch(0.430 0.024 140);
  --ink-faint:    oklch(0.560 0.020 138);

  /* Lines */
  --line:         oklch(0.862 0.016 104);
  --line-strong:  oklch(0.795 0.020 110);
  --line-night:   oklch(0.380 0.030 144);

  /* On-dark text */
  --paper-dim:    oklch(0.880 0.018 92);
  --paper-faint:  oklch(0.720 0.024 96);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Fluid scale */
  --t-xs:   clamp(0.72rem, 0.69rem + 0.13vw, 0.79rem);
  --t-sm:   clamp(0.82rem, 0.79rem + 0.16vw, 0.92rem);
  --t-base: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  --t-md:   clamp(1.18rem, 1.10rem + 0.40vw, 1.44rem);
  --t-lg:   clamp(1.5rem, 1.32rem + 0.92vw, 2.1rem);
  --t-xl:   clamp(2.05rem, 1.66rem + 1.95vw, 3.35rem);
  --t-2xl:  clamp(2.7rem, 1.95rem + 3.7vw, 5.4rem);
  --t-3xl:  clamp(3.3rem, 2.1rem + 5.9vw, 7.4rem);

  /* Rhythm */
  --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 2.6rem);
  --bay:    clamp(3.6rem, 2.2rem + 6vw, 8rem);
  --maxw:   76rem;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 90rem; }
.bay { padding-block: var(--bay); }
.bay-t { padding-top: var(--bay); }
.bay-b { padding-bottom: var(--bay); }

/* ---------- Typography utilities ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: 1.12; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow .idx { color: var(--ink-faint); }
.eyebrow::before {
  content: "";
  width: 1.7rem; height: 1px;
  background: var(--gold-deep);
  align-self: center;
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: var(--t-md);
  line-height: 1.42;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 30ch;
}
.measure { max-width: 64ch; }
.measure-sm { max-width: 52ch; }

.serif-accent { font-family: var(--serif); font-style: italic; }
.gold-word { color: var(--gold-deep); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: linear-gradient(180deg, oklch(0.968 0.013 92 / 0.93) 0%, oklch(0.968 0.013 92 / 0.62) 52%, oklch(0.968 0.013 92 / 0) 100%);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5.7rem;
  transition: height .4s var(--ease);
}
.site-head.is-scrolled {
  background: oklch(0.967 0.012 92 / 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-head.is-scrolled .site-head__bar { height: 4.6rem; }

/* Brand logo */
.brand { display: flex; align-items: center; }
.brand__logo { width: auto; display: block; transition: height .4s var(--ease); }
/* HEADER: one single logo (the dark version), identical in both states */
.site-head .brand__logo--on-dark { display: none; }
.site-head .brand__logo--on-light { display: block; height: 3.5rem; }
.site-head.is-scrolled .brand__logo--on-light { height: 2.95rem; }
/* FOOTER: light logo on the dark footer background */
.foot-brand .brand__logo--on-light { display: none; }
.foot-brand .brand__logo--on-dark { display: block; height: 9.5rem; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.3rem); }
.nav__link {
  font-size: var(--t-sm);
  letter-spacing: 0.01em;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-deep); }

.head-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Cart button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  transition: background .3s var(--ease);
}
.cart-btn:hover { background: oklch(0.435 0.076 138 / 0.10); }
.cart-btn svg { width: 1.15rem; height: 1.15rem; }
.cart-btn__count {
  min-width: 1.25rem; height: 1.25rem;
  display: inline-grid; place-items: center;
  padding: 0 0.32rem;
  background: var(--clay);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.cart-btn__count.is-on { transform: scale(1); }

/* Header over dark hero */
/* Header content stays dark on the light patina in every state */

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 1.6px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05rem; height: 1.05rem; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--olive); color: var(--paper); }
.btn--primary:hover { background: var(--olive-deep); box-shadow: 0 12px 26px -14px oklch(0.318 0.054 142 / 0.8); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--gold { background: var(--gold); color: var(--olive-night); }
.btn--gold:hover { background: oklch(0.845 0.13 86); box-shadow: 0 12px 26px -14px oklch(0.62 0.114 74 / 0.7); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.4px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.4px var(--olive); color: var(--olive); }

.btn--on-dark { background: var(--paper); color: var(--olive-night); }
.btn--on-dark:hover { background: var(--gold); }
.btn--ghost-dark {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1.4px var(--line-night);
}
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1.4px var(--gold); color: var(--gold); }

.btn--block { width: 100%; justify-content: center; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
  transform: none; box-shadow: none;
}

.textlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: var(--t-sm);
  color: var(--olive);
  padding-bottom: 2px;
  box-shadow: inset 0 -1.4px 0 var(--gold);
  transition: box-shadow .3s var(--ease), gap .3s var(--ease);
}
.textlink:hover { box-shadow: inset 0 -10px 0 oklch(0.805 0.128 84 / 0.35); gap: 0.7rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.238 0.04 145 / 0) 0%, oklch(0.238 0.04 145 / 0) 56%, oklch(0.238 0.04 145 / 0.46) 100%);
}
.hero__inner { padding-block: clamp(3rem, 8vh, 7rem) clamp(2.4rem, 6vh, 4.4rem); width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(1.6rem, 4vw, 4rem);
}
.hero__title {
  font-size: var(--t-3xl);
  font-weight: 400;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 30px oklch(0.15 0.03 145 / 0.62), 0 1px 4px oklch(0.15 0.03 145 / 0.5);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin-top: 1.3rem;
  font-size: var(--t-md);
  color: var(--paper-dim);
  max-width: 34ch;
  text-shadow: 0 1px 16px oklch(0.15 0.03 145 / 0.75);
}
.hero .eyebrow { text-shadow: 0 1px 12px oklch(0.15 0.03 145 / 0.8); }
.hero__aside {
  text-align: right;
  max-width: 22rem;
  border-top: 1px solid oklch(1 0 0 / 0.28);
  padding-top: 1.1rem;
}
.hero__aside p { font-size: var(--t-sm); color: var(--paper-dim); text-shadow: 0 1px 14px oklch(0.15 0.03 145 / 0.75); }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__coords {
  position: absolute;
  top: clamp(6rem, 14vh, 9rem); right: var(--gutter);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: oklch(1 0 0 / 0.62);
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 1.5rem;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.66);
  display: flex; align-items: center; gap: 0.6rem;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 2.2rem;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top;} 50%{ transform: scaleY(1); opacity:1;} }

/* Page hero (interior pages) */
.phero {
  position: relative;
  min-height: min(88vh, 50rem);
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img, .phero__media video { width: 100%; height: 100%; object-fit: cover; }
.phero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, oklch(0.238 0.04 145 / 0.42) 0%, oklch(0.238 0.04 145 / 0.12) 40%, oklch(0.238 0.04 145 / 0.74) 100%);
}
.phero__inner { padding-block: clamp(3rem,8vh,6rem) clamp(2.2rem,5vh,3.6rem); }
.phero__title { font-size: var(--t-2xl); margin-top: 0.7rem; }
.phero__title em { font-style: italic; color: var(--gold); }
.phero__lede { margin-top: 1.1rem; max-width: 46ch; color: var(--paper-dim); font-size: var(--t-md); line-height: 1.4; }

/* Variante chiara (come la hero della home): velatura leggera, testo reso
   leggibile con ombra invece che con una patina scura sull'immagine */
.phero--bright .phero__scrim {
  background: linear-gradient(180deg, oklch(0.238 0.04 145 / 0) 0%, oklch(0.238 0.04 145 / 0) 54%, oklch(0.238 0.04 145 / 0.5) 100%);
}
.phero--bright .phero__title { text-shadow: 0 2px 28px oklch(0.15 0.03 145 / 0.6), 0 1px 4px oklch(0.15 0.03 145 / 0.5); }
.phero--bright .phero__lede { color: var(--paper); text-shadow: 0 1px 16px oklch(0.15 0.03 145 / 0.72); }
.phero--bright .eyebrow { color: var(--gold); text-shadow: 0 1px 12px oklch(0.15 0.03 145 / 0.8); }
.phero--bright .eyebrow::before { background: var(--gold); }
.phero__credit {
  position: absolute;
  right: var(--gutter); bottom: 0.7rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: oklch(1 0 0 / 0.55);
}
.phero__credit a { color: inherit; box-shadow: inset 0 -1px 0 oklch(1 0 0 / 0.35); }
.phero__credit a:hover { color: oklch(1 0 0 / 0.9); }
@media (max-width: 600px) { .phero__credit { display: none; } }

/* =====================================================================
   SECTIONS — generic
   ===================================================================== */
.section--olive { background: var(--olive-night); color: var(--paper-dim); }
.section--olive h1,.section--olive h2,.section--olive h3 { color: var(--paper); }
.section--olive .eyebrow { color: var(--gold); }
.section--olive .eyebrow::before { background: var(--gold); }
.section--olive .eyebrow .idx { color: var(--paper-faint); }
.section--olive .lede { color: var(--paper-dim); }
.section--sage { background: var(--sage); }
.section--paper2 { background: var(--paper-2); }

.section-head { max-width: 54rem; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

/* Two-column intro */
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(1.8rem, 5vw, 5.5rem);
  align-items: center;
}
.split--text-first { }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__media--tall img { aspect-ratio: 4/5; object-fit: cover; }
.split__caption {
  margin-top: 0.8rem;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; color: var(--ink-faint);
  display: flex; gap: 0.6rem;
}
.split__caption .dot { color: var(--gold-deep); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 1.7rem; }

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-style: italic;
  line-height: 1.34;
  color: var(--olive-deep);
  padding-left: 1.6rem;
  position: relative;
}
.pullquote::before {
  content: "";
  position: absolute; left: 0; top: 0.1em; bottom: 0.1em;
  width: 3px; background: var(--gold);
  border-radius: 2px;
}
.section--olive .pullquote { color: var(--paper); }
.pullquote cite {
  display: block; margin-top: 1rem;
  font-family: var(--mono); font-style: normal;
  font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.section--olive .pullquote cite { color: var(--paper-faint); }

/* =====================================================================
   STATS / NUMERI
   ===================================================================== */
.numeri {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-night);
}
.numero {
  padding: clamp(1.6rem,3vw,2.6rem) clamp(1rem,2vw,1.8rem);
  border-bottom: 1px solid var(--line-night);
}
.numero:not(:last-child) { border-right: 1px solid var(--line-night); }
.numero__fig {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem);
  line-height: 1;
  color: var(--gold);
}
.numero__fig sup { font-size: 0.42em; vertical-align: 0.9em; color: var(--paper-faint); }
.numero__label {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.numero__note { margin-top: 0.4rem; font-size: var(--t-sm); color: var(--paper-dim); }

/* =====================================================================
   FEATURE ROWS — editorial alternating
   ===================================================================== */
.feature {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: clamp(1.6rem, 4.5vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3rem, 6vw, 6rem); }
.feature--flip .feature__media { order: 2; }
.feature__media img {
  width: 100%; aspect-ratio: 5/6; object-fit: cover;
  border-radius: var(--radius);
}
.feature__media--wide img { aspect-ratio: 4/3; }
.feature__index {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

/* =====================================================================
   CERTIFICAZIONI — registro
   ===================================================================== */
.registro { border-top: 1px solid var(--line); }
.cert {
  display: grid;
  grid-template-columns: 3.4rem minmax(8rem, 1fr) 2fr auto;
  gap: clamp(0.8rem, 2.5vw, 2.4rem);
  align-items: center;
  padding: clamp(1.2rem,2.6vw,1.9rem) 0;
  border-bottom: 1px solid var(--line);
}
.cert__seal { width: 3.4rem; height: 3.4rem; object-fit: contain; flex: none; }
img.cert__seal { border-radius: 2px; }
.cert__name { font-family: var(--serif); font-size: var(--t-md); }
.cert__by { margin-top: 0.15rem; font-size: var(--t-sm); color: var(--ink-soft); }
.cert__desc { font-size: var(--t-sm); color: var(--ink-soft); }
.cert__code {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; color: var(--ink-faint);
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.section--olive .cert { border-color: var(--line-night); }
.section--olive .registro { border-color: var(--line-night); }
.section--olive .cert__by, .section--olive .cert__desc { color: var(--paper-dim); }
.section--olive .cert__code { background: oklch(1 0 0 / 0.08); color: var(--gold); }

/* =====================================================================
   PROCESSO — steps
   ===================================================================== */
.processo { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.6rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  padding-top: 0.35rem;
}
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step__body h3 { font-size: var(--t-md); }
.step__body p { margin-top: 0.55rem; color: var(--ink-soft); max-width: 58ch; }
.step__tag {
  display: inline-block; margin-top: 0.7rem;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; color: var(--olive);
  padding: 0.25rem 0.6rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: var(--radius);
}

/* Link esterno elegante dentro un titolo (es. prodotti del territorio) */
.extlink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: oklch(0.805 0.128 84 / 0.85);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.extlink:hover { color: var(--olive); text-decoration-color: var(--gold-deep); }
.extlink__i {
  width: .58em; height: .58em;
  margin-left: .3em;
  color: var(--gold-deep); opacity: .72;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.extlink:hover .extlink__i { transform: translate(2px, -2px); opacity: 1; }

/* Scheda tecnica */
.scheda {
  background: var(--olive-night);
  color: var(--paper-dim);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.scheda h3 { color: var(--paper); }
.section--olive .scheda { background: var(--olive-deep); box-shadow: inset 0 0 0 1px var(--line-night); }
.scheda__row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-night);
  font-size: var(--t-sm);
}
.scheda__row:last-child { border-bottom: none; }
.scheda__row dt { font-family: var(--mono); letter-spacing: 0.05em; color: var(--paper-faint); }
.scheda__row dd { text-align: right; color: var(--paper); font-weight: 500; }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { border-left: 1px solid var(--line-night); margin-left: 0.5rem; }
.tl {
  position: relative;
  padding: 0 0 clamp(1.8rem,3vw,2.6rem) clamp(1.6rem,3vw,2.6rem);
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute; left: -5px; top: 0.4rem;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--olive-night);
}
.tl__year {
  font-family: var(--mono); font-size: var(--t-sm);
  letter-spacing: 0.08em; color: var(--gold);
}
.tl__title { font-family: var(--serif); font-size: var(--t-md); color: var(--paper); margin-top: 0.25rem; }
.tl__text { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--paper-dim); max-width: 52ch; }

/* =====================================================================
   PRODUCT TEASER (home)
   ===================================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  max-width: 46rem;
  margin-inline: auto;
}
.teaser {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.teaser:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -28px oklch(0.318 0.054 142 / 0.6); }
.teaser__pic {
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 50% 38%, var(--sage), var(--paper-2));
  display: grid; place-items: center;
  padding: 1.6rem;
}
.teaser__pic img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 22px oklch(0.24 0.02 142 / 0.28)); }
.teaser__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.teaser__line { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.teaser__name { font-family: var(--serif); font-size: var(--t-md); margin-top: 0.35rem; }
.teaser__desc { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--ink-soft); flex: 1; }
.teaser__foot { margin-top: 1.1rem; display: flex; align-items: baseline; justify-content: space-between; }
.teaser__price { font-family: var(--serif); font-size: var(--t-md); }

/* =====================================================================
   SHOP — prodotti page
   ===================================================================== */
.shopbar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.filter.is-active { background: var(--olive); color: var(--paper); box-shadow: inset 0 0 0 1px var(--olive); }
.shopbar__count { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); letter-spacing: 0.06em; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) 1fr;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.product:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -32px oklch(0.318 0.054 142 / 0.7); }
.product.is-out { opacity: 0.92; }
.product__pic {
  position: relative;
  align-self: start;
  aspect-ratio: 3/4;
  background: radial-gradient(circle at 50% 36%, var(--sage), var(--paper-2));
  border-radius: var(--radius);
  display: grid; place-items: center;
  padding: 0.9rem;
}
.product__pic img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 16px oklch(0.24 0.02 142 / 0.3)); }
.product__flag {
  position: absolute; top: 0.55rem; left: 0.55rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.22rem 0.5rem; border-radius: 2px;
  background: var(--olive); color: var(--paper);
}
.product__flag--out { background: var(--clay); }
.product__head { display: flex; flex-direction: column; }
.product__line { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.product__name { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.05; margin-top: 0.25rem; }
.product__blurb { margin-top: 0.55rem; font-size: var(--t-sm); color: var(--ink-soft); }

.product__specs {
  margin-top: 0.9rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.spec { font-size: var(--t-xs); }
.spec dt { font-family: var(--mono); letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; font-size: 0.66rem; }
.spec dd { color: var(--ink); font-weight: 500; margin-top: 0.05rem; }

.product__sensory { margin-top: 0.85rem; }
.sensory-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.gauge { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.35rem; }
.gauge__name { font-size: var(--t-xs); width: 4.6rem; color: var(--ink-soft); }
.gauge__track { flex: 1; height: 5px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.gauge__fill { height: 100%; background: linear-gradient(90deg, var(--olive), var(--gold)); border-radius: 999px; }

.product__foot {
  margin-top: 1.1rem; padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.product__price { font-family: var(--serif); font-size: var(--t-lg); }
.product__price small { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); letter-spacing: 0.04em; }

.add-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--olive); color: var(--paper);
  border-radius: var(--radius);
  font-size: var(--t-sm); font-weight: 600;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.add-btn svg { width: 1rem; height: 1rem; }
.add-btn:hover { background: var(--olive-deep); transform: translateY(-2px); }
.add-btn.is-added { background: var(--gold-deep); }
.add-btn[disabled] { background: var(--paper-3); color: var(--ink-faint); cursor: not-allowed; transform: none; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.238 0.04 145 / 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(31rem, 100vw);
  height: 100dvh;
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .5s var(--ease);
  box-shadow: -30px 0 60px -40px oklch(0.24 0.02 142 / 0.8);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--serif); font-size: var(--t-md); }
.drawer__title span { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); margin-left: 0.5rem; }
.drawer__close {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  display: grid; place-items: center;
  transition: background .3s var(--ease);
}
.drawer__close:hover { background: var(--paper-2); }
.drawer__close svg { width: 1.1rem; height: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--gutter); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--gutter); }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.cart-empty svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; opacity: 0.5; }
.cart-empty p { font-size: var(--t-sm); }

.cart-line {
  display: grid;
  grid-template-columns: 4.4rem 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__pic {
  background: radial-gradient(circle at 50% 40%, var(--sage), var(--paper-2));
  border-radius: var(--radius);
  display: grid; place-items: center; padding: 0.35rem;
}
.cart-line__pic img { max-height: 3.4rem; max-width: 100%; width: auto; height: auto; }
.cart-line__name { font-family: var(--serif); font-size: var(--t-base); }
.cart-line__meta { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); margin-top: 0.15rem; }
.qty {
  display: inline-flex; align-items: center; margin-top: 0.6rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: var(--radius);
}
.qty button {
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  font-family: var(--mono); color: var(--olive);
  transition: background .25s var(--ease);
}
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 2rem; text-align: center; font-family: var(--mono); font-size: var(--t-sm); }
.cart-line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.cart-line__price { font-family: var(--serif); font-size: var(--t-base); }
.cart-line__remove {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--ink-faint); letter-spacing: 0.04em;
  transition: color .25s var(--ease);
}
.cart-line__remove:hover { color: var(--clay); }

.cart-summary { margin-bottom: 1rem; }
.cart-summary__row {
  display: flex; justify-content: space-between;
  font-size: var(--t-sm); padding: 0.3rem 0;
  color: var(--ink-soft);
}
.cart-summary__row--total {
  margin-top: 0.5rem; padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-md); color: var(--ink);
}
.cart-summary__row--total b { font-family: var(--serif); font-weight: 500; }
.drawer__note {
  margin-top: 0.85rem;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.04em; color: var(--ink-faint);
  text-align: center; line-height: 1.5;
}

/* Checkout view inside drawer */
.checkout { display: none; }
.drawer[data-view="checkout"] .cart-view { display: none; }
.drawer[data-view="checkout"] .checkout { display: block; }
.drawer[data-view="done"] .cart-view,
.drawer[data-view="done"] .checkout { display: none; }
.checkout-done { display: none; text-align: center; padding: 2.5rem 0.5rem; }
.drawer[data-view="done"] .checkout-done { display: block; }
.checkout-done__seal { width: 4rem; height: 4rem; margin: 0 auto 1.2rem; }
.checkout-done h3 { font-size: var(--t-lg); }
.checkout-done p { margin-top: 0.7rem; font-size: var(--t-sm); color: var(--ink-soft); }
.checkout-done__code {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--mono); font-size: var(--t-sm);
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem; background: var(--sage);
  border-radius: var(--radius); color: var(--olive-deep);
}

/* =====================================================================
   FORMS
   ===================================================================== */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.4rem;
}
.field label .req { color: var(--clay); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px oklch(0.435 0.076 138 / 0.14);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.8rem);
}
.form-ok {
  display: none;
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  background: var(--sage);
  border-radius: var(--radius);
  font-size: var(--t-sm); color: var(--olive-deep);
}
.form-ok.is-on { display: block; }

/* Consenso privacy (checkbox nel modulo d'ordine) */
.consent {
  display: flex; gap: 0.55rem; align-items: flex-start;
  margin-top: 0.5rem;
  font-size: var(--t-sm); line-height: 1.4; color: var(--ink-soft);
  cursor: pointer;
}
.consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.16rem; flex: none; accent-color: var(--olive); }
.consent a { color: var(--olive); box-shadow: inset 0 -1px 0 var(--gold); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 5vw, 4.5rem);
}
.info-block + .info-block { margin-top: 1.7rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.info-block h3 { font-size: var(--t-md); }
.info-block__rows { margin-top: 0.8rem; }
.info-line {
  display: flex; gap: 0.8rem;
  font-size: var(--t-sm); padding: 0.28rem 0;
  color: var(--ink-soft);
}
.info-line svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--gold-deep); margin-top: 0.18rem; }
.info-line b { color: var(--ink); font-weight: 600; }
.hours-row { display: flex; justify-content: space-between; font-size: var(--t-sm); padding: 0.34rem 0; border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--ink-soft); }
.hours-row span:last-child { font-family: var(--mono); font-size: var(--t-xs); }

.map-frame {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: var(--t-md);
  transition: color .3s var(--ease);
}
.faq summary:hover { color: var(--olive); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--mono); font-weight: 400;
  font-size: 1.4rem; color: var(--gold-deep);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 1.3rem; margin-top: -0.2rem; color: var(--ink-soft); max-width: 66ch; }

/* =====================================================================
   NEWSLETTER / CTA band
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.6rem, 5vw, 4rem); align-items: center;
}
.nl-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 12rem;
  padding: 0.9rem 1rem;
  background: oklch(1 0 0 / 0.07);
  border: 1px solid var(--line-night);
  border-radius: var(--radius);
  color: var(--paper);
}
.nl-form input::placeholder { color: var(--paper-faint); }
.nl-form input:focus { outline: none; border-color: var(--gold); }
.nl-ok { display:none; margin-top: 0.8rem; font-size: var(--t-sm); color: var(--gold); }
.nl-ok.is-on { display: block; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot {
  background: var(--olive-night);
  color: var(--paper-dim);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  border-bottom: 1px solid var(--line-night);
}
.foot-brand .brand__name { color: var(--paper); }
.foot-brand p { margin-top: 1rem; font-size: var(--t-sm); color: var(--paper-faint); max-width: 30ch; }
.foot-col h4 {
  font-family: var(--mono); font-size: var(--t-xs);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.foot-col ul { margin-top: 1rem; }
.foot-col li + li { margin-top: 0.5rem; }
.foot-col a { font-size: var(--t-sm); color: var(--paper-dim); transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--gold); }
.foot-badges { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.foot-badge {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem; border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-night);
  color: var(--gold);
}
.foot-bot {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.6rem 2rem;
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--paper-faint); letter-spacing: 0.04em;
}
.foot-bot a:hover { color: var(--gold); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem;
  transform: translate(-50%, 150%);
  z-index: 88;
  background: var(--olive-night); color: var(--paper);
  padding: 0.85rem 1.3rem; border-radius: var(--radius);
  font-size: var(--t-sm); font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 20px 40px -20px oklch(0.24 0.02 142 / 0.8);
  transition: transform .55s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }

/* =====================================================================
   ACCOUNT / ACCESSO
   ===================================================================== */
.profile-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  transition: background .3s var(--ease);
}
.profile-btn:hover { background: oklch(0.435 0.076 138 / 0.10); }
.profile-btn svg { width: 1.15rem; height: 1.15rem; }

.auth-scrim {
  position: fixed; inset: 0; z-index: 96;
  background: oklch(0.238 0.04 145 / 0.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.auth-scrim.is-open { opacity: 1; visibility: visible; }
.auth-modal {
  position: fixed; z-index: 97; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden;
  width: min(26rem, 92vw); max-height: 92dvh; overflow-y: auto;
  background: var(--paper); border-radius: calc(var(--radius) * 2);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -40px oklch(0.24 0.02 142 / 0.8);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.auth-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.auth-modal__close {
  position: absolute; top: .8rem; right: .8rem; width: 2.2rem; height: 2.2rem;
  border-radius: 999px; display: grid; place-items: center; color: var(--ink-soft);
  transition: background .3s var(--ease);
}
.auth-modal__close:hover { background: var(--paper-2); }
.auth-modal__close svg { width: 1.1rem; height: 1.1rem; }
.auth-title { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.1; padding-right: 2rem; }
.auth-sub { margin-top: .5rem; color: var(--ink-soft); font-size: var(--t-sm); }
.auth-note { margin-top: .6rem; color: var(--ink-faint); font-size: var(--t-xs); }
.auth-google { margin-top: 1.2rem; gap: .6rem; }
.auth-or {
  display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .4rem;
  color: var(--ink-faint); font-family: var(--mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .1em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-modal .field { margin-bottom: .8rem; }
.auth-msg { min-height: 1.1rem; margin: .2rem 0 .8rem; font-size: var(--t-sm); color: var(--clay); }
.auth-msg.is-ok { color: var(--olive); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.auth-link {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .03em;
  color: var(--ink-soft); box-shadow: inset 0 -1px 0 var(--gold);
  transition: color .3s var(--ease);
}
.auth-link:hover { color: var(--olive); }
.auth-avatar {
  width: 3.4rem; height: 3.4rem; border-radius: 999px; margin: 0 auto .8rem;
  display: grid; place-items: center; background: var(--sage); color: var(--olive-deep);
}
.auth-avatar svg { width: 1.8rem; height: 1.8rem; }
[data-auth-in] { text-align: center; }
.auth-section { margin: 1.2rem 0 .5rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
[data-auth-in] .consent { margin: .9rem 0; font-size: var(--t-xs); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .numeri { grid-template-columns: 1fr 1fr; }
  .numero:nth-child(2n) { border-right: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  /* Su mobile l'header scrollato NON deve usare backdrop-filter: creerebbe un
     containing block che rimpicciolisce il menu a tendina (position:fixed). */
  .site-head.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: oklch(0.967 0.012 92 / 0.98); }
  .nav { z-index: 95; height: 100dvh; }
  .head-actions { position: relative; z-index: 96; }
  body.nav-open .cart-btn { display: none; }
  body.nav-open .profile-btn { display: none; }
  .profile-btn span { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(20rem, 84vw);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem var(--gutter);
    transform: translateX(102%);
    transition: transform .5s var(--ease);
    box-shadow: -30px 0 60px -40px oklch(0.24 0.02 142 / 0.8);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__link { font-size: var(--t-md); color: var(--ink) !important; padding: 0.6rem 0; }
  .site-head:not(.is-scrolled).is-overlay .nav__link { color: var(--ink); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { text-align: left; max-width: 30rem; }
  .hero__coords { display: none; }
  .split, .feature, .feature--flip .feature__media { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .contact-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 2.8rem 1fr; grid-auto-flow: row; }
  .cert__desc { grid-column: 2; }
  .cert__code { grid-column: 2; justify-self: start; }
}

@media (max-width: 540px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .numeri { grid-template-columns: 1fr; }
  .numero { border-right: none !important; }
  .product { grid-template-columns: 1fr; }
  .product__pic { max-width: 11rem; }
  .product__specs { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
}