/* Il Conte Gelateria · style.css
   Step 5: la home fedele al design di ChatGPT (home-approvata.png), rifinita.
   Colori misurati sul design con confronta-design.py e campionati sulle sezioni ad alta risoluzione. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* blu notte dei titoli e dei testi */
  --blu-notte: #00266E;
  --blu: #012E7F;
  --blu-testo: #0B2A80;
  /* Tiffany: pulsanti, numeri, accenti */
  --tiffany: #56E4E8;
  --tiffany-vivo: #3BDBE3;
  --tiffany-logo: #08C0E1;
  /* fondi chiari */
  --cielo: #C9F4F7;
  --ghiaccio: #EAFBFE;
  --onda: #DDF9FE;
  --scheda: #EAF7F9;
  --bolla: #D8F7FA;
  --nebbia: #F5F5F5;
  --bianco: #FFFFFF;

  --carattere: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --carattere-mano: "Caveat", "Comic Sans MS", cursive;

  --raggio: 24px;
  --raggio-grande: 40px;
  --ombra: 0 18px 40px -18px rgba(0, 38, 110, .28);
  --ombra-leggera: 0 10px 30px -14px rgba(0, 38, 110, .22);
  --curva: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 3.4vw, 48px);
  --testata: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
html.menu-aperto { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--carattere);
  font-size: 18px;
  line-height: 1.5;
  color: var(--blu-testo);
  background: var(--bianco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--tiffany-logo); outline-offset: 3px; border-radius: 6px; }

.salta {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blu); color: var(--bianco); padding: 10px 16px; border-radius: 10px;
}
.salta:focus { top: 12px; }

.contenitore {
  width: 100%;
  max-width: 1440px;
  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));
}

/* ── tipografia ─────────────────────────────────────────────────────────────── */
.occhiello {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blu-notte);
  margin-bottom: 18px;
}
.occhiello--tiffany { color: var(--tiffany-vivo); }
.a-mano {
  font-family: var(--carattere-mano);
  font-weight: 600;
  line-height: 1;
  color: var(--blu);
}
.hero__mano, .self__mano, .casa__mano { text-shadow: 0 0 2px #FFFFFF, 0 0 10px #FFFFFF, 0 0 18px #FFFFFF; }
.a-mano--tiffany { color: var(--tiffany-vivo); font-size: 34px; margin-bottom: 4px; transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.titolo-sezione {
  position: relative;
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--blu-notte);
}
.titolo-sezione--grande { font-size: clamp(46px, 6vw, 88px); line-height: .93; }
.titolo-sezione--medio { font-size: clamp(36px, 3.9vw, 56px); }
.titolo-sezione__scintilla { display: inline-block; width: .7em; height: auto; vertical-align: top; margin-left: .08em; margin-top: -.18em; }
.testo-grande { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.3; color: var(--blu-testo); }
.testo-medio { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--blu-testo); }

.sottolineato { position: relative; display: inline-block; }
.sottolineato__segno {
  position: absolute; left: 34%; bottom: -.2em; width: 66%; height: auto;
  pointer-events: none; z-index: -1;
}
.sottolineato--self .sottolineato__segno { left: 58%; bottom: .14em; width: 62%; z-index: 0; }
.sottolineato--storia .sottolineato__segno { left: -2%; bottom: -.4em; width: 44%; }

/* ── pulsanti ───────────────────────────────────────────────────────────────── */
.pulsanti { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.01em;
  border: 2px solid transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .25s var(--curva), background-color .25s var(--curva), box-shadow .25s var(--curva), color .25s var(--curva);
}
.btn--grande { min-height: 60px; padding: 14px 34px; font-size: 19px; }
.btn--tiffany { background: var(--tiffany); color: var(--blu-notte); box-shadow: 0 10px 22px -12px rgba(8, 192, 225, .7); }
.btn--bordo { background: var(--bianco); color: var(--blu-notte); border-color: var(--blu); }
.btn--bordo-tiffany { background: var(--bianco); color: var(--blu-notte); border-color: var(--tiffany); }
.btn--blu { background: var(--blu); color: var(--bianco); }
.btn__freccia { width: 15px; height: auto; flex: none; }
.btn__freccia--bianca { filter: brightness(0) invert(1); }
.btn__icona { width: 22px; height: auto; flex: none; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn--tiffany:hover { box-shadow: 0 16px 28px -14px rgba(8, 192, 225, .85); }
  .btn--bordo:hover, .btn--bordo-tiffany:hover { background: var(--ghiaccio); }
  .btn--blu:hover { box-shadow: var(--ombra); }
  .btn:hover .btn__freccia { transform: translate(2px, -2px); }
  .btn__freccia { transition: transform .25s var(--curva); }
}

