/* Caseificio Capozzi Alfredo — home (step 5, design fedele rifinito)
   Colori misurati sul design (confronta-design.py --colori e campioni puntuali), in #hex. */

/* Lora (il serif del design) arriva quando c'è il file: per ora Georgia, il più simile installato ovunque. */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blu-notte: #0A235F;
  --blu-titolo: #0C2960;
  --testo: #1D244A;
  --testo-menu: #242C4E;
  --blu: #054A9A;
  --blu-fascia: #014D9C;
  --blu-fascia-scuro: #024189;
  --blu-medio: #0D62AF;
  --blu-chiaro: #1E75BA;
  --cielo: #80A9C7;
  --latte-azzurro: #DFE5EC;
  --latte: #F2F3F5;
  --bianco: #FEFEFE;
  --rosso: #B82328;
  --rosso-tricolore: #C5151C;
  --verde: #177C33;

  --serif: "Lora", Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --raggio: 20px;
  --ombra: 0 12px 30px rgba(10, 35, 95, .12);
  --ombra-forte: 0 18px 40px rgba(10, 35, 95, .18);
  --esci: cubic-bezier(.22, 1, .36, 1);
  --contenitore: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-d: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bianco);
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--blu); }
a, button { touch-action: manipulation; }
button { font: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blu); color: var(--bianco); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.salta:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blu-chiaro); outline-offset: 3px; border-radius: 6px; }

.contenitore {
  width: 100%;
  max-width: calc(var(--contenitore) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-d);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .18s var(--esci), box-shadow .25s var(--esci), background-color .25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--blu {
  color: var(--bianco);
  background: linear-gradient(180deg, var(--blu-medio), var(--blu));
  box-shadow: 0 8px 20px rgba(5, 74, 154, .28);
}
.btn--bianco { color: var(--testo); background: var(--bianco); box-shadow: 0 8px 22px rgba(2, 30, 80, .22); }
.btn--bordo { color: var(--blu); background: transparent; box-shadow: inset 0 0 0 2px var(--blu); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--blu:hover { box-shadow: 0 12px 26px rgba(5, 74, 154, .36); }
  .btn--bianco:hover { box-shadow: 0 12px 28px rgba(2, 30, 80, .30); }
  .btn--bordo:hover { background: rgba(5, 74, 154, .06); }
  .btn:hover .freccia { transform: translateX(3px); }
}
.freccia { transition: transform .2s var(--esci); }

/* Il tricolore a pennellata, sotto i titoli (come nel design) */
.tricolore {
  display: block; width: 150px; height: 9px; margin-top: 18px;
  background: linear-gradient(90deg, var(--verde) 0 34%, var(--latte-azzurro) 34% 64%, var(--rosso-tricolore) 64% 100%);
  clip-path: polygon(0 62%, 6% 30%, 100% 0, 97% 52%, 4% 100%);
}
.tricolore--centro { margin-left: auto; margin-right: auto; width: 200px; }

/* Titoli di sezione: corsivo serif come nel design */
.titolo-sezione {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.01em;
  color: var(--blu-notte);
}
.testa-sezione { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.testa-sezione .sotto { margin-top: 14px; font-size: 1.125rem; color: var(--testo); }

/* ---------- Onde di latte (segnaposto SVG finché il kit non porta gli schizzi) ---------- */
.onda { position: absolute; left: 0; width: 100%; pointer-events: none; }
.onda path { vector-effect: non-scaling-stroke; }

/* ---------- Intestazione ---------- */
.testata {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bianco);
  transition: box-shadow .3s ease;
}
.testata__onda {
  position: absolute; top: calc(100% - 1px); left: 0; width: 100%; height: 58px;
  filter: drop-shadow(0 8px 10px rgba(10, 35, 95, .10));
  pointer-events: none;
}
.testata__dentro {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  position: relative; z-index: 2; align-self: flex-start;
  display: block; width: 168px; margin-top: 4px;
  -webkit-user-select: none; user-select: none;
}
.logo img { width: 100%; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); }
.menu__lista { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); list-style: none; }
.menu__voce { position: relative; }
.menu__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 2px; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; color: var(--testo-menu);
  text-decoration: none; -webkit-user-select: none; user-select: none;
}
.menu__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blu-notte); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--esci);
}
.menu__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .menu__link:hover::after { transform: scaleX(1); }
}
.menu__link svg { width: 14px; height: 14px; transition: transform .2s var(--esci); }
.tendina {
  position: absolute; top: calc(100% + 6px); left: -18px; min-width: 240px;
  padding: 10px; list-style: none;
  background: var(--bianco); border-radius: 16px; box-shadow: var(--ombra-forte);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.menu__voce--tendina[data-aperta="true"] .tendina,
.menu__voce--tendina:focus-within .tendina {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .25s var(--esci), visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .menu__voce--tendina:hover .tendina { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s var(--esci), visibility 0s; }
  .menu__voce--tendina:hover .menu__link svg { transform: rotate(180deg); }
}
.menu__voce--tendina[data-aperta="true"] .menu__link svg { transform: rotate(180deg); }
.tendina a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--testo); text-decoration: none; font-weight: 500;
}
.tendina a:active { background: var(--latte); }
@media (hover: hover) and (pointer: fine) { .tendina a:hover { background: var(--latte); color: var(--blu); } }

