/* ============================================================
   Sistema Visivo "Verde Contemporaneo" · v2.0
   Foglio di stile condiviso - tokens, tipografia, componenti.
   Le utility di layout (flex, grid, gap, p-, hidden md:block...)
   restano affidate a Tailwind. Qui vive tutto il resto.
   ============================================================ */

/* ------------------------------------------------------------
   1. Design tokens
   Duplicati come :root vars (per var() in CSS/inline) - i medesimi
   valori sono anche esposti a Tailwind via @theme in ogni pagina.
   ------------------------------------------------------------ */
:root {
  --color-forest: #1A3E24;
  --color-fmid:   #2A5637;
  --color-sage:   #8DAE93;
  --color-mint:   #EAF1EA;
  --color-ink:    #111110;
  --color-warm:   #F6F2EA;
  --color-gold:   #B89868;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ------------------------------------------------------------
   2. Reset leggero & base
   ------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--color-forest); color: #fff; }

/* Focus ring accessibile (spec §12) */
:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 4px;
}

/* Skip link */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.focus\:not-sr-only:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; margin: 0; clip: auto; white-space: normal;
  background: var(--color-forest); color: #fff;
  padding: 10px 18px; border-radius: 3px; font-size: 13px; font-weight: 500;
}

/* ------------------------------------------------------------
   3. Scala tipografica
   ------------------------------------------------------------ */
.t-hero {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 9.5vw, 128px);
  line-height: 0.95; letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.t-section {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 5.5vw, 72px);
  line-height: 1.04; letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.t-sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.1; letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.t-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.t-body { font-size: 16px; font-weight: 300; line-height: 1.65; }
.t-body-lg { font-size: 18px; font-weight: 300; line-height: 1.68; }

/* Label decorativa con lineetta accent (spec §6) */
.t-label--line {
  display: flex; align-items: center; gap: 12px;
  color: var(--color-forest);
}
.t-label--line::before {
  content: ""; display: block; width: 22px; height: 1.5px;
  background: currentColor; flex-shrink: 0;
}
.t-label--line.on-dark { color: var(--color-sage); }

/* ------------------------------------------------------------
   4. Pulsanti
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; border-radius: 3px;
  text-decoration: none; transition: all 0.25s; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { gap: 16px; }               /* micro-feedback signature */
