/* =========================================================
   La Favorita · Home (sezioni sotto la hero)
   Ritmo dei colori: lavanda → bianco → lavanda (pizze) → navy (locale) → lavanda (social)
   → neon scuro (prenota) → fascia rosa → bianco (orari) → footer navy
   ========================================================= */

/* ---------- 1. LA FAMIGLIA ---------- */
.h-famiglia { position: relative; overflow: clip; padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.h-famiglia__righe { position: absolute; right: 0; top: 0; bottom: 0; width: 14px; }
.h-famiglia__grid { display: grid; gap: 2.5rem; }
.h-famiglia__occhiello { display: grid; gap: .8rem; margin-bottom: 2rem; }
.h-famiglia__occhiello .freccia { margin-left: 22%; margin-top: -.4rem; }
.h-famiglia__foto { position: relative; }
.h-famiglia__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--bianco); box-shadow: 14px 14px 0 var(--rosa); }
.h-famiglia__testo h2 { margin-bottom: 1.75rem; }
.h-famiglia__testo p { font-size: var(--fs-lead); line-height: 1.55; }
.h-famiglia__testo p + p { margin-top: 1rem; }
.h-famiglia__testo .btn { margin-top: 2rem; }
.timeline { margin-top: 2.25rem; border-top: 2px solid var(--navy); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--navy) 25%, transparent); }
.timeline__anno { font-family: var(--font-titoli); font-size: 2.6rem; line-height: .9; color: var(--rosa-vivo); }
@media (min-width: 900px) {
  .h-famiglia__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .h-famiglia__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- 2. IMPASTI ---------- */
.h-impasti__grid { display: grid; gap: 3rem; }
.h-impasti__testo .occhiello { margin-bottom: .5rem; }
.h-impasti__testo h2 { margin-bottom: 1.5rem; }
.h-impasti__testo > p:not(.occhiello):not(.avviso) { font-size: var(--fs-lead); line-height: 1.55; }
.h-impasti__media { position: relative; padding-bottom: 14%; }
.h-impasti__pale img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 78%; }
.h-impasti__mani { position: absolute; right: 0; bottom: 0; width: 48%; }
.h-impasti__mani img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; border: 8px solid var(--bianco); box-shadow: -12px 12px 0 var(--lavanda); }
/* listino in blocco navy */
.listino-card { margin-top: 2rem; max-width: 34rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--navy); color: var(--bianco); }
.listino-card__titolo { color: var(--rosa); font-size: 1.6rem; margin-bottom: .4rem; }
.listino-card__titolo:not(:first-child) { margin-top: 1.5rem; }
.listino li { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; }
.listino .voce { font-weight: 700; }
.listino .puntini { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .35); transform: translateY(-.25em); }
.listino .prezzo { font-variant-numeric: tabular-nums; font-weight: 800; }
.listino-card__farine { margin-top: .75rem; font-weight: 700; }
.listino-card__nota { margin-top: .5rem; font-size: var(--fs-small); color: #C9D6F2; }
@media (min-width: 900px) {
  .h-impasti__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); align-items: center; }
}

