/* =========================================================
   LA DELIZIA — DESIGN SYSTEM
   Pizzeria Kebab Chieri · Stile Mediterraneo Autentico
   
   PALETTE:
   Terracotta bruciata, Zafferano dorato, Pietra calda,
   Crema pergamena, Verde ulivo, Marrone espresso
   ========================================================= */

/* --- Google Fonts: Trattoria italiana + Corpo leggibile --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- TOKEN DI DESIGN --- */
:root {
  /* Palette principale — colori caldi mediterranei */
  --terra:       #b5451b;   /* Terracotta bruciata — colore primario */
  --terra-dark:  #8f3214;
  --terra-light: #d4622e;
  --zafferano:   #e8a020;   /* Zafferano / oro caldo */
  --zaff-dark:   #c07d10;
  --zaff-light:  #f5c14a;
  --oliva:       #6b7c3a;   /* Verde oliva */
  --oliva-light: #8fa04d;
  --espresso:    #2c1a0e;   /* Marrone espresso scuro */
  --espresso-2:  #3d2612;
  --espresso-3:  #5a3a22;
  --pietra:      #8c7b6b;   /* Grigio pietra calda */
  --pietra-light:#b5a898;

  /* Sfondi caldi come carta e pergamena */
  --cream:       #faf4e8;   /* Crema pergamena — sfondo principale */
  --cream-2:     #f2e8d5;   /* Crema più scura */
  --cream-3:     #e8dac4;   /* Crema ancora più scura */
  --white:       #fffef9;

  /* Testo */
  --text-dark:   #1e1208;
  --text-body:   #3d2a16;
  --text-mid:    #6e5540;
  --text-light:  #9e846e;

  /* Stati */
  --success:     #4a7c3f;
  --error:       #a32412;

  /* Font */
  --ff-heading:  'Playfair Display', Georgia, serif;
  --ff-sub:      'Lora', Georgia, serif;
  --ff-body:     'Inter', system-ui, sans-serif;

  /* Shape */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Ombre calde anziché fredde */
  --shadow-sm: 0 2px 8px rgba(44,26,14,0.10);
  --shadow-md: 0 6px 20px rgba(44,26,14,0.14);
  --shadow-lg: 0 12px 40px rgba(44,26,14,0.20);
  --shadow-card: 0 4px 16px rgba(181,69,27,0.12);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.15s ease;

  --nav-h: 70px;
  --infobar-h: 36px;

  /* Pattern decorativo — arabesco/geometria mediterranea */
  --pattern-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 4l4 7h-8zm0 32l-4-7h8zm16-16l-7 4v-8zm-32 0l7-4v8zM8.3 8.3l5 5-2.8 2.8-5-5zm23.4 23.4l-5-5 2.8-2.8 5 5zM31.7 8.3l-5 5 2.8 2.8 5-5zM8.3 31.7l5-5-2.8-2.8-5 5z' fill='%23b5451b' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* Scrollbar stile legno */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--terra); border-radius: 4px; }

/* =========================================================
   TIPOGRAFIA
   ========================================================= */
h1, h2, h3 { font-family: var(--ff-heading); line-height: 1.2; color: var(--text-dark); }
h4, h5     { font-family: var(--ff-sub); line-height: 1.3; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--terra);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-family: var(--ff-sub);
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.7;
  font-style: italic;
}

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-sub { margin: 0 auto; }

/* Divisore ornamentale */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 20px 0 0;
  opacity: 0.4;
  font-size: 1rem;
  color: var(--terra);
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--terra);
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-top-offset { padding-top: calc(var(--nav-h) + var(--infobar-h) + 20px); }
.section-alt {
  background: var(--cream-2);
  background-image: var(--pattern-url);
}
.section-dark {
  background: var(--espresso);
  background-image: var(--pattern-url);
}
.section-warm {
  background: linear-gradient(160deg, var(--espresso) 0%, var(--espresso-2) 100%);
}

