/* -------------------------------------------------------
   ROOT & RESETS
------------------------------------------------------- */

.internal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.internal-header img {
  height: 75px; /* più grande e più elegante */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
/* Bottone Home (non mostrato nella home) */
/* Bottone Home minimal (solo icona casa bordeaux) */
.home-button {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1200;

  font-size: 1.9rem;
  color: #7a0000; /* bordeaux pieno */
  cursor: pointer;
  transition: 0.25s ease;

  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.home-button:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}


:root {
  
  --bg-dark: #050505;
  --gold: #f4d77b;
  --silver: #d6d6d6;
  --silver-dim: rgba(214,214,214,0.7);
  --txt-light: #fff;
  --accent: #f4b32b;
  --blur-bg: rgba(0,0,0,0.45);
  --transition-med: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.25s ease-out;
}


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

html, body {
  width:100%;
  height:100dvh;
  min-height:100dvh;
  background: transparent !important;

  font-family: "Inter", sans-serif;
  color: var(--txt-light);
  overflow-x: hidden;
}
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}


/* Fade-in nero mobile */
body.fade-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  animation: fadeStart 0.5s forwards ease-out;
}

@keyframes fadeStart { from {opacity:1;} to {opacity:0;} }

/* HIDDEN SECTIONS */
.section { display: none; }

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */
/* Nascondi il bottone home nella HOME */
body.is-home-section .home-button {
  display: none !important;
}

/* Fidelity Card SOLO in home */
.local-section .fidelity-btn,
.section .fidelity-btn {
  display: none !important;
}


#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
    background: transparent !important;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: #000000;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#videoFadeOverlay {
  display: none !important;
}

.hero-image {
  display: none;
}

/* Desktop fallback */
@media (min-width: 769px) {
  .hero-video { display: none; }
  .hero-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
}

/* Overlay dark gradient */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* PIÙ SCURO all’inizio */
  z-index: -1;
  animation: heroFadeDarken 2s forwards ease-out;
}

@keyframes heroFadeDarken {
  from { background: rgba(0,0,0,0.85); } /* ancora più scuro */
  to   { background: rgba(0,0,0,0.25); } /* valore finale attuale */
}




.hero-logo {
  width: 250px; /* nuovo valore */

  filter: drop-shadow(0 10px 20px rgba(0,0,0,.4));
  margin-bottom: 1.2rem;
}

.hero-gold {
  font-family: "Satisfy", cursive;
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 20px rgba(244,215,123,0.4);
}
.choose-local {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 300; /* sottile */
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

/* Sedi */
.locations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
  align-items: center; 
}

@media (min-width:769px){
  .locations { flex-direction: row; }
}
/* Fidelity Card in home */
.fidelity-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 20px);
  left: 20px;
  z-index: 30;

  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--silver);
  text-shadow: 0 0 8px rgba(0,0,0,0.6);

  cursor: pointer;
  transition: 0.25s ease;
}

.fidelity-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.location-item {
  font-size: 1rem;
  color: var(--silver);
  padding: .3rem 1.1rem;
  cursor: pointer;
  transition: .4s ease;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);

}

