/* ═══════════════════════════════════════════════════
   Pizza Pazza — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── CA Coronado — font brand ufficiale ─────────── */
@font-face {
  font-family: 'CA Coronado';
  src: url('../fonts/CACoronado-Regular.woff2') format('woff2'),
       url('../fonts/CACoronado-Regular.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CA Coronado Shadow';
  src: url('../fonts/CACoronado-Shadow.woff2') format('woff2'),
       url('../fonts/CACoronado-Shadow.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:        #1A7A3C;
  --verde-dark:   #0D3D1E;
  --verde-hero:   #091A0F;
  --arancione:    #E8961E;
  --arancione-d:  #C85A00;
  --crema:        #FAFAF7;
  --nero:         #1A1A1A;
  --grigio:       #6B7280;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Nunito', sans-serif; color: var(--nero); background: var(--crema); overflow-x: clip; }

/* ── LAZY-LOAD BLUR-UP (img[loading=lazy] fade-in on load) ────── */
img[loading="lazy"] {
  opacity: 0;
  transform: scale(1.02);
  filter: blur(8px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
  will-change: opacity, filter;
}
img[loading="lazy"].loaded,
img[loading="lazy"][data-loaded] {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
/* No-JS fallback: skip blur-up so users without JS still see images */
.no-js img[loading="lazy"] { opacity: 1; transform: none; filter: none; }

/* ── UTILITY CLASSES (sostituiscono inline styles ripetuti) ───── */
/* Card bianca con soft shadow (era ripetuta 12× come inline style) */
.u-card-white { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
/* Badge/tag arancione uppercase (era ripetuto 8× come inline style) */
.u-badge-arancio {
  background: rgba(244,120,32,.15); color: var(--arancione);
  letter-spacing: .1em; text-transform: uppercase;
}
/* Descrizione grigia (era ripetuta 10× come inline style) */
.u-text-desc { color: var(--grigio); font-size: .95rem; }

/* ── NAVBAR ─────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#navbar.scrolled {
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
#navbar.dark-nav {
  background: rgba(9,26,15,0.9);
}
#navbar.dark-nav .nav-link { color: rgba(255,255,255,.85); }
#navbar.dark-nav .nav-link:hover { color: var(--arancione); }
#navbar.dark-nav .logo-text { color: #E8B42A; }
#hamburger { min-width: 44px; min-height: 44px; }
#navbar.dark-nav #hamburger span { background: #fff; }
#navbar.dark-nav.scrolled {
  background: rgba(250,250,247,0.95);
  border-color: rgba(0,0,0,.07);
}
#navbar.dark-nav.scrolled .nav-link { color: var(--nero); }
#navbar.dark-nav.scrolled .logo-text { color: #E8B42A; -webkit-text-stroke: 1.2px #1A1A1A; text-stroke: 1.2px #1A1A1A; }
#navbar.dark-nav.scrolled #hamburger span { background: #1A1A1A; }

/* Logo brand — CA Coronado, giallo oro su sfondo scuro */
.logo-text {
  font-family: 'CA Coronado', cursive;
  font-size: 1.25rem;
  color: #E8B42A;
  text-decoration: none;
  line-height: 1;
}

.nav-link {
  position: relative; font-weight: 700; font-size: .95rem;
  color: var(--nero); text-decoration: none; padding: 4px 0;
  transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--arancione);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--arancione); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--arancione); }

/* ── MOBILE MENU — full screen overlay ──────────── */
@keyframes menuLinkIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pizzaDrift {
  0%   { transform: rotate(-20deg) scale(1); }
  50%  { transform: rotate(-14deg) scale(1.04); }
  100% { transform: rotate(-20deg) scale(1); }
}

/* ── MOBILE MENU — drawer from right ───────────── */
#mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px);
  z-index: 500;
  background:
    linear-gradient(160deg, rgba(5,18,9,0.91) 0%, rgba(10,25,14,0.87) 100%),
    url('../img/locale/forno-acceso.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 10px));
  transition: transform .38s cubic-bezier(.4,0,.2,1), visibility 0s .38s;
  visibility: hidden;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,.45);
}
/* Overlay scuro dietro il drawer */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s ease;
}
#mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
#mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .38s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}


/* ── Header: logo + close ── */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
#menu-logo {
  font-family: 'CA Coronado', cursive;
  font-size: 1.25rem;
  color: var(--arancione);
  text-decoration: none;
  line-height: 1;
}
#mobile-menu.open #menu-logo {
  animation: menuFadeIn .4s .05s ease both;
}
#menu-close {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
#menu-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Nav links ── */
.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 28px;
  gap: 4px;
}
.mob-link {
  font-family: 'Nunito', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -.02em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .22s, gap .22s;
  opacity: 0;
}
.mob-link:last-child { border-bottom: none; }
.mob-link::before {
  content: '';
  display: block;
  width: 0; height: 3px;
  background: var(--arancione);
  border-radius: 2px;
  transition: width .22s ease;
  flex-shrink: 0;
}
.mob-link:hover,
.mob-link.active {
  color: #fff;
}
.mob-link.active { color: var(--arancione); }
.mob-link:hover::before,
.mob-link.active::before { width: 18px; }