/* Bottoni — stile artigianale */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--ff-body);
  cursor: pointer;
}
/* Bottone primario terracotta */
.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(181,69,27,0.35);
  border: 2px solid var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(181,69,27,0.45);
}
/* Bottone secondario outline */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
/* Bottone zafferano */
.btn-gold {
  background: var(--zafferano);
  color: var(--espresso);
  border: 2px solid var(--zafferano);
  box-shadow: 0 4px 14px rgba(232,160,32,0.4);
}
.btn-gold:hover {
  background: var(--zaff-dark);
  border-color: var(--zaff-dark);
  transform: translateY(-2px);
}
/* WhatsApp */
.btn-wa {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-wa:hover {
  background: #1fba58;
  border-color: #1fba58;
  transform: translateY(-2px);
}
/* Bottone scuro */
.btn-dark {
  background: var(--espresso);
  color: var(--cream);
  border: 2px solid var(--espresso);
}
.btn-dark:hover {
  background: var(--espresso-2);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   ANIMAZIONI SCROLL
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   INFO BAR
   ========================================================= */
#info-bar {
  background: var(--espresso);
  height: var(--infobar-h);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 1px solid rgba(232,160,32,0.2);
  font-size: 0.75rem;
  color: rgba(250,244,232,0.7);
  font-family: var(--ff-body);
  overflow: hidden;
}
.ib-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.ib-left {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.ib-sep { opacity: 0.3; font-size: 0.7rem; }
.ib-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,124,63,0.20);
  border: 1px solid rgba(74,124,63,0.35);
  color: #7dd98f;
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ib-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.28);
  color: #5ee68a;
  padding: 4px 14px;
  border-radius: var(--r-full);
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.75rem;
  animation: ibWaPulse 3s ease-in-out infinite;
}
.ib-wa:hover {
  background: rgba(37,211,102,0.22);
  color: #25d366;
}
.ib-wa strong { color: #a8f5c2; }
@keyframes ibWaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  50%       { box-shadow: 0 0 0 5px rgba(37,211,102,0.12); }
}

/* =========================================================
   NAVBAR — Premium trattoria
   ========================================================= */
#navbar {
  position: fixed;
  top: var(--infobar-h);
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,244,232,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--cream-3);
  box-shadow: 0 2px 24px rgba(44,26,14,0.12);
  background: rgba(250,244,232,0.99);
}

/* Offset body content for infobar + navbar */
#hero { padding-top: calc(var(--nav-h) + var(--infobar-h)); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Animated sliding underline indicator */
#nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--terra);
  border-radius: var(--r-full);
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  opacity: 0;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(181,69,27,0.4), 0 0 0 3px rgba(181,69,27,0.1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.nav-logo:hover .logo-badge {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 6px 22px rgba(181,69,27,0.5);
}
.logo-flame {
  position: absolute;
  top: -2px;
  right: 1px;
  font-size: 0.85rem;
  animation: flameDance 2.5s ease-in-out infinite;
  transform-origin: bottom center;
}
.logo-icon { font-size: 1.4rem; }
@keyframes flameDance {
  0%, 100% { transform: rotate(-8deg) scale(1);   }
  33%       { transform: rotate(8deg) scale(1.1);  }
  66%       { transform: rotate(-5deg) scale(0.95); }
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-name em {
  color: var(--terra);
  font-style: italic;
}
.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
  margin-top: 4px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--terra);
  background: rgba(181,69,27,0.06);
}
.nav-links a.active-link { color: var(--terra); font-weight: 600; }

/* Nav azioni */
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* WhatsApp CTA in nav — animated */
.nav-wa-btn {
  position: relative;
  overflow: hidden;
}
.nav-wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.nav-wa-btn:hover::after { transform: translateX(100%); }

#cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
}
#cart-btn:hover { background: var(--terra); transform: scale(1.08); }

#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--zafferano);
  color: var(--espresso);
  font-size: 0.65rem;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}
#cart-count.bump { animation: cartBump 0.3s ease; }
@keyframes cartBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* Hamburger */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
#nav-toggle span {
  display: block; width: 23px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}
#nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
#mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + var(--infobar-h));
  left: 0;
  width: 100%;
  background: var(--cream);
  border-bottom: 2px solid var(--cream-3);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 0 24px 16px;
  flex-direction: column;
  gap: 0;
  transform: translateY(-110%);
  transition: transform var(--transition);
}
#mobile-nav.open { display: flex; transform: translateY(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--cream-3);
  margin-bottom: 4px;
}
.mobile-logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.mobile-wa-btn {
  background: #25d366;
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 700;
}

#mobile-nav a {
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid var(--cream-3);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  font-family: var(--ff-sub);
}
#mobile-nav a:last-child { border-bottom: none; }
#mobile-nav a:hover { color: var(--terra); padding-left: 8px; }

/* =========================================================
   HERO — Caldo, sensoriale, come un locale vero
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Sfondo: foto + overlay terracotta + texture legno */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(44,26,14,0.90) 0%,
      rgba(44,26,14,0.65) 50%,
      rgba(44,26,14,0.35) 100%
    ),
    url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1600&q=85') center/cover no-repeat;
}
/* Vignette caldo ai bordi */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, transparent 40%, rgba(44,26,14,0.5) 100%);
}

/* Pattern arabesco sottile in basso */
.hero-pattern-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-image: var(--pattern-url);
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Timbro di qualità sopra il titolo */
.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.45);
  color: var(--zaff-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--r-sm);
  margin-bottom: 24px;
  font-family: var(--ff-body);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.3);
}
.hero-title em {
  color: var(--zaff-light);
  font-style: italic;
  font-weight: 700;
}

.hero-desc {
  font-family: var(--ff-sub);
  font-size: 1.05rem;
  color: rgba(250,244,232,0.80);
  margin-bottom: 36px;
  line-height: 1.72;
  font-style: italic;
  max-width: 500px;
  border-left: 3px solid var(--terra-light);
  padding-left: 16px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

/* Stats con look "timbro trattoria" */
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; }
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px;
  border-left: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat-val {
  font-family: var(--ff-heading);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--zaff-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(250,244,232,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Freccia scroll */
.hero-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}
.hero-scroll-cue span { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,244,232,0.45); }
.hero-scroll-cue svg { color: rgba(250,244,232,0.4); }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   STRIP "CHI SIAMO" — Sfondo legno scuro
   ========================================================= */
#about {
  background: var(--espresso);
  background-image: var(--pattern-url);
  padding: 64px 0;
  position: relative;
}
#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--terra), var(--zafferano), var(--terra));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 2px;
}
.about-card {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  position: relative;
}
.about-card:last-child { border-right: none; }
.about-card:hover { background: rgba(181,69,27,0.10); }

.about-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.about-card:hover .about-icon-wrap {
  background: rgba(181,69,27,0.25);
  border-color: rgba(181,69,27,0.4);
}

.about-card h3 {
  font-family: var(--ff-sub);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.85rem;
  color: rgba(250,244,232,0.5);
  line-height: 1.6;
}

/* =========================================================
   SEZIONE OFFERTE
   ========================================================= */
#offerte { background: var(--cream-2); background-image: var(--pattern-url); }

/* =========================================================
   MENU COMPLETO
   ========================================================= */
#menu { background: var(--cream); }

/* Tab categorie — stile francobollo */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 44px;
}
.menu-tab {
  padding: 9px 20px;
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--cream-2);
  border: 1.5px solid var(--cream-3);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.03em;
}
.menu-tab:hover,
.menu-tab.active {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
  box-shadow: 0 3px 12px rgba(181,69,27,0.3);
}

/* Griglia menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 22px;
}

/* Card prodotto */
.menu-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--cream-3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(181,69,27,0.22);
}
.menu-card.hidden { display: none; }