@media (max-width: 768px) {
  .home-button,
  .fidelity-btn {
    top: calc(env(safe-area-inset-top) + 18px);
  }

  .home-button {
    left: 16px;
  }

  .fidelity-btn {
    left: 16px;
    max-width: calc(100vw - 32px);
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .shop-checkout-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 16px;
    border-radius: 20px;
  }

  .shop-checkout-head {
    padding-right: 44px;
  }

  .shop-checkout-result-meta {
    grid-template-columns: 1fr;
  }
}
.location-item {
  animation: floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.location-item:hover {
  transform: translateY(-3px);
}

.separator {
  width: 80%;
  height: 1px;
  background: var(--silver-dim);
}

@media (min-width: 769px) {
  .separator { width: 20%; height: 1px; }
}

/* Menu button */
.btn {
  margin-top: 1.5rem;
  padding: .9rem 2.6rem;
  border-radius: 999px;

  background: rgba(120,0,0,0.55); /* rosso bordeaux più brillante */
  border: 1px solid var(--gold); /* contorno dorato */
  backdrop-filter: blur(12px);

  cursor: pointer;

  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 600;          /* elegante e sottile */
  text-transform: uppercase; /* richiesto */
  color: var(--gold);        /* illumina il testo */

  transition: 0.35s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background: rgba(150,0,0,0.70); /* più brillante quando hover */
  border-color: #ffdd87;
}



/* Dissolve animation */
.fadeOut {
  animation: fadeOutAnim .7s forwards ease-out;
}

@keyframes fadeOutAnim {
  from { opacity:1; transform:scale(1); }
  to { opacity:0; transform:scale(.95); }
}

/* -------------------------------------------------------
   LOCAL SECTIONS (LOCAL 1 & 2)
------------------------------------------------------- */

.local-section {
  display: none;
  min-height: 100dvh;
  padding: 4rem 1.8rem;
  text-align: center;
  animation: fadeIn .7s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

.local-title {
  font-size: 2rem;
  margin-bottom: .8rem;
  margin-top: 50px !important;
}

.local-sub {
  font-family: "Satisfy", cursive;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.local-brand {
  font-family: "Satisfy", cursive;
  font-size: 2.1rem;
  color: var(--silver);
  margin-bottom: 3rem;
}

/* Cards */
.local-card {
  background: rgba(255,255,255,0.05);
  padding: 1.2rem;
  border-radius: 16px;
  margin: 1.4rem 0;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: .35s;
}

.local-card:hover { transform: translateY(-4px); }

/* Back button */
.back-btn {
  margin-top: 2.5rem;
  display: inline-block;
  padding: .8rem 2rem;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: .9rem;
  cursor: pointer;
}

/* -------------------------------------------------------
   MENU BOOK (flip effect)
------------------------------------------------------- */

#menuSection {
  background: #ffffff !important;
  color: #262626 !important;
  display: none;

  min-height: 100dvh;
  width: 100%;

  position: relative;
  z-index: 1; /* <--- LIVELLO GIUSTO */
  padding-top: 6.5rem;
}




.menu-title {
  position: absolute;
  top: 1rem;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  letter-spacing: .15em;
}

/* book */
.book {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 90%;
  height: 80%;   /* PRIMA ERA 90% */
  margin-top: 3rem; /* AGGIUNTO: spinge il libro più giù */

  background: #111;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  position: absolute;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.page.hidden { opacity: 0; pointer-events:none; }

/* Drag zone (simulate corner flip) */
.page-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.08);
  border-top-left-radius: 12px;
  cursor: grab;
}

/* Back from menu */
.menu-back {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .8rem 2rem;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.25);
}
/* Shine effect su Sfumature d'Eccellenza */
.hero-gold {
  position: relative;
  overflow: hidden;
}

.hero-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: goldShine 2.5s infinite;
}

@keyframes goldShine {
  0%   { left: -150%; }
  20%  { left: 150%; }
  100% { left: 150%; }
}
body.no-scroll {
  height: 100dvh;
  overflow: hidden;
}
#page1 { background-color: #8e0000 !important; }
#page2 { background-color: #003b8e !important; }
#page3 { background-color: #006835 !important; }
.menu-nav-left, .menu-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  opacity: 0.4;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 99999;
  transition: opacity 0.25s;
}

.menu-nav-left:hover, .menu-nav-right:hover {
  opacity: 1;
}

.menu-nav-left { left: 10px; }
.menu-nav-right { right: 10px; }

/* Shine delicato e NON rettangolare */
.hero-gold {
  position: relative;
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(244,215,123,0.25);
  overflow: visible;
}

.hero-gold::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(
    circle at 0% 50%,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0.0) 60%
  );
  width: 140%;
  height: 160%;
  transform: rotate(-15deg) translateX(-160%);
  animation: goldSoftPass 5s infinite;
  pointer-events: none;
  filter: blur(10px);
}

/* Animazione delicatissima */
@keyframes goldSoftPass {
  0%   { transform: rotate(-15deg) translateX(-160%); opacity: 0; }
  10%  { opacity: 0.4; }    /* leggermente visibile */
  25%  { transform: rotate(-15deg) translateX(40%); opacity: 0.35; }
  35%  { opacity: 0; }
  100% { transform: rotate(-15deg) translateX(40%); opacity: 0; }
}
.lang-option {
  margin: 1rem auto;
  padding: 1rem 2rem;
  width: fit-content;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.25s;
}
.lang-option:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
#flagSelector {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 20;
  transition: 0.25s;
}

#flagSelector:hover {
  transform: scale(1.1);
}
/* Fade-in dell’HERO quando si torna indietro */
.fadeInHero {
  animation: fadeInHeroKey 0.7s forwards ease-out;
}

@keyframes fadeInHeroKey {
  from { opacity:0; transform:scale(0.96); }
  to   { opacity:1; transform:scale(1); }
}
/* Logo in home */
#mainLogo {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transition: transform 0.8s cubic-bezier(0.19,1,0.22,1), top 0.8s cubic-bezier(0.19,1,0.22,1);
  z-index: 50;
}

/* Logo ridotto e spostato in alto */
#mainLogo.logo-small {
  top: env(safe-area-inset-top, 10px);
  transform: translateX(-50%) scale(0.55);
}

