/* Agri Casa — style.css (step 5: la home fedele al design 6, rifinita)
   Colori misurati sul design con confronta-design.py --colori; carattere: Mulish, il più simile
   all'Avenir Next del design, servito dal sito. */

@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde: #05924B;
  --verde-hover: #047A3E;
  --inchiostro: #0A0D14;
  --testo: #3F4349;
  --testo-tenue: #67696C;
  --nota: #717376;
  --icona: #294C3E;
  --crema: #F4F0EC;
  --crema-chiara: #F6F4F2;
  --carta: #FAF9F8;
  --bordo: #E5E4E2;
  --bordo-forte: #D8D8DA;
  --divisore: #BBBEC1;
  --bianco: #FFFFFF;

  --ombra-scheda: 0 1px 2px rgba(10, 13, 20, .04), 0 10px 28px rgba(10, 13, 20, .06);
  --ombra-pannello: 0 18px 50px rgba(10, 13, 20, .18);

  --contenitore: 1200px;
  --gutter: 16px;
  --sezione-y: 64px;
  --titolo-gap: 40px;
  --gap-schede: 20px;
  --raggio: 20px;
  --raggio-piccolo: 14px;
  --curva: cubic-bezier(.23, 1, .32, 1);
  --alto-testata: 112px;
}