/* ── testata ────────────────────────────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 50;
  height: var(--testata);
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  transition: background-color .3s var(--curva), box-shadow .3s var(--curva);
}
.testata.is-scorsa { background: rgba(255, 255, 255, .97); box-shadow: 0 8px 24px -18px rgba(0, 38, 110, .35); }
.testata__riga { height: 100%; display: flex; align-items: center; gap: 32px; }
.testata__logo { flex: none; width: 150px; align-self: flex-start; margin-top: 10px; transform-origin: top left; transition: transform .35s var(--curva); }
.testata__logo img { width: 150px; }
.testata.is-scorsa .testata__logo { transform: scale(.52); }
.testata__menu { margin-left: auto; margin-right: auto; }
.testata__menu ul { display: flex; gap: clamp(20px, 3vw, 54px); }
.testata__menu a { font-size: 17px; font-weight: 500; color: var(--blu-notte); padding: 8px 2px; position: relative; }
.testata__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--tiffany); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--curva);
}
@media (hover: hover) and (pointer: fine) { .testata__menu a:hover::after { transform: scaleX(1); } }
.testata__cta { flex: none; }
.testata__apri { display: none; }

/* menu da telefono */
.menu-telefono {
  position: fixed; inset: 0; z-index: 49;
  height: 100dvh;
  padding: calc(var(--testata) + env(safe-area-inset-top, 0px) + 20px) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--bianco) 0%, var(--ghiaccio) 100%);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--curva), transform .25s var(--curva);
}
.menu-telefono.is-aperto { opacity: 1; transform: none; }
.menu-telefono__voci a {
  display: block; padding: 14px 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em;
  color: var(--blu-notte); border-bottom: 1px solid rgba(0, 38, 110, .1);
}
.menu-telefono__voci a:active { color: var(--tiffany-logo); }
.menu-telefono__azioni { display: grid; gap: 12px; margin-top: 28px; }

/* ── hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--testata));
  padding-top: calc(var(--testata) + 64px);
  padding-bottom: 24px;
  background: var(--bianco) url("/assets/img/sfondo-hero-1672.webp") center top / cover no-repeat;
  overflow: hidden;
}
.hero__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 24px; }
.hero__testo { position: relative; z-index: 2; padding-top: 30px; }
.hero__titolo {
  font-weight: 900;
  font-size: clamp(56px, 7.9vw, 116px);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--blu-notte);
  margin-bottom: 44px;
}
.hero__titolo .sottolineato { isolation: isolate; }
.hero__titolo .sottolineato__segno { left: 28%; bottom: -.36em; width: 64%; }
.hero__sotto { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.25; color: var(--blu-testo); margin-bottom: 34px; font-weight: 400; }
.punti { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; }
.punti li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--blu-notte); }
.punti img { width: auto; height: 38px; }

.hero__visivo { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 740px; justify-self: end; }
.hero__alone {
  position: absolute; inset: 4% 2% 0 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 244, 247, .95), rgba(201, 244, 247, .35) 62%, rgba(201, 244, 247, 0) 100%);
}
.hero__foto {
  position: absolute; left: 1%; top: 13%; width: 70%; aspect-ratio: 5 / 6; object-fit: cover;
  border-radius: 48% 52% 50% 50% / 38% 38% 62% 62%;
  box-shadow: 0 40px 60px -30px rgba(0, 38, 110, .45), 0 0 0 10px rgba(255, 255, 255, .85);
  z-index: 3;
}
.hero__conte { position: absolute; right: -4%; top: 5%; width: 44%; z-index: 2; }
.hero__crema { position: absolute; left: -6%; bottom: -1%; width: 84%; z-index: 5; pointer-events: none; }
.hero__frammenti { position: absolute; left: -11%; top: 22%; width: 96%; z-index: 1; pointer-events: none; }
.hero__frammenti--davanti { z-index: 4; clip-path: inset(0 60% 0 0); }
.hero__scintilla { position: absolute; right: 1%; top: 0; width: 50px; z-index: 5; }
.hero__mano { position: absolute; left: 5%; top: -2%; font-size: 34px; text-align: center; transform: rotate(-8deg); z-index: 5; }
.hero__freccia { position: absolute; left: 29%; top: 2%; width: 54px; transform: scaleX(-1) rotate(-6deg); z-index: 5; }

/* Le foto scontornate (quando arrivano): niente forma né bordo, resta l'ombra del contorno */
.hero__foto.is-scontornata, .casa__foto.is-scontornata, .frutto__foto.is-scontornata {
  border-radius: 0; box-shadow: none; object-fit: contain; aspect-ratio: auto; height: auto;
  filter: drop-shadow(0 28px 26px rgba(0, 38, 110, .28));
}