/* Animazione curva verso l’header */
@keyframes logoCurve {
  0% {
    top: 20%;
    transform: translateX(-50%) scale(1);
  }
  60% {
    top: 5%;
    transform: translateX(-50%) scale(0.65);
  }
  100% {
    top: env(safe-area-inset-top, 10px);
    transform: translateX(-50%) scale(0.55);
  }
}

#mainLogo.animating {
  animation: logoCurve 0.9s cubic-bezier(0.19,1,0.22,1) forwards;
}
.local-section {
  background: #ffffff !important;
  color: #262626 !important;
}

.local-title, .local-sub, .local-brand,
.local-card, .back-btn {
  color: #262626 !important;
}

.local-card {
  background: #f8f8f8 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
}



/* ======================================
   CATEGORIE MENU (nuova versione elegante)
======================================= */



.menu-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.19,1,0.22,1);
}

/* quando aperto */
.menu-category.open::after {
  width: 100%;
}

/* contenitore degli item */
.menu-category-content {
  display: none;
  padding: 0.8rem;
  animation: openSmooth 0.4s ease-out;
  
}

@keyframes openSmooth {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}






.menu-more {
  margin-top: 4px;
  font-size: .8rem;
  text-decoration: underline;
  cursor: pointer;
  color: #800000;
}






.menu-category::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1.5px;         /* più sottile */
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.19,1,0.22,1);
}

.menu-category.open::after {
  width: 100%;
}

.menu-category-content {
  display: none;
  padding: 0.4rem 0.2rem 0.8rem 0.2rem;
  animation: openSmooth 0.4s ease-out;
}

/* ELITE PIZZE */
.menu-item.elite {
  border: 2px solid var(--gold);
  background: rgba(120,0,0,0.06);
}

.menu-item.elite .menu-name {
  color: #800000;
}
#hero ~ .internal-header {
  display: none !important;
}
/* SLIDER SAN VITO */
.local-slider-sanvito {
  margin-top: 100px;
  width: 100%;
  height: 220px;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.local-slider-sanvito::-webkit-scrollbar { display: none; }

.sv-slide {
  min-width: 85%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}

.sv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TESTI */
.sv-title {
  margin-top: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #262626;
}

.sv-paragraph {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  padding: 0 0.5rem;
}

/* BOTTONI */
.sv-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* BOTTONI SAN VITO & S. CHIARA — VERSIONE DEFINITIVA */
.sv-btn {
  padding: 1rem 1.8rem;
  background: #7a0000;             /* Bordeaux pieno, nitido */
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: 0.85rem;
  
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
  transition: 0.35s ease;
}

/* Effetto SBRILLUCCICHIO PREMIUM */
.sv-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.25) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.6s ease;
  opacity: 0.0; /* molto delicato */
}

.sv-btn:hover::after {
  left: 140%;
  opacity: 0.45; /* delicatissimo, non invadente */
}

.sv-btn:hover {
  transform: translateY(-3px);
  background: #8e0000; /* leggermente più vivace */
}


/* MAPPA */
.sv-map-wrapper {
  margin-top: 2.8rem;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.sv-map {
  width: 100%;
  height: 100%;
  border: none;
}
/* Nuovi titoli locali */
.local-heading {
  margin-top: 2.2rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.local-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;

font-family: "Satisfy", cursive;
  color: #c5a755; /* oro scuro, elegante */
  text-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.local-address {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #444;
  letter-spacing: 0.02em;
}

.local-city {
  font-size: 0.95rem;
  margin-top: 0.2rem;
  color: #666;
  letter-spacing: 0.03em;
}
/* ------------------------------------------
   MENU – NUOVA VERSIONE IN STILE SEZIONI
------------------------------------------- */

#menuSection {
  background: #ffffff !important;
  color: #262626 !important;
  display: none;
  padding-top: 6.5rem; /* spazio per header */
}

.menu-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.menu-title-big {
  font-size: 2.3rem;
  font-weight: 700;
  color: #c5a755; /* oro scuro */
  letter-spacing: 0.06em;
}

.menu-sub {
  margin-top: .3rem;
  font-size: 1rem;
  color: #666;
}

/* lista */
.menu-list {
  padding: 4px 6px;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fff;
}




.menu-img {
  width: 95px;
  height: 95px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}



/* DESCRIZIONE */

/* PREZZO IN BASSO A DESTRA */
/* BOLLINO CONSIGLIATO */
.menu-recommended {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 48px;
  height: 48px;
}


/* testi */
.menu-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #262626;
}