.card-img-wrap {
  position: relative;
  height: 175px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.menu-card:hover .card-img-wrap img { transform: scale(1.07); }

.card-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(44,26,14,0.80);
  color: var(--zaff-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-name {
  font-family: var(--ff-sub);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.35;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.55;
  flex: 1;
  font-style: italic;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--cream-2);
}
.card-price {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--terra);
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--terra);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.add-btn:hover { background: var(--terra-dark); transform: scale(1.04); }

/* =========================================================
   SEZIONE DELIVERY — Sfondo scuro con tabella comparativa
   ========================================================= */
#delivery { background: var(--espresso); background-image: var(--pattern-url); }
#delivery::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--terra), var(--zafferano), var(--terra));
  margin-bottom: 0;
  position: absolute;
}

#delivery .section-eyebrow { color: var(--zafferano); }
#delivery .section-eyebrow::before, #delivery .section-eyebrow::after { background: var(--zafferano); }
#delivery .section-title { color: var(--cream); }
#delivery .section-sub { color: rgba(250,244,232,0.6); }

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.delivery-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.delivery-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
  border-color: rgba(232,160,32,0.25);
}
.delivery-card.featured {
  border-color: var(--zafferano);
  background: rgba(232,160,32,0.07);
}
.delivery-card.featured::before {
  content: '✦ CONSEGNA DIRETTA';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--zafferano);
  color: var(--espresso);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.del-platform-icon { font-size: 2.2rem; margin-bottom: 8px; }
.del-platform-name {
  font-family: var(--ff-sub);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.del-info-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.del-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.del-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.del-label { color: rgba(250,244,232,0.45); }
.del-val  { color: var(--cream); font-weight: 600; }
.del-val-fee  { color: var(--terra-light); }
.del-val-free { color: #5dbb6e; }
.del-note { font-size: 0.72rem; color: rgba(250,244,232,0.35); font-style: italic; text-align: left; margin-top: 6px; }

.del-contact-box {
  background: rgba(181,69,27,0.12);
  border: 1px dashed rgba(181,69,27,0.35);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  margin-top: 8px;
}
.del-contact-box p {
  color: rgba(250,244,232,0.7);
  font-size: 0.93rem;
  margin-bottom: 16px;
  font-family: var(--ff-sub);
  font-style: italic;
}
.del-contact-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   INFO / ORARI / MAPPA
   ========================================================= */
#info { background: var(--cream-2); background-image: var(--pattern-url); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.info-block {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--cream-3);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.info-block + .info-block { margin-top: 20px; }
.info-block h3 {
  font-family: var(--ff-sub);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.info-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(181,69,27,0.09);
  border: 1px solid rgba(181,69,27,0.18);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-item-text h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terra);
  margin-bottom: 3px;
}
.info-item-text p, .info-item-text a {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}
.info-item-text a:hover { color: var(--terra); }

/* Tabella orari */
.hours-tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.hours-tbl td { padding: 10px 0; border-bottom: 1px solid var(--cream-2); }
.hours-tbl td:last-child { text-align: right; font-weight: 700; }
.open-color { color: var(--oliva); }

/* Servizi badge */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(74,124,63,0.1);
  border: 1px solid rgba(74,124,63,0.25);
  color: var(--oliva);
}

/* Mappa */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--cream-3);
  height: 300px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-cta { text-align: center; margin-top: 16px; }

/* =========================================================
   RECENSIONI
   ========================================================= */
#reviews { background: var(--cream); }