.hamburger {
  display: none; position: relative; z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.hamburger span {
  position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--blu-notte);
  transition: transform .25s var(--esci), opacity .2s ease;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }
.hamburger:active { background: var(--latte); }
html.menu-aperto .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.menu-aperto .hamburger span:nth-child(2) { opacity: 0; }
html.menu-aperto .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu da telefono, a tutto schermo */
.menu-mobile {
  position: fixed; inset: 0; z-index: 99;
  height: 100vh; height: 100dvh;
  padding: calc(var(--header-h) + 48px + env(safe-area-inset-top, 0px)) var(--gutter-d) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: var(--bianco);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
html.menu-aperto { overflow: hidden; }
html.menu-aperto .menu-mobile { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .32s var(--esci), visibility 0s; }
.menu-mobile ul { list-style: none; }
.menu-mobile > ul > li { border-bottom: 1px solid var(--latte-azzurro); }
.menu-mobile a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem;
  color: var(--blu-notte); text-decoration: none;
}
.menu-mobile a:active { color: var(--blu-chiaro); }
.menu-mobile .sottovoci { padding: 0 0 12px 14px; }
.menu-mobile .sottovoci a { min-height: 44px; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 1.0625rem; color: var(--testo); }
.menu-mobile .btn { margin-top: 28px; width: 100%; }

/* ---------- HERO: animazione allo scroll ---------- */
.hero {
  --hero-corsa: 230vh;
  position: relative;
  height: calc(100vh + var(--hero-corsa));
  height: calc(100svh + var(--hero-corsa));
  background: var(--bianco);
}
.hero__fermo {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 18% 52%, var(--latte-azzurro) 0%, rgba(223, 229, 236, 0) 70%),
    linear-gradient(180deg, var(--bianco) 0%, var(--latte) 100%);
}
.hero__poster, .hero__canvas { position: absolute; left: 0; width: 100%; }
.hero__poster {
  top: var(--header-h); height: calc(100% - var(--header-h));
  object-fit: cover; object-position: 50% 50%;
}
.hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { top: 0; height: 100%; }
.hero.hero--pronto .hero__poster { visibility: hidden; }

.hero__testo {
  position: absolute; z-index: 3;
  left: clamp(20px, 4.4vw, 120px);
  top: calc(var(--header-h) + (100% - var(--header-h)) / 2);
  transform: translateY(-46%);
  width: var(--hero-testo-l, 30vw); max-width: 430px;
  pointer-events: none;
}
.hero__titolo {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.012em;
  color: var(--blu-titolo);
}
.hero__sotto { margin-top: 18px; font-size: clamp(1.0625rem, .9rem + .5vw, 1.375rem); line-height: 1.45; color: var(--testo); max-width: 22ch; }
.hero__azioni { margin-top: 30px; }
.hero__testo .tricolore { margin-top: 34px; width: 140px; }

