/* ============================================
   TucCiPiaci Vending Landing — Mobile-first
   ============================================ */

:root {
  --green: #7F9C40;
  --green-dark: #6A8534;
  --green-soft: #BFCDA0;
  --green-bg: #EEF1E1;

  --orange: #F2A23A;
  --orange-dark: #D88820;
  --orange-soft: #F9D19D;

  --ink: #1B1B14;
  --ink-soft: #4B4B40;
  --paper: #FBF8F1;
  --paper-warm: #F4EFE2;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(27, 27, 20, .06);
  --shadow: 0 12px 32px -12px rgba(27, 27, 20, .18);
  --shadow-lg: 0 30px 60px -20px rgba(27, 27, 20, .25);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
html, body { overflow-x: hidden; }

/* ============================================
   FULL-SCREEN SECTIONS
   ============================================ */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

/* ============================================
   ROUTER — una vista alla volta (hero / lum / lum-banco / lum-vending / gdc)
   ============================================ */
.view { display: none; }
.view.view--active { display: flex; }

/* Bottone "Indietro" in alto a sinistra nelle sotto-schermate */
.screen-back {
  position: absolute;
  top: 92px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s var(--ease);
  z-index: 5;
}
.screen-back:hover { background: var(--green-bg); }

/* Schermata scelta LUM: contenuto ancorato in alto per non finire sotto navbar/Indietro */
.lum-choice-screen { justify-content: flex-start; padding-top: 140px; padding-bottom: 48px; }
/* Bottoni Banco LUM / Vending Machine più stretti. */
.lum-choice-screen .locations-stack { max-width: 380px; }
/* Le schermate prodotti col tasto Indietro: un filo più di spazio in alto */
#lum-banco, #lum-vending, #gdc { padding-top: 132px; }

/* Schermata scelta LUM: card = bottone principale + link mappa sotto */
.hero-question--sm { font-size: clamp(30px, 6vw, 52px); }
.lum-choice-sub {
  margin: 4px 0 26px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}
.lum-logo-link {
  display: inline-block;
  margin: 10px 0 6px;
  transition: transform .2s var(--ease);
}
.lum-logo-link img { height: 46px; width: auto; display: block; }
.lum-logo-link:hover { transform: translateY(-2px); }
.loc-card { display: flex; flex-direction: column; align-items: stretch; }
.loc-btn--banco { border-color: var(--green-soft); }
.loc-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  opacity: .9;
}
.loc-maps:hover { text-decoration: underline; }
.products-hours {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Nelle schermate di navigazione (hero + scelta LUM) niente teaser prenotazioni né carrello */
body[data-view="hero"] .prenota-band,
body[data-view="lum"] .prenota-band { display: none; }
body[data-view="hero"] .cart-fab,
body[data-view="lum"] .cart-fab { display: none !important; }

/* ============================================
   NAVBAR — tall, logos prominent
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(27, 27, 20, .06);
}
.navbar__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.navbar__center {
  display: flex;
  align-items: center;
}
.navbar__logo--right img {
  height: 44px;
  opacity: .85;
}

/* Language switch — two flags side by side */
.lang-switch {
  display: flex;
  border: 2px solid var(--green-soft);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.lang-flag span:first-child { font-size: 18px; line-height: 1; }
.lang-flag__code { letter-spacing: .06em; font-size: 12px; }
.lang-flag--active {
  background: var(--green);
  color: var(--white);
}
.lang-flag--active .lang-flag__code { color: var(--white); }
.lang-flag:not(.lang-flag--active):hover {
  background: var(--green-bg);
}

/* ============================================
   HERO — "Dove Sei?" with text shadow
   ============================================ */
.hero-screen {
  padding-top: 100px;
  gap: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(242,162,58,.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(127,156,64,.10), transparent 50%),
    var(--paper);
}

.hero-question {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(56px, 14vw, 110px);
  color: var(--ink);
  margin: 0 0 40px;
  letter-spacing: -.03em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 4px 12px rgba(27, 27, 20, .12),
    0 12px 40px rgba(127, 156, 64, .15);
}

/* Location buttons — stacked vertically, wide */
.locations-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.loc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
}
.loc-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.loc-btn--lum {
  background: linear-gradient(135deg, var(--green-bg), var(--white));
  border-color: var(--green-soft);
}
.loc-btn--gdc {
  background: linear-gradient(135deg, #fff5e6, var(--white));
  border-color: var(--orange-soft);
}
.loc-btn--future {
  background: var(--paper-warm);
  opacity: .6;
  cursor: default;
  padding: 16px 24px;
}
.loc-btn--future:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.loc-btn__name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.loc-btn__name--small {
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
}
.loc-btn__city {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.loc-btn__label-soon {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
/* Tasto LUM: badge "chiuso per ferie". */
.loc-btn__ferie {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
/* Orari di apertura nei bottoni (GDC / Banco LUM / Vending): ben leggibili. */
.loc-btn__hours {
  font-size: 17px;
  font-weight: 800;
  color: var(--green-dark);
  margin-top: 8px;
}

/* ============================================
   VENDING MACHINE — animated digital twin
   ============================================ */
.hero-vending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.vending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #16160f;
  color: rgba(255,255,255,.7);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}
.vending-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(127,156,64,.9);
  animation: pulse-dot 2s ease-in-out infinite;
}
.vending-badge__id { color: var(--orange); }
.vending-badge__label { color: rgba(255,255,255,.85); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(127,156,64,.8); }
  50% { opacity: .3; box-shadow: 0 0 2px rgba(127,156,64,.3); }
}

.vending {
  width: 240px;
  background: linear-gradient(180deg, #2c2c22 0%, #16160f 100%);
  border-radius: 20px;
  padding: 14px 12px 18px;
  box-shadow:
    var(--shadow-lg),
    inset 0 2px 0 rgba(255,255,255,.06),
    inset 0 -2px 0 rgba(0,0,0,.5);
  position: relative;
  animation: vending-float 4s ease-in-out infinite;
}
@keyframes vending-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.vending::before,
.vending::after {
  content: '';
  position: absolute;
  top: 14px; bottom: 80px;
  width: 3px;
  border-radius: 3px;
}
.vending::before {
  left: 3px;
  background: var(--green);
  animation: strip-glow-green 3s ease-in-out infinite;
}
.vending::after {
  right: 3px;
  background: var(--orange);
  animation: strip-glow-orange 3s ease-in-out infinite 1.5s;
}
@keyframes strip-glow-green {
  0%, 100% { opacity: .5; box-shadow: 0 0 4px rgba(127,156,64,.3); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(127,156,64,.8); }
}
@keyframes strip-glow-orange {
  0%, 100% { opacity: .5; box-shadow: 0 0 4px rgba(242,162,58,.3); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(242,162,58,.8); }
}

.vending__top {
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  margin-bottom: 8px;
}
.vending__logo {
  height: 28px;
  width: auto;
  margin: 0 auto;
}

.vending__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.4)), #0a0a07;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 6px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.6);
}