/* ── le nostre bontà ────────────────────────────────────────────────────────── */
.bonta { padding: 40px 0 32px; }
.bonta .titolo-sezione { margin-bottom: 40px; }
.schede { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.scheda__link { display: block; }
.scheda__foto {
  display: block; overflow: hidden; border-radius: var(--raggio);
  background: var(--scheda); aspect-ratio: 1.16; box-shadow: var(--ombra-leggera);
}
.scheda__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--curva); }
.scheda__nome {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--blu-notte);
}
.freccia-tonda {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bolla); flex: none; transition: transform .3s var(--curva), background-color .3s var(--curva);
}
.freccia-tonda img { width: 13px; }
.scheda__link:active .scheda__foto img { transform: scale(1.02); }
@media (hover: hover) and (pointer: fine) {
  .scheda__link:hover .scheda__foto img { transform: scale(1.05); }
  .scheda__link:hover .freccia-tonda { background: var(--tiffany); transform: translate(2px, -2px); }
}

.striscia {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  margin-top: 44px; min-height: 140px; border-radius: var(--raggio); overflow: hidden; background: var(--nebbia);
}
.striscia__testo { display: flex; align-items: center; gap: 26px; padding: 24px 32px; position: relative; z-index: 2; }
.striscia__icona { width: 72px; flex: none; }
.striscia__testo p { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; line-height: 1.3; color: var(--blu-notte); }
.striscia__foto { position: relative; }
.striscia__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.striscia__foto::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; z-index: 1;
  background: linear-gradient(90deg, var(--nebbia), rgba(245, 245, 245, 0));
}