/* Il testo arriva a logo uscito; esce più in fretta di come entra */
.hero__testo > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .25s ease, transform .3s ease;
}
.hero.hero--testo .hero__testo { pointer-events: auto; }
.hero.hero--testo .hero__testo > *,
.hero__testo:focus-within > * {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s var(--esci);
}
.hero.hero--testo .hero__testo > :nth-child(2) { transition-delay: .09s; }
.hero.hero--testo .hero__testo > :nth-child(3) { transition-delay: .18s; }
.hero.hero--testo .hero__testo > :nth-child(4) { transition-delay: .27s; }

.hero__scorri {
  position: absolute; z-index: 3; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 16px 8px; border-radius: 999px;
  background: rgba(254, 254, 254, .88); box-shadow: 0 6px 18px rgba(10, 35, 95, .14);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blu-notte);
  transition: opacity .35s ease, transform .35s ease;
}
.hero__scorri svg { width: 18px; height: 18px; animation: scendi 1.8s var(--esci) infinite; }
@keyframes scendi { 0% { transform: translateY(-3px); opacity: .4; } 50% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(-3px); opacity: .4; } }
.hero.hero--avviato .hero__scorri { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }

.hero__onda { bottom: -1px; height: 86px; z-index: 2; }

/* Senza JavaScript o con «riduci animazioni»: l'ultimo fotogramma fermo, testo subito visibile */
.hero.hero--fermo { height: 100vh; height: 100svh; }
.hero.hero--fermo .hero__testo > * { opacity: 1; transform: none; transition: none; }
.hero.hero--fermo .hero__testo { pointer-events: auto; }
.hero.hero--fermo .hero__scorri { display: none; }

/* ---------- Quattro punti ---------- */
.punti { position: relative; padding: 34px 0 30px; background: var(--bianco); }
.punti__lista {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; max-width: 1040px; margin: 0 auto;
}
.punto {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 8px 18px;
}
.punto + .punto { border-left: 1px solid var(--latte-azzurro); }
.punto img { width: 64px; height: 56px; object-fit: contain; }
.punto p {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--testo);
  max-width: 13ch;
}

/* ---------- Mozzarelle e latticini ---------- */
.mozzarelle { position: relative; padding: clamp(56px, 7vw, 100px) 0; background: linear-gradient(180deg, var(--bianco), var(--latte)); }
.mozzarelle__griglia { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.mozzarelle__foto {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--ombra-forte);
  aspect-ratio: 4 / 4.4; background: var(--latte-azzurro);
}
.mozzarelle__foto img { width: 100%; height: 100%; object-fit: cover; }
.mozzarelle__testo .titolo-sezione { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.25rem); }
.mozzarelle__testo .intro { margin-top: 22px; font-size: 1.1875rem; }
.elenco { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.elenco li { position: relative; padding-left: 30px; font-size: 1.0625rem; }
.elenco li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 13px; height: 16px;
  background: var(--blu-chiaro);
  clip-path: path("M6.5 0 C6.5 0 0 7.2 0 10.2 A6.5 6.2 0 0 0 13 10.2 C13 7.2 6.5 0 6.5 0 Z");
}
.mozzarelle__testo .btn { margin-top: 30px; }

/* ---------- I nostri prodotti ---------- */
.prodotti { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: var(--latte); }
.prodotti__griglia { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; }
.scheda {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--raggio); overflow: hidden; background: var(--bianco);
  box-shadow: var(--ombra); text-decoration: none; color: var(--testo);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .25s var(--esci), box-shadow .25s var(--esci);
}
.scheda__foto { display: block; aspect-ratio: 150 / 180; overflow: hidden; background: var(--blu-chiaro); }
.scheda__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--esci); }
.scheda__nome {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 74px; padding: 12px 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.15; text-align: center;
  color: var(--testo);
}
.scheda__nome svg { width: 18px; height: 18px; flex: none; color: var(--blu-notte); }
.scheda:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .scheda:hover { transform: translateY(-4px); box-shadow: var(--ombra-forte); }
  .scheda:hover .scheda__foto img { transform: scale(1.04); }
  .scheda:hover .freccia { transform: translateX(3px); }
}