.menu-desc {
  font-size: .85rem;
  color: #555;
  margin-top: 3px;
  line-height: 1.4;
  max-height: none !important;
  overflow: visible !important;
}


.menu-more {
  margin-top: 3px;
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
  color: #7a0000;
}

/* prezzo */


/* elite item */




/* back button */
#menuSection .back-btn {
  margin-top: 2.4rem;
  margin-bottom: 3rem;
  background: #7a0000;
  border-color: var(--gold);
  color: var(--gold);
}
body.showing-menu .home-button {
  display: block !important;
}
/* ================================
   LANGUAGE SWITCHER (Dropdown)
=================================== */
#langSwitcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  font-size: 1.5rem;
  cursor: pointer;
}

#langCurrent {
  padding: 6px 10px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  transition: 0.25s;
}

#langCurrent:hover {
  transform: scale(1.07);
}

/* Dropdown nascosto */
#langMenu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: rgba(255,255,255);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 6px 0;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: fadeInLang 0.25s ease-out;
}

body.modal-open #langSwitcher {
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

body.modal-open #langMenu {
  display: none !important;
  z-index: -1;
}

@keyframes fadeInLang {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(0,0,0,0.08);
}/* Niente sfondo in HOME */
body:has(#hero[style*="display: flex"]) #langCurrent {
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
}
/* POPUP OVERLAY */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

/* POPUP BOX */
.popup {
  background: #ffffff;
  width: 85%;
  max-width: 420px;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  position: relative;
  animation: popupShow .35s ease-out;
}

@keyframes popupShow {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #7a0000;
  margin-bottom: 1.4rem;
  text-align: center;
}

.popup-label {
  font-size: .9rem;
  color: #444;
  display: block;
  margin-top: .8rem;
  margin-bottom: .3rem;
}
input[type="date"].popup-input {
  -webkit-appearance: none;
}
select.popup-input {
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.popup-input {
  width: 100% !important;
  max-width: 320px;
  margin: 0 auto;
  display: block;

  padding: .8rem;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  font-size: .95rem;

  background: #fff;
  box-sizing: border-box;
}


.popup-btn {
  margin-top: 1.6rem;
  width: 100%;
  padding: 1rem;
  background: #7a0000;
  color: var(--gold);
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: .3s;
}
.select-pizza-btn {
  margin-top: 10px;
  text-align: center;
  font-size: 1rem;
  width: 100%;
}

.popup-btn:hover {
  background: #8e0000;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.4rem;
  color: #7a0000;
  cursor: pointer;
  font-weight: 700;
}
input[type="text"].popup-input,
input[type="tel"].popup-input {
  -webkit-appearance: none;
}

body.modal-open {
  overflow: hidden;
}

.chef-journey-overlay {
  z-index: 6100;
  align-items: center;
}

.chef-journey-popup {
  width: min(960px, 94vw);
  max-width: 960px;
  max-height: min(90vh, 920px);
  overflow-y: auto;
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 220, 130, 0.18), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border: 1px solid rgba(197, 167, 85, 0.26);
  box-shadow: 0 24px 60px rgba(56, 28, 10, 0.2);
}

.chef-journey-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(122, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #7a0000;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(122, 0, 0, 0.12);
}

.chef-journey-body {
  padding: 1.3rem;
}

.chef-journey-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.chef-journey-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #f4efe4;
  border: 1px solid rgba(197, 167, 85, 0.22);
}

.chef-journey-copy {
  padding-right: 3.2rem;
}

.chef-journey-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(122, 0, 0, 0.08);
  color: #7a0000;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chef-journey-title {
  margin: 0.9rem 0 0.35rem;
  color: #2e2019;
  font-size: clamp(1.65rem, 3.1vw, 2.4rem);
  line-height: 1.04;
}

.chef-journey-meta {
  color: #8a5a2b;
  font-size: 0.93rem;
  font-weight: 600;
}

.chef-journey-description,
.chef-journey-subtitle {
  margin: 0.7rem 0 0;
  color: #56433b;
  line-height: 1.68;
  font-size: 0.98rem;
}

.chef-journey-subtitle {
  color: #705847;
}

.chef-section {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(197, 167, 85, 0.2);
}

.chef-section-title {
  margin: 0 0 0.95rem;
  color: #341f19;
  font-size: 1.06rem;
  font-weight: 700;
}

.chef-pairings-grid,
.chef-journey-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.chef-pairing-card,
.chef-journey-step,
.chef-sommelier-note,
.chef-related-card {
  border-radius: 18px;
  border: 1px solid rgba(197, 167, 85, 0.22);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 10px 24px rgba(92, 53, 24, 0.06);
}

.chef-pairing-card,
.chef-journey-step {
  padding: 1rem;
}