.vending-slot {
  aspect-ratio: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.vending-slot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.vending-slot__pos {
  position: absolute;
  top: 1px; left: 2px;
  font-size: 6px;
  color: rgba(255,255,255,.45);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  z-index: 2;
}
.vending-slot__stock {
  position: absolute;
  bottom: 1px; right: 2px;
  font-size: 6px;
  color: var(--green);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  z-index: 2;
}
.vending-slot__cat {
  font-size: 9px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Filled slot: subtle scan animation */
.vending-slot--has {
  animation: slot-scan 6s ease-in-out infinite;
  animation-delay: var(--scan-delay, 0s);
}
.vending-slot--has .vending-slot__cat { color: var(--orange-soft); }
@keyframes slot-scan {
  0%, 85%, 100% { border-color: rgba(255,255,255,.06); }
  90% { border-color: rgba(127,156,64,.4); }
}

.vending-slot--empty {
  background: rgba(0,0,0,.4);
  border-style: dashed;
}
.vending-slot--empty .vending-slot__stock { color: #d05050; }

/* Counter under grid */
.vending__counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.vending__counter-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}
.vending__counter-label {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.vending__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vending__display {
  flex: 1;
  background: #000;
  color: var(--green);
  font-size: 9px;
  padding: 6px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8);
}
.vending__display-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(127,156,64,.8);
  animation: pulse-dot 2s ease-in-out infinite;
}
.vending__slot-out {
  width: 56px; height: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.4));
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-screen {
  padding: 100px 16px 40px;
  justify-content: flex-start;
  scroll-margin-top: 60px;
  gap: 0;
}
.products-screen--alt {
  background: var(--paper-warm);
}