@media (min-width: 860px) {
  :root {
    --gutter: 32px;
    --sezione-y: 104px;
    --titolo-gap: 44px;
    --gap-schede: 28px;
    --alto-testata: 100px;
  }
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 24px;
}
html.menu-aperto { overflow: hidden; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font-family: "Mulish", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.contenitore {
  width: 100%;
  max-width: calc(var(--contenitore) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.nascosto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--verde); color: var(--bianco); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.salta:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── icone del kit ────────────────────────────────────────────────────── */
.ico {
  display: inline-block; flex: none; width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.ico--ricerca { --m: url("/assets/img/icone/ricerca.svg"); }
.ico--chevron { --m: url("/assets/img/icone/chevron-destra.svg"); width: .62em; height: .9em; }
.ico--freccia { --m: url("/assets/img/icone/freccia-destra.svg"); width: 1.15em; }
.ico--acquari { --m: url("/assets/img/icone/acquari.svg"); }
.i-wa { width: 1.2em; height: 1.2em; flex: none; }

/* ── pulsanti ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 750; font-size: 16px; line-height: 1.1; text-align: center;
  text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--curva);
}
.btn:active { transform: scale(.97); }
.btn--verde { background: var(--verde); color: var(--bianco); }
.btn--bianco, .btn--contorno { background: var(--bianco); color: var(--verde); border-color: var(--verde); }
.btn--grande { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn--piccolo { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn--verde:hover { background: var(--verde-hover); }
  .btn--bianco:hover, .btn--contorno:hover { background: var(--verde); color: var(--bianco); }
}

/* ── testata ──────────────────────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: var(--bianco);
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .32s var(--curva), box-shadow .25s ease;
}
.testata.ha-ombra { box-shadow: 0 1px 0 var(--bordo), 0 6px 20px rgba(10, 13, 20, .05); }
.testata.nascosta { transform: translateY(-100%); }
.testata__riga {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo wa apri" "cerca cerca cerca";
  align-items: center;
  gap: 10px 8px;
  padding-block: 10px 12px;
}
.testata__logo { grid-area: logo; position: relative; z-index: 2; justify-self: start; display: block; }
.testata__logo img { height: 38px; width: auto; }
.testata__wa { grid-area: wa; position: relative; z-index: 2; min-height: 44px; width: 44px; padding: 0; }
.testata__wa span { display: none; }
.testata__wa .i-wa { width: 22px; height: 22px; }
.testata__apri {
  grid-area: apri; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--crema);
  display: grid; place-items: center; touch-action: manipulation;
  transition: transform .16s var(--curva);
}
.testata__apri:active { transform: scale(.94); }
.testata__apri span,
.testata__apri span::before,
.testata__apri span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--inchiostro);
  transition: transform .25s var(--curva), opacity .2s ease;
}
.testata__apri span { position: relative; }
.testata__apri span::before, .testata__apri span::after { content: ""; position: absolute; left: 0; }
.testata__apri span::before { top: -6px; }
.testata__apri span::after { top: 6px; }
.menu-aperto .testata__apri span { background: transparent; }
.menu-aperto .testata__apri span::before { transform: translateY(6px) rotate(45deg); }
.menu-aperto .testata__apri span::after { transform: translateY(-6px) rotate(-45deg); }

/* ricerca */
.cerca {
  grid-area: cerca; position: relative; display: flex; align-items: center;
  height: 48px; border: 1px solid var(--bordo-forte); border-radius: 999px; background: var(--bianco);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cerca:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(5, 146, 75, .14); }
.cerca__lente { width: 19px; height: 19px; margin-left: 16px; flex: none; }
.cerca input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  padding: 0 10px; font-size: 16px; color: var(--inchiostro);
}
.cerca input::placeholder { color: var(--testo-tenue); opacity: 1; }
.cerca input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cerca__invia {
  width: 40px; height: 40px; margin-right: 3px; border: 0; border-radius: 50%;
  background: var(--verde); color: var(--bianco); display: grid; place-items: center; font-size: 19px;
  touch-action: manipulation; transition: background-color .2s ease, transform .16s var(--curva);
}
.cerca__invia:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .cerca__invia:hover { background: var(--verde-hover); } }

/* menu: da telefono un pannello a tutto schermo sotto la riga del logo */
.menu {
  position: fixed; inset: 0; z-index: 1;
  padding: calc(76px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--bianco);
  height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s var(--curva), visibility 0s linear .25s;
}
.menu-aperto .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--curva), visibility 0s; }
.menu__voci a {
  display: flex; align-items: center; min-height: 60px;
  border-bottom: 1px solid var(--bordo);
  font-size: 22px; font-weight: 650; color: var(--inchiostro); text-decoration: none;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.menu__voci a:active { color: var(--verde); }
.menu__wa { width: 100%; margin-top: 28px; min-height: 54px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__sfondo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 32, 22, .38) 0%, rgba(9, 32, 22, .16) 34%, rgba(9, 32, 22, 0) 58%);
}
.hero__dentro {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 34px; padding-bottom: 20px;
}
.hero__testi { text-align: center; color: var(--bianco); text-shadow: 0 2px 14px rgba(9, 32, 22, .35); }
.hero__occhiello {
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hero__titolo {
  margin-top: 4px;
  font-size: clamp(52px, 7.4vw, 108px); font-weight: 400; line-height: .98;
  letter-spacing: .02em; text-transform: uppercase;
}
.hero__sottotitolo { margin-top: 10px; font-size: 17px; font-weight: 750; line-height: 1.3; }

.hero__pannello {
  width: 100%; margin-top: 28px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: var(--ombra-pannello);
  padding: 16px 12px 16px;
}
.hero__reparti { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 6px; }
.hero__reparti li { grid-column: span 2; }
.hero__reparti li:nth-child(4) { grid-column: 2 / span 2; }
.hero__reparti a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  min-height: 74px; padding: 6px 4px; border-radius: 14px;
  text-align: center; text-decoration: none; color: var(--inchiostro);
  font-size: 13px; font-weight: 750; line-height: 1.2;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease;
}
.hero__reparti a:active { background: rgba(5, 146, 75, .08); }
.hero__reparti img, .hero__reparti .ico { height: 32px; width: auto; transition: transform .25s var(--curva); }
.hero__reparti .ico { width: 37px; background-color: var(--icona); }
.hero__azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hero__azioni .btn { min-height: 50px; padding: 0 10px; font-size: 15px; gap: 8px; }
.hero__dove { margin-top: 12px; text-align: center; font-size: 14px; color: var(--inchiostro); font-weight: 550; }