.chef-pairing-label,
.chef-step-label,
.chef-related-meta {
  color: #8a5a2b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chef-pairing-name,
.chef-step-title,
.chef-related-title {
  margin-top: 0.45rem;
  color: #2d2019;
  font-size: 1rem;
  font-weight: 700;
}

.chef-pairing-note,
.chef-step-text,
.chef-related-reason,
.chef-related-desc,
.chef-sommelier-note {
  margin: 0.55rem 0 0;
  color: #58453b;
  line-height: 1.6;
  font-size: 0.93rem;
}

.chef-sommelier-note {
  padding: 1rem 1.05rem;
}

.chef-related-list {
  display: grid;
  gap: 0.95rem;
}

.chef-related-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0.95rem;
  padding: 0.9rem;
  align-items: start;
}

.chef-related-image {
  width: 124px;
  height: 124px;
  border-radius: 16px;
  object-fit: cover;
  background: #f4efe4;
  border: 1px solid rgba(197, 167, 85, 0.2);
}

.chef-related-content {
  min-width: 0;
}

.chef-related-reason {
  color: #6b5448;
}

.chef-related-desc.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chef-related-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.chef-readmore,
.chef-open-journey-btn {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
}

.chef-readmore {
  padding: 0;
  color: #7a0000;
  font-size: 0.86rem;
  font-weight: 700;
}

.chef-open-journey-btn {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  background: rgba(122, 0, 0, 0.08);
  color: #7a0000;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chef-related-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 220, 130, 0.18);
  color: #8a5a2b;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .chef-journey-popup {
    width: 94vw;
    max-height: 88vh;
  }

  .chef-journey-body {
    padding: 1rem;
  }

  .chef-journey-header,
  .chef-pairings-grid,
  .chef-journey-steps,
  .chef-related-card {
    grid-template-columns: 1fr;
  }

  .chef-journey-copy {
    padding-right: 0;
  }

  .chef-journey-image,
  .chef-related-image {
    width: 100%;
    height: auto;
    max-height: 240px;
  }

  .chef-journey-close {
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .menu-chef-badge {
    top: 10px;
    left: 10px;
  }
}

.pizza-select-row {
  display: flex;
  gap: 10px;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pizza-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.8rem;
  align-items: start;
  width: 100%;
}

.pizza-info {
  display: flex;
  flex-direction: column;
}
.popup-input {
  width: 100% !important;
  max-width: 320px;
  margin: 0 auto 10px auto; /* ← aggiungiamo margine basso */
}
/* FIX INPUT ORARIO RITIRO (centratura perfetta) */
#popupPickup.popup-input {
  text-align: center;
  padding-right: 0 !important;
  padding-left: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield; /* blocca UI extra */
}

/* iPhone / Safari padding interno fix */
#popupPickup::-webkit-datetime-edit-fields-wrapper {
  padding: 0 !important;
}

#popupPickup::-webkit-date-and-time-value {
  text-align: center !important;
  margin: 0 auto !important;
}
/* ======================================
   CATEGORIE MENU (nuova versione elegante)
======================================= */

.menu-category {
  width: 100%;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);

  display: flex;
  align-items: center;
  justify-content: space-between;
letter-spacing:0.4em;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;

  color: #7a0000; /* Bordeaux */
  cursor: pointer;

  position: relative;
}

.menu-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.19,1,0.22,1);
}

/* quando aperto */
.menu-category.open::after {
  width: 100%;
}

/* contenitore degli item */
.menu-category-content {
  display: none;
  padding: 0.8rem;
  animation: openSmooth 0.4s ease-out;
  margin-top: 0.8rem; 
}

.menu-subcategory {
  margin: 1rem 0 0.65rem;
  padding: 0 0.2rem 0.35rem;
  border-bottom: 1px solid rgba(197, 167, 85, 0.28);
  color: #8b5a3c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-subcategory:first-child {
  margin-top: 0;
}

@keyframes openSmooth {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ======== CARD MENU - STRUTTURA A DUE RIGHE ======== */




/* Riga superiore: immagine + info */
.menu-top {
    display: grid;
    grid-template-columns: 100px 1fr auto; /* immagine | testo largo | prezzo */
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}


/* Immagine */
.menu-img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

/* Testo */
.menu-name {
  font-size: 1rem;
  font-weight: 600;
  color: #262626;
  margin-bottom: 2px;
  text-align:left;
}

.menu-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  font-weight: 300;
  text-align:left;
}

/* Riga inferiore: prezzo */
.menu-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