.products-header {
  text-align: center;
  margin-bottom: 14px;
}
.products-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 42px);
  color: var(--ink);
  margin: 0 0 4px;
}
.products-subtitle {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.products-count {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--green-bg);
  color: var(--green-dark);
}

/* Nota modalità di consumo (LUM): piatti riscaldabili + microonde */
.consumo-note {
  margin: 12px auto 0;
  max-width: 520px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-soft);
}

/* #8 Card banco LUM con foto (chiuso per ferie + microonde) */
.banco-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 18px auto 0;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--green-soft);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.banco-card__photo {
  flex: 0 0 42%;
  min-height: 120px;
  background: var(--paper-warm);
}
.banco-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banco-card__photo--empty { background: var(--green-bg); }
.banco-card__body {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.banco-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 14px;
}
.banco-card__ferie {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
}
.banco-card__hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.banco-notice__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 162, 58, .2);
}
/* Titoli e divisore delle vetrine (VM / Banco) nella sezione LUM */
.vetrina-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  margin: 6px 0 10px;
}
.vetrina-head__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.vetrina-head__dot--vending { background: var(--orange, #f2a23a); box-shadow: 0 0 0 4px rgba(242, 162, 58, .18); }
.vetrina-head__dot--banco   { background: #2f6b3a; box-shadow: 0 0 0 4px rgba(47, 107, 58, .16); }
.vetrina-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
  margin: 26px 0 18px;
}
.banco-section {
  margin-top: 22px;
}
.banco-section__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 14px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .banco-card { flex-direction: column; }
  .banco-card__photo { flex-basis: auto; height: 140px; }
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* Su mobile: filtri su UNA riga scorrevole (recupera spazio verticale per la card) */
@media (max-width: 640px) {
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
}
.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--green-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--green);
  background: var(--green-bg);
}
.filter-btn--active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Carousel */
.carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}
.carousel {
  justify-content: space-evenly;
  display: flex;
  align-items: flex-start; /* card ad altezza naturale: niente spazio vuoto sotto "Prenota" */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 44px 16px;
  scrollbar-width: none;
  width: 100%;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--green-soft);
  background: var(--white);
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
  box-shadow: var(--shadow-sm);
  line-height: 1;
}
.carousel-arrow:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.carousel-arrow--left { left: 0; }
.carousel-arrow--right { right: 0; }

/* ============================================
   VENDING CARD (first card in LUM carousel)
   ============================================ */
.vending-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 24px 16px;
}
.vending-card__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vending-card .vending {
  width: 220px;
}
.vending-card .vending-badge {
  position: static;
}

/* Card foto banco (GDC) — sempre prima nel carosello */
.banco-photo-card {
  position: relative;
}
.banco-photo-card__img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banco-photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banco-photo-card__img--empty::after {
  content: "Il Mercato Fresco";
  font-family: var(--font-display, serif);
  font-size: 20px;
  color: var(--green);
  opacity: .5;
}
.banco-photo-card__caption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
}
.banco-photo-card__caption strong {
  font-family: var(--font-display, serif);
  font-size: 20px;
  color: var(--ink);
}
.banco-photo-card__caption span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================
   PRODUCT CARD — large, almost full screen
   ============================================ */