.btn-white   { background: #fff;                color: var(--color-forest); }
.btn-white:hover   { background: var(--color-mint); }
.btn-green   { background: var(--color-forest);  color: #fff; }
.btn-green:hover   { background: var(--color-fmid); }
.btn-outline { background: transparent; color: var(--color-forest); border-color: var(--color-forest); }
.btn-outline:hover { background: var(--color-forest); color: #fff; }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline.on-dark:hover { background: #fff; color: var(--color-forest); border-color: #fff; }

/* Ghost link con freccia */
.link-arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--color-forest); transition: gap 0.25s, color 0.25s;
}
.link-arr:hover { gap: 14px; }
.link-arr.on-dark { color: var(--color-sage); }
.link-arr.on-dark:hover { color: #fff; }

/* ------------------------------------------------------------
   5. Navigazione
   ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 24px; display: flex; align-items: center; gap: 24px;
  position: relative;
}
@media (min-width: 768px) { .nav-inner { padding: 22px 56px; } }
@media (max-width: 400px) {
  .nav-inner { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .lang-btn { padding: 4px 6px; }
}

.nav-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; text-decoration: none;
  color: #fff; transition: color 0.35s; white-space: nowrap;
  display: inline-flex; align-items: center;
}
/* Logo immagine: bianco su hero scuro, a colori quando la nav è chiara.
   Stessa altezza nei due stati (nessun rimpicciolimento allo scroll). */
.nav-logo img { height: 48px; width: auto; display: block; }
@media (max-width: 640px) { .nav-logo img { height: 40px; } }
.nav-logo .logo-color { display: none; }
.nav-logo .logo-white { display: block; }
.nav.scrolled .nav-logo .logo-white,
.nav--solid .nav-logo .logo-white { display: none; }
.nav.scrolled .nav-logo .logo-color,
.nav--solid .nav-logo .logo-color { display: block; }
.nav-links { display: none; gap: 34px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  position: relative; font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em; text-decoration: none;
  color: rgba(255,255,255,.85); transition: color 0.3s; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
/* Language dropdown */
.lang-drop { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px 8px;
  border-radius: 4px; font-size: 12px; font-weight: 500; font-family: var(--font-body);
  color: rgba(255,255,255,.85); transition: background 0.2s, color 0.2s;
  letter-spacing: 0.06em;
}
.lang-btn:hover, .lang-drop.is-open .lang-btn { background: rgba(255,255,255,.14); color: #fff; }
.lang-btn svg { transition: transform 0.2s; }
.lang-drop.is-open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  display: none; list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 152px; background: #fff; border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.08);
  z-index: 200;
}
.lang-drop.is-open .lang-menu { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  color: rgba(17,17,16,.55); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-btn img, .lang-opt img { display: block; height: 14px; width: auto; border-radius: 2px; }
a.lang-opt:hover { background: var(--color-mint); color: var(--color-ink); }
.lang-opt.is-active { color: var(--color-forest); font-weight: 600; }
/* Selettore lingua nel menu mobile */
.mm-lang { display: inline-flex; align-items: center; gap: 10px; }
.mm-lang .lang { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: rgba(17,17,16,.45); }
.mm-lang .lang.active { color: var(--color-forest); font-weight: 600; }
.mm-lang .sep { color: rgba(17,17,16,.25); }

/* Stato scrolled (aggiunto via JS) */
.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(17,17,16,.10);
}
.nav.scrolled .nav-logo { color: var(--color-ink); }
.nav.scrolled .nav-link { color: rgba(17,17,16,.62); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link[aria-current="page"] { color: var(--color-ink); }
.nav.scrolled .lang-btn { color: rgba(17,17,16,.55); }
.nav.scrolled .lang-btn:hover, .nav.scrolled .lang-drop.is-open .lang-btn { background: rgba(17,17,16,.07); color: var(--color-ink); }
.nav.scrolled .nav-cta { background: var(--color-forest); color: #fff; }
.nav.scrolled .nav-cta:hover { background: var(--color-fmid); }
.nav.scrolled .hamb span { background: var(--color-ink); }

/* Pagine con hero chiaro: nav parte già in stato "ink" */
.nav.nav--solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(17,17,16,.10);
}
.nav--solid .nav-logo { color: var(--color-ink); }
.nav--solid .nav-link { color: rgba(17,17,16,.62); }
.nav--solid .nav-link:hover, .nav--solid .nav-link[aria-current="page"] { color: var(--color-ink); }
.nav--solid .lang-btn { color: rgba(17,17,16,.55); }
.nav--solid .lang-btn:hover, .nav--solid .lang-drop.is-open .lang-btn { background: rgba(17,17,16,.07); color: var(--color-ink); }
.nav--solid .nav-cta { background: var(--color-forest); color: #fff; }
.nav--solid .hamb span { background: var(--color-ink); }

.nav-cta {
  display: none; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 3px; text-decoration: none; white-space: nowrap;
  background: #fff; color: var(--color-forest); transition: all 0.25s;
}
.nav-cta:hover { gap: 12px; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.hamb {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 30px; height: 30px; background: none; border: 0; cursor: pointer; padding: 0;
}
@media (min-width: 1024px) { .hamb { display: none; } }
.hamb span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s, background 0.35s; }

/* Overlay mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--color-ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 7vw, 44px); color: #fff; text-decoration: none;
  padding: 8px 0; letter-spacing: -0.02em; transition: color 0.25s;
  transform: translateY(12px); opacity: 0;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; transition: transform 0.5s, opacity 0.5s, color 0.25s; }
.mobile-menu a:hover { color: var(--color-sage); }
.mobile-menu .mm-close {
  position: absolute; top: 22px; right: 24px; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; color: #fff; font-size: 26px;
}
.mobile-menu .mm-foot {
  position: absolute; bottom: 34px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ------------------------------------------------------------
   6. Sezioni & container
   ------------------------------------------------------------ */
.container { max-width: 1280px; margin: 0 auto; }
.sec-warm { background: var(--color-warm); }
.sec-mint { background: var(--color-mint); }
.sec-ink  { background: var(--color-ink); color: #fff; }
.sec-forest { background: var(--color-forest); color: #fff; }

.sec-ink { position: relative; padding-bottom: 180px; }
.sec-ink::after {
  content: ''; position: absolute;
  bottom: 40px; left: 0; right: 0; height: 88px;
  background: url('images/ui/pattern-olio.png') repeat-x left center / auto 88px;
  opacity: .80; pointer-events: none; z-index: 0;
}
.sec-ink > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--color-forest); color: #fff; overflow: hidden;
  padding-top: 104px; /* riserva lo spazio della nav fissa, evita l'overlap col logo */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(42,86,55,.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(17,17,16,.45) 0%, transparent 60%),
    linear-gradient(160deg, #1A3E24 0%, #123019 100%);
}
.hero-year {
  position: absolute; right: -2vw; bottom: -3vw; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(180px, 34vw, 560px); line-height: 0.8;
  color: rgba(255,255,255,.04); pointer-events: none; user-select: none;
}
.hero-logo {
  position: absolute; right: -1vw; bottom: -2vw; z-index: 1;
  width: clamp(140px, 22vw, 340px); opacity: .07;
  filter: brightness(0) invert(1);
  pointer-events: none; user-select: none; display: block;
}
.hero-branch { position: absolute; top: 8%; right: 4%; z-index: 1; width: min(40vw, 460px); opacity: .12; display: none; }
@media (min-width: 1024px) { .hero-branch { display: block; } }
.hero-content { position: relative; z-index: 2; }

/* Hero interno (pagine secondarie) */
.hero-inner {
  position: relative; min-height: 60vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--color-forest); color: #fff; overflow: hidden;
  padding-top: 120px;
}
/* Foto di sfondo + overlay verde per gli header interni */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; border-radius: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(11,28,17,.84) 0%, rgba(17,44,27,.52) 34%, rgba(15,38,23,.56) 55%, rgba(9,24,15,.93) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(45,122,80,.35), transparent 60%);
}

/* Header interni in stile home: contenuto in basso a sinistra
   + parola gigante sfumata dietro (come il "2017" della home) */
.hero-ghost {
  position: absolute; right: -1.5vw; bottom: -2.5vw; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 18vw, 280px); line-height: 0.8; letter-spacing: -0.03em;
  color: rgba(255,255,255,.07); pointer-events: none; user-select: none; white-space: nowrap;
}

.breadcrumb { font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,.6); }
.breadcrumb a { text-decoration: none; color: rgba(255,255,255,.6); transition: color 0.25s; }
.breadcrumb a:hover { color: #fff; }

.scroll-ind { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; }
.scroll-ind .line {
  width: 1px; height: 54px; background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  position: relative; overflow: hidden;
}
.scroll-ind .line::after {
  content: ""; position: absolute; top: -20px; left: 0; width: 1px; height: 20px;
  background: #fff; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: -20px; } 100% { top: 54px; } }

/* ------------------------------------------------------------
   8. Product card
   ------------------------------------------------------------ */
.p-card {
  background: var(--color-warm); border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(17,17,16,0.07);
  transition: box-shadow 0.35s, transform 0.35s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.p-card:hover { box-shadow: 0 20px 56px rgba(17,17,16,.11); transform: translateY(-5px); }
.p-card-img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-mint);
}
.p-card-img-bg {
  position: absolute; inset: 0;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.p-card:hover .p-card-img-bg { transform: scale(1.06); }
.p-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* ------------------------------------------------------------
   9. Floating stat card
   ------------------------------------------------------------ */
.stat-card {
  position: absolute; background: #fff; border: 1px solid rgba(17,17,16,.08);
  border-radius: 6px; box-shadow: 0 8px 32px rgba(17,17,16,.09); padding: 18px 22px;
}
.stat-card .n {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  color: var(--color-forest); letter-spacing: -.02em; line-height: 1;
}

/* ------------------------------------------------------------
   10. Contatore su sfondo ink
   ------------------------------------------------------------ */
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 6vw, 82px); line-height: 1; letter-spacing: -0.03em;
  color: #fff;
}

/* ------------------------------------------------------------
   11. Timeline (frantoio.html)
   ------------------------------------------------------------ */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1.5px; background: rgba(17,17,16,.14);
}
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-forest); box-shadow: 0 0 0 4px var(--color-mint);
}
.tl-year {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--color-forest); letter-spacing: -0.02em; margin-bottom: 6px;
}