.rating-hero {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.rating-hero::after {
  content: '"';
  position: absolute;
  right: 24px;
  top: -20px;
  font-family: var(--ff-heading);
  font-size: 10rem;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
}
.rating-big {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rating-num {
  font-family: var(--ff-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.rating-detail { display: flex; flex-direction: column; gap: 4px; }
.rating-stars { font-size: 1.3rem; letter-spacing: 3px; color: var(--zaff-light); }
.rating-sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.rating-hero-quote {
  font-family: var(--ff-sub);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 380px;
  line-height: 1.6;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid var(--cream-3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--ff-heading);
  font-size: 3.5rem;
  color: var(--cream-2);
  line-height: 1;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(181, 69, 27, 0.2);
}
.review-stars {
  color: var(--zafferano);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-text {
  font-family: var(--ff-sub);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.rev-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--zafferano));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.rev-name { font-weight: 700; font-size: 0.85rem; color: var(--text-dark); }
.rev-date { font-size: 0.72rem; color: var(--text-light); }

/* =========================================================
   CONTATTI
   ========================================================= */
#contact { background: var(--espresso); background-image: var(--pattern-url); }
#contact .section-eyebrow { color: var(--zafferano); }
#contact .section-eyebrow::before, #contact .section-eyebrow::after { background: var(--zafferano); }
#contact .section-title { color: var(--cream); }
#contact .section-sub { color: rgba(250,244,232,0.6); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* Form stile lavagna */
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 30px;
}
.contact-form-wrap h3 {
  font-family: var(--ff-sub);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 22px;
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(250,244,232,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--terra-light);
  background: rgba(255,255,255,0.09);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(250,244,232,0.3); }
.form-row textarea { min-height: 120px; resize: vertical; }

.contact-info-col { padding-top: 4px; }
.contact-info-col h3 {
  font-family: var(--ff-sub);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 22px;
}

.cinfo-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.cinfo-icon {
  width: 42px; height: 42px;
  background: rgba(181,69,27,0.2);
  border: 1px solid rgba(181,69,27,0.35);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.cinfo-text h4 {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--terra-light);
  margin-bottom: 4px;
}
.cinfo-text p, .cinfo-text a {
  font-size: 0.92rem;
  color: rgba(250,244,232,0.78);
  line-height: 1.5;
}
.cinfo-text a:hover { color: var(--zaff-light); }

.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: rgba(250,244,232,0.55);
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #180e06;
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250,244,232,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer a { color: rgba(250,244,232,0.45); }
footer a:hover { color: var(--terra-light); }

/* =========================================================
   FAB — WhatsApp
   ========================================================= */
#whatsapp-fab {
  position: fixed;
  bottom: 100px;
  right: 22px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5);
  z-index: 900;
  transition: var(--transition);
  text-decoration: none;
}
#whatsapp-fab:hover {
  background: #1fba58;
  transform: scale(1.1) translateY(-3px);
}
#whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2.2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.25); opacity: 0; }
}

/* =========================================================
   CARRELLO SIDEBAR
   ========================================================= */
#cart-overlay {
  position: fixed; inset: 0;
  background: rgba(30,18,8,0.55);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
#cart-overlay.open { opacity: 1; pointer-events: all; }

#cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 390px; height: 100%;
  background: var(--cream);
  z-index: 1200;
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 40px rgba(44,26,14,0.2);
}
#cart-sidebar.open { transform: translateX(0); }

.cart-head {
  background: var(--espresso);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h2 {
  font-family: var(--ff-sub);
  font-size: 1.1rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-head-close {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.cart-head-close:hover { background: var(--terra); }

#cart-items { flex: 1; overflow-y: auto; padding: 14px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.cart-empty-ico { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cream-2);
  align-items: center;
  animation: cartIn 0.3s ease;
}
@keyframes cartIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3; }
.cart-item-price { font-size: 0.82rem; color: var(--terra); font-weight: 700; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--cream-2);
  border: 1px solid var(--cream-3);
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
  transition: var(--transition-fast);
}
.qty-btn:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }
.qty-num { font-weight: 700; font-size: 0.92rem; min-width: 18px; text-align: center; }

.cart-foot {
  padding: 18px 22px;
  border-top: 2px solid var(--cream-2);
  background: var(--white);
}
.cart-sub {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-light); margin-bottom: 5px;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cart-total-lbl { font-family: var(--ff-sub); font-size: 1.05rem; font-weight: 700; }
.cart-total-price { font-family: var(--ff-heading); font-size: 1.35rem; font-weight: 900; color: var(--terra); }
.cart-clear-txt {
  font-size: 0.76rem; color: var(--text-light);
  text-align: right; display: block;
  margin-bottom: 10px; cursor: pointer; text-decoration: underline;
}
.cart-clear-txt:hover { color: var(--terra); }