/* Prezzo elegante */
.menu-price {
  background: transparent;
  color: rgba(82, 82, 82, 0.72);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  font-size: 1rem;
}
.menu-item {
  position: relative;
  background: rgba(245, 220, 130, 0.15) !important; /* oro molto tenue */
  border: 1px solid rgba(197, 167, 85, 0.35) !important; /* oro leggermente più visibile */
  border-radius: 16px !important;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04); /* super soft */
  backdrop-filter: blur(6px); /* effetto premium */
  transition: 0.25s ease;
}
.menu-item:hover {
  background: rgba(245, 220, 130, 0.22) !important; /* un po' più dorato all’hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
/* Bollino consigliato */
.menu-recommended {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
}

.menu-chef-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(197, 167, 85, 0.8);
  background: rgba(122, 0, 0, 0.95);
  color: #f6deb4;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(122, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-chef-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-chef-badge:hover {
  transform: translateY(-1px);
  background: #8b0000;
  box-shadow: 0 14px 24px rgba(122, 0, 0, 0.22);
}

@media (max-width: 760px) {
  .menu-chef-badge {
    top: 10px;
    left: 10px;
  }
}
/* FULLSCREEN STORIES */
.story-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
}

/* Immagine full-screen verticale */
.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Progress bar in alto */
.story-top {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  padding: 0 14px;
  gap: 6px;
  z-index: 5;
}

.story-progress {
  height: 3px;
  background: rgba(255,255,255,0.35);
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.story-progress::after {
  content:"";
  position: absolute;
  inset: 0;
  width: 0%;
  background: white;
  animation: storyProgress 5s linear forwards;
}

@keyframes storyProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Click zone per cambiare storia */
.story-left, .story-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 20;
}

.story-left { left: 0; }
.story-right { right: 0; }

/* Close button */
.story-close {
  position: absolute;
  top: -4px;
  right: 14px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 50;
}
.story-bars {
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 0 12px;
  z-index: 10;
}

.story-bar {
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 50px;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.story-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: white;
  border-radius: inherit;
}
.story-image {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-touch-callout: none; /* blocca menu “Salva immagine” iPhone */
  pointer-events: auto;        /* manteniamo gli eventi touch */
}
.story-overlay {
  -webkit-user-select: none;
  user-select: none;
}

/* =====================================
   SHOP — CARD DEI PRODOTTI
===================================== */

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.2rem;
}

.shop-empty-state {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(122, 0, 0, 0.12);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  color: #5a4747;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

.shop-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shop-img {
  width: 100%;
  aspect-ratio: 1/1;        /* immagine quadrata */
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

.shop-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #262626;
}

.shop-desc {
  font-size: .9rem;
  color: #444;
  line-height: 1.5;
}

.shop-more {
  font-size: .85rem;
  color: #7a0000;
  text-decoration: underline;
  cursor: pointer;
}

.shop-more-long {
  display: none;
  font-size: .85rem;
  color: #666;
  margin-top: .4rem;
  line-height: 1.55;
}

.shop-price {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #7a0000;
  text-align: left;
  padding-bottom: 4px; /* evita che tocchi il bottone */
}


.shop-btn {
  margin-top: .6rem;
  padding: .8rem;
  background: #7a0000;
  border-radius: 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
}
.shop-btn-qty {
  background: transparent !important;
  border: none !important;
  padding: 0;
  box-shadow: none !important;
}

.shop-btn:hover {
  background: #8e0000;
}
#shopSection .local-title {
  font-family: 'Satisfy', cursive !important;
  color: var(--gold) !important;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  margin-top:20px;
}
/* -------------------------------
   CART BOLLINO FISSO IN BASSO DX
-------------------------------- */
.floating-cart {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 62px;
  height: 62px;

  background: #7a0000; /* bordeaux */
  border: 2px solid var(--gold);
  border-radius: 50%;

  font-size: 1.8rem;
  color: var(--gold);

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  z-index: 9999;

  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: 0.25s ease;
}

.floating-cart:hover {
  transform: scale(1.08);
}

/* Badge numero items */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #7a0000;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50%;
}

/* -------------------------------
   FREE SHIPPING BAR
-------------------------------- */
.free-bar {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 18px));
  width: min(calc(100vw - 28px), 560px);
  box-sizing: border-box;
  text-align: center;
  background: rgba(247, 239, 225, 0.98);
  color: #6c160f;
  border: 1px solid rgba(108, 22, 15, 0.16);
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(35, 16, 10, 0.18);
  z-index: 9998;
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
  font-size: clamp(0.78rem, 2.8vw, 1rem);
  line-height: 1.3;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Quando deve apparire */
.free-bar.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================
   SIDEBAR CARRELLO