/* Timeline redesign - layout editoriale a righe */
.tl-rows {}
.tl-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 64px;
  padding: 36px 0;
  border-top: 1px solid rgba(17,17,16,.10);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid rgba(17,17,16,.10); }
.tl-row-year {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--color-forest); letter-spacing: -0.04em; line-height: 1;
}
@media (max-width: 639px) {
  .tl-row { grid-template-columns: 1fr; gap: 6px 0; padding: 26px 0; }
  .tl-row-year { font-size: 28px; }
}

/* ------------------------------------------------------------
   12. Processo (card con icona + numero ghost)
   ------------------------------------------------------------ */
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-forest); color: var(--color-forest);
  flex-shrink: 0;
}
.process-card {
  background: #fff; border: 1px solid rgba(17,17,16,.08);
  border-top: 3px solid var(--color-forest); border-radius: 6px;
  padding: 28px 24px 30px; position: relative; overflow: hidden;
}
.process-card-ghost {
  position: absolute; top: -4px; right: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 88px;
  color: rgba(26,62,36,.055); line-height: 1; letter-spacing: -0.04em;
  pointer-events: none; user-select: none;
}
.process-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-mint); color: var(--color-forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.process-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--color-ink); margin: 0 0 10px; position: relative; z-index: 1;
}
.process-card p {
  font-size: 14px; color: rgba(17,17,16,.62); line-height: 1.7;
  position: relative; z-index: 1; margin: 0;
}