/* =========================================================
   CHECKOUT MODAL
   ========================================================= */
#checkout-overlay {
  position: fixed; inset: 0;
  background: rgba(30,18,8,0.65);
  z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
#checkout-overlay.open { opacity: 1; pointer-events: all; }

#checkout-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%; max-width: 510px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
}
#checkout-overlay.open #checkout-modal { transform: scale(1) translateY(0); }

.co-header {
  background: linear-gradient(135deg, var(--terra), var(--espresso-2));
  padding: 26px 30px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  color: var(--white);
  position: relative;
}
.co-header-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-url);
  opacity: 0.2;
  border-radius: inherit;
}
.co-header h2 {
  font-family: var(--ff-heading);
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.co-header p { font-size: 0.88rem; opacity: 0.8; position: relative; z-index: 1; }
.co-close-btn {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
  z-index: 2;
}
.co-close-btn:hover { background: rgba(255,255,255,0.3); }

.co-body { padding: 26px 30px; }

.co-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.co-type-btn {
  padding: 13px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--cream-3);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--cream);
  transition: var(--transition-fast);
  color: var(--text-mid);
}
.co-type-btn.active {
  border-color: var(--terra);
  background: rgba(181,69,27,0.06);
  color: var(--terra);
}
.co-type-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

.co-summary {
  background: var(--cream-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}
.co-summary h4 { font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.co-sum-items { max-height: 150px; overflow-y: auto; }
.co-sum-item {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--text-body);
  border-bottom: 1px solid var(--cream-3);
  font-size: 0.84rem;
}
.co-sum-total {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 0.95rem;
  margin-top: 10px;
  color: var(--terra);
}

.co-form-group { margin-bottom: 15px; }
.co-form-group label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 5px;
}
.co-form-group input,
.co-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--cream);
  border: 1.5px solid var(--cream-3);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-fast);
}
.co-form-group input:focus, .co-form-group textarea:focus { border-color: var(--terra); }
.co-form-group textarea { min-height: 78px; resize: none; }

#co-address-group { display: none; }
#co-address-group.visible { display: block; }

.co-captcha { margin-bottom: 14px; display: flex; justify-content: center; }

.co-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  font-weight: 700;
  font-family: var(--ff-body);
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(181,69,27,0.4);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.co-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(181,69,27,0.5); }

/* =========================================================
   CHATBOT IMAD
   ========================================================= */
#chat-fab {
  position: fixed;
  bottom: 28px; left: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.fab-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--terra), var(--espresso-2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(181,69,27,0.45);
  transition: var(--transition);
  position: relative;
}
.fab-btn:hover { transform: scale(1.1); }
.fab-pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(181,69,27,0.4);
  animation: fabPulse 2.5s ease-in-out infinite;
}
@keyframes fabPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.22); opacity: 0; } }

.fab-label {
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

/* Finestra chat */
#chat-window {
  position: fixed;
  bottom: 98px; left: 22px;
  width: 355px;
  max-height: 510px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.82) translateY(40px);
  transform-origin: bottom left;
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
}
#chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

/* Header chat */
.chat-hd {
  background: var(--espresso);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--zafferano));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.chat-hd-info { flex: 1; }
.chat-hd-name { font-weight: 700; color: var(--cream); font-size: 0.92rem; }
.chat-hd-status {
  font-size: 0.7rem; color: #5dbb6e;
  display: flex; align-items: center; gap: 4px;
}
.chat-hd-status::before {
  content: ''; width: 6px; height: 6px;
  background: #5dbb6e; border-radius: 50%; display: inline-block;
}
.chat-hd-btns { display: flex; gap: 6px; }
.chat-hd-btn {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.1);
  color: rgba(250,244,232,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  transition: var(--transition-fast);
}
.chat-hd-btn:hover { background: rgba(255,255,255,0.2); color: var(--cream); }