#mobile-menu.open .mob-link:nth-child(1) { animation: menuLinkIn .4s .12s ease forwards; }
#mobile-menu.open .mob-link:nth-child(2) { animation: menuLinkIn .4s .20s ease forwards; }
#mobile-menu.open .mob-link:nth-child(3) { animation: menuLinkIn .4s .28s ease forwards; }
#mobile-menu.open .mob-link:nth-child(4) { animation: menuLinkIn .4s .36s ease forwards; }
@keyframes menuLinkIn {
  from { opacity:0; transform: translateX(20px); }
  to   { opacity:1; transform: translateX(0); }
}

/* ── Footer: CTA + orari ── */
.mobile-menu-footer {
  padding: 20px 28px 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  opacity: 0;
}
#mobile-menu.open .mobile-menu-footer {
  animation: menuFadeIn .4s .44s ease forwards;
}
.mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--arancione);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 10px;
  transition: filter .2s;
}
.mob-cta:hover { filter: brightness(1.1); }
.mob-contact {
  color: rgba(255,255,255,.35);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  transition: color .2s;
}
.mob-contact:hover { color: rgba(255,255,255,.7); }
.mob-hours {
  color: rgba(255,255,255,.28);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--arancione); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(244,120,32,.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: .04em; padding: 13px 30px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.4); text-decoration: none; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: scale(1.03); }

.btn-verde {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--verde); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.btn-verde:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(26,122,60,.4); }

/* ── SECTION UTILS ──────────────────────────────── */
.section-badge {
  display: inline-block;
  background: rgba(244,120,32,.12); color: var(--arancione);
  font-weight: 800; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.section-badge.green {
  background: rgba(26,122,60,.1); color: var(--verde);
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1; color: var(--nero);
}
.section-title.light { color: #fff; }

/* ── PAGE HERO (inner pages) ────────────────────── */
.page-hero {
  background: var(--verde-hero);
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-blob {
  position: absolute; top: -80px; right: 0;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,120,32,.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-blob2 {
  display: none;
}
.page-hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
}
.wave-divider { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── PIZZA CARD (legacy, non usato) ─────────────── */
.pizza-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pizza-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.card-img {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.card-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.06); }

/* ── PREVIEW MENU — 4 card verticali ────────────── */
#preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* Il wrapper stack diventa trasparente: i figli entrano direttamente nel grid */
.pcard-stack { display: contents; }

.pcard {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--crema);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
  aspect-ratio: 3 / 4;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(0,0,0,.2); }

.pcard-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  transition: transform .55s ease;
}
.pcard:hover .pcard-photo { transform: scale(1.07); }

.pcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.3) 45%,
    transparent 100%);
}

.pcard-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 22px;
}

.pcard-price {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: var(--arancione); color: #fff;
  font-family: Pacifico, cursive; font-size: .9rem;
  padding: 4px 14px; border-radius: 30px;
  box-shadow: 0 2px 10px rgba(232,150,30,.45);
}
.pcard-tag {
  display: inline-block; margin-bottom: 8px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.88); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
}
.pcard-name {
  font-family: Pacifico, cursive;
  color: #fff; margin-bottom: 5px; line-height: 1.2; font-size: 1.5rem;
}
.pcard-desc { color: rgba(255,255,255,.65); font-size: .85rem; line-height: 1.5; }