/* ── self service ───────────────────────────────────────────────────────────── */
.self { padding: 32px 0 16px; }
.self__pannello {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: clamp(40px, 5vw, 80px) clamp(28px, 4vw, 64px);
  border-radius: var(--raggio-grande);
  background: var(--ghiaccio) url("/assets/img/sfondo-self-1940.webp") center / cover no-repeat;
}
.self__testo { position: relative; z-index: 2; align-self: center; }
.self .titolo-sezione { margin-bottom: 44px; }
.passi { display: flex; align-items: flex-start; gap: 18px; }
.passo { flex: 1 1 0; min-width: 0; }
.passo__testa { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.passo__num { font-size: clamp(38px, 3.6vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--tiffany-vivo); }
.passo__testa img { height: 44px; width: auto; }
.passo__testo { display: block; font-size: 18px; line-height: 1.3; color: var(--blu-testo); }
.passo__testo strong { display: block; font-size: 22px; font-weight: 800; color: var(--blu-notte); margin-bottom: 2px; }
.passo__nota { display: block; margin-top: 4px; font-size: 16px; }
.passo__freccia { flex: none; padding-top: 22px; }
.passo__freccia img { width: 38px; opacity: .55; }

.self__visivo { position: relative; min-height: 460px; }
.self__foto {
  position: absolute; left: 12%; top: 2%; width: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 40px 60px -30px rgba(0, 38, 110, .45), 0 0 0 10px rgba(255, 255, 255, .9); z-index: 2;
}
.self__frammenti { position: absolute; left: 0; top: 4%; width: 100%; z-index: 1; pointer-events: none; }
.self__mano { position: absolute; left: -2%; bottom: 4%; font-size: 30px; color: var(--blu-notte); transform: rotate(-8deg); z-index: 4; text-align: center; }
.self__freccia { position: absolute; left: 13%; bottom: 20%; width: 52px; transform: rotate(185deg); z-index: 4; }
.self__riquadro {
  position: absolute; right: -2%; bottom: -4%; width: 44%; z-index: 4;
  border-radius: 22px; overflow: hidden; border: 6px solid var(--bianco); box-shadow: var(--ombra);
  transform: rotate(2deg);
}
.self__riquadro img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.self__raggi { position: absolute; right: -6%; bottom: 22%; width: 64px; transform: rotate(80deg); z-index: 5; }

/* ── specialità ─────────────────────────────────────────────────────────────── */
.specialita { padding: 64px 0 48px; }
.specialita__griglia { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); align-items: center; }
.specialita__testo { position: relative; z-index: 2; }
.specialita .titolo-sezione { margin-bottom: 22px; }
.specialita__testo .testo-grande { margin-bottom: 30px; }
.specialita__cucchiaio { width: 80px; margin: 26px 0 0 120px; transform: rotate(-24deg); }
.specialita__scintilla { position: absolute; right: -14%; top: 4%; width: 52px; }
.specialita__foto { border-radius: 28px; overflow: hidden; box-shadow: var(--ombra); aspect-ratio: 1.08; }
.specialita__foto img { width: 100%; height: 100%; object-fit: cover; }
.frutto__scheda {
  position: relative; padding: 34px 34px 30px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, var(--ghiaccio) 0%, var(--bianco) 70%);
  box-shadow: var(--ombra-leggera);
  display: grid; justify-items: center;
}
.frutto__titolo { justify-self: start; font-weight: 900; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.035em; color: var(--blu-notte); position: relative; z-index: 2; }
.frutto__raggi { position: absolute; right: 10px; top: 54px; width: 56px; transform: rotate(60deg); }
.frutto__riga { display: flex; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; margin: 4px 0 22px; }
.frutto__freccia { flex: none; width: 54px; margin-top: 4px; transform: scaleX(-1) rotate(10deg); }
.frutto__foto { width: 64%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 26px 0 0; box-shadow: 0 20px 40px -22px rgba(0, 38, 110, .5); }
.frutto .btn { width: 100%; }
.frutto__nota { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; color: var(--blu-testo); }
.frutto__nota img { height: 30px; width: auto; flex: none; }

/* ── storia ─────────────────────────────────────────────────────────────────── */
.storia { position: relative; padding: 56px 0 48px; overflow: hidden; }
.storia::after {
  content: ""; position: absolute; right: -10%; bottom: -20%; width: 60%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 244, 247, .9), rgba(201, 244, 247, 0));
}
.storia__griglia { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, .75fr); gap: 24px; align-items: center; }
.storia .titolo-sezione { font-size: clamp(40px, 4.2vw, 60px); }
.storia .titolo-sezione { margin-bottom: 24px; }
.storia__testo .testo-medio { margin-bottom: 30px; }
.polaroid-gruppo { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 30px; }
.polaroid-gruppo__raggi { position: absolute; left: 0; top: -10px; width: 74px; }
.polaroid {
  flex: 1 1 0; min-width: 0; max-width: 220px;
  background: var(--bianco); padding: 12px 12px 0; box-shadow: 0 18px 36px -16px rgba(0, 38, 110, .35);
  border-radius: 4px;
}
.polaroid img { width: 100%; aspect-ratio: .86; object-fit: cover; }
.polaroid figcaption { padding: 12px 4px 16px; text-align: center; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--blu-notte); }
.polaroid--1 { transform: rotate(-7deg) translateY(18px); margin-right: -10px; }
.polaroid--2 { transform: rotate(-1deg); z-index: 2; }
.polaroid--3 { transform: rotate(5deg) translateY(14px); margin-left: -10px; }
.storia__conte { position: relative; padding-top: 70px; }
.storia__augusto { width: 100%; max-width: 380px; margin-left: auto; position: relative; z-index: 1; }
.storia__fumetto { position: absolute; left: -4%; top: 0; width: 46%; z-index: 2; transform: rotate(-6deg); }
.storia__scintilla { position: absolute; width: 40px; z-index: 2; }
.storia__scintilla--1 { left: 8%; top: 46%; }
.storia__scintilla--2 { right: -4%; top: 58%; width: 48px; }