/* ── sezioni ──────────────────────────────────────────────────────────── */
.sezione { padding-block: var(--sezione-y); scroll-margin-top: 0; }
.titolo-sezione {
  margin-bottom: var(--titolo-gap);
  font-size: clamp(28px, 1.6vw + 18px, 44px); font-weight: 400; line-height: 1.15;
  color: var(--inchiostro); letter-spacing: -.012em;
}
.testa-sezione { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.testa-sezione .titolo-sezione { margin-bottom: 0; }
.link-freccia {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--verde); font-weight: 750; font-size: 16px; text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid currentColor;
  transition: gap .25s var(--curva), color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .link-freccia:hover { gap: 12px; color: var(--verde-hover); } }

/* ── reparti ──────────────────────────────────────────────────────────── */
.reparti__fila {
  display: flex; gap: var(--gap-schede);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-bottom: 4px;
}
.reparti__fila::-webkit-scrollbar { display: none; }
.reparto {
  position: relative; flex: 0 0 46%; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--crema); border-radius: var(--raggio);
  padding: 10px 12px 18px;
  transition: transform .3s var(--curva), box-shadow .3s var(--curva);
}
.reparto__img { width: 100%; aspect-ratio: 1 / .86; object-fit: cover; border-radius: 14px; }
.reparto__titolo { margin-top: 4px; font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--inchiostro); }
.reparto__link { text-decoration: none; }
.reparto__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.reparto__voci { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--testo-tenue); }
.reparto__esplora { margin-top: auto; }
.reparto__voci { margin-bottom: 16px; }
.reparto:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .reparto:hover { transform: translateY(-4px); box-shadow: var(--ombra-scheda); }
  .reparto:hover .reparto__esplora { background: var(--verde); color: var(--bianco); }
}

/* ── i più richiesti ──────────────────────────────────────────────────── */
.filtri {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 28px; padding: 2px var(--gutter);
}
.filtri::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; min-height: 42px; padding: 0 20px;
  border: 1px solid var(--bordo-forte); border-radius: 999px; background: var(--bianco);
  font-size: 15px; font-weight: 650; color: var(--inchiostro);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--curva);
}
.filtro:active { transform: scale(.96); }
.filtro[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--bianco); }
@media (hover: hover) and (pointer: fine) { .filtro[aria-pressed="false"]:hover { border-color: var(--verde); color: var(--verde); } }

.prodotti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prodotto {
  display: flex; flex-direction: column;
  background: var(--crema); border-radius: var(--raggio); padding: 8px;
  transition: transform .3s var(--curva), box-shadow .3s var(--curva);
}
.prodotto[hidden] { display: none; }
.prodotto__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 13px; }
.prodotto__corpo { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 4px; }
.prodotto__nome { font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--inchiostro); }
.prodotto__prezzo { margin-top: 6px; margin-bottom: 14px; font-size: 13px; color: var(--testo-tenue); }
.prodotto__wa { margin-top: auto; min-height: 40px; padding: 0 6px; gap: 5px; font-size: 12.5px; }
.prodotto__wa .i-wa { width: 15px; height: 15px; }
@media (max-width: 420px) { .prodotto__wa .i-wa { display: none; } .prodotto__wa { font-size: 13px; } }
@media (hover: hover) and (pointer: fine) { .prodotto:hover { transform: translateY(-4px); box-shadow: var(--ombra-scheda); } }
.prodotti__vuoto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--crema); border-radius: var(--raggio); padding: 24px;
  font-size: 16px; color: var(--inchiostro);
}
.prodotti__vuoto[hidden] { display: none; }

/* ── marche ───────────────────────────────────────────────────────────── */
.marche__griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.marca {
  display: grid; place-items: center; height: 66px; padding: 0 16px;
  background: var(--crema); border-radius: var(--raggio-piccolo);
}
.marca img { height: calc(var(--h, 32px) * .88); width: auto; max-width: 84%; object-fit: contain; }
.marche__nota { margin-top: 28px; text-align: center; font-size: 15px; color: var(--testo); }
.marche__azione { display: flex; justify-content: center; margin-top: 24px; }