/* Legacy selectors — uniformati, non più distinzione featured/small */
.pcard-featured .pcard-name,
.pcard-small .pcard-name { font-size: 1.5rem; }
.pcard-mobile-only { display: block; }   /* sempre visibile nel grid */

@media (max-width: 767px) {
  /* Mobile: riga scrollabile orizzontale con snap */
  #preview-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 12px;
    margin: 0 -24px;          /* sfora i margini del container per il padding visivo */
    scrollbar-width: none;
  }
  #preview-grid::-webkit-scrollbar { display: none; }

  .pcard-stack { display: contents; }   /* dissolve il wrapper nel flex */

  .pcard {
    flex: 0 0 78vw;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    border-radius: 18px;
  }
  .pcard-body { padding: 16px; }
  .pcard-name { font-size: 1.3rem !important; margin-bottom: 4px; }
  .pcard-desc { font-size: .82rem; }
  .pcard-tag  { font-size: .62rem; padding: 3px 9px; margin-bottom: 6px; }
  .pcard-price { top: 12px; right: 12px; font-size: .85rem; padding: 4px 12px; }
  .swipe-hint { display: none !important; }
}

/* ── FLOATING BUTTONS ───────────────────────────── */
.floating-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 50px;
  color: #fff; font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.float-btn:hover { transform: scale(1.06); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.float-btn .label { max-width: 0; overflow: hidden; transition: max-width .35s ease, opacity .35s ease; opacity: 0; }
.float-btn:hover .label { max-width: 120px; opacity: 1; }
.float-wa  { background: #25D366; }
.float-je  { background: #FF6700; }
.float-icon { font-size: 22px; flex-shrink: 0; line-height: 1; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

/* ── BACK TO TOP ────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 152px; right: 24px; z-index: 199;
  background: var(--verde); color: #fff; border: none; border-radius: 50px;
  padding: 9px 16px; display: flex; align-items: center; gap: 6px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .78rem;
  letter-spacing: .04em; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(26,122,60,.3);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .18s ease;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover   { background: var(--verde-dark); transform: translateY(-2px); }
@media (max-width: 767px) {
  #back-to-top { bottom: 136px; right: 16px; }
}

/* ── CONTATTI ───────────────────────────────────── */
.info-card {
  background: #fff; border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  transition: box-shadow .25s;
}
.info-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 14px 18px;
  color: #fff; font-family: 'Nunito', sans-serif; font-size: 1rem;
  transition: border-color .25s, background .25s; outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--arancione); background: rgba(255,255,255,.12); }

/* ── FEATURE CARDS ──────────────────────────────── */
.feature-card {
  transform: translateY(0);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: rgba(26,122,60,.2);
  }
}

/* ── LOGO NAV IMAGE ─────────────────────────────── */
.logo-img { height: 38px; width: auto; display: block; }

/* ── HERO LOGO FLOAT ────────────────────────────── */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}
.logo-hero-float {
  animation: floatLogo 5s ease-in-out infinite;
  filter: drop-shadow(0 16px 40px rgba(232,150,30,.3));
}

/* ── FOOTER ─────────────────────────────────────── */
footer { background: #060E08; border-top: 1px solid rgba(255,255,255,.08); }
.footer-link {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
  line-height: 1.8;
}
.footer-link:hover { color: #fff; }
.footer-col-title {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 14px; display: block;
}

/* ── GSAP INITIAL STATES ────────────────────────── */
.js-ready .fade-up    { opacity: 0; transform: translateY(16px); }
.js-ready .fade-left  { opacity: 0; transform: translateX(-16px); }
.js-ready .fade-right { opacity: 0; transform: translateX(16px); }
.js-ready .pizza-card { opacity: 0; transform: translateY(40px); }
.js-ready .pcard      { opacity: 0; transform: translateY(20px); }

/* ── STORIA ─────────────────────────────────────── */
.storia-photo {
  background: linear-gradient(135deg, #1A7A3C 0%, #0D3D1E 100%);
  border-radius: 24px; overflow: hidden; position: relative;
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
}
.storia-photo::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(244,120,32,.25) 0%, transparent 60%);
}
.storia-quote {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--verde); line-height: 1.2;
}
.storia-quote span { color: var(--arancione); }