============================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;             /* nascosto */
  width: 340px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 18px rgba(0,0,0,0.15);
  border-left: 2px solid var(--gold);

  display: flex;
  flex-direction: column;
  z-index: 99999;

  transition: right .35s cubic-bezier(.19,1,.22,1);
}

.cart-sidebar.open {
  right: 0;
}

/* BACKDROP OSCURANTE */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.cart-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

/* Header */
.cart-header {
  padding: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #7a0000; 
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  font-size: 1.6rem;
  cursor: pointer;
  color: #7a0000;
}

/* Lista prodotti */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.cart-empty {
  padding: 0.9rem 0.25rem;
  color: #6d5b5b;
  font-size: 0.95rem;
}



.cart-item-name {
  grid-column: 1 / span 2;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 32px; /* spazio per la X */
  color:#262626;
}

.cart-item-price {
  grid-column: 1 / span 2;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #7a0000;
}

.cart-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #7a0000;
}


/* Footer */
.cart-footer {
  padding: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(122,0,0,0.14);
  border-radius: 16px;
  background: rgba(122,0,0,0.03);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  color: #2f2525;
}

.cart-total span:last-child {
  font-weight: 700;
  color: #7a0000;
}

.cart-total-final {
  padding-top: 10px;
  border-top: 1px solid rgba(122,0,0,0.12);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-total-final span:last-child {
  font-size: 1.2rem;
}

.cart-checkout {
  width: 100%;
  background: #7a0000;
  color: var(--gold);
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .05em;
  border: 1px solid var(--gold);
  transition: .2s;
  appearance: none;
}

.cart-checkout:hover {
  background: #890000;
}

.cart-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-qty-controls {
  grid-column: 1 / span 2;
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}


.qty-btn {
  background: #7a0000;
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--gold);
  transition: 0.25s;
}

.qty-btn:hover {
  background: #950000;
}

.qty-num {
  font-weight: 700;
  color: #262626;
  min-width: 18px;
  text-align: center;
}
.qty-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.qty-small-btn {
  background: #fff;
  color: #7a0000;
  border: 2px solid #7a0000;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.qty-small-btn:hover {
  background: #7a0000;
  color: var(--gold);
}

.qty-small-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #262626;
}

.shop-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: none;
}

.shop-checkout-overlay.is-open {
  display: block;
}

.shop-checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 20, 20, 0.66);
  backdrop-filter: blur(6px);
}

.shop-checkout-modal {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(122, 0, 0, 0.12);
  border-radius: 26px;
  padding: 22px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(32, 18, 18, 0.24);
}

.shop-checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(122, 0, 0, 0.18);
  background: #fff;
  color: #7a0000;
  font-size: 1.2rem;
  cursor: pointer;
}

.shop-checkout-head {
  padding-right: 52px;
  margin-bottom: 18px;
}

.shop-checkout-eyebrow {
  color: #9c7b40;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.shop-checkout-head h2 {
  margin: 0 0 0.45rem;
  color: #3b2424;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.05;
}

.shop-checkout-head p {
  margin: 0;
  color: #5f4d4d;
  font-size: 0.97rem;
  line-height: 1.5;
}

.shop-checkout-summary {
  background: rgba(255, 247, 230, 0.8);
  border: 1px solid rgba(122, 0, 0, 0.08);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.shop-checkout-summary-items,
.shop-checkout-summary-totals,
.shop-checkout-result-items {
  display: grid;
  gap: 10px;
}

.shop-checkout-summary-totals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(122, 0, 0, 0.12);
}

.shop-checkout-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #483535;
  font-size: 0.95rem;
}

.shop-checkout-summary-row strong {
  color: #7a0000;
}

.shop-checkout-summary-row.is-total {
  font-size: 1rem;
  font-weight: 700;
}

.shop-checkout-message {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(122, 0, 0, 0.08);
  color: #7a0000;
  font-size: 0.92rem;
}

.shop-checkout-message.is-visible {
  display: block;
}

.shop-checkout-message.is-error {
  background: rgba(122, 0, 0, 0.12);
}

.shop-checkout-form {
  display: grid;
  gap: 14px;
}

.shop-checkout-element-block {
  background: #fff;
  border: 1px solid rgba(122, 0, 0, 0.1);
  border-radius: 18px;
  padding: 14px;
}

.shop-checkout-element-label {
  margin-bottom: 10px;
  color: #7a0000;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-checkout-element {
  min-height: 56px;
}