/* Tabs chat */
.chat-tabs { display: flex; background: var(--cream-2); border-bottom: 1px solid var(--cream-3); }
.chat-tab {
  flex: 1; padding: 9px;
  font-size: 0.78rem; font-weight: 600;
  text-align: center;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.chat-tab.active { color: var(--terra); border-bottom-color: var(--terra); background: var(--white); }

.chat-tc { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.chat-tc.active { display: flex; }

#chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--cream);
}

.chat-msg { display: flex; gap: 7px; align-items: flex-end; max-width: 87%; animation: msgIn 0.23s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--zafferano));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}
.msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg.bot .msg-bubble {
  background: var(--white);
  color: var(--text-body);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-3);
}
.chat-msg.user .msg-bubble {
  background: var(--terra);
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}

/* Typing indicator */
.typing-indicator { display: flex; gap: 7px; align-items: flex-end; align-self: flex-start; }
.typing-indicator .msg-bubble { background: var(--white); border: 1px solid var(--cream-3); border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow-sm); display: none; }
.typing-indicator.active .msg-bubble { display: block; }
.dots { display: flex; gap: 4px; align-items: center; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-light); animation: dotBounce 1.2s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Quick replies */
.quick-reps {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--cream-2);
  background: var(--cream);
}
.qr-btn {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 0.76rem; font-weight: 600;
  background: var(--white);
  border: 1px solid var(--cream-3);
  color: var(--text-mid);
  transition: var(--transition-fast);
  cursor: pointer;
}
.qr-btn:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }

/* Input chat */
.chat-input-row {
  display: flex; gap: 7px;
  padding: 10px 14px;
  border-top: 1px solid var(--cream-2);
  background: var(--white);
}
#chat-input {
  flex: 1;
  padding: 9px 13px;
  background: var(--cream); border: 1px solid var(--cream-3);
  border-radius: var(--r-sm);
  font-family: var(--ff-body); font-size: 0.85rem;
  color: var(--text-dark); outline: none;
  transition: border-color var(--transition-fast);
}
#chat-input:focus { border-color: var(--terra); }
#chat-send {
  width: 36px; height: 36px;
  background: var(--terra); color: var(--white);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  transition: var(--transition-fast); flex-shrink: 0;
}
#chat-send:hover { background: var(--terra-dark); }

/* Storia chat */
#chat-hist-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--cream); }
.hist-item {
  background: var(--white); border: 1px solid var(--cream-3);
  border-radius: var(--r-md); padding: 10px 13px;
  font-size: 0.8rem; cursor: pointer;
  transition: var(--transition-fast);
}
.hist-item:hover { border-color: var(--terra); }
.hist-time { color: var(--text-light); font-size: 0.7rem; margin-bottom: 3px; }
.hist-prev { color: var(--text-mid); }
.hist-empty { text-align: center; padding: 36px 20px; color: var(--text-light); font-size: 0.85rem; font-style: italic; }

/* Tabella delivery in chat */
.chat-del-tbl { width: 100%; border-collapse: collapse; font-size: 0.76rem; margin-top: 8px; }
.chat-del-tbl th { background: var(--cream-2); padding: 6px 8px; text-align: left; font-weight: 700; color: var(--text-mid); font-size: 0.68rem; text-transform: uppercase; }
.chat-del-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--cream-2); color: var(--text-body); }
.chat-del-tbl tr:last-child td { border-bottom: none; }
.chat-del-tbl .hl-row td { background: rgba(232,160,32,0.1); font-weight: 600; }

/* =========================================================
   TOAST
   ========================================================= */