/* ── RESPONSIVE — MOBILE ────────────────────────── */
@media (max-width: 767px) {

  /* Navbar */
  #navbar { height: auto; }

  /* Page hero inner pages: meno padding */
  .page-hero { padding: 88px 0 52px; }
  .page-hero h1 { font-size: 2.5rem !important; }
  .page-hero p  { font-size: 1rem !important; }

  /* Section titles */
  .section-title { font-size: 2.2rem !important; }

  /* Bottoni full-width su mobile — più sottili */
  .btn-primary,
  .btn-verde,
  .btn-outline {
    width: 100%;
    justify-content: center;
    font-size: .9rem;
    padding: 10px 18px;
    min-height: 0;
    line-height: 1.2;
  }

  /* Sezioni: meno padding verticale */
  section.py-24, section.py-20 { padding-top: 56px !important; padding-bottom: 56px !important; }
  section.py-16 { padding-top: 40px !important; padding-bottom: 40px !important; }

  /* Paragrafi: interlinea e dimensione ottimale */
  p { line-height: 1.65; }
  .text-lg { font-size: 1rem !important; }

  /* Storia photo: più bassa */
  .storia-photo {
    aspect-ratio: 9/16;
    min-height: 460px;        /* fallback se aspect-ratio non parte */
    max-height: 520px;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  /* mobile: la foto deve essere sempre visibile, niente fade (evita opacity:0 bloccato) */
  .js-ready .storia-photo.fade-left { opacity: 1 !important; transform: none !important; }
  .storia-photo img { object-position: center 25% !important; }
  .storia-photo-emoji { font-size: 5rem !important; }
  /* badge in basso più compatto, leggibile, non copre il viso (foto stretta verticale) */
  .storia-photo > div[style*="bottom"] { bottom: 14px !important; left: 14px !important; right: 14px !important; }
  .storia-photo > div[style*="bottom"] > div { padding: 10px 14px !important; }

  /* Storia quote */
  .storia-quote { font-size: 1.7rem !important; }

  /* Floating buttons: cerchi compatti */
  .floating-stack { bottom: 16px; right: 16px; gap: 10px; }
  .float-btn { padding: 13px; border-radius: 50%; width: 48px; height: 48px; justify-content: center; }
  .float-btn .label { display: none; }
  .float-icon { font-size: 22px; }

  /* Info card: meno padding */
  .info-card { padding: 20px; }

  /* Griglia due colonne: forza singola colonna su mobile */
  .grid-cols-2 { grid-template-columns: 1fr !important; }

  /* Footer: riduci padding */
  footer.py-12 { padding-top: 40px !important; padding-bottom: 40px !important; }

  /* Nasconde wave divider su mobile (evita buco bianco) */
  .wave-divider { display: none; }

  /* Menu: nav categoria - scroll orizzontale pulito */
  #cat-nav { top: 56px; }
  #cat-nav .flex { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  #cat-nav .flex::-webkit-scrollbar { display: none; }

  /* CTA band + sezioni con foto sfondo: padding ridotto su mobile */
  .cta-band,
  .cta-photo-band { padding: 44px 0 !important; }
  /* Titolo CTA più piccolo */
  .cta-band .font-display,
  .cta-photo-band .font-display { font-size: 1.7rem !important; }
  /* Paragrafo CTA */
  .cta-band .text-lg,
  .cta-band p,
  .cta-photo-band p { font-size: .9rem !important; margin-bottom: 18px !important; }

  /* Bottoni CTA affiancati → impilati */
  .cta-band .flex,
  .flex.flex-wrap.gap-4 { flex-direction: column; align-items: stretch; }

  /* Griglia valori storia: 2 colonne su mobile */
  #storia .grid-cols-4,
  .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Pull quote storia */
  .pull-quote { font-size: 1.4rem !important; padding-left: 16px; }

  /* Timeline: semplifica su mobile */
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 48px !important; margin-bottom: 32px !important; }
  .timeline-item.left,
  .timeline-item.right { width: 100% !important; margin-left: 0 !important; text-align: left !important; }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot { left: 6px !important; right: auto !important; }

  /* Contatti: stack tutto */
  .contact-big-btn { padding: 16px; }
  .contact-big-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
  .orari-row { font-size: .9rem; }

}