.shop-checkout-submit,
.shop-checkout-result-close {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #7a0000;
  color: var(--gold);
  padding: 15px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-checkout-result-card {
  background: #fff;
  border: 1px solid rgba(122, 0, 0, 0.1);
  border-radius: 22px;
  padding: 20px;
}

.shop-checkout-result-card.is-error {
  border-color: rgba(122, 0, 0, 0.2);
}

.shop-checkout-result-card h3 {
  margin: 0 0 0.45rem;
  color: #3b2424;
  font-size: 1.4rem;
}

.shop-checkout-result-card p {
  margin: 0 0 1rem;
  color: #5d4d4d;
  line-height: 1.5;
}

.shop-checkout-result-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(122, 0, 0, 0.1);
  color: #7a0000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.shop-checkout-result-icon.is-success {
  background: rgba(56, 145, 96, 0.12);
  color: #2f8b55;
}

.shop-checkout-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.shop-checkout-result-meta div {
  background: rgba(255, 247, 230, 0.72);
  border-radius: 16px;
  padding: 12px;
}

.shop-checkout-result-meta span {
  display: block;
  color: #8f6f6f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.shop-checkout-result-meta strong {
  color: #402727;
  font-size: 0.95rem;
}

.shop-checkout-result-items {
  margin-bottom: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-remove {
  position: absolute;
  top: 8px;
  right: 6px;        /* più a destra */
  font-size: 1rem;   /* dimensione più equilibrata */
  font-weight: 700;
  color: #7a0000;
  cursor: pointer;
  user-select: none;
}

.free-bar {
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.free-bar.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.free-bar:not(.show) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(40%);
}

body:not(.showing-shop) .free-bar {
  display: none;
}

body.showing-shop .free-bar {
  display: block;
}

@media (max-width: 760px) {
  .free-bar {
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
    width: auto;
    max-width: none;
    padding: 12px 14px;
    border-radius: 14px;
    transform: translateY(calc(100% + 22px));
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    line-height: 1.35;
  }

  .free-bar.show {
    transform: translateY(0);
  }

  .free-bar:not(.show) {
    transform: translateY(calc(100% + 16px));
  }

  .cart-summary {
    padding: 12px 14px;
  }
}

.floating-cart {
  display: none;
}
.shop-item-name {
  font-size: 0.95rem;      /* più piccolo */
  font-weight: 600;
  margin-right: 28px;      /* spazio per evitare sovrapposizione con la X */
  line-height: 1.3;
  white-space: normal;
}

.shop-item-remove {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1.2rem;       /* leggermente più piccolo */
  cursor: pointer;
  color: #7a0000;
  user-select: none;
}


@media (max-width: 380px) {
  .cart-item-name {
    margin-right: 34px;      /* più spazio su telefoni piccoli */
  }
}


/* ==========================================
   DESKTOP FIXES (NON MODIFICA VERSIONE MOBILE)
========================================== */
@media (min-width: 769px) {

  /* ---------------------------
     1. SHOP A GRIGLIA (4 colonne)
  --------------------------- */
  .shop-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem !important;
    padding: 2rem 3rem !important;
    max-width: 1400px;
    margin: 0 auto;
  }

  .shop-item {
    height: auto;
  }


  /* ---------------------------
     2. GALLERIES NON FULLSCREEN
        Layout verticale, centrato
  --------------------------- */

  #storyViewer {
    background: rgba(0,0,0,0.85);
    padding-top: 60px;
    display: none; /* resta hidden finché non aperto */
    align-items: flex-start !important;
    justify-content: center !important;
  }

  #storyImage {
    width: 420px !important;
    height: auto !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
  }

  .story-bars {
    width: 420px;
    margin: 0 auto;
  }


  /* ---------------------------
     3. MENU CENTRATO E CON PADDING
  --------------------------- */
  #menuSection {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .menu-list {
    max-width: 900px;
    margin: 0 auto;
  }

  
}
@media (min-width: 769px) {

  /* Contenitore stories */
  #storyViewer {
    padding-top: 40px !important;
  }

  /* Immagine centrata */
  #storyImage {
    width: 420px !important;
    margin: 0 auto;
  }

  /* BARRE CENTRATE SOPRA L’IMMAGINE */
  .story-bars {
    width: 420px !important;
    margin: 0 auto !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%);
  }

  /* X allineata con la larghezza dell'immagine */
  .story-close {
    right: calc(50% - 210px);   /* metà width immagine */
    top: 6px;
  }

}
@media (min-width: 769px) {

  /* Stesso padding del menu per i Locali */
  #local1, 
  #local2 {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Slider centrato */
  .local-slider-sanvito {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 1100px;
    margin: 0 auto;
  }

}
.menu-info {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.menu-info h3,
.menu-info p {
    white-space: normal !important;
}

.menu-desc {
  white-space: pre-line !important;
}
.menu-info p,
.menu-info div,
.menu-item p {
  white-space: pre-line !important;
}