/* ---------- La nostra storia: fascia blu con la bufala ---------- */
.storia {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 620px; padding: 150px 0 160px;
  background: linear-gradient(115deg, var(--blu-fascia-scuro) 0%, var(--blu-fascia) 42%, var(--blu-medio) 100%);
  color: var(--bianco);
}
.storia__foto {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.storia__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.storia__testo { position: relative; max-width: 470px; }
.storia .titolo-sezione { color: var(--bianco); font-size: clamp(2.6rem, 1.6rem + 3.2vw, 4.25rem); line-height: 1.02; }
.storia__testo p { margin-top: 20px; font-size: clamp(1.0625rem, .95rem + .4vw, 1.3125rem); line-height: 1.5; max-width: 30ch; }
.storia__testo .btn { margin-top: 32px; }
.storia__onda-su { top: -1px; height: 96px; z-index: 1; }
.storia__onda-giu { bottom: -1px; height: 110px; z-index: 1; }

/* ---------- Video ---------- */
.video { position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: var(--bianco); }
.video__barra { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.video__barra .testa-sezione { text-align: left; margin: 0; }
.video__barra .tricolore { margin-left: 0; }
.frecce { display: flex; gap: 10px; }
.frecce button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--blu-notte); background: var(--bianco);
  box-shadow: inset 0 0 0 2px var(--latte-azzurro), var(--ombra);
  -webkit-user-select: none; user-select: none;
  transition: transform .18s var(--esci), box-shadow .2s ease, opacity .2s ease;
}
.frecce button svg { width: 22px; height: 22px; }
.frecce button:active { transform: scale(.94); }
.frecce button:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .frecce button:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--blu), var(--ombra); } }
.video__riga {
  display: flex; gap: 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 6px 4px 18px; margin: -6px -4px 0;
}
.video__riga::-webkit-scrollbar { display: none; }
.video__elemento { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.video__box {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--raggio); overflow: hidden;
  background: var(--blu-fascia-scuro); box-shadow: var(--ombra);
}
.video__box video { width: 100%; height: 100%; object-fit: cover; }
.audio {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px);
  min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(10, 35, 95, .72); color: var(--bianco);
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-align: left;
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, transform .18s var(--esci);
}
.audio svg { width: 18px; height: 18px; flex: none; }
.audio .acceso { display: none; }
.audio[aria-pressed="true"] { background: var(--blu); }
.audio[aria-pressed="true"] .spento { display: none; }
.audio[aria-pressed="true"] .acceso { display: block; }
.audio:active { transform: scale(.96); }
.video__didascalia { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; color: var(--testo); }
.social { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.social span { font-weight: 600; }
.social a { font-weight: 600; color: var(--blu); text-underline-offset: 3px; }

/* ---------- Come funziona ---------- */
.come { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: var(--latte); }
.passi { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: passo; }
.passo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 6px 28px; }
.passo + .passo { border-left: 1px solid var(--latte-azzurro); }
.passo__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.75rem; color: var(--blu-notte);
  box-shadow: inset 0 0 0 2px var(--blu-notte);
}
.passo p { font-size: 1.125rem; max-width: 26ch; }
.come__azioni { margin-top: 40px; text-align: center; }