/* ── FOOTER LEGAL LINKS ─────────────────────────── */
.footer-legal-link {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.footer-legal-link:hover { color: rgba(255,255,255,.7); }

/* ── COOKIE BANNER ───────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0D3D1E;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -4px 40px rgba(0,0,0,.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-title { font-weight: 800; color: #fff; font-size: 1rem; margin-bottom: 5px; }
.cookie-desc  { font-size: .84rem; color: rgba(255,255,255,.62); line-height: 1.65; }
.cookie-desc a { color: var(--arancione); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.cookie-btn-primary {
  background: var(--verde); color: #fff; border: none;
  border-radius: 10px; padding: 11px 24px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .9rem;
  cursor: pointer; transition: background .2s, transform .15s;
}
.cookie-btn-primary:hover  { background: #15693A; transform: translateY(-1px); }
.cookie-btn-secondary {
  background: transparent; color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.25); border-radius: 10px;
  padding: 11px 24px; font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.cookie-btn-secondary:hover { border-color: rgba(255,255,255,.55); color: #fff; }

/* ── LEGAL PAGES ─────────────────────────────────── */
.legal-hero {
  background: var(--verde-hero);
  padding: 120px 0 60px;
}
.legal-body {
  max-width: 760px; margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-body h2 {
  font-family: Pacifico, cursive;
  font-size: 1.35rem; color: var(--verde);
  margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p  { color: rgba(26,26,26,.78); line-height: 1.8; margin-bottom: 14px; font-size: .95rem; }
.legal-body ul { color: rgba(26,26,26,.78); line-height: 1.8; margin: 0 0 14px 20px; font-size: .95rem; }
.legal-body ul li { margin-bottom: 6px; }
.legal-body a  { color: var(--verde); }
.legal-date    { font-size: .8rem; color: #9CA3AF; margin-bottom: 32px; display: block; }

/* ── LANGUAGE SWITCH ────────────────────────────── */
.lang-switch {
  display: flex; align-items: center; flex-shrink: 0;
  border: 1.5px solid rgba(26,122,60,.28);
  border-radius: 8px; overflow: hidden;
}
.lang-btn {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  padding: 5px 9px; line-height: 1;
  color: rgba(26,122,60,.5);
  text-decoration: none;
  transition: background .15s, color .15s;
  display: block; cursor: default;
}
a.lang-btn { cursor: pointer; }
a.lang-btn:hover { background: rgba(26,122,60,.08); color: var(--verde); }
.lang-btn.active { background: var(--verde); color: #fff; }
.lang-btn + .lang-btn { border-left: 1.5px solid rgba(26,122,60,.28); }

/* Dark navbar (home hero) */
#navbar.dark-nav .lang-switch { border-color: rgba(255,255,255,.22); }
#navbar.dark-nav .lang-btn { color: rgba(255,255,255,.45); }
#navbar.dark-nav .lang-btn + .lang-btn { border-left-color: rgba(255,255,255,.22); }
#navbar.dark-nav a.lang-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
#navbar.dark-nav .lang-btn.active { background: rgba(255,255,255,.18); color: #fff; }

/* Dark nav → scrolled (becomes light) */
#navbar.dark-nav.scrolled .lang-switch { border-color: rgba(26,122,60,.28); }
#navbar.dark-nav.scrolled .lang-btn { color: rgba(26,122,60,.5); }
#navbar.dark-nav.scrolled .lang-btn + .lang-btn { border-left-color: rgba(26,122,60,.28); }
#navbar.dark-nav.scrolled a.lang-btn:hover { background: rgba(26,122,60,.08); color: var(--verde); }
#navbar.dark-nav.scrolled .lang-btn.active { background: var(--verde); color: #fff; }

/* Mobile menu overlay */
#mobile-menu .lang-switch { border-color: rgba(255,255,255,.2); }
#mobile-menu .lang-btn { color: rgba(255,255,255,.4); font-size: .78rem; padding: 6px 11px; }
#mobile-menu .lang-btn + .lang-btn { border-left-color: rgba(255,255,255,.2); }
#mobile-menu a.lang-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
#mobile-menu .lang-btn.active { background: rgba(255,255,255,.15); color: #fff; }

/* ── LANG SWITCH — mobile navbar (compatto) ─────── */
.lang-switch--sm .lang-btn {
  font-size: .63rem;
  padding: 4px 7px;
}

/* ── HAMBURGER → ✕ ANIMATION ────────────────────── */
#hamburger span {
  transform-origin: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
#hamburger.active #h1 { transform: translateY(8px) rotate(45deg); }
#hamburger.active #h2 { opacity: 0; transform: scaleX(0); }
#hamburger.active #h3 { transform: translateY(-8px) rotate(-45deg); }

/* ── RECENSIONI — layout mobile a 2 colonne stagger ─ */
@media (max-width: 767px) {
  #reviews-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    align-items: start;
    padding-bottom: 28px;
  }
  #reviews-grid .review-card:nth-child(even) {
    transform: translateY(22px);
  }
  #reviews-grid .review-photo { display: none; }
  #reviews-grid .review-card {
    padding: 13px 12px 11px;
    border-radius: 16px;
    gap: 6px;
  }
  #reviews-grid .review-quote {
    font-size: 2rem;
    line-height: .7;
  }
  #reviews-grid .review-text {
    font-size: .77rem;
    line-height: 1.55;
  }
  #reviews-grid .review-stars { font-size: .8rem; }
  #reviews-grid .review-author {
    padding-top: 8px;
    gap: 7px;
  }
  #reviews-grid .review-avatar {
    width: 26px; height: 26px;
    font-size: .65rem;
    flex-shrink: 0;
  }
  #reviews-grid .review-name { font-size: .74rem; }
  #reviews-grid .review-badge-line { font-size: .62rem; gap: 4px; }
  #reviews-grid .g-mark { width: 13px; height: 13px; font-size: .6rem; }
}