.product-card {
  flex: 0 0 calc(100vw - 120px);
  max-width: 400px;
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Immagine cliccabile = aggiunge al carrello, con feedback "✓ Aggiunto". */
.product-card__image--clickable { cursor: pointer; }
.product-card__image--clickable:hover img { transform: scale(1.03); transition: transform .3s var(--ease); }
.product-card__image.is-added::after {
  content: attr(data-added);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 156, 64, .9);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .03em;
  animation: fadeInAdded .18s var(--ease);
}
@keyframes fadeInAdded { from { opacity: 0; } to { opacity: 1; } }
.product-card__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  opacity: .4;
}
.product-card__image-placeholder svg {
  width: 48px; height: 48px;
}
.product-card__image-placeholder span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-card__cat-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-card__cat-badge--primi {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.product-card__cat-badge--secondi {
  background: #e8d4f0;
  color: #6b3a7d;
}
.product-card__cat-badge--contorni {
  background: #d9ecd6;
  color: #2f6b3a;
}
.product-card__cat-badge--frutta {
  background: #fbdcdc;
  color: #a83232;
}
.product-card__cat-badge--altro {
  background: var(--green-soft);
  color: var(--green-dark);
}

.product-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.product-card__vending-pos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #16160f;
  color: var(--orange);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .06em;
  align-self: flex-start;
}
.product-card__vending-lbl {
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.product-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.product-card__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--green-bg);
  color: var(--green-dark);
}
.product-card__qty-price { color: var(--green); font-weight: 800; }

/* #9: prezzo prodotto */
.product-card__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.product-card__price-old {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: .7;
}
.product-card__price-now { color: #c0392b; }
.product-card__price--promo { background: #fdecea; }
.product-card__promo-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #e74c3c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

.product-card__ingredients {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.product-card__nutrition {
  padding-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: .5;
  font-style: italic;
}

/* Ingredienti come pulsante → apre popup */
.product-card__ing-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--green-soft);
  background: var(--green-bg);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.product-card__ing-btn:hover { background: var(--green-soft); }
.product-card__ing-ico { font-size: 15px; line-height: 1; }

/* Popup ingredienti (condiviso) */
.ing-modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(27, 27, 20, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.ing-modal {
  position: fixed; z-index: 91;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%);
  width: min(92vw, 440px);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35);
  padding: 28px 26px 26px;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.ing-modal.is-open { opacity: 1; transform: translate(-50%, -50%); }
.ing-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.ing-modal__close:hover { background: var(--green-soft); color: var(--ink); }
.ing-modal__title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 0 34px 12px 0;
  line-height: 1.2;
}
.ing-modal__label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-dark);
  margin: 0 0 6px;
}
.ing-modal__body {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.ing-modal__note {
  margin: 16px 0 0;
  font-size: 12px; font-style: italic;
  color: var(--ink-soft); opacity: .5;
}

/* Indicatore scorrimento orizzontale "← Scorri →" */
.scroll-hint {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-soft); opacity: .7;
}
.scroll-hint__arrow { animation: scrollNudge 1.6s ease-in-out infinite; }
.scroll-hint__arrow:last-child { animation-delay: .8s; }
@keyframes scrollNudge { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Maps link */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s var(--ease);
  box-shadow: 0 6px 16px -6px rgba(127,156,64,.5);
}
.maps-link:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 8px 20px -6px rgba(127,156,64,.6);
}
.maps-link svg {
  flex-shrink: 0;
}

/* Esaurito (qty 0 da Firebase) */
.product-card--esaurito {
  opacity: .4;
  filter: grayscale(.6);
  pointer-events: none;
}

/* Empty carousel state */
.carousel-empty {
  width: 100%;
  padding: 48px 24px;
  text-align: center;
}
.carousel-empty p {
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--ink-soft);
  opacity: .5;
  font-style: italic;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
/* Link maps Sammichele (prossima apertura) */
.loc-btn__future-maps {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--green-soft);
}
.loc-btn__future-maps:hover { color: var(--ink); }