/* ------------------------------------------------------------
   13. Profilo sensoriale (progress bar)
   ------------------------------------------------------------ */
.sensory-row { margin-bottom: 18px; }
.sensory-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sensory-track { height: 6px; border-radius: 3px; background: var(--color-mint); overflow: hidden; }
.sensory-fill {
  height: 100%; border-radius: 3px; background: var(--color-forest);
  width: 0; transition: width 1.1s cubic-bezier(0.22,1,0.36,1);
}

/* ------------------------------------------------------------
   14. Tag / badge
   ------------------------------------------------------------ */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 3px; font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; background: var(--color-mint); color: var(--color-forest);
}
.tag-gold {
  background: rgba(184, 152, 104,0.10); color: var(--color-gold);
  border: 1px solid rgba(184, 152, 104,.25);
}
.pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--color-mint); color: var(--color-forest);
}

/* Prezzo */
.price {
  font-family: var(--font-display); font-weight: 800; color: var(--color-gold);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   15. Riconoscimenti - bacheca
   ------------------------------------------------------------ */
.awards-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .awards-board { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.award-tile {
  background: #fff; border: 1px solid rgba(17,17,16,.08); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
}
.award-tile--medal { border-top: 3px solid var(--color-gold); }
.award-tile--guide { border-top: 3px solid var(--color-sage); }
.award-tile-img { aspect-ratio: 4/5; overflow: hidden; }
.award-tile-img img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.award-tile:hover .award-tile-img img { transform: scale(1.04); }
.award-tile-body { padding: 16px 18px 20px; }
.award-tile-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.award-tile--medal .award-tile-badge { color: var(--color-gold); }
.award-tile--guide .award-tile-badge { color: var(--color-forest); }
.award-tile-name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--color-ink); line-height: 1.2; margin-bottom: 4px;
}
.award-tile-detail { font-size: 12px; color: rgba(17,17,16,.5); line-height: 1.4; }

.award-card {
  background: #fff; border: 1px solid rgba(17,17,16,.07);
  border-left: 3px solid var(--color-gold); border-radius: 6px;
  padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start;
}
.award-badge {
  width: 42px; height: 42px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184, 152, 104,0.10);
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--color-gold); text-transform: uppercase;
}
.press-card {
  background: #fff; border-left: 2px solid var(--color-mint);
  padding: 22px 26px; border-radius: 0 6px 6px 0;
}
.press-title { font-style: italic; font-size: 19px; font-weight: 400; line-height: 1.35; margin: 8px 0 10px; }