#toast-container {
  position: fixed; bottom: 22px; right: 22px;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--espresso);
  color: var(--cream);
  padding: 13px 18px;
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 250px; max-width: 330px;
  transform: translateX(120%);
  transition: transform var(--transition);
  border-left: 4px solid var(--zafferano);
}
.toast.show  { transform: translateX(0); }
.toast.success { border-left-color: var(--oliva); }
.toast.error   { border-left-color: var(--terra); }
.toast-ico { font-size: 1rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .contact-layout  { grid-template-columns: 1fr; }
  .info-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  #nav-toggle { display: flex; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .delivery-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  #cart-sidebar { max-width: 100%; }
  #chat-window { left: 10px; right: 10px; width: auto; bottom: 88px; }
  #chat-fab { left: 14px; bottom: 22px; }
  #whatsapp-fab { right: 14px; bottom: 88px; }
  .rating-hero { flex-direction: column; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .menu-tab { padding: 7px 13px; font-size: 0.79rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .co-type-grid { grid-template-columns: 1fr 1fr; }
  .co-body { padding: 18px; }
  .co-header { padding: 18px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero-stat { padding: 10px 14px; }
}

/* =========================================================
   IMAD SMART CHAT — Rich UI Components
   ========================================================= */

/* Rich bubble (contains HTML cards) */
.msg-bubble-rich {
  background: var(--cream-2);
  border-color: var(--cream-3);
  padding: 12px 14px;
  max-width: 100%;
}

/* Horizontal scrollable cards row */
.chat-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.chat-cards-scroll::-webkit-scrollbar { height: 4px; }
.chat-cards-scroll::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 4px; }

/* Single item card inside chat */
.chat-item-card {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  max-width: 185px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(44,26,14,0.08);
  scroll-snap-align: start;
  transition: var(--transition);
}
.chat-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.chat-item-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.chat-item-info {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.chat-item-name {
  font-family: var(--ff-sub);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.chat-item-desc {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
  font-style: italic;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--cream-2);
}
.chat-item-price {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--terra);
}
.chat-add-btn {
  background: var(--terra);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.chat-add-btn:hover { background: var(--terra-dark); }

/* Category grid */
.chat-category-title {
  font-family: var(--ff-sub);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.chat-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.chat-cat-btn {
  padding: 6px 13px;
  background: var(--white);
  border: 1.5px solid var(--cream-3);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.chat-cat-btn:hover {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

/* Chat cart box */
.chat-cart-box {
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 0.84rem;
}
.chat-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-2);
  gap: 8px;
}
.chat-cart-row:last-of-type { border-bottom: none; }
.chat-cart-rm {
  width: 20px;
  height: 20px;
  background: rgba(181,69,27,0.12);
  color: var(--terra);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  transition: var(--transition);
  vertical-align: middle;
}
.chat-cart-rm:hover { background: var(--terra); color: var(--white); }
.chat-cart-total {
  margin-top: 10px;
  font-family: var(--ff-sub);
  font-size: 0.9rem;
  color: var(--text-dark);
  padding-top: 8px;
  border-top: 1.5px dashed var(--cream-3);
}
.chat-cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Chat action buttons (confirm/cancel flow) */
.chat-action-btn {
  padding: 8px 16px;
  background: var(--terra);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.chat-action-btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.chat-action-btn.ghost {
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid var(--cream-3);
}
.chat-action-btn.ghost:hover { background: var(--cream-2); border-color: var(--cream-3); }

/* Type buttons (asporto/delivery choice) */
.chat-type-btns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Chat header badge for cart count */
#chat-cart-badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}

/* =========================================================
   MENU CARD BADGES
   ========================================================= */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--zafferano);
  color: var(--espresso);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(232,160,32,0.45);
  white-space: nowrap;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Add-btn ripple effect */
.add-btn { position: relative; overflow: hidden; }
.add-btn:active { transform: scale(0.95); }

/* =========================================================
   RESPONSIVE INFO-BAR & HERO OFFSET
   ========================================================= */
@media (max-width: 768px) {
  :root { --infobar-h: 0px; }
  #info-bar { display: none; }
  #navbar { top: 0; }
  #mobile-nav { top: var(--nav-h); }
  #hero { padding-top: calc(var(--nav-h) + 10px); }
}

/* Ensure anchor-scrolled sections are not covered by header */
html {
  scroll-padding-top: calc(var(--nav-h) + var(--infobar-h) + 8px);
}