/* #7 Band prenotazioni coming soon */
.prenota-band {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--green-bg), var(--orange-soft));
}
.prenota-band__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.prenota-band__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--ink);
  margin: 0 0 8px;
}
.prenota-band__text {
  max-width: 480px;
  margin: 0 auto 16px;
  color: var(--ink-soft);
  font-size: 15px;
}
.prenota-band__link {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: filter .15s;
}
.prenota-band__link:hover { filter: brightness(1.05); }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
}
.site-footer__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.7);
}
.site-footer__copy { font-size: 13px; opacity: .6; }
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a {
  color: var(--paper);
  font-size: 13px;
  opacity: .7;
  transition: opacity .2s, color .2s;
}
.site-footer__links a:hover { opacity: 1; color: var(--orange); }

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .navbar { padding: 18px 36px; }
  .navbar__logo img { height: 64px; }
  .navbar__logo--right img { height: 50px; }

  .hero-question { font-size: 90px; }
  .locations-stack { max-width: 520px; }
  .loc-btn { padding: 28px 32px; }
  .loc-btn__name { font-size: 26px; }
  .vending { width: 280px; }
  .carousel-wrap { max-width: 700px; }
  .product-card { flex: 0 0 360px; }
  .product-card__name { font-size: 24px; }
}

@media (min-width: 1024px) {
  .carousel-wrap { max-width: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .vending { animation: none; }
}

/* ============================================
   DIGITAL TWIN — vetrina fissa (mockup ferie)
   ============================================ */
/* La card DT non usa la chrome della product-card: il telaio è il dt-frame. */
.vending-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.dt-frame {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: var(--paper-warm);
  border-radius: 30px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(127,156,64,.8);
  flex: none;
}

.dt-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(127,156,64,.12);
  border-radius: 999px;
  color: var(--green-dark);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dt-logo {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(27,27,20,.04);
}
.dt-logo img { height: 46px; width: auto; }

/* La griglia porta le due barre laterali (verde a sx, gialla a dx) come nel mockup. */
.dt-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 6px 14px;
}
.dt-grid::before,
.dt-grid::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 5px;
  border-radius: 999px;
}
.dt-grid::before { left: 0;  background: var(--green); }
.dt-grid::after  { right: 0; background: #E6C34A; }

.dt-cell {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px -6px rgba(27,27,20,.25), inset 0 0 0 1px rgba(27,27,20,.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-cell--empty {
  background: transparent;
  box-shadow: none;
  border: 2px dashed rgba(27,27,20,.18);
}
.dt-cell__id {
  position: absolute;
  top: 6px; left: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: .7;
}
.dt-cell__emoji {
  font-size: 30px;
  line-height: 1;
}
.dt-cell__qty {
  position: absolute;
  bottom: 6px; right: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}
.dt-cell__qty--zero { color: #D64545; }

.dt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
}
.dt-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dt-badge {
  width: 54px; height: 34px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(27,27,20,.05);
}

/* Nota "vending in ferie" (stile come banco LUM). */
.vending-ferie {
  display: inline-block;
  margin: 6px auto 0;
  padding: 7px 16px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* Sezione vending senza frecce orizzontali: niente padding per le frecce e
   card più larga (il DT è l'unica card, deve stare nel viewport). */
/* (ex "no-arrows": ora anche Banco/Vending hanno le frecce → spazio laterale per non coprirle) */
.carousel-wrap--no-arrows .carousel { padding-left: 44px; padding-right: 44px; }
/* Card LUM (banco/vending) più strette, coerenti con quelle di Gioia del Colle. */
.carousel-wrap--no-arrows .product-card { flex-basis: calc(100vw - 110px); max-width: 340px; }
/* Le card "intro" (Digital Twin, foto banco) restano un po' più larghe per leggibilità. */
.carousel-wrap--no-arrows .vending-card,
.carousel-wrap--no-arrows .tutorial-card,
.carousel-wrap--no-arrows .banco-photo-card { flex-basis: calc(100vw - 56px); max-width: 380px; }
@media (min-width: 768px) {
  .carousel-wrap--no-arrows .product-card { flex-basis: 340px; }
  .carousel-wrap--no-arrows .vending-card,
  .carousel-wrap--no-arrows .tutorial-card,
  .carousel-wrap--no-arrows .banco-photo-card { flex-basis: 380px; }
}

/* VENDING: card prodotto coerenti col Digital Twin nella LARGHEZZA, ma un filo più basse
   (altezza naturale, niente stretch) così "Prenota" resta raggiungibile. Immagine 4/3. */
#lum-vending .carousel-wrap--no-arrows .product-card { flex-basis: calc(100vw - 56px); max-width: 380px; }
@media (min-width: 768px) {
  #lum-vending .carousel-wrap--no-arrows .product-card { flex-basis: 380px; }
}
#lum-vending .product-card:not(.vending-card) .product-card__image { aspect-ratio: 4 / 3; }

/* ============================================
   AZIONI GDC: notifiche + maps
   ============================================ */
.gdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.gdc-actions .maps-link { margin-top: 0; }

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s var(--ease);
  box-shadow: 0 6px 16px -6px rgba(242,162,58,.6);
}
.notify-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(242,162,58,.7); }
.notify-btn__icon { font-size: 17px; line-height: 1; }

/* ============================================
   TASTO PRENOTA (card prodotto GDC)
   ============================================ */
.product-card__prenota {
  margin-top: 6px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease);
  box-shadow: 0 6px 16px -8px rgba(127,156,64,.6);
}
.product-card__prenota:hover { background: var(--green-dark); transform: translateY(-1px); }
.product-card__prenota:active { transform: translateY(0); }
.product-card__prenota.is-added { background: var(--green-dark); }
.product-card__prenota:disabled {
  background: var(--green-bg);
  color: var(--green-dark);
  cursor: not-allowed;
  opacity: .8;
  box-shadow: none;
}

/* ============================================
   CARRELLO PRENOTAZIONI
   ============================================ */
.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease);
}
.cart-fab:hover { transform: scale(1.06); }
.cart-fab__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(27,27,20,.45);
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(420px, 92vw);
  height: 100dvh;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--paper-warm);
}
.cart-drawer__head strong {
  font-family: "Fraunces", serif;
  font-size: 21px;
}
.cart-drawer__close {
  border: none;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0 4px;
}