.fair-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid rgba(17,17,16,.10);
}
.fair-row:last-child { border-bottom: 0; }
.fair-row > div:first-child { min-width: 0; }
.fair-year { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: rgba(17,17,16,.4); flex-shrink: 0; }

/* ------------------------------------------------------------
   16b. Social preview (contatti)
   ------------------------------------------------------------ */
.social-preview {
  background: #fff; border: 1px solid rgba(17,17,16,.08); border-radius: 8px; overflow: hidden;
}
.social-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(17,17,16,.07);
}
.social-preview-handle {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--color-ink);
}
.social-feed-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
  background: rgba(17,17,16,.07);
}
.social-feed-cell { aspect-ratio: 1/1; overflow: hidden; }
.social-feed-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s ease; }
.social-feed-grid:hover .social-feed-cell img { transform: scale(1.04); }
.social-preview-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; font-size: 13px;
}
.social-preview-foot span { color: rgba(17,17,16,.5); }
.social-preview-foot a { font-weight: 500; color: var(--color-forest); text-decoration: none; white-space: nowrap; }
.social-preview-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   17. Form (contatti)
   ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(17,17,16,.6); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; font-weight: 300; color: var(--color-ink);
  padding: 13px 15px; border: 1px solid rgba(17,17,16,.16); border-radius: 4px;
  background: #fff; transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(26,62,36,.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--error input, .field--error select, .field--error textarea {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.field-error-msg {
  font-size: 12px; color: #c0392b; margin-top: 4px; display: none;
}
.field--error .field-error-msg { display: block; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 26px; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--color-forest); flex-shrink: 0; }
.check-row label { font-size: 13px; line-height: 1.6; text-transform: none; letter-spacing: 0; color: rgba(17,17,16,.7); }

/* ------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------ */
.footer { background: var(--color-ink); color: rgba(255,255,255,.72); padding-top: 72px; padding-bottom: 40px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.72); transition: color 0.25s; overflow-wrap: anywhere; }
.footer-col ul { overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #fff; letter-spacing: -0.02em; }
.footer-logo img { height: 62px; width: auto; display: block; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.social a:hover { background: #fff; color: var(--color-ink); border-color: #fff; }

/* ------------------------------------------------------------
   18. Prose (privacy / cookie)
   ------------------------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 15px; font-weight: 300; line-height: 1.8; color: rgba(17,17,16,.78); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.prose a { color: var(--color-forest); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border: 1px solid rgba(17,17,16,.12); vertical-align: top; }
.prose th { background: var(--color-mint); font-weight: 500; }

/* Divisore botanico sottile */
.rule { height: 1px; background: rgba(17,17,16,.10); border: 0; }

/* ------------------------------------------------------------
   Video (facade click-to-load per YouTube)
   ------------------------------------------------------------ */
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; background: var(--color-ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; cursor: pointer; background: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(17,17,16,.28); transition: background 0.3s;
}
.video-facade:hover::before, .video-facade:focus-visible::before { background: rgba(17,17,16,.12); }
.video-play {
  position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(17,17,16,.25); transition: transform 0.3s, background 0.3s;
}
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.08); background: #fff; }
.video-play svg { margin-left: 4px; color: var(--color-forest); }

/* Mappa (facade click-to-load per Google Maps) */
.map-frame { position: relative; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: transparent;
  display: flex; align-items: flex-end; justify-content: center;
}
.map-facade::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(26,62,36,.10); transition: background 0.3s;
}
.map-facade:hover::before, .map-facade:focus-visible::before { background: rgba(26,62,36,.02); }
.map-facade .map-cta {
  position: relative; z-index: 1; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--color-forest); border-radius: 3px;
  padding: 11px 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(17,17,16,.16); transition: gap 0.25s;
}
.map-facade:hover .map-cta, .map-facade:focus-visible .map-cta { gap: 12px; }

/* Offset anchor per sezioni sotto una barra sticky extra (es. filtro prodotti):
   compensa nav fissa (66px) + barra filtri (116px mobile / 148px desktop) + buffer */
.anchor-below-filter { scroll-margin-top: 190px; }
@media (min-width: 768px) { .anchor-below-filter { scroll-margin-top: 226px; } }