/* ── il negozio vero ──────────────────────────────────────────────────── */
.negozio__griglia { display: grid; gap: 16px; }
.negozio__casa { position: relative; aspect-ratio: 400 / 286; }
.negozio__corsia {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  clip-path: polygon(7% 52.45%, 2% 52.45%, 17.5% 36.4%, 17.5% 12.59%, 26% 12.59%, 26% 27.62%, 50% 2.8%, 98% 52.45%, 93% 52.45%, 93% 98.6%, 7% 98.6%);
}
.negozio__profilo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.negozio__profilo path { fill: none; stroke: var(--verde); stroke-width: 3.5px; stroke-linejoin: round; stroke-linecap: round; }
.negozio__foto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.negozio__foto img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raggio-piccolo); }
.negozio__foto img:first-child { object-position: 50% 70%; }
.negozio__punti {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px;
}
.negozio__punti li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 0 6px; font-size: 14px; font-weight: 650; color: var(--inchiostro); line-height: 1.3;
}
.negozio__punti li + li { border-left: 1px solid var(--divisore); }
.negozio__punti img { height: 28px; width: auto; }

/* ── dal catalogo a casa tua ──────────────────────────────────────────── */
.ordinare__scheda {
  display: grid; grid-template-areas: "titolo" "img" "passi" "fondo";
  background: var(--crema); border-radius: 26px; padding: 32px 18px 26px;
}
.ordinare__testi { display: contents; }
.ordinare__testi .titolo-sezione { grid-area: titolo; margin-bottom: 8px; text-align: center; }
.ordinare__casetta { grid-area: img; width: 220px; margin: 0 auto 8px; }
.passi { grid-area: passi; display: grid; gap: 14px; counter-reset: passo; }
.passo {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--carta); border-radius: 18px; padding: 18px 18px;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .04);
}
.passo__numero {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde); color: var(--bianco); font-weight: 850; font-size: 16px;
}
.passo__titolo { font-size: 18px; font-weight: 850; color: var(--inchiostro); line-height: 1.3; }
.passo__titolo::before { content: "· "; }
.passo p { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--testo); }
.ordinare__fondo { grid-area: fondo; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; text-align: center; }
.ordinare__nota { font-size: 17px; font-weight: 800; color: var(--inchiostro); }

/* ── fiducia e contatti ───────────────────────────────────────────────── */
.fiducia {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding-bottom: 44px; margin-bottom: 56px; border-bottom: 1px solid var(--bordo);
}
.fiducia__titolo { font-size: clamp(22px, 1vw + 16px, 30px); font-weight: 400; color: var(--inchiostro); line-height: 1.2; }
.fiducia__numero { display: flex; align-items: center; gap: 14px; justify-content: center; }
.fiducia__numero strong { font-size: 34px; font-weight: 500; color: var(--inchiostro); letter-spacing: -.01em; line-height: 1; }
.stelle { display: inline-flex; gap: 4px; }
.stelle img { width: 22px; height: auto; }
.fiducia__conto { margin-top: 2px; font-size: 15px; color: var(--testo); }

.contatti__griglia { display: grid; gap: 16px; }
.contatto {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--crema-chiara); border-radius: var(--raggio); padding: 22px 20px;
}
.contatto__ico { width: 28px; height: 30px; object-fit: contain; flex: none; margin-top: 2px; }
.contatto__corpo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contatto__forte { font-size: 18px; font-weight: 650; color: var(--inchiostro); line-height: 1.35; }
.contatto__nota { font-size: 14px; color: var(--testo-tenue); margin-bottom: 10px; }
.contatto__telefono { text-decoration: none; font-size: 24px; font-weight: 550; letter-spacing: .01em; display: inline-block; margin-bottom: 12px; }
.orari { display: grid; grid-template-columns: auto; gap: 0; font-size: 15px; color: var(--inchiostro); }
.orari dt { font-weight: 800; }
.orari dd { margin-bottom: 6px; color: var(--testo); }
.orari dd:last-child { margin-bottom: 0; }