/* ── TOUCH DEVICES: nessun hover effect ─────────── */
@media (hover: none) {
  .nav-link:hover                    { color: var(--nero); }
  .nav-link:hover::after             { width: 0; }
  .nav-link.active:hover::after      { width: 100%; }
  #navbar.dark-nav .nav-link:hover   { color: rgba(255,255,255,.85); }
  #menu-close:hover                  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); transform: none; }
  .mob-link:hover                    { color: rgba(255,255,255,.6); transform: none; }
  .mob-link.active:hover             { color: var(--arancione); }
  .mob-contact:hover                 { color: rgba(255,255,255,.35); }
  .btn-primary:hover                 { transform: none; box-shadow: none; }
  .btn-outline:hover                 { border-color: rgba(255,255,255,.4); background: transparent; transform: none; }
  .btn-verde:hover                   { transform: none; box-shadow: none; }
  .pizza-card:hover                  { transform: none; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
  .float-btn:hover                   { transform: none; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
  .float-btn:hover .label            { max-width: 0; opacity: 0; }
  .info-card:hover                   { box-shadow: 0 4px 24px rgba(0,0,0,.05); }
  .footer-link:hover                 { color: rgba(255,255,255,.55); }
}

/* ── ACCESSIBILITY: prefers-reduced-motion ───────────
   Approccio CHIRURGICO: spegne SOLO animazioni decorative in loop infinito
   (es. pizza che ruota). Fade, transizioni e hover restano intatti per
   tutti — anche per utenti con "Riduci movimento" attivo — perché non
   causano malessere vestibolare.
   Standard WCAG 2.1 — Success Criterion 2.3.3.
*/
@media (prefers-reduced-motion: reduce) {
  .pizza-hero-img,
  .spinning-pizza,
  .rotate-slow {
    animation: none !important;
  }
}