/* ------------------------------------------------------------
   18b. Filtro linee prodotto (tabs)
   ------------------------------------------------------------ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(17,17,16,.6);
  border: 1.5px solid rgba(17,17,16,.16); transition: all 0.25s;
}
.filter-tab:hover { border-color: var(--color-forest); color: var(--color-forest); }
.filter-tab.is-active { background: var(--color-forest); border-color: var(--color-forest); color: #fff; }

/* Tabella formati/prezzi */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left; padding: 15px 8px; border-bottom: 1px solid rgba(17,17,16,.12); font-size: 15px;
}
.price-table th { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(17,17,16,.5); }
.price-table td:last-child, .price-table th:last-child { text-align: right; }

/* ------------------------------------------------------------
   Bordi curvi su tutte le immagini di contenuto (default globale,
   vale anche per le immagini future). 6px = coerente col resto.
   ------------------------------------------------------------ */
img { border-radius: 6px; }
/* Contenitori che ritagliano l'immagine */
.media-frame, .prod-frame { border-radius: 6px; overflow: hidden; }
/* Eccezioni: loghi (trasparenti) e immagini il cui raggio è gestito
   dal contenitore, per non creare tacche sugli angoli adiacenti */
.nav-logo img, .footer-logo img { border-radius: 0; }
.p-card-img img, .prod-photo { border-radius: 0; }

/* Immagine che riempie un frame (con aspect-ratio impostato sul contenitore) */
img.media-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------
   Carosello (galleria territorio)
   ------------------------------------------------------------ */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { height: 0; display: none; }
.carousel-slide { flex: 0 0 auto; width: min(84%, 440px); scroll-snap-align: start; }
.carousel-slide figure { margin: 0; }
.carousel-slide img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 6px; background: var(--color-mint); border: 1px solid rgba(17,17,16,.06);
}
.carousel-slide figcaption { font-size: 12px; letter-spacing: .02em; color: rgba(17,17,16,.5); margin-top: 10px; }
.carousel-nav { display: flex; gap: 10px; margin-top: 24px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(17,17,16,.2); background: transparent; color: var(--color-ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.carousel-btn:hover { background: var(--color-forest); border-color: var(--color-forest); color: #fff; }

/* Mosaico fotografico (territorio) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
}
.mosaic-item { overflow: hidden; border-radius: 6px; }
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 0;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-tall { grid-row: span 2; }
.mosaic-wide { grid-column: span 3; }
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic-tall { grid-row: span 1; }
  .mosaic-wide { grid-column: span 1; }
}

/* ------------------------------------------------------------
   WhatsApp floating button
   ------------------------------------------------------------ */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  text-decoration: none;
  opacity: 0; transform: translateY(14px);
  animation: wa-in 0.5s 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s, bottom 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes wa-in {
  to { opacity: 1; transform: translateY(0); }
}
.wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.42);
}
.wa-btn.shifted { bottom: 90px; }

/* ------------------------------------------------------------
   Torna in cima
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--color-forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(17,17,16,.22);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-fmid); }

/* ------------------------------------------------------------
   Cookie consent banner
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--color-ink); color: rgba(255,255,255,.8);
  padding: 18px clamp(16px, 5vw, 40px) 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -8px 40px rgba(17,17,16,.24);
  animation: cb-in 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cb-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner p {
  flex: 1; min-width: 200px; margin: 0;
  font-size: 13px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.6);
}
.cookie-banner a { color: var(--color-sage); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* Foto prodotto (bottiglie su fondo bianco): niente crop */
.prod-photo {
  width: 100%; height: 100%; object-fit: contain;
  padding: 8%; background: #fff;
}
.prod-frame {
  border-radius: 6px; overflow: hidden; background: #fff;
  border: 1px solid rgba(17,17,16,.08);
}

/* Abbinamento (icona piatto) */
.pairing { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pairing-ic {
  width: 60px; height: 60px; border-radius: 50%; background: var(--color-mint);
  display: flex; align-items: center; justify-content: center; color: var(--color-forest);
}

/* ------------------------------------------------------------
   19. Stati iniziali animazioni (evita FOUC prima di GSAP)
   ------------------------------------------------------------ */
.anim-up   { opacity: 0; }
.anim-left { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-up, .anim-left { opacity: 1 !important; transform: none !important; }
  .scroll-ind .line::after { animation: none; }
}