/* ── piede ────────────────────────────────────────────────────────────── */
.piede { border-top: 1px solid var(--bordo); padding: 32px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.piede__riga { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.piede__logo img { height: 46px; width: auto; }
.piede__link { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.piede__link a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--inchiostro); text-decoration: none;
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .piede__link a:hover { color: var(--verde); } }
.piede__fondo {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bordo);
  font-size: 13px; color: var(--testo-tenue); line-height: 1.5;
}
.credit a { color: var(--inchiostro); font-weight: 700; }

/* ── da 600 px ────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .reparto { flex-basis: 31%; }
  .prodotti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-schede); }
  .prodotto { padding: 10px; }
  .prodotto__nome { font-size: 17px; }
  .prodotto__prezzo { font-size: 14px; }
  .prodotto__wa { font-size: 14px; padding: 0 12px; gap: 8px; }
  .marche__griglia { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .negozio__punti li { flex-direction: row; justify-content: center; gap: 12px; font-size: 16px; }
  .contatti__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contatto:last-child { grid-column: 1 / -1; }
}

/* ── da 860 px: computer ──────────────────────────────────────────────── */
@media (min-width: 860px) {
  .testata__riga {
    grid-template-columns: auto minmax(220px, 440px) 1fr auto;
    grid-template-areas: "logo cerca menu wa";
    gap: 0 28px; padding-block: 8px;
  }
  .testata__logo img { height: 84px; }
  .testata__apri { display: none; }
  .testata__wa { width: auto; min-height: 46px; padding: 0 22px; gap: 9px; }
  .testata__wa span { display: inline; }
  .testata__wa .i-wa { width: 20px; height: 20px; }
  .cerca { height: 50px; }
  .menu {
    grid-area: menu; position: static; inset: auto; height: auto; padding: 0 0 0 28px;
    border-left: 1px solid var(--bordo-forte);
    background: none; opacity: 1; visibility: visible; transform: none; overflow: visible;
    justify-self: start; transition: none;
  }
  .menu__voci { display: flex; gap: 30px; }
  .menu__voci a {
    min-height: 44px; border: 0; font-size: 16px; font-weight: 650;
    position: relative;
  }
  .menu__voci a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
    background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--curva);
  }
  .menu__wa { display: none; }

  .hero__dentro { min-height: clamp(560px, 64vh, 640px); justify-content: space-between; padding-top: 52px; padding-bottom: 34px; }
  .hero__occhiello { font-size: clamp(16px, 1.4vw, 22px); letter-spacing: .06em; }
  .hero__sottotitolo { margin-top: 14px; font-size: clamp(20px, 1.7vw, 26px); }
  .hero__pannello { max-width: 1080px; margin-top: 36px; padding: 26px 34px 22px; border-radius: 24px; }
  .hero__reparti { grid-template-columns: repeat(5, 1fr); row-gap: 0; }
  .hero__reparti li, .hero__reparti li:nth-child(4) { grid-column: auto; }
  .hero__reparti li + li { border-left: 1px solid rgba(5, 146, 75, .28); }
  .hero__reparti a { min-height: 96px; justify-content: center; gap: 10px; font-size: 16px; margin: 0 10px; }
  .hero__reparti img, .hero__reparti .ico { height: 42px; }
  .hero__reparti .ico { width: 48px; }
  .hero__azioni { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
  .hero__azioni .btn { min-width: 250px; min-height: 54px; font-size: 17px; padding: 0 30px; }
  .hero__dove { margin-top: 16px; font-size: 16px; }

  .reparti__fila {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible; margin: 0; padding: 0;
  }
  .reparto { padding: 12px 16px 22px; }
  .reparto__titolo { font-size: 21px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
  .reparto__voci { font-size: 15px; }

  .testa-sezione { margin-bottom: 24px; }
  .filtri { flex-wrap: wrap; overflow: visible; margin: 0 0 var(--titolo-gap); padding: 0; }
  .prodotti { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prodotto__nome { font-size: 18px; min-height: 2.5em; }

  .marche__griglia { gap: 18px; }
  .marca { height: 78px; }
  .marca img { height: var(--h, 34px); max-width: 80%; }
  .marche__nota { margin-top: 32px; font-size: 16px; }
  .marche__azione { margin-top: 28px; }

  .negozio__griglia { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); gap: var(--gap-schede); align-items: start; }
  /* la riga la decide la casa: la colonna delle foto non conta (altezza 0) e poi la riempie (min-height 100%) */
  .negozio__foto {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap-schede); height: 0; min-height: 100%;
  }
  .negozio__foto img { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: var(--raggio); }
  .negozio__punti { display: flex; justify-content: center; margin-top: 44px; }
  .negozio__punti li { padding: 4px 56px; font-size: 17px; }

  .ordinare__scheda {
    grid-template-areas: "testi img"; grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center; gap: 28px; padding: 52px 48px 52px 56px; border-radius: 30px;
  }
  .ordinare__testi { display: block; grid-area: testi; }
  .ordinare__testi .titolo-sezione { text-align: left; margin-bottom: 36px; }
  .ordinare__casetta { width: 100%; margin: 0; }
  .passi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-schede); }
  .passo + .passo::before {
    content: ""; position: absolute; left: calc(-1 * var(--gap-schede)); top: 50%;
    width: var(--gap-schede); height: 1.5px; background: var(--verde); opacity: .55;
  }
  .ordinare__fondo { flex-direction: row; justify-content: space-between; margin-top: 36px; text-align: left; }
  .ordinare__nota { font-size: 19px; }

  .fiducia {
    flex-direction: row; justify-content: space-between; text-align: left; gap: 32px;
    padding: 0 0 48px; margin-bottom: 72px;
  }
  .fiducia__voto { padding-left: 40px; border-left: 1px solid var(--divisore); margin-right: auto; }
  .fiducia__numero { justify-content: flex-start; }
  .contatti__griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-schede); }
  .contatto:last-child { grid-column: auto; }
  .contatto { padding: 26px 26px; }

  .piede { padding: 30px 0 26px; }
  .piede__riga { flex-direction: row; justify-content: space-between; }
  .piede__link { gap: 4px 36px; }
  .piede__fondo { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
  .menu__voci a:hover::after { transform: scaleX(1); }
  .hero__reparti a:hover img, .hero__reparti a:hover .ico { transform: translateY(-3px); }
  .hero__reparti a:hover { color: var(--verde); }
}