/* ---------- Recensioni ---------- */
.recensioni { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: var(--bianco); }
.recensione {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 64px);
  border-radius: 28px; background: linear-gradient(180deg, var(--bianco), var(--latte)); box-shadow: var(--ombra);
}
.stelle { display: flex; justify-content: center; gap: 6px; color: var(--blu); }
.stelle svg { width: 26px; height: 26px; }
.recensione__voto { margin-top: 12px; font-weight: 600; }
.recensione blockquote {
  margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.25; color: var(--blu-notte);
}
.recensione figcaption { margin-top: 14px; color: var(--testo); }
.recensione .link { display: inline-block; margin-top: 18px; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Dove siamo ---------- */
.dove { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: var(--latte); }
.dove__griglia { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dove__testo address { margin-top: 22px; font-style: normal; font-size: 1.1875rem; font-weight: 600; color: var(--blu-notte); }
.dove__testo .orari { margin-top: 14px; }
.dove__testo .numeri { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dove__testo .numeri a { font-weight: 600; text-underline-offset: 3px; }
.dove__azioni { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.dove__azioni .link { font-weight: 600; text-underline-offset: 3px; }
.mappa {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--ombra-forte);
  aspect-ratio: 4 / 3.4; background: var(--latte-azzurro);
}
.mappa > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mappa__velo {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(10, 35, 95, 0) 30%, rgba(10, 35, 95, .82) 100%);
  color: var(--bianco);
}
.mappa__velo strong { font-family: var(--serif); font-style: italic; font-size: 1.375rem; }
.mappa__velo .avviso { font-size: .875rem; line-height: 1.45; max-width: 46ch; }
.mappa__velo .avviso a { color: var(--bianco); }
.mappa__velo .btn { min-height: 48px; }
.thk-nota-recensioni { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: .9375rem; color: var(--testo); }
.mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Domande frequenti ---------- */
.faq { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: var(--bianco); }
.faq__lista { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--latte); transition: background-color .2s ease, box-shadow .2s ease; }
.faq details[open] { background: var(--bianco); box-shadow: var(--ombra); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px; padding: 14px 22px;
  font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; color: var(--blu-notte);
  -webkit-user-select: none; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2.5px solid var(--blu); border-bottom: 2.5px solid var(--blu);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--esci);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:active { opacity: .8; }
.faq details p { padding: 0 22px 20px; font-size: 1.0625rem; max-width: 64ch; }

/* ---------- Piè di pagina ---------- */
.piede { position: relative; background: var(--latte-azzurro); color: var(--testo); }
.piede__onda { top: -1px; height: 70px; }
.piede__dentro { padding-top: 110px; padding-bottom: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr .9fr; gap: 32px; }
.piede__marchio img { width: 190px; height: auto; }
.piede__marchio p { margin-top: 14px; max-width: 30ch; }
.piede h2 { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.25rem; color: var(--blu-notte); margin-bottom: 12px; }
.piede ul { list-style: none; display: grid; gap: 6px; }
.piede a { color: var(--testo); text-underline-offset: 3px; }
.piede address { font-style: normal; }
.piede__legale { background: var(--blu-notte); color: var(--latte-azzurro); font-size: .9375rem; }
.piede__legale .contenitore { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.piede__legale a { color: var(--bianco); }
.piede__legale .link-legali { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.credit { margin: 0; }

/* ---------- WhatsApp fisso ---------- */
.wa-fisso {
  position: fixed; z-index: 90;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 16px; border-radius: 999px;
  background: #25D366; color: #0B3D1F; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 26px rgba(18, 140, 70, .35);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .18s var(--esci), box-shadow .25s ease;
}
.wa-fisso svg { width: 28px; height: 28px; flex: none; }
.wa-fisso:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .wa-fisso:hover { box-shadow: 0 14px 32px rgba(18, 140, 70, .45); } }

/* ---------- Pagine semplici (legali, 404) ---------- */
.pagina-semplice { padding: calc(var(--header-h) + 90px) 0 90px; background: var(--bianco); }
.legale { max-width: 820px; margin: 0 auto; }
.legale h1 { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); color: var(--blu-notte); line-height: 1.1; }
.legale h2 { margin-top: 36px; font-family: var(--serif); font-weight: 700; font-size: 1.375rem; color: var(--blu-notte); }
.legale p, .legale li { margin-top: 12px; }
.legale ul { padding-left: 22px; }
.legale table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.legale th, .legale td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--latte-azzurro); }
.legale th { color: var(--blu-notte); }
.non-trovata { text-align: center; max-width: 640px; margin: 0 auto; }
.non-trovata p { margin-top: 18px; font-size: 1.1875rem; }
.non-trovata .azioni { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; align-items: center; }