/* ── social e contatti ──────────────────────────────────────────────────────── */
.incontro { position: relative; padding: 40px 0 24px; overflow: hidden; }
.incontro__griglia { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: end; }
.incontro .titolo-sezione { margin-bottom: 30px; }
.incontro__raggi { position: absolute; width: 70px; right: -2%; top: -46px; transform: rotate(30deg); }
.video-riga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.video-box { position: relative; border-radius: var(--raggio); overflow: hidden; background: var(--scheda); aspect-ratio: 4 / 5; box-shadow: var(--ombra-leggera); }
.video-box video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video-box__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: auto; transform: translate(-50%, -50%);
  pointer-events: none; transition: opacity .4s var(--curva); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3));
}
.video-box.is-in-onda .video-box__play { opacity: 0; }
.video-box__audio {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-height: 40px; white-space: nowrap;
  padding: 8px 14px; border: 0; border-radius: 999px;
  background: rgba(0, 38, 110, .78); color: var(--bianco); font-size: 12px; font-weight: 700; line-height: 1.2;
  user-select: none; -webkit-user-select: none;
  transition: background-color .25s var(--curva), transform .2s var(--curva);
}
.video-box__audio:active { transform: translateX(-50%) scale(.97); }
.video-box__audio[aria-pressed="true"] { background: var(--tiffany); color: var(--blu-notte); }

.incontro__contatti { position: relative; padding-right: 120px; padding-bottom: 6px; }
.contatti li { display: flex; align-items: flex-start; gap: 18px; font-size: 20px; line-height: 1.35; color: var(--blu-notte); margin-bottom: 20px; }
.contatti img { width: 30px; height: 30px; object-fit: contain; flex: none; margin-top: 1px; }
.contatti a { border-bottom: 1px solid transparent; }
@media (hover: hover) and (pointer: fine) { .contatti a:hover { border-bottom-color: currentColor; } }
.incontro__contatti .pulsanti { margin: 30px 0 26px; }
.incontro__contatti .btn { min-width: 170px; }
.social { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.social a { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--blu-notte); min-height: 44px; }
.social img { width: 32px; height: 32px; object-fit: contain; }
.incontro__conte { position: absolute; right: calc(-1 * var(--gutter) - 40px); bottom: -10px; width: 190px; pointer-events: none; }

/* ── a casa ─────────────────────────────────────────────────────────────────── */
.casa {
  position: relative; padding: 90px 0 40px; overflow: hidden;
  background: url("/assets/img/sfondo-onda-2172.webp") center 40% / 100% auto no-repeat;
}
.casa__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.casa .titolo-sezione { margin-bottom: 16px; }
.casa__testo .testo-grande { margin-bottom: 34px; }
.casa__visivo { position: relative; aspect-ratio: 1 / .92; width: 100%; }
.casa__foto {
  position: absolute; left: 6%; top: 2%; width: 66%; aspect-ratio: 5 / 6; object-fit: cover;
  border-radius: 52% 48% 50% 50% / 38% 38% 62% 62%;
  box-shadow: 0 40px 60px -30px rgba(0, 38, 110, .45), 0 0 0 10px rgba(255, 255, 255, .9); z-index: 2;
}
.casa__frammenti { position: absolute; left: -8%; top: 14%; width: 98%; z-index: 1; pointer-events: none; }
.casa__frammenti--davanti { z-index: 4; clip-path: inset(0 60% 0 0); }
.casa__crema { position: absolute; left: -2%; bottom: -1%; width: 84%; z-index: 5; pointer-events: none; }
.casa__mano { position: absolute; right: 0; top: 4%; font-size: 36px; color: var(--blu-notte); transform: rotate(-12deg); text-align: center; z-index: 4; }
.casa__freccia { position: absolute; right: 9%; top: 27%; width: 58px; transform: rotate(6deg); z-index: 4; }

/* ── piede ──────────────────────────────────────────────────────────────────── */
.piede { padding: 30px 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bianco); }
.piede__riga { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); flex-wrap: wrap; }
.piede__logo img { width: 130px; }
.piede__menu ul { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.piede__menu a { font-size: 16px; color: var(--blu-notte); padding: 6px 0; display: inline-block; }
.piede__social { display: flex; gap: 20px; }
.piede__social a { display: grid; place-items: center; width: 44px; height: 44px; }
.piede__social img { width: 34px; height: 34px; object-fit: contain; }
.piede__diritti { margin-left: auto; text-align: right; font-size: 15px; color: var(--blu-notte); }
.piede__legali { display: flex; gap: 26px; justify-content: flex-end; margin-top: 6px; }
.piede__legali a, .piede__fondo a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 38, 110, .3); }
.piede__fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(0, 38, 110, .1); font-size: 13px; color: var(--blu-testo); }
@media (hover: hover) and (pointer: fine) {
  .piede__menu a:hover, .piede__legali a:hover { color: var(--tiffany-logo); }
}