.cart-drawer__items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 22px;
}
.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  opacity: .7;
  margin: 40px 0;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-warm);
}
.cart-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 16px; }
.cart-item__line { font-size: 14px; color: var(--green-dark); font-weight: 700; }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cart-item__btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--green-soft);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__btn:hover { background: var(--green-bg); }
.cart-item__n { min-width: 20px; text-align: center; font-weight: 700; }

.cart-drawer__foot {
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--paper-warm);
  background: var(--white);
}
.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 17px;
}
.cart-drawer__total strong { font-family: "Fraunces", serif; font-size: 22px; }
.cart-send {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.cart-send:hover { background: var(--green-dark); }
.cart-send:disabled { background: var(--green-soft); cursor: not-allowed; }
.cart-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: .8;
}

/* Navigazione a step del carrello */
.cart-step {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* display:flex sui contenitori sovrascriverebbe l'attributo [hidden]: ripristina. */
.cart-step[hidden],
.cart-field[hidden] { display: none; }
.cart-drawer__back {
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 8px 10px 8px 0;
  white-space: nowrap;
}

/* Form dati cliente */
.cart-form {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cart-field > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cart-field input,
.cart-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.cart-field input:focus,
.cart-field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.cart-field textarea { resize: vertical; }

/* === CHECKOUT a tutto schermo + sezioni === */
.cart-drawer.at-checkout { width: 100vw; max-width: 100vw; }
.cart-drawer.at-checkout .cart-form,
.cart-drawer.at-checkout .cart-drawer__foot,
.cart-drawer.at-checkout .cart-drawer__head {
  max-width: 620px;
  margin-inline: auto;
  width: 100%;
}
.cart-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--paper-warm);
}
.cart-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.cart-section[hidden] { display: none; }
.cart-section__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* Segmenti Ritiro/Consegna e fasce orarie */
.cart-modes, .cart-slots { display: flex; gap: 8px; }
.cart-mode, .cart-slot {
  flex: 1;
  padding: 12px 10px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.cart-mode.is-active, .cart-slot.is-active {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green-dark);
}
.cart-modes[hidden] { display: none; }
.cart-note-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
}
.cart-note-box[hidden] { display: none; }
/* Sezione riscaldamento */
.reheat-head { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.reheat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 8px;
}
.reheat-chk { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }

/* === WIZARD checkout (una sezione per schermata) === */
.co-panel { display: flex; flex-direction: column; gap: 14px; }
.co-panel[hidden] { display: none; }
.co-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.co-dot {
  width: 34px; height: 6px; border-radius: 99px;
  background: var(--paper-warm); transition: background .2s var(--ease);
}
.co-dot.is-active { background: var(--green); }
/* Select orario preciso: stessa resa degli input */
.cart-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.cart-field select:focus { outline: none; border-color: var(--green); }
/* Consenso privacy */
.co-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 4px;
}
.co-consent input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin-top: 1px; }
/* Navigazione (Indietro / Avanti / Invia) */
.co-nav { display: flex; gap: 10px; align-items: center; }
.co-nav .cart-send { flex: 1; margin: 0; }
.co-back {
  flex: 0 0 auto;
  padding: 14px 18px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 99px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.cart-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cart-radio:has(input:checked) {
  border-color: var(--green);
  background: var(--green-bg);
}
.cart-radio input { accent-color: var(--green); width: 18px; height: 18px; }

.cart-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Prenotazione temporanea: countdown (checkout) e avviso scadenza (carrello) */
.cart-hold-timer {
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--green-dark);
  background: var(--green-bg);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  padding: 8px 12px;
}
.cart-hold-note {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #a83232;
  background: #fbeaea;
  border: 1px solid #f0caca;
  border-radius: 12px;
  padding: 10px 12px;
}


/* ============================================
   #lum: mini digital twin sui bottoni + testo centrato + card tutorial
   ============================================ */
.loc-btn { position: relative; text-align: center; }
.lum-choice-screen .loc-card { overflow: visible; }

/* Mini DT agganciato al bottone: in alto a destra, sborda un po'. */
.loc-dt {
  position: absolute;
  top: -16px;
  right: -6px;
  z-index: 3;
  pointer-events: none;
  animation: dt-float 4.2s ease-in-out infinite;
}
@keyframes dt-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Illustrazioni DT disegnate (banco espositore + vending machine), più grandi/chiare */
.dt-illus { height: auto; display: block; filter: drop-shadow(0 9px 14px rgba(0,0,0,.20)); }
.loc-dt--banco { top: -42px; right: -14px; }
.loc-dt--banco .dt-illus { width: 116px; transform: rotate(-3deg); }
.loc-dt--vending { top: -48px; right: -8px; }
.loc-dt--vending .dt-illus { width: 78px; transform: rotate(3deg); }

