/*
 * ORTOFRUTTA TONY — Stile
 * Palette dai loghi del cliente: verde foglia, rosso pomodoro, arancio
 * agrume su fondo crema; tricolore come filo conduttore (Made in Italy).
 */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../../fonts/CabinetGrotesk-Variable.woff2') format('woff2-variations'),
       url('../../fonts/CabinetGrotesk-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* Avinga (Sensatype Studio): tutti i titoli. Solo peso Regular: i titoli
   non vanno in grassetto ne' in corsivo (sarebbero finti, sintetizzati). */
@font-face {
  font-family: 'Avinga';
  src: url('../../fonts/avinga/Avinga.woff2') format('woff2'),
       url('../../fonts/avinga/Avinga.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green:        #1f5a36;
  --green-dark:   #143d24;
  --green-soft:   #e7efe4;
  --green-light:  #7cc242;
  --sun:          #d4b81c; /* giallo "mela golden", con una punta di lime */
  --red:          #c7372b;
  --orange:       #e8791e;
  --wa:           #1f9d55;
  --cream:        #fbf7ef;
  --white:        #ffffff;
  --text:         #26302a;
  --muted:        #66706a;
  --border:       rgba(31, 90, 54, 0.14);

  --font-heading: 'Avinga', Georgia, serif;
  --font-body:    'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 72rem;
  --gutter:    clamp(1rem, 4vw, 2rem);
  --radius:    0.875rem;
  --shadow:    0 1px 2px rgba(20, 40, 28, .06), 0 8px 24px rgba(20, 40, 28, .06);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; font-synthesis: none; word-spacing: .1em; line-height: 1.15; color: var(--green-dark); margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3, .h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75em; }
.note { color: var(--muted); font-size: 0.95rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── Bottoni ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 0.5rem 1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--wa { background: var(--wa); border-color: var(--wa); }
.btn--wa::before { content: ''; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--wa-icon) center/contain no-repeat; mask: var(--wa-icon) center/contain no-repeat; }
.btn--light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--green-dark); }
:root { --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.4.8 3.2.6a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E"); }

/* ── Overnav ──────────────────────────────────────────────────────────── */
.overnav { background: var(--green-dark); color: #fff; font-size: .85rem; text-align: center; }
.overnav__track { position: relative; height: 2.1rem; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.overnav__msg { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overnav__msg.is-active { opacity: 1; }

/* ── Navbar a pillola ─────────────────────────────────────────────────
   Fluttuante e "appoggiata" sopra la pagina: il margine negativo fa
   scorrere il contenuto sotto (si vede sfocato dietro al vetro verde).
   --nav-h: spazio che occupa, da lasciare libero in cima a ogni pagina. */
:root { --bar-h: 5.625rem; /* 1,5x */ --nav-top: .75rem; --nav-h: calc(var(--bar-h) + var(--nav-top)); }
.site-header {
  position: sticky; top: var(--nav-top); z-index: 50;
  margin: var(--nav-top) var(--gutter) calc(-1 * var(--nav-h));
  /* altezza fissa = barra: il menu aperto esce sopra i contenuti senza
     spingere giu' la pagina */
  height: var(--bar-h);
  pointer-events: none; /* solo la pillola e' cliccabile */
}
.navpill {
  pointer-events: auto;
  position: relative; overflow: hidden;
  max-width: var(--container); margin: 0 auto;
  background: rgba(31, 90, 54, .86); /* = verde di "ogni giorno", semitrasparente */
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px -14px rgba(20, 61, 36, .55);
}
/* Aperta e' alta: 999px diventerebbe un'ellisse. Meta' altezza della barra
   da' lo stesso identico arrotondamento della pillola chiusa. */
.navpill.is-open { border-radius: calc(var(--bar-h) / 2); }
.navpill__bar { height: var(--bar-h); display: flex; align-items: center; gap: .9rem; padding: 0 .9rem 0 1.1rem; }

.navpill__toggle {
  flex-shrink: 0; width: 3.6rem; height: 3.6rem; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; position: relative; color: #fff;
}
.navpill__toggle span {
  position: absolute; left: .85rem; right: .85rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.7,0,.2,1), top .45s cubic-bezier(.7,0,.2,1);
}
.navpill__toggle span:nth-child(1) { top: calc(50% - 4px); }
.navpill__toggle span:nth-child(2) { top: calc(50% + 3px); }
.navpill.is-open .navpill__toggle span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.navpill.is-open .navpill__toggle span:nth-child(2) { top: calc(50% - 1px); transform: rotate(-45deg); }
.navpill__sep { flex-shrink: 0; width: 1px; height: 2.4rem; background: rgba(255,255,255,.35); }

.navpill__logo { flex-shrink: 0; display: flex; align-items: center; color: #fff; padding-left: .55rem; }
.navpill__logo-svg { display: block; height: 4.3rem; width: auto; }
.navpill__icons { margin-left: auto; display: flex; gap: .15rem; }
.navpill__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.navpill__icon svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* Menu a due colonne: sinistra sottovoci, destra pagine principali */
.navpill__menu {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(.75rem, 3vw, 2.5rem);
  padding: .5rem clamp(.75rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  max-height: calc(100svh - var(--bar-h) - 3rem); overflow-y: auto;
}
.js .navpill__menu { display: none; } /* nav.js lo apre con l'animazione */
.navpill__subs-title { margin: .4rem 0 .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.navpill__group { list-style: none; margin: 0; padding: 0; display: none; gap: .45rem; }
.navpill__group.is-shown { display: grid; }
.navpill__sub {
  display: block; padding: .7rem .95rem; border-radius: .9rem; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: #fff; background: rgba(255,255,255,.08); transition: filter .2s, transform .2s;
}
/* Sottovoci di una pagina: tutte del colore della pagina */
.navpill__group:not(.navpill__group--random) .navpill__sub { background: var(--c-bg); color: var(--c-fg); }
.navpill__sub small { display: block; font-weight: 500; font-size: .75rem; opacity: .65; }

.navpill__main { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; align-content: start; }
.navpill__item {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-radius: .9rem; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.16);
  font-family: var(--font-heading); font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.15;
  transition: background .25s, color .25s, border-color .25s;
}
.navpill__arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
/* Il colore si accende SOLO su hover o selezione */
.navpill__item.is-active { background: var(--c-bg); color: var(--c-fg); border-color: var(--c-bg); }
.navpill__item.is-active .navpill__arrow { opacity: 1; transform: none; }
.navpill__item.is-current:not(.is-active) { border-color: rgba(255,255,255,.5); }
/* Hover solo con mouse vero: su touch il :hover resta attaccato alla voce
   toccata e la lascia colorata anche quando la selezione e' altrove. */
@media (hover: hover) and (pointer: fine) {
  .navpill__toggle:hover { background: rgba(255,255,255,.1); }
  .navpill__icon:hover { background: #fff; color: var(--green); }
  .navpill__sub:hover { color: #fff; transform: translateX(3px); }
  .navpill__group:not(.navpill__group--random) .navpill__sub:hover { color: var(--c-fg); filter: brightness(1.06); }
  .navpill__item:hover { background: var(--c-bg); color: var(--c-fg); border-color: var(--c-bg); }
  .navpill__item:hover .navpill__arrow { opacity: 1; transform: none; }
  .navpill__item.is-current:hover { border-color: var(--c-bg); }
}

@media (max-width: 600px) {
  .navpill__bar { gap: .5rem; }
  .navpill__logo-svg { height: 3.9rem; }
  .navpill__icon { width: 2.6rem; height: 2.6rem; }
  .navpill__menu { grid-template-columns: 1fr 1fr; }
  .navpill__item { padding: .7rem .75rem; gap: .5rem; font-size: 1rem; }
  .navpill__sub { padding: .6rem .75rem; font-size: .88rem; }
}

/* Bordo in basso tricolore (dentro la pillola, segue l'arrotondamento) */
.navpill .tricolore { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 3px; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: #1f8a4c; }
.tricolore span:nth-child(2) { background: #fff; }
.tricolore span:nth-child(3) { background: var(--red); }

/* Spazio per la navbar in cima a ogni pagina */
main > :first-child { padding-top: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)); }

/* ── Layout sezioni ───────────────────────────────────────────────────── */
.section, .page-head { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.section--tinted { max-width: none; background: var(--green-soft); }
.section--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.section--tinted { padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.section--reverse > :first-child { order: 2; }
.section__media { display: flex; justify-content: center; }
.section__head { max-width: 46rem; margin-bottom: 2rem; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section--center { text-align: center; }
.prose { max-width: 46rem; }
.subhead { font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.page-head { padding-bottom: 0; }
.page-head h1 { margin-bottom: 0; }

@media (max-width: 800px) {
  .section--split { grid-template-columns: 1fr; }
  .section--reverse > :first-child { order: 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* Titolo a sinistra + icona (morph) alta 70vh subito accanto, il gruppo
   centrato nella pagina. Distanza titolo-icona ~ lo spazio tra le righe.
   I margini automatici centrano il gruppo ma, se non ci sta (schermi
   stretti), l'icona esce solo dal lato destro, mai il titolo a sinistra.
   --hu: unita' del titolo. "Frutta e verdura" = 1, "ogni giorno" = 1.5,
   "a" = 0.5, "Bolzano" = 0.75. */
.hero {
  --hu: clamp(2.1rem, 6.2vw, 5.25rem);
  position: relative;
  max-width: none;
  padding: clamp(2rem, 5vh, 3.5rem) var(--gutter);
  display: flex; align-items: center;
  /* spazio tra le righe del titolo, meno il margine interno dell'icona
     (la WhatsApp parte a 2/24 del suo riquadro) */
  column-gap: max(0.5rem, calc(var(--hu) * 0.3 - 70vh * 2 / 24));
  overflow: hidden;
  background: #fff;
  min-height: 100svh; /* e' anche il "palco" del racconto allo scroll */
}
.hero__content { position: relative; z-index: 2; margin-left: auto; flex-shrink: 0; }
.hero__title { margin: 0; line-height: 0.98; letter-spacing: -0.02em; }
.hero__line { display: block; }
.hero__line--1 { font-size: var(--hu); color: var(--green-light); }
.hero__line--2 { font-size: calc(var(--hu) * 1.5); color: var(--green); margin-top: 0.02em; }
.hero__line--3 { margin-top: 0.12em; color: var(--sun); }
.hero__a { font-size: calc(var(--hu) * 0.5); }
.hero__city { font-size: calc(var(--hu) * 0.75); }

.hero__wa {
  order: 1; position: relative; z-index: 0;
  flex-shrink: 0; margin-right: auto;
  height: 70vh; aspect-ratio: 1;
  color: var(--green-light); /* icona senza JS: come la prima riga */
}
.hero__wa-in, .hero__wa-rot { display: block; width: 100%; height: 100%; }
.hero__wa-rot { position: relative; }
.hero__wa-svg { display: block; width: 100%; height: 100%; fill: currentColor; }
/* Con il morph attivo (home.js) si vede il canvas, l'SVG resta solo come
   sorgente della forma; senza JS resta l'SVG. */
.hero__wa-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero__wa.has-canvas .hero__wa-canvas { display: block; }
.hero__wa.has-canvas .hero__wa-svg { visibility: hidden; }
/* Icona 3D (hero3d.js): quando e' entrata sparisce il canvas 2D */
.hero__wa-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__wa.has-3d .hero__wa-canvas { visibility: hidden; }

/* Pulsanti hero: tilt 3D e sostituzione del testo (home.js) */
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.hbtn {
  display: inline-flex; align-items: center;
  padding: 1.05rem 1.75rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid var(--green); background: var(--green); color: #fff;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 10px 24px -12px rgba(20, 61, 36, .55);
}
.hbtn:hover { color: #fff; }
.hbtn--wa { background: var(--wa); border-color: var(--wa); }
.hbtn--ghost { background: rgba(255,255,255,.6); color: var(--green-dark); box-shadow: none; }
.hbtn--ghost:hover { color: var(--green-dark); background: #fff; }
.hbtn__face { display: grid; overflow: hidden; line-height: 1.2; }
.hbtn__t { grid-area: 1 / 1; white-space: nowrap; }
/* Il secondo testo compare solo quando home.js ha diviso le lettere */
.hbtn__t--b { visibility: hidden; }
.hbtn.is-split .hbtn__t--b { visibility: visible; }
/* Touch: niente hover, quindi niente secondo testo (e niente spazio riservato) */
@media (hover: none) { .hbtn__t--b { display: none; } }
.js:not(.anim-done) .hero__actions { visibility: hidden; }
/* Prima che parta GSAP (home.js) titolo e icona restano nascosti, cosi'
   non "lampeggiano"; header.php sblocca comunque tutto dopo 3s. */
.js:not(.anim-done) .hero__line, .js:not(.anim-done) .hero__wa-in { visibility: hidden; }
@media (max-width: 800px) {
  /* Titolo in alto, icona in basso a destra: non si sovrappongono */
  /* Telefono: icona sopra (esce un po' dal bordo destro), scritta sotto */
  .hero { --hu: 9.5vw; flex-direction: column; align-items: flex-start; justify-content: center; }
  .hero__content { margin-left: 0; }
  .hero__wa { order: 0; height: 38vh; max-height: 22rem; margin: 0 -14% .75rem auto; }
  .hbtn { padding: .85rem 1.2rem; font-size: .95rem; }
}

/* ── Racconto allo scroll (home.js): didascalie a sinistra, appena sopra
   il titolo rimpicciolito (home.js ne imposta la base, "top"; il testo
   cresce verso l'alto). Visibili solo se l'animazione e' attiva. */
.hero__story { display: none; }
.hero.has-story .hero__story { display: block; }
.hero__wa { z-index: 1; }
.hero__story {
  position: absolute; z-index: 3; left: var(--gutter); width: min(28rem, 40vw);
  top: 70vh; height: 0; pointer-events: none;
}
.hero__step { position: absolute; left: 0; right: 0; bottom: 0; text-align: left; }
@media (max-width: 800px) { .hero__story { width: auto; right: var(--gutter); } }
.hero__step p { margin: 0; }
.hero__step-kick { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__step-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.05; word-spacing: .1em; color: var(--step-c); margin: .25rem 0 .35rem !important; }
.hero__step-text { font-size: clamp(.92rem, 1.15vw, 1.05rem); color: var(--text); }

/* ── Immagini e segnaposto (foto non ancora disponibili) ─────────────── */
.ot-img { border-radius: var(--radius); }
.ot-img--missing {
  width: 100%;
  max-width: calc(var(--w) * 1px);
  aspect-ratio: var(--w) / var(--h);
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(31,90,54,.05) 0 10px, transparent 10px 20px),
    #eef2ea;
  border: 1px dashed rgba(31, 90, 54, .35);
  color: var(--muted);
  overflow: hidden;
}
.ot-img__label { font-size: .75rem; text-align: center; padding: .5rem; line-height: 1.3; word-break: break-all; }
.ot-img__label small { display: block; font-weight: 700; margin-top: .2rem; }
/* Icone e loghi piccoli: il segnaposto non mostra il testo */
.reparti__icon.ot-img--missing .ot-img__label,
.settore__icon.ot-img--missing .ot-img__label { display: none; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery > * { width: 100%; max-width: none; object-fit: cover; }
@media (max-width: 800px) { .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.media-row > * { max-width: none; }

/* ── Card, liste ──────────────────────────────────────────────────────── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.card:nth-child(3n+2) { border-top-color: var(--green); }
.card:nth-child(3n) { border-top-color: var(--red); }
.card__title { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); }

.settori { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.settore { background: #fff; border-radius: var(--radius); padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; font-weight: 700; box-shadow: var(--shadow); }
.settore__icon { width: 3rem; height: 3rem; object-fit: contain; }
@media (max-width: 900px) { .settori { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .settori { grid-template-columns: repeat(2, 1fr); } }

.info-list { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; }
.info-list li { position: relative; padding: .5rem 0 .5rem 1.75rem; border-bottom: 1px solid var(--border); }
.info-list li::before { content: ''; position: absolute; left: 0; top: 1rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--orange); }
.contact-list { list-style: none; margin: 1rem 0; padding: 0; }
.contact-list li { padding: .35rem 0; }
.contact-list strong { display: inline-block; min-width: 6.5rem; color: var(--green-dark); }

.product-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.product-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted rgba(31,90,54,.3); }
.product-list span { color: var(--muted); text-align: right; }
.tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; }
.callout { background: #fff; border-left: 4px solid var(--red); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; color: var(--green-dark); }

/* ── Punti vendita ───────────────────────────────────────────────────── */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.store { background: #fff; border-radius: calc(var(--radius) * 1.25); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.store__img { border-radius: 0; max-width: none; width: 100%; }
.store__body { padding: 1.5rem; }
.store__name { font-size: 1.45rem; margin-bottom: .25rem; }
.store__address { color: var(--muted); }
.store__label { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin: 1rem 0 .5rem; }
.hours { margin: 0 0 1.25rem; }
.hours div, .legal div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.hours dt, .legal dt { font-weight: 700; }
.hours dd, .legal dd { margin: 0; text-align: right; }
.legal { margin: 1.5rem 0; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.section--cta { text-align: center; background: var(--green); color: #fff; border-radius: calc(var(--radius) * 2); margin-bottom: clamp(2rem, 5vw, 4rem); max-width: calc(var(--container) - 2 * var(--gutter)); }
.section--cta h2 { color: #fff; }
.section--cta p { color: rgba(255,255,255,.85); max-width: 36rem; margin-left: auto; margin-right: auto; }
@media (max-width: 72rem) { .section--cta { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* ── Reparti (fascia sopra il footer) ─────────────────────────────────── */
.reparti { background: #fff; border-top: 1px solid var(--border); padding: 2rem var(--gutter); text-align: center; }
.reparti__list { list-style: none; margin: 0 auto 1.5rem; padding: 0; max-width: var(--container); display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.reparti__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.reparti__icon { width: 2.5rem; height: 2.5rem; object-fit: contain; opacity: .8; }
@media (max-width: 700px) { .reparti__list { grid-template-columns: repeat(3, 1fr); } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.8); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo { display: inline-block; color: #fff; margin-bottom: 1rem; }
.footer__logo:hover { color: var(--green-light); }
.footer__logo-svg { display: block; width: 9rem; height: auto; }
.footer__heading { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: .2rem 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: var(--container); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; font-size: .85rem; }
.footer__credit { opacity: .7; }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* ── Cookie banner ────────────────────────────────────────────────────── */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 28rem; z-index: 60; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transform: translateY(150%); transition: transform .4s; }
.cookie-banner--visible { transform: none; }
.cookie-banner__text { margin: 0; font-size: .9rem; flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Lazy loading immagini: skeleton "stile YouTube" ─────────────────────
   Vedi public/src/build/js/lazy.js. Finche' la foto non e' scaricata al
   suo posto c'e' un riquadro grigio con un riflesso che scorre; poi la
   foto compare in dissolvenza. --lz-base / --lz-shine: colori dello
   skeleton (piu' scuri sugli sfondi scuri). */
:root { --lz-base: #e8e6e3; --lz-shine: #f7f6f4; }

img.lz:not(.is-loaded),
.lz-bg:not(.is-loaded) {
  background-color: var(--lz-base);
  background-image: linear-gradient(100deg, var(--lz-base) 30%, var(--lz-shine) 50%, var(--lz-base) 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: lz-shimmer 1.4s linear infinite;
}
.lz-css:not(.is-loaded) { animation: lz-pulse 1.4s ease-in-out infinite; }
img.lz.is-loaded { animation: lz-in 0.45s ease both; }

@keyframes lz-shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}
@keyframes lz-pulse { 50% { background-color: var(--lz-shine); } }
@keyframes lz-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  img.lz:not(.is-loaded), .lz-bg:not(.is-loaded), .lz-css:not(.is-loaded) { animation: none; }
  img.lz.is-loaded { animation: none; }
}

/* Ortofrutta Tony: skeleton sui toni crema/verde del sito */
:root { --lz-base: #ebe7dd; --lz-shine: #f8f5ee; }