/* ================= Tablet ================= */
@media (max-width: 1100px) {
  .prodotti__griglia { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .piede__dentro { grid-template-columns: 1fr 1fr 1fr; }
  .piede__marchio { grid-column: 1 / -1; }
  .video__elemento { flex-basis: calc((100% - 40px) / 3); }
}

/* ================= Telefono (e schermi stretti) ================= */
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .menu { display: none; }
  .hamburger { display: block; }
  .logo { width: 104px; margin-top: 3px; }
  .testata__onda { height: 34px; }

  .punti { padding: 24px 0 18px; }
  .punti__lista { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .punto { padding: 6px 10px; gap: 10px; }
  .punto:nth-child(3) { border-left: 0; }
  .punto img { width: 52px; height: 46px; }
  .punto p { font-size: 1.0625rem; }

  .mozzarelle__griglia, .dove__griglia { grid-template-columns: 1fr; }
  .mozzarelle__foto { aspect-ratio: 4 / 3.2; max-height: 56vh; }

  .storia { min-height: 0; padding: 96px 0 0; }
  .storia__foto {
    position: relative; z-index: 0; width: auto; height: 300px; margin: 34px calc(-1 * var(--gutter-d)) 0 calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .storia__onda-su { height: 56px; }
  .storia__onda-giu { height: 64px; }

  .video__barra { align-items: flex-start; }
  .frecce { display: none; }
  .video__elemento { flex-basis: 62%; scroll-snap-align: center; }
  .video__riga { gap: 14px; scroll-padding-inline: 20px; padding-left: var(--gutter); padding-right: var(--gutter-d); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-d)); }

  .passi { grid-template-columns: 1fr; gap: 0; }
  .passo { flex-direction: row; text-align: left; align-items: center; padding: 14px 0; gap: 18px; }
  .passo + .passo { border-left: 0; border-top: 1px solid var(--latte-azzurro); }
  .passo__num { flex: none; width: 52px; height: 52px; font-size: 1.5rem; }

  .mappa { aspect-ratio: 4 / 3.6; }

  .piede__dentro { grid-template-columns: 1fr 1fr; padding-top: 80px; gap: 28px 20px; }
  .piede__onda { height: 44px; }

  .wa-fisso { width: 60px; height: 60px; padding: 0; justify-content: center; }
  .wa-fisso span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-fisso svg { width: 32px; height: 32px; }
}
@media (max-width: 560px) {
  .prodotti__griglia { grid-template-columns: 1fr 1fr; gap: 12px; }
  .scheda__nome { min-height: 64px; font-size: 1.0625rem; gap: 6px; }
  .piede__dentro { grid-template-columns: 1fr; }
}

/* Hero da telefono e da schermo verticale: testo sul latte, in basso */
@media not all and (min-width: 768px) and (min-aspect-ratio: 1/1) {
  .hero { --hero-corsa: 210vh; }
  .hero__testo {
    top: auto; left: var(--gutter); right: var(--gutter-d); bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    transform: none; width: auto; max-width: 520px;
  }
  .hero__titolo { font-size: clamp(2.25rem, 9.6vw, 3.4rem); }
  .hero__sotto { margin-top: 12px; font-size: 1.0625rem; }
  .hero__azioni { margin-top: 20px; }
  .hero__testo .tricolore { display: none; }
  .hero__fermo::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(254, 254, 254, 0) 0%, rgba(254, 254, 254, .78) 45%, rgba(254, 254, 254, .92) 100%);
    opacity: 0; transition: opacity .4s ease;
  }
  .hero.hero--testo .hero__fermo::after, .hero.hero--fermo .hero__fermo::after { opacity: 1; }
  .hero__onda { height: 44px; }
  .hero__scorri { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
/* Schermi orizzontali bassi (telefono girato): testo più piccolo */
@media (min-width: 768px) and (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .hero__titolo { font-size: clamp(1.8rem, 4.6vh, 2.4rem); }
  .hero__sotto { font-size: 1rem; margin-top: 10px; }
  .hero__azioni { margin-top: 16px; }
  .hero__testo .tricolore { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .hero__testo > * { opacity: 1; transform: none; transition: none; }
  .hero__testo { pointer-events: auto; }
  .hero__scorri { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .scheda, .scheda__foto img, .btn, .freccia { transition-duration: .01ms !important; }
}