/* Card TUTORIAL (sostituisce la vetrina DT nei caroselli LUM) */
.tutorial-card {
  background: linear-gradient(160deg, var(--green-bg), var(--white));
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 22px;
}
.tutorial__title, .tutorial-soon__title {
  font-family: "Fraunces", serif; font-weight: 700;
  font-size: 20px; color: var(--ink);
  text-align: center; margin: 0 0 18px;
}
.tutorial__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.tutorial__step { display: flex; align-items: center; gap: 13px; text-align: left; }
.tutorial__ic {
  flex: 0 0 auto; width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--green-dark);
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tutorial__ic svg { width: 30px; height: 30px; }
.tutorial__txt { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tutorial__txt b {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: 7px;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 800; vertical-align: middle;
}
/* Coming soon (vending) */
.tutorial-card--soon { align-items: center; text-align: center; }
.tutorial-soon { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tutorial-soon__badge {
  padding: 5px 14px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-dark);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.tutorial-soon__text { font-size: 15px; color: var(--ink-soft); line-height: 1.45; max-width: 82%; }


/* === #hero/#lum: orari LUM + logo titolo === */
/* La posizione dentro i bottoni è testo semplice (link Maps rimosso su richiesta). */
.loc-btn__map { cursor: inherit; text-decoration: none; }
.loc-btn__map::after { content: none; }

/* Orari (vending + banco) nel bottone Università LUM in #hero */
.loc-btn__lum-hours { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 4px; }
.loc-btn__lum-hours > span { font-size: 13px; font-weight: 800; color: var(--green-dark); }

/* Logo LUM come titolo della schermata #lum (sostituisce il testo "Università LUM") */
.lum-logo-link--title { margin: 4px 0 12px; }
.lum-logo-link--title img { height: 58px; width: auto; }

/* "Università" + logo LUM ravvicinati nel titolo #lum */
.lum-title-word { margin: 0 0 2px; }
.lum-logo-link--title { margin: 0 0 14px; }

/* === SEZIONE PROFESSORI (sottodominio prenotazionilum.imensa.it) === */
:root {
  --lum-magenta: #a50046;
  --lum-magenta-soft: #f9edf3;
  --lum-gray: #666666;
}
.prof-bar { display: none; }
body.prof .prof-bar {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: calc(var(--nav-h, 100px) + 10px) 16px 10px; position: sticky; top: 0; z-index: 40;
  background: linear-gradient(#ffffff 72%, rgba(255,255,255,.94));
  border-bottom: 1px solid rgba(165, 0, 70, .18);
}
/* La barra prof fornisce già lo spazio sotto la navbar: le sezioni non lo ri-aggiungono. */
body.prof .products-screen { padding-top: 18px !important; }
.prof-bar__brand {
  display: flex; align-items: center; gap: 15px;
  min-height: 44px;
}
.prof-bar__lum-logo {
  display: inline-flex; align-items: center;
  padding-right: 15px;
  border-right: 1px solid rgba(165, 0, 70, .28);
}
.prof-bar__lum-logo img { display: block; width: auto; height: 42px; max-width: 148px; object-fit: contain; }
body.prof .prof-bar__note {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--lum-gray); text-align: center;
  background: var(--lum-magenta-soft); border: 1px solid rgba(165, 0, 70, .2); border-radius: 10px; padding: 8px 14px;
}
.prof-bar__tabs { display: inline-flex; background: #fff; border: 1px solid rgba(165, 0, 70, .22); border-radius: 999px; padding: 4px; gap: 4px; }
.prof-tab {
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--lum-gray);
  padding: 8px 18px; border-radius: 999px; transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.prof-tab--active { background: var(--lum-magenta); color: #fff; box-shadow: 0 2px 8px rgba(165, 0, 70, .28); }

/* In modalità professori niente back verso Hero/#lum; Hero/GDC non compaiono. */
body.prof .screen-back { display: none !important; }
body.prof #hero, body.prof #lum, body.prof #gdc { display: none !important; }
body.prof .cart-drawer__head { border-bottom-color: rgba(165, 0, 70, .24); }
body.prof .cart-section__title { color: var(--lum-magenta); }
body.prof .co-panel {
  padding: 20px;
  border: 1px solid rgba(165, 0, 70, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(102, 102, 102, .06);
}
body.prof .cart-field input:focus,
body.prof .cart-field textarea:focus { border-color: var(--lum-magenta); box-shadow: 0 0 0 3px rgba(165, 0, 70, .08); }
body.prof .cart-send { background: var(--lum-magenta); }
body.prof .cart-send:hover { background: #870038; }

/* Selettore titolo Prof./Prof.ssa accanto al nome. */
.name-row { display: flex; gap: 8px; align-items: stretch; }
.name-row #fName { flex: 1 1 auto; min-width: 0; }
.prof-title-options {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: stretch;
}
.prof-title-options[hidden] { display: none; }
.prof-title-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #d9d9d1;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.prof-title-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.prof-title-option:has(input:checked) {
  border-color: var(--lum-magenta);
  background: var(--lum-magenta-soft);
  color: var(--lum-magenta);
}
@media (max-width: 520px) {
  .prof-bar__brand { gap: 10px; }
  .prof-bar__lum-logo { padding-right: 10px; }
  .prof-bar__lum-logo img { height: 34px; max-width: 120px; }
  body.prof .prof-bar__note { font-size: 12px; padding: 7px 10px; }
  .prof-tab { padding-inline: 12px; font-size: 13px; }
}