@media (min-width: 1100px) {
  .fiducia__titolo { font-size: 30px; }
}

/* ── meno movimento ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reparto, .prodotto, .btn, .testata { transition-duration: .01s; }
  .reparto:hover, .prodotto:hover { transform: none; }
}

/* ── pagine legali ────────────────────────────────────────────────────── */
.legale-pagina { padding-block: 56px var(--sezione-y); }
.legale { max-width: 760px; margin-inline: auto; color: var(--testo); font-size: 16px; line-height: 1.65; }
.legale h1 { font-size: clamp(30px, 2vw + 18px, 42px); font-weight: 400; color: var(--inchiostro); line-height: 1.15; margin-bottom: 12px; }
.legale h2 { font-size: 21px; font-weight: 800; color: var(--inchiostro); margin: 34px 0 10px; line-height: 1.3; }
.legale h3 { font-size: 17px; font-weight: 800; color: var(--inchiostro); margin: 22px 0 8px; }
.legale p, .legale ul, .legale ol, .legale table { margin-bottom: 12px; }
.legale ul { list-style: disc; padding-left: 22px; }
.legale ol { list-style: decimal; padding-left: 22px; }
.legale li { margin-bottom: 6px; }
.legale a { color: var(--verde); font-weight: 650; }
.legale table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legale th, .legale td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordo); vertical-align: top; }
.legale th { color: var(--inchiostro); font-weight: 800; background: var(--crema-chiara); }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.errore { padding-block: 96px var(--sezione-y); text-align: center; }
.errore h1 { font-size: clamp(32px, 2.4vw + 18px, 48px); font-weight: 400; color: var(--inchiostro); }
.errore p { margin-top: 12px; font-size: 17px; }
.errore__azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