/* ── tablet ─────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .testata__menu ul { gap: 22px; }
  .testata__menu a { font-size: 16px; }
  .specialita__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .frutto { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .storia__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .storia__conte { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }
  .incontro__griglia { grid-template-columns: 1fr; }
  .incontro__contatti { max-width: 640px; }
}

/* ── telefono ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --testata: 72px; }
  .testata__menu, .testata__cta { display: none; }
  .testata__riga { justify-content: space-between; }
  .testata__logo, .testata__logo img { width: 86px; }
  .testata__logo { margin-top: 6px; }
  .testata.is-scorsa .testata__logo { transform: scale(.68); }
  .testata__apri {
    display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 50%;
    background: var(--tiffany); user-select: none; -webkit-user-select: none;
  }
  .testata__apri:active { transform: scale(.94); }
  .testata__linee, .testata__linee::before, .testata__linee::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--blu-notte);
    transition: transform .25s var(--curva), opacity .2s;
  }
  .testata__linee { position: relative; }
  .testata__linee::before, .testata__linee::after { content: ""; position: absolute; left: 0; }
  .testata__linee::before { top: -6px; }
  .testata__linee::after { top: 6px; }
  .testata__apri[aria-expanded="true"] .testata__linee { background: transparent; }
  .testata__apri[aria-expanded="true"] .testata__linee::before { transform: translateY(6px) rotate(45deg); }
  .testata__apri[aria-expanded="true"] .testata__linee::after { transform: translateY(-6px) rotate(-45deg); }
  html.menu-aperto .testata { background: var(--bianco); }
  html.menu-aperto .testata__logo { transform: scale(.68); }

  .hero { padding-top: calc(var(--testata) + 36px); padding-bottom: 40px; background-size: 200% auto; }
  .hero__griglia { grid-template-columns: 1fr; gap: 8px; }
  .hero__testo { padding-top: 22px; }
  .hero__visivo { justify-self: center; max-width: 520px; }
  .punti { margin-top: 28px; }

  .schede { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .striscia { grid-template-columns: 1fr; }
  .striscia__foto { min-height: 150px; }
  .striscia__foto::before { inset: 0 0 auto 0; width: auto; height: 36%; background: linear-gradient(180deg, var(--nebbia), rgba(245, 245, 245, 0)); }

  .self__pannello { grid-template-columns: 1fr; }
  .self__visivo { min-height: 0; aspect-ratio: 1 / .95; max-width: 520px; width: 100%; justify-self: center; }

  .casa { background-size: 260% auto; background-position: 30% 0; padding-top: 80px; }
  .casa__griglia { grid-template-columns: 1fr; }
  .casa__visivo { aspect-ratio: 1 / .92; max-width: 520px; justify-self: center; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .occhiello { font-size: 12px; letter-spacing: .22em; margin-bottom: 14px; }
  .hero__titolo { font-size: clamp(50px, 15vw, 64px); margin-bottom: 22px; }
  .hero__sotto { margin-bottom: 26px; }
  .pulsanti .btn--grande { flex: 1 1 auto; padding-inline: 22px; font-size: 17px; min-height: 56px; }
  .punti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .punti li { flex-direction: column; text-align: center; font-size: 14px; gap: 6px; }
  .punti img { height: 30px; }
  .hero__mano { font-size: 24px; left: 3%; top: -4%; }
  .hero__freccia { width: 38px; left: 31%; top: 0; }
  .hero__scintilla { width: 38px; }

  .bonta { padding-top: 48px; }
  .bonta .titolo-sezione { margin-bottom: 26px; }
  .a-mano--tiffany { font-size: 28px; }
  .scheda__nome { font-size: 16px; gap: 8px; margin-top: 12px; justify-content: space-between; padding-inline: 2px; }
  .freccia-tonda { width: 32px; height: 32px; }
  .freccia-tonda img { width: 11px; }
  .scheda__foto { border-radius: 18px; }
  .striscia { margin-top: 32px; }
  .striscia__testo { padding: 20px; gap: 16px; }
  .striscia__icona { width: 50px; }

  .self { padding: 24px 0; }
  .self__pannello { padding: 36px 20px 30px; border-radius: 28px; }
  .self .titolo-sezione { margin-bottom: 30px; }
  .sottolineato--self .sottolineato__segno { left: 52%; width: 48%; bottom: .2em; }
  .hero { padding-bottom: 8px; }
  .passi { flex-direction: column; gap: 18px; }
  .passo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
  .passo__testa { margin-bottom: 0; gap: 6px; }
  .passo__num { font-size: 36px; }
  .passo__testa img { height: 32px; }
  .passo__freccia { display: none; }
  .passo__testo strong { font-size: 20px; }
  .self__mano { font-size: 23px; left: -2%; bottom: 2%; }
  .self__freccia { width: 36px; left: 12%; bottom: 17%; }

  .specialita { padding: 56px 0 40px; }
  .specialita__griglia { grid-template-columns: 1fr; gap: 26px; }
  .specialita__cucchiaio { display: none; }
  .specialita__scintilla { right: 0; top: 0; width: 40px; }
  .frutto__scheda { padding: 28px 22px 24px; }

  .storia { padding: 56px 0 40px; }
  .storia__griglia { grid-template-columns: 1fr; gap: 30px; }
  .polaroid-gruppo { padding-top: 16px; }
  .polaroid { padding: 7px 7px 0; }
  .polaroid figcaption { font-size: 14px; padding: 8px 2px 10px; }
  .polaroid-gruppo__raggi { width: 50px; top: -16px; }
  .storia__conte { max-width: 300px; padding-top: 56px; }

  .incontro { padding: 30px 0 56px; }
  .incontro__raggi { width: 44px; right: 6%; top: auto; bottom: .05em; }
  .video-riga {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none;
  }
  .video-riga::-webkit-scrollbar { display: none; }
  .video-box { flex: 0 0 78%; scroll-snap-align: center; }
  .incontro__contatti { padding-right: 0; }
  .contatti li { font-size: 18px; gap: 14px; }
  .contatti img { width: 26px; height: 26px; }
  .incontro__contatti .pulsanti .btn { flex: 1 1 auto; min-width: 0; }
  .incontro__conte { display: none; }

  .casa { padding: 60px 0 40px; }
  .casa .pulsanti .btn--tiffany { flex: 1 1 calc(50% - 7px); }
  .casa .pulsanti .btn--bordo { flex: 1 1 100%; }
  .casa__mano { font-size: 26px; top: 0; }
  .casa__freccia { width: 44px; }

  .piede__riga { flex-direction: column; align-items: flex-start; gap: 18px; }
  .piede__menu ul { gap: 4px 22px; }
  .piede__diritti { margin-left: 0; text-align: left; }
  .piede__legali { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── pagine legali e 404 ────────────────────────────────────────────────────── */