/* ---------- 3. LE PIZZE CHE ROTOLANO (animazione invariata) ---------- */
.rotola { position: relative; background: var(--lavanda); padding-top: var(--section); }
.rotola__head { display: grid; gap: 1.5rem; align-items: end; }
.rotola__head .occhiello { margin-bottom: .35rem; }
.rotola__intro p { margin-bottom: 1.25rem; font-size: var(--fs-lead); line-height: 1.5; }
.rotola__stage { position: relative; margin-top: clamp(2rem, 4vw, 3.5rem); }
.rotola__parete { position: absolute; left: 0; right: 0; top: 18%; bottom: 46px; opacity: .55; }
/* il banco rosa scanalato del locale */
.rotola__banco {
  position: relative; height: 46px;
  background:
    linear-gradient(180deg, rgba(20, 37, 79, .22), rgba(20, 37, 79, 0) 9px),
    repeating-linear-gradient(90deg, var(--rosa) 0 12px, #E57A95 12px 14px, #F39AB0 14px 22px);
}
.rotola__banco::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: #F4EFE4; }
/* senza JS, con movimento ridotto o su mobile: striscia scorrevole a mano */
.rotola__viewport { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0; }
.rotola__viewport::-webkit-scrollbar { display: none; }
.rotola__track { display: flex; gap: clamp(1rem, 3vw, 3rem); padding-inline: var(--gutter); width: max-content; align-items: end; }
.rotola__pizza { flex: none; width: clamp(220px, 62vw, 380px); scroll-snap-align: center; }
.rotola__pizza img { width: 100%; filter: drop-shadow(0 18px 14px rgba(20, 37, 79, .22)); }
/* desktop con animazioni: pin + rotolamento legato allo scroll */
.rotola.is-pinned { padding-top: 0; }
.rotola.is-pinned .rotola__sticky { height: 100svh; gap: 0; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); overflow: hidden; }
.rotola.is-pinned .rotola__viewport { overflow: visible; scroll-snap-type: none; }
.rotola.is-pinned .rotola__track { will-change: transform; padding-left: 58vw; padding-right: 8vw; }
/* le pizze appoggiano sul banco (il PNG ha un piccolo margine trasparente) */
.rotola.is-pinned .rotola__viewport { margin-bottom: -1.1vw; z-index: 1; }
.rotola.is-pinned .rotola__pizza { width: clamp(220px, 22vw, 360px); }
.rotola.is-pinned .rotola__pizza img { will-change: transform; filter: none; }
@media (min-width: 900px) { .rotola__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* ---------- 4. IL LOCALE: anteprima 4×2 ---------- */
.h-galleria__head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.h-galleria__head h2 { color: var(--bianco); }
.h-galleria__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h-galleria__grid a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: var(--navy-900); }
.h-galleria__grid picture, .h-galleria__grid img { width: 100%; height: 100%; }
.h-galleria__grid img { object-fit: cover; transition: transform .9s var(--ease-out); }
.h-galleria__grid a:focus-visible img { transform: scale(1.06); }
@media (hover: hover) { .h-galleria__grid a:hover img { transform: scale(1.06); } }
.h-galleria__grid :focus-visible { outline-color: var(--rosa); outline-offset: 4px; }
/* comparsa a scaglioni (solo con JS e movimento attivo) */
.has-motion [data-scaglioni] li { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease calc(var(--i) * 70ms), transform .9s var(--ease-out) calc(var(--i) * 70ms); }
.has-motion [data-scaglioni].is-visible li { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .h-galleria__head { grid-template-columns: 1fr auto; }
  .h-galleria__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- 5. SOCIAL ---------- */
.h-social { padding-top: clamp(4.5rem, 3rem + 6vw, 8rem); padding-bottom: clamp(3rem, 5vw, 5rem); overflow: clip; }
.h-social__grid { display: grid; gap: 2rem; align-items: center; }
.h-social__tag .occhiello { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.4rem); line-height: 1.02; max-width: 12ch; }
/* l'handle va su una riga sua, più piccolo e senza spezzarsi */
.h-social__handle { display: inline-block; margin-top: .3em; font-size: max(1.5rem, min(.62em, 7.2vw)); white-space: nowrap; text-decoration: none; border-bottom: 3px solid currentColor; }
.h-social__tag .freccia { margin: .75rem 0 0 30%; }
.h-social__testo h2 { color: var(--navy); margin-bottom: 1.25rem; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 5rem); }
.h-social__testo p { font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 900px) { .h-social__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); } }
/* striscia dei post: scorre piano da sola, si ferma al passaggio del mouse, si trascina col dito */
.social-striscia { margin-top: clamp(2.5rem, 5vw, 4rem); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.social-striscia::-webkit-scrollbar { display: none; }
.social-striscia:focus-visible { outline-offset: -3px; }
.social-striscia__track { display: flex; gap: 12px; width: max-content; padding-inline: var(--gutter); }
.post { flex: none; width: clamp(200px, 52vw, 300px); }
/* post in 4:5, il formato verticale di Instagram: le locandine si vedono intere */
.post a { display: block; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 5; background: var(--navy); }
.post picture, .post img { width: 100%; height: 100%; }
.post img { object-fit: cover; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .post a:hover img { transform: scale(1.05); } }
.post a::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(20, 37, 79, .55) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}

/* ---------- 6. PRENOTA (neon) ---------- */
.h-prenota { position: relative; isolation: isolate; color: var(--bianco); background: var(--navy-900); overflow: clip; }
.h-prenota__bg { position: absolute; inset: 0; z-index: -1; }
.h-prenota__bg picture, .h-prenota__bg img { width: 100%; height: 100%; }
.h-prenota__bg img { object-fit: cover; object-position: 70% 50%; filter: saturate(.6) brightness(.85); }
.h-prenota__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 37, 79, .9) 0%, rgba(20, 37, 79, .62) 55%, rgba(20, 37, 79, .35) 100%); }
.h-prenota__inner { padding-block: clamp(5rem, 11vw, 10rem); }
.h-prenota h2 { color: var(--bianco); max-width: 14ch; font-size: clamp(2.8rem, 1.4rem + 5vw, 7rem); }
.h-prenota h2 em { color: var(--rosa); }
.h-prenota .lead { margin-top: 1.25rem; max-width: 40ch; }
.h-prenota__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.h-prenota :focus-visible { outline-color: var(--rosa); }
@media (max-width: 599px) { .h-prenota__cta .btn { width: 100%; } }

/* ---------- 7. ORARI E DOVE SIAMO ---------- */
.h-dove__grid { display: grid; gap: 3rem; }
.h-dove h2 { margin-bottom: 2rem; }
.h-dove__foto img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: 14px 14px 0 var(--lavanda); }
@media (min-width: 900px) {
  .h-dove__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
  .h-dove__foto { max-width: 26rem; justify-self: end; width: 100%; }
}

/* ---------- reveal leggero (solo con JS e movimento attivo) ---------- */
.has-motion [data-reveal].is-pre { opacity: 0; transform: translateY(18px); }