.pagina-interna .testata { background: rgba(255, 255, 255, .97); }
.pagina-interna .testata__logo { transform: scale(.52); }
@media (max-width: 900px) { .pagina-interna .testata__logo { transform: scale(.68); } }
.contenitore--stretto { max-width: 860px; }
.pagina-legale { padding: 56px 0 80px; }
.legale h1 { font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.035em; color: var(--blu-notte); margin-bottom: 12px; }
.legale h1 + p { font-size: 15px; color: var(--blu-testo); margin-bottom: 28px; }
.legale h2 { font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--blu-notte); margin: 36px 0 12px; }
.legale p, .legale li, .legale td, .legale th { font-size: 17px; line-height: 1.6; color: var(--blu-testo); }
.legale p + p { margin-top: 12px; }
.legale ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legale li + li { margin-top: 6px; }
.legale a { color: var(--blu); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legale table { width: 100%; border-collapse: collapse; margin: 14px 0; display: block; overflow-x: auto; }
.legale th, .legale td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(0, 38, 110, .12); vertical-align: top; min-width: 120px; }
.legale th { font-weight: 800; color: var(--blu-notte); background: var(--ghiaccio); }
.errore { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding: 20px 0; }
.errore .titolo-sezione { margin-bottom: 18px; }
.errore .testo-medio { margin-bottom: 28px; }
@media (max-width: 640px) {
  .pagina-legale { padding: 32px 0 56px; }
  .errore { grid-template-columns: 1fr; }
  .errore__conte { max-width: 240px; }
}
