/* ==========================================================================
         FONTS SELF-HOSTED (Inter & Playfair Display Variable)
      ========================================================================== */
@font-face {
  font-family: "Inter";
  src:
    url("../../Inter-Variable.woff2") format("woff2"),
    url("../../Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src:
    url("../../Inter-Italic-Variable.woff2") format("woff2"),
    url("../../Inter-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src:
    url("../../PlayfairDisplay-Variable.woff2") format("woff2"),
    url("../../PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src:
    url("../../PlayfairDisplay-Italic-Variable.woff2") format("woff2"),
    url("../../PlayfairDisplay-Italic-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* ════════════════════════════════════════════
         BASE & RESET
      ════════════════════════════════════════════ */
html {
  font-size: 16px;
}

/* ══════════════════════════════════════════
               DESIGN TOKENS — Refined Palette
            ══════════════════════════════════════════ */
:root {
  /* Greens — richer, more natural */
  --g900: #0f2e0f;
  --g800: #1a4a1a;
  --g700: #245524;
  --g600: #2d6a2d;
  --g500: #3d8b3d;
  --g400: #5aad5a;
  --g100: #e6f4e6;
  --g50: #f0f9f0;

  /* Golds — warmer, more refined */
  --gold: #c8860a;
  --gold-light: #e8a020;
  --gold-pale: #fdf3e0;
  --gold-warm: #f5a623;

  /* Neutrals — warm ivory instead of cold gray */
  --ivory: #fdfcf8;
  --ivory-2: #f7f4ee;
  --ivory-3: #ede9df;
  --cream: #faf6ef;
  --stone: #9e9485;
  --text: #1c1c1c;
  --text-soft: #5a5245;
  --text-muted: #6b5f55;

  /* Reds — functional.
     #b91c1c invece di #dc2626: alzo il contrasto del pulsante "Rifiuta cookie"
     da 4.97:1 a 5.94:1 (WCAG AA normal text). Il banner cookie è GDPR-critical
     e deve essere leggibile in tutte le condizioni. */
  --red-medium: #b91c1c;

  /* Shadows — warmer tone */
  --shadow-xs: 0 1px 4px rgba(30, 20, 10, 0.07);
  --shadow-sm: 0 2px 10px rgba(30, 20, 10, 0.09);
  --shadow: 0 4px 24px rgba(30, 20, 10, 0.11);
  --shadow-lg: 0 8px 44px rgba(30, 20, 10, 0.14);
  --shadow-xl: 0 16px 64px rgba(30, 20, 10, 0.17);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --topbar-offset: 64px;

  /* Transitions */
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 640px) {
  :root {
    --topbar-offset: 80px;
  }
}
@media (max-width: 480px) {
  :root {
    --topbar-offset: 70px;
  }
}

/* ══════════════════════════════════════════
               RESET & BASE
            ══════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  padding-top: calc(var(--topbar-offset) + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}

/* ── Utility ── */
.serif {
  font-family: "Playfair Display", Georgia, serif;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ══════════════════════════════════════════
               NAVBAR
            ══════════════════════════════════════════ */
#navbar {
  position: fixed;
  /* Start below topbar */
  top: var(--topbar-offset);
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: transparent;
  transition:
    background var(--t),
    padding var(--t),
    top var(--t);
}
#navbar.scrolled {
  background: rgba(15, 46, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 2rem;
  border-top: none;
  margin-top: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
  opacity: 1;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-mascot {
  transform: translateY(-2px) rotate(-4deg);
}
.nav-logo-mascot {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(46, 104, 58, 0.35));
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.nav-logo em {
  font-style: italic;
  color: var(--gold-light, #f6c67a);
  font-weight: 500;
  margin-left: 0.28rem;
}
#navbar.scrolled .nav-logo-mascot {
  width: 36px;
  height: 36px;
}
#navbar.scrolled .nav-logo {
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--t);
}
.nav-links a:hover {
  color: var(--gold-light);
}

/* Hamburger button */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background var(--t);
}
#nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
#nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    width 0.3s ease;
  transform-origin: center;
}
#nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
#nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  #nav-toggle {
    display: flex;
  }
  #navbar {
    padding: 0.75rem 1.25rem;
  }
  #navbar.scrolled {
    padding: 0.55rem 1.25rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    height: 100svh;
    background: rgba(10, 36, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 800;
    padding: 2rem;
    animation: menuIn 0.25s ease both;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
  }
  @keyframes menuIn {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ══════════════════════════════════════════
               TOPBAR CONTATTI
            ══════════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 41, 27, 0.94);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 0.5rem;
  padding: calc(0.5rem + env(safe-area-inset-top)) 1.5rem 0.5rem;
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-label {
  flex: 1 1 auto;
  text-align: left;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  padding: 0;
  text-wrap: balance;
}
.topbar-actions {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
}
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  white-space: nowrap;
  min-height: 42px;
  box-shadow: 0 6px 18px rgba(3, 22, 15, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}
.topbar-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(3, 22, 15, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.topbar-btn:active {
  transform: scale(0.96);
}
.topbar-btn.call {
  background: #fff;
  color: var(--g800);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(46, 104, 58, 0.14);
}
.topbar-btn.call:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(46, 104, 58, 0.28);
}
.topbar-btn.whatsapp {
  background: #25d366;
  color: #fff;
}
.topbar-btn.whatsapp:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}
.topbar-btn.order {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}
.topbar-btn.order:hover {
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.5);
}
.topbar-btn.maps {
  background: linear-gradient(135deg, #2e683a 0%, #4a7c3a 100%);
  color: #fff;
}
.topbar-btn.maps:hover {
  box-shadow: 0 12px 28px rgba(46, 104, 58, 0.5);
}
.topbar-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}
@media (max-width: 540px) {
  #topbar {
    gap: 0.4rem;
    padding: calc(0.35rem + env(safe-area-inset-top)) 0.6rem 0.35rem;
  }
  .topbar-label {
    flex: 1 0 100%;
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
    text-align: center;
  }
  .topbar-actions {
    justify-content: center;
  }
  .topbar-btn {
    font-size: 0.78rem;
    padding: 0.34rem 0.65rem;
    gap: 0.32rem;
  }
  .topbar-btn svg {
    width: 13px;
    height: 13px;
  }
}
@media (max-width: 480px) {
  #topbar {
    padding: calc(0.45rem + env(safe-area-inset-top)) 0.5rem 0.45rem;
  }
  .topbar-label {
    display: none;
  }
  .topbar-actions {
    width: 100%;
    gap: 0.35rem;
    align-items: stretch;
  }
  .topbar-btn {
    flex: 1;
    flex-direction: column;
    min-height: 52px;
    min-width: unset;
    padding: 0.45rem 0.2rem;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  .topbar-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

/* ══════════════════════════════════════════
               HERO
            ══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: min(92svh, 92vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--topbar-offset) + 1.2rem) 1rem 4rem;
  overflow: visible;
}

/* Animated gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    #0a1f0a 0%,
    #122e12 20%,
    #1a4a1a 38%,
    #2d5e2d 55%,
    #8a5a10 72%,
    #c8860a 85%,
    #1a4a1a 100%
  );
  background-size: 300% 300%;
  animation: heroBg 16s ease infinite;
  z-index: 0;
}
@keyframes heroBg {
  0% {
    background-position: 0% 30%;
  }
  50% {
    background-position: 100% 70%;
  }
  100% {
    background-position: 0% 30%;
  }
}
/* Vignette overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
}
/* Grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}
/* Decorative leaf shapes */
.hero-leaf {
  position: absolute;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
}
.hero-leaf-1 {
  top: -60px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--g400) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-leaf-2 {
  bottom: 60px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--gold-warm) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Shop name ── */
.shop-name {
  text-align: center;
  padding: 6.5rem 1rem 0.75rem;
}
@media (max-width: 640px) {
  #hero {
    padding-top: 0;
    min-height: auto;
    padding-bottom: 2.5rem;
  }
  .shop-name {
    padding: 5rem 1rem 0.6rem;
  }
}
.shop-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 134, 10, 0.22);
  border: 1px solid rgba(200, 134, 10, 0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.7rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.shop-name h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.shop-name h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.shop-name h1 .dynamic-text {
  font-style: italic;
  color: var(--gold-light);
  display: inline-block;
  min-width: 260px;
  height: 1.2em;
  position: relative;
  vertical-align: bottom;
  text-align: center;
}
.shop-name h1 .dynamic-text .dt-word {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  white-space: nowrap;
}
.shop-name h1 .dynamic-text .dt-word.active {
  opacity: 1;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background var(--t),
    border-color var(--t);
}
.hero-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-badge .badge-icon {
  font-size: 1rem;
  line-height: 1;
}
.hero-badge .badge-label {
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-badge .badge-sub {
  display: none;
}

/* Hero badges mobile: colonna per allineamento uniforme */
@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.38rem 0.75rem;
  }
}

/* ── Chatbot Scene (mascot sits on top) ── */
.chatbot-scene {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  overflow: visible;
}

/* ── Mascotte Section ── */
.mascotte-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* ── Pill button immagine ── */
/* ── CTA Buttons (Ordina Chattando / Ordina dal Catalogo) ── */
.cta-pill-wrap {
  display: flex;
  justify-content: center;
  margin: 0.6rem 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-btn__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.cta-btn__text {
  line-height: 1.2;
}

.cta-btn--chat {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.cta-btn--catalogo {
  background: linear-gradient(135deg, #ef6c00, #e65100);
}

@media (max-width: 480px) {
  .cta-btn {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
  }
  .cta-btn__icon {
    font-size: 1.4rem;
  }
}

/* ── Mascot ── */
.mascot-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 21;
}

.mascot-inner {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 320px;
  height: 320px;
  max-width: 100%;
}

.mascot-svg {
  width: 100%;
  height: auto;
  display: none;
  position: relative;
  z-index: 22;
  transform-origin: center top;
  filter: drop-shadow(0 6px 18px rgba(183, 28, 28, 0.18)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

/* Ombra sotto i piedi della mascotte */
.mascot-wrap::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  z-index: 20;
  border-radius: 50%;
  pointer-events: none;
}
.mascot-wrap:hover .mascot-inner {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 24px rgba(183, 28, 28, 0.22))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
}
.mascot-wrap:active .mascot-inner {
  transform: scale(0.95);
}

/* Leg swing animations */

/* Mascot hint bubble — fumetto a destra/in alto, non copre la mascotte */
.mascot-hint {
  display: none !important;
}
.mascot-hint::before {
  content: none;
}
.mascot-hint::after {
  content: none;
}
.mascot-hint.show {
  display: none !important;
}
.mascot-hint-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.mascot-hint-close:hover {
  opacity: 1;
  color: var(--text);
}

/* ══════════════════════════════════════════
               CHATBOT
            ══════════════════════════════════════════ */
#chatbot {
  position: relative;
  width: 100%;
  max-width: 720px;
  background:
    radial-gradient(circle at 20% 20%, rgba(36, 102, 60, 0.45), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(190, 24, 93, 0.45), transparent 40%),
    linear-gradient(180deg, #0b2d1b 0%, #0c2418 50%, #0a1a13 100%);
  border-radius: var(--r);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  display: none;
  flex-direction: column;
  min-height: 440px;
  max-height: min(72vh, 72dvh);
  overflow: hidden;
}
#chatbot.open {
  display: flex;
  animation: chatbotSlideIn 0.45s ease both;
}
@keyframes chatbotSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chat header — banner con carrello */
.chat-header {
  background: linear-gradient(145deg, #0f5c35 0%, #0c4728 60%, #0b3b23 100%);
  padding: 0.82rem 0.95rem 0.82rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  z-index: 3;
}
.chat-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.chat-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.chat-hdr-name {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
}
.chat-hdr-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.2;
}
.chat-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  justify-self: end;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(239, 252, 242, 0.9);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chat-status .chat-dot {
  background: #8df29f;
}
.chat-cart-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: none;
  justify-self: end;
  background: linear-gradient(145deg, #27d663, #109547 72%);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.chat-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.floating-cart-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.chat-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: #ff3b6b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #0c4728;
}
.chat-cart-badge[data-count="0"] {
  display: none;
}
.chat-dot {
  width: 8px;
  height: 8px;
  background: #4eff91;
  border-radius: 50%;
  box-shadow: 0 0 7px #4eff91;
  animation: dotPulse 2.2s ease infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.85);
  }
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 0.9rem 0.95rem 0.55rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  position: relative;
  z-index: 1;
  background: transparent;
}
.msg {
  display: flex;
  gap: 0.38rem;
  align-items: flex-end;
  max-width: 88%;
  animation: msgIn 0.22s ease both;
}
.msg.bot {
  align-self: flex-start;
}
.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-av {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  align-self: flex-end;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.msg-av img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.msg.user .msg-av {
  display: none;
}
.msg-bubble {
  padding: 0.88rem 1rem 2.1rem;
  border-radius: 20px;
  font-size: 0.97rem;
  line-height: 1.56;
  overflow-wrap: break-word;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.msg.bot .msg-bubble {
  background: rgba(16, 58, 41, 0.72);
  color: #eaf5ef;
  border-bottom-left-radius: 8px;
}
.msg.user .msg-bubble {
  background: rgba(14, 62, 43, 0.68);
  color: #ebf7ee;
  border-color: rgba(170, 236, 190, 0.12);
  border-bottom-right-radius: 8px;
}
.msg-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}
.msg-action-btn {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  color: #7ded9b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
}
.msg-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.msg-action-btn.tts-active {
  background: #23c65a;
  color: #fff;
}
.msg-actions .msg-action-btn {
  position: static;
  padding: 0.38rem 0.72rem;
}

/* Typing */
.typing-wrap {
  display: flex;
  gap: 0.38rem;
  align-items: flex-end;
  max-width: 86%;
}
.typing-bbl {
  padding: 0.62rem 0.92rem;
  background: rgba(16, 58, 41, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  border-bottom-left-radius: 7px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.typing-lbl {
  font-size: 0.76rem;
  color: rgba(234, 245, 239, 0.78);
  white-space: nowrap;
  font-style: italic;
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--ivory-3);
  border-radius: 50%;
  animation: dtPulse 1.35s ease-in-out infinite;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.18s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes dtPulse {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  padding: 0.1rem 0.95rem 0.58rem;
  flex-shrink: 0;
  background: transparent;
}
.qr-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(127, 194, 74, 0.28);
  border-radius: var(--r-pill, 999px);
  background: rgba(255, 255, 255, 0.96);
  color: var(--g-700, #245524);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--t),
    color var(--t),
    transform var(--t-spring),
    box-shadow var(--t),
    border-color var(--t);
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(30, 20, 10, 0.08);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.005em;
  text-align: center;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
}
.qr-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--g-accent, #7fc24a);
  color: var(--g-800, #1a4a1a);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(30, 20, 10, 0.12),
    0 0 0 4px rgba(127, 194, 74, 0.12);
}
.qr-btn:active {
  transform: scale(0.96);
  background: rgba(235, 250, 240, 0.95);
}
.qr-btn.confirm {
  background: linear-gradient(180deg, #f5c842 0%, #e5a820 100%);
  color: #5a3800;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(78, 46, 7, 0.18);
}
.qr-btn.confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(78, 46, 7, 0.24);
}
/* Pulsante Indietro — stile secondario */
.qr-btn.qr-back {
  background: transparent;
  border: 1.5px dashed rgba(45, 106, 45, 0.3);
  color: #5a7d5a;
  font-weight: 500;
  box-shadow: none;
}
.qr-btn.qr-back:hover {
  background: rgba(245, 250, 245, 0.6);
  border-color: rgba(45, 106, 45, 0.45);
}

/* Input — nascosto di default, visibile solo per dati personali */
.chat-input-row {
  position: relative;
  z-index: 10;
  padding: 0 1rem calc(0.95rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: transparent;
  flex-shrink: 0;
}
.chat-input-row.hidden {
  display: none;
}
.chat-input-row .input-wrap {
  position: relative;
  flex: 1;
}
.chat-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    background var(--t);
  background: #fff;
  color: var(--text);
  min-height: 58px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.chat-input:focus {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.chat-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #23c65a, #119445);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 18px rgba(45, 106, 45, 0.42);
}
.chat-send:active {
  transform: scale(0.93);
}
.chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.chat-send svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.chat-send .send-label {
  display: none;
}

.chat-input-row.phone-mode .chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 122px;
  padding: 0 1rem;
  border-radius: 999px;
  gap: 0.45rem;
}

.chat-input-row.phone-mode .chat-send .send-label {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chat-input-row.phone-mode .chat-send svg {
  width: 18px;
  height: 18px;
}

.chat-input-row.phone-mode .chat-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
/* Order card */
.order-card {
  background: var(--ivory);
  border: 1px solid var(--ivory-3);
  border-left: 3px solid var(--g500);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.85;
  margin-top: 0.2rem;
  color: var(--text);
}
.order-card strong {
  color: var(--g700);
}
.order-card em,
.order-card small,
.order-card br + span,
.order-card br + em {
  color: var(--text-soft);
}

/* Success — conferma visiva forte */
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 1.4rem;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, var(--ivory) 40%);
  animation: fadeUp 0.5s ease both;
  gap: 0.9rem;
  border: 3px solid var(--g400);
  border-radius: var(--r);
  margin: 0.5rem;
  box-shadow:
    0 0 0 8px rgba(61, 139, 61, 0.12),
    inset 0 0 60px rgba(61, 139, 61, 0.06);
}
.success-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--g500), var(--g600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.2rem;
  animation: successPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 8px 32px rgba(45, 106, 45, 0.45);
}
.success-video-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--g500), var(--g600));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 8px 32px rgba(45, 106, 45, 0.45);
  flex-shrink: 0;
}
.success-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.success-video-fallback {
  display: none;
  font-size: 3.8rem;
  line-height: 1;
}
.success-video-wrap.no-video .success-video {
  display: none;
}
.success-video-wrap.no-video .success-video-fallback {
  display: block;
}
@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.success-screen h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--g800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.success-sub {
  font-size: 1.05rem;
  color: var(--g700);
  font-weight: 600;
  margin-top: -0.3rem;
}
.success-phase2 .success-encourage {
  animation: encouragePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-phase2 .success-encourage-msg {
  animation: encouragePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes encouragePop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.success-step {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--ivory-3);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}
.success-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #fff;
}
.success-step-num.done {
  background: var(--g500);
}
.success-step-num.todo {
  background: #25d366;
}
.success-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: waPulse 2s ease-in-out infinite;
}
.success-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
.success-wa-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7);
  }
}
.success-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.success-delivery-van {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 36px;
  margin-top: 0.2rem;
}
.success-delivery-van svg {
  width: 100%;
  height: 100%;
}
.success-delivery-van .van-body {
  fill: var(--g600);
}
.success-delivery-van .van-cab {
  fill: var(--g700);
}
.success-delivery-van .van-wheel {
  fill: #333;
}
.success-delivery-van .motion-line {
  stroke: var(--g400);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.75;
  animation: vanMotionDash 0.8s linear infinite;
}
.success-delivery-van .motion-line:nth-child(2) {
  animation-delay: 0.15s;
}
.success-delivery-van .motion-line:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes vanMotionDash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -9;
  }
}
.success-modify-btn {
  background: none;
  border: none;
  color: var(--g600);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem 0;
  margin-top: 0.3rem;
  font-family: inherit;
}
.success-modify-btn:hover {
  color: var(--g800);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.confetti-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}
.floating-cart-wrap {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 15;
}
.floating-cart-wrap.hidden {
  display: none;
}
.floating-cart {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--g400);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(45, 106, 45, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.floating-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(45, 106, 45, 0.3);
}
.floating-cart-icon {
  font-size: 1.4rem;
}
.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--gold-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-cart-badge[data-count="0"] {
  display: none;
}
.floating-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 10, 0.44);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 24;
}
.floating-cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.floating-cart-popover {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom));
  max-height: min(58vh, 460px);
  background: linear-gradient(180deg, rgba(8, 33, 20, 0.96) 0%, rgba(12, 44, 28, 0.98) 100%);
  border-radius: 22px;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(154, 235, 177, 0.1);
  border: 1px solid rgba(154, 235, 177, 0.14);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.floating-cart-popover.open {
  display: flex;
  animation: cartSheetIn 0.24s ease both;
}
@keyframes cartSheetIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cart-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(154, 235, 177, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.cart-sheet-title {
  font-size: 1rem;
  font-weight: 800;
  color: #effcf2;
}
.cart-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(154, 235, 177, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #effcf2;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.cart-sheet-body {
  overflow-y: auto;
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cart-sheet-empty {
  color: rgba(234, 245, 239, 0.74);
  font-size: 0.92rem;
  padding: 0.5rem 0.1rem;
}
.cart-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 235, 177, 0.1);
  border-radius: 14px;
  padding: 0.65rem 0.7rem;
}
.cart-item-main {
  min-width: 0;
}
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #effcf2;
  line-height: 1.3;
}
.cart-item-meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(234, 245, 239, 0.74);
}
.cart-item-remove {
  border: 1px solid rgba(220, 38, 38, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #ff8f8f;
  border-radius: 999px;
  height: 30px;
  min-width: 30px;
  padding: 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-sheet-footer {
  padding: 0.85rem 0.95rem calc(0.95rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(154, 235, 177, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.6rem;
}
.cart-sheet-total {
  font-size: 1rem;
  font-weight: 800;
  color: #effcf2;
}
.cart-sheet-actions {
  display: flex;
  gap: 0.55rem;
}
.cart-sheet-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}
.cart-sheet-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 235, 177, 0.16);
  color: #e9f6ec;
}
.cart-sheet-btn.primary {
  background: linear-gradient(145deg, #25d366, #22c55e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.28);
}
@media (max-width: 640px) {
  .chat-header {
    grid-template-columns: auto 1fr auto;
  }
  .chat-status {
    display: none;
  }
  .chat-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }
  .chat-messages {
    padding: 0.85rem 0.78rem 0.5rem;
  }
  .msg {
    max-width: 91%;
  }
  .floating-cart-popover {
    left: 0.55rem;
    right: 0.55rem;
    bottom: calc(0.55rem + env(safe-area-inset-bottom));
    max-height: min(60vh, 430px);
  }
  .cart-sheet-actions {
    flex-direction: column;
  }
}
.cart-sheet-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.cart-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g600);
  background: rgba(45, 106, 45, 0.1);
  border: 1px solid rgba(45, 106, 45, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-listen-btn:hover {
  background: rgba(45, 106, 45, 0.18);
  color: var(--g700);
}
.cart-listen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.toast-cart {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--g600);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(45, 106, 45, 0.4);
  z-index: 100;
  opacity: 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.toast-cart.show {
  animation: toastIn 0.4s ease forwards;
}
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.45rem;
  max-height: 168px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(11, 34, 22, 0.96);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(164, 235, 185, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 35;
  display: none;
  touch-action: pan-y;
}
.autocomplete-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 0.45rem);
}
.autocomplete-dropdown.open {
  display: block;
}
.autocomplete-item {
  padding: 0.68rem 0.95rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(239, 252, 242, 0.94);
  border-bottom: 1px solid rgba(164, 235, 185, 0.09);
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(38, 198, 97, 0.18);
  color: #fff;
}
.autocomplete-item-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
.autocomplete-main {
  font-weight: 700;
}
.autocomplete-secondary {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(234, 245, 239, 0.68);
}

/* ══════════════════════════════════════════
               FRUIT REVEAL (scroll-driven canvas)
            ══════════════════════════════════════════ */
#fruit-reveal {
  position: relative;
  height: 300vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(60, 147, 79, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(143, 211, 156, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a1f0a 0%, #0d2a15 100%);
  color: #fff;
  overflow: clip;
}
.fr-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 5vh, 4rem) 1rem;
}
.fr-stage {
  position: relative;
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 2vw, 24px);
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(143, 211, 156, 0.12);
}
#fr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0a1f0a;
}
.fr-caption {
  text-align: center;
  width: min(92%, 640px);
}
.fr-caption h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.fr-caption h2 em {
  font-style: italic;
  color: #a9dfb4;
}
.fr-caption p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  #fruit-reveal {
    height: auto;
  }
  .fr-sticky {
    position: relative;
    min-height: auto;
    padding: 3rem 1rem 4rem;
  }
}

/* ══════════════════════════════════════════
               WAVE DIVIDERS
            ══════════════════════════════════════════ */
.wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave svg {
  display: block;
  width: 100%;
  height: 42px;
}

/* ══════════════════════════════════════════
               SECTION: CONSEGNA GRATUITA
            ══════════════════════════════════════════ */
#consegna {
  background:
    radial-gradient(circle at top, rgba(60, 147, 79, 0.14) 0%, transparent 30%),
    linear-gradient(180deg, #103a29 0%, #0d301f 100%);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: visible;
  text-align: center;
}
#consegna::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(90, 173, 90, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.consegna-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 2rem 1.4rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(166, 235, 186, 0.12);
  box-shadow:
    0 24px 60px rgba(1, 17, 10, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}
.consegna-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(41, 122, 57, 0.32);
  border: 1px solid rgba(215, 177, 62, 0.25);
  color: #f3c76f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.consegna-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.7rem;
  hyphens: none;
}
.consegna-title em {
  font-style: italic;
  color: var(--gold-light);
}
.consegna-sub {
  font-size: 0.95rem;
  color: rgba(233, 246, 236, 0.76);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
.consegna-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin: 1.4rem auto;
  opacity: 0.8;
}
.consegna-label {
  font-size: 0.78rem;
  color: rgba(233, 246, 236, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Country pills */
.country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.country-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.52rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(166, 235, 186, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  transition:
    transform var(--t),
    background var(--t),
    border-color var(--t);
}
.country-pills li:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(126, 214, 152, 0.32);
  transform: translateY(-1px);
}
.country-pills li::before {
  content: "📍";
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
               SECTION: FAQ
            ══════════════════════════════════════════ */
#faq {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.section-inner {
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g500);
  margin-bottom: 0.65rem;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--g900);
  margin-bottom: 1.8rem;
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  color: var(--g600);
}

.faq-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(46, 104, 58, 0.1);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(46, 104, 58, 0.25);
  box-shadow: 0 8px 24px rgba(26, 45, 26, 0.06);
}
.faq-item.open {
  border-color: var(--g600);
  box-shadow: 0 12px 32px rgba(46, 104, 58, 0.12);
}
.faq-item.open::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--g600);
}

.faq-q {
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--g900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--t);
  min-height: 52px;
}
.faq-q:hover {
  color: var(--g700);
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(46, 104, 58, 0.08);
  color: var(--g700);
  display: grid;
  place-items: center;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    color 0.3s ease;
}
.faq-icon svg {
  width: 14px;
  height: 14px;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--g600);
  color: #fff;
}
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0 1.4rem;
  font-size: 0.96rem;
  color: #5a5c58;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 420px;
  opacity: 1;
  padding: 0 1.4rem 1.2rem;
}

/* ══════════════════════════════════════════
               SECTION: CHI SIAMO
            ══════════════════════════════════════════ */
#chi-siamo {
  background: var(--ivory);
  padding: 3rem 1.5rem;
}
.about-inner {
  max-width: 960px;
  margin: 0 auto;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-visual {
  position: relative;
}
/* Photo card in Chi siamo */
.about-photo-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ivory-3);
  position: relative;
  background: linear-gradient(145deg, var(--g50), var(--gold-pale));
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(145deg, var(--g50), var(--gold-pale));
  padding: 1.5rem;
}
.about-photo-placeholder-icon {
  font-size: 2.5rem;
}
.about-photo-placeholder-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}
.about-badge-float {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}
.about-text .eyebrow {
  margin-bottom: 0.75rem;
}
.about-text .section-title {
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.chip {
  padding: 0.32rem 0.82rem;
  background: var(--g50);
  color: var(--g700);
  border: 1px solid var(--g100);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  transition:
    background var(--t),
    border-color var(--t);
}
.chip:hover {
  background: var(--g100);
  border-color: var(--g400);
}

/* ══════════════════════════════════════════
               MAP CARD & DIRECTIONS
            ══════════════════════════════════════════ */
.map-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--ivory-3);
}
.map-preview {
  width: 100%;
  height: 170px;
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 40%, #dcedc8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(45, 106, 45, 0.07) 0px,
      rgba(45, 106, 45, 0.07) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(45, 106, 45, 0.07) 0px,
      rgba(45, 106, 45, 0.07) 1px,
      transparent 1px,
      transparent 48px
    );
}
.map-preview::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 8px;
  background: rgba(61, 139, 61, 0.18);
  border-radius: 50%;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(4px);
}
.map-pin {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pinBounce 2.5s ease-in-out infinite;
}
.map-pin-head {
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, var(--g500), var(--g700));
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(45, 106, 45, 0.4);
}
.map-pin-head span {
  transform: rotate(45deg);
  font-size: 1.3rem;
}
.map-pin-tail {
  width: 4px;
  height: 14px;
  background: linear-gradient(to bottom, var(--g700), rgba(45, 106, 45, 0.3));
  border-radius: 0 0 4px 4px;
}
@keyframes pinBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.map-info {
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.map-info-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.map-info-addr {
  font-size: 0.76rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.map-info-addr svg {
  width: 12px;
  height: 12px;
  fill: var(--g500);
  flex-shrink: 0;
}
.map-info-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.map-info-stars .stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.map-info-stars span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, var(--g500), var(--g700));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity var(--t),
    transform var(--t);
  letter-spacing: 0.03em;
}
.directions-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
}
.directions-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.about-badge-float {
  z-index: 2;
}

/* ══════════════════════════════════════════
               RECENSIONI
            ══════════════════════════════════════════ */
#recensioni {
  background: var(--ivory-2);
  padding: 3rem 1.5rem;
}
.reviews-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.reviews-header {
  text-align: center;
  margin-bottom: 1rem;
}
.reviews-header .eyebrow {
  margin-bottom: 0.7rem;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  margin: 0.5rem auto 1.2rem;
  background: #fff;
  border: 1px solid var(--ivory-3);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
}
.google-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.reviews-overall {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.reviews-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-family: "Playfair Display", serif;
}
.reviews-overall-right {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.reviews-overall-stars {
  color: #f59e0b;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
.reviews-overall-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
.review-card {
  background: #fff;
  border-radius: var(--r);
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--ivory-3);
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow var(--t),
    transform var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.review-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.review-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-soft);
  flex: 1;
}
.review-via {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.review-via svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.reviews-cta {
  text-align: center;
  margin-top: 0.5rem;
}
.reviews-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.8rem;
  background: #fff;
  border: 2px solid var(--g400);
  border-radius: 50px;
  color: var(--g700);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.reviews-cta-btn:hover {
  background: var(--g50);
  border-color: var(--g500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.reviews-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
               FOOTER
            ══════════════════════════════════════════ */
#footer {
  background: var(--g900);
  color: #fff;
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
}
.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.footer-logo-mascot {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.footer-col p,
.footer-col a {
  font-size: 1rem;
  line-height: 2.1;
  opacity: 0.78;
  color: #fff;
  text-decoration: none;
  display: block;
}
.footer-col a:hover {
  opacity: 1;
}
.footer-desc {
  font-size: 1rem;
  line-height: 1.85;
  opacity: 0.68;
  color: #fff;
}
.footer-tel {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  color: var(--gold-light) !important;
  margin-bottom: 0.5rem;
}

.share-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.share-row.vertical {
  flex-direction: column;
  gap: 0.4rem;
}
.share-col-tagline {
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.1rem;
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    filter 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.share-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.share-btn:hover::before {
  opacity: 1;
}
.share-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: #fff;
}
.share-btn:hover {
  transform: translateY(-2px) scale(1.04);
}
.share-btn:active {
  transform: scale(0.95);
}
.share-btn.wa {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
}
.share-btn.wa:hover {
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}
.share-btn.fb {
  background: linear-gradient(135deg, #1877f2, #145dbf);
  color: #fff;
}
.share-btn.fb:hover {
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45);
}
.share-btn.ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #bc1888);
  color: #fff;
  grid-column: 1 / -1;
}
.share-btn.ig:hover {
  box-shadow: 0 8px 22px rgba(188, 24, 136, 0.4);
}
.footer-contact-sep {
  font-size: 0.66rem;
  opacity: 0.38;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact-sep::before,
.footer-contact-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-divider {
  max-width: 960px;
  margin: 2.5rem auto 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom {
  max-width: 960px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  /* No opacity qui: l'opacity del parent si propaga ai figli via compositing
     e portava il contrasto dei link legali sotto WCAG AA (4.5:1). Usiamo un
     grigio esplicito che sull'#0f2e0f del footer resta oltre 7:1. */
  color: #d8d8d8;
}
.footer-bottom a {
  /* Bianco pieno sui link legali: deve restare leggibile anche su mobile
     dove spesso il footer è il primo punto di contatto con privacy policy,
     cookie policy ecc. — elementi GDPR-rilevanti che devono essere
     chiaramente visibili. */
  color: #ffffff;
  text-decoration: underline;
}

/* ══════════════════════════════════════════
               COOKIE MODAL BANNER
            ══════════════════════════════════════════ */
#cookie-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0s;
}
#cookie-banner-overlay.show {
  visibility: visible;
  pointer-events: all;
}

/* Il banner NON usa una transizione di opacity per entrare/uscire: axe-core
   valuta il contrasto contro i colori compositati mid-transition e su uno
   sfondo semi-trasparente i bottoni risultano sotto WCAG AA per una frazione
   di secondo. Usiamo visibility + scale: l'animazione di scale resta, ma i
   colori sono sempre pieni. */
#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.95);
  visibility: hidden;
  pointer-events: none;
  background: rgb(12, 12, 12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  z-index: 9999;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.5s;
}
#cookie-banner.show {
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
  pointer-events: all;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}
.cookie-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.88;
}
.cookie-text a {
  color: var(--gold-light);
  text-decoration: underline;
}
.cookie-btns {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.ck-btn {
  padding: 0.58rem 1.3rem;
  border-radius: 50px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition:
    transform var(--t),
    opacity var(--t);
}
.ck-btn:hover {
  transform: scale(1.05);
}
.ck-btn.accept {
  background: var(--g600);
  color: #fff;
}
.ck-btn.reject {
  background: var(--red-medium);
  color: #fff;
}
.ck-btn.necessary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ══════════════════════════════════════════
               CATALOGO PRODOTTI
            ══════════════════════════════════════════ */

#catalogo-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease,
    padding 0.4s ease;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background:
    radial-gradient(circle at top, rgba(58, 154, 79, 0.12) 0%, transparent 34%),
    linear-gradient(180deg, rgba(16, 58, 41, 0.96), rgba(11, 40, 29, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(165, 236, 187, 0.12);
}
#catalogo-panel.open {
  max-height: min(82vh, 820px);
  overflow: hidden;
  opacity: 1;
  padding: 1.5rem 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow:
    0 24px 60px rgba(1, 17, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}
/* Solo la grid scrolla — summary/form sempre visibili sotto */
#catalogo-panel.open .cat-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 235, 186, 0.35) rgba(255, 255, 255, 0.04);
}
#catalogo-panel.open .cat-grid::-webkit-scrollbar {
  width: 8px;
}
#catalogo-panel.open .cat-grid::-webkit-scrollbar-thumb {
  background: rgba(166, 235, 186, 0.35);
  border-radius: 4px;
}
#catalogo-panel.open .cat-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
#catalogo-panel.open .cat-summary {
  flex: 0 0 auto;
}

.cat-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.cat-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #effcf2;
  margin-bottom: 0.5rem;
}
.cat-subtitle {
  font-size: 0.9rem;
  color: rgba(233, 246, 236, 0.72);
}

.cat-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cat-filter {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(166, 235, 186, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f7ee;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.cat-filter:hover {
  border-color: rgba(126, 214, 152, 0.4);
  background: rgba(37, 211, 102, 0.12);
}
.cat-filter.active {
  background: linear-gradient(145deg, #25d366, #22c55e);
  color: #0f291b;
  border-color: transparent;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cat-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 1rem;
  border: 1px solid rgba(166, 235, 186, 0.12);
  box-shadow: 0 16px 38px rgba(1, 17, 10, 0.18);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(1, 17, 10, 0.28);
  border-color: rgba(126, 214, 152, 0.3);
}
.cat-card-img {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.cat-card-img-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.cat-card-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cat-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(126, 214, 152, 0.08), rgba(200, 134, 10, 0.06));
  border-radius: 8px;
}
.cat-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #effcf2;
  margin-bottom: 0.4rem;
  width: 100%;
}
.cat-card-price {
  font-size: 0.85rem;
  color: #f3c76f;
  margin-bottom: 0.8rem;
}
.cat-card-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.6rem;
  width: 100%;
}
.cat-qty-input {
  width: 60px;
  padding: 0.55rem 0.45rem;
  border: 1px solid rgba(166, 235, 186, 0.14);
  border-radius: 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #effcf2;
  background: rgba(255, 255, 255, 0.08);
}
.cat-unit-select,
.cat-unit-fixed {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(166, 235, 186, 0.14);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #effcf2;
  background: rgba(255, 255, 255, 0.08);
}
.cat-unit-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.85;
}
.cat-add-btn {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(145deg, #25d366, #22c55e);
  color: #0f291b;
  border: none;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
.cat-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.26);
  filter: brightness(1.03);
}

.cat-summary {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(166, 235, 186, 0.12);
  margin-top: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cat-summary-title {
  font-weight: 700;
  font-size: 1rem;
  color: #effcf2;
  margin-bottom: 0.8rem;
}
.cat-summary-items {
  font-size: 0.9rem;
  color: rgba(233, 246, 236, 0.82);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.cat-summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f3c76f;
  margin-bottom: 1rem;
}
.cat-wa-btn {
  width: 100%;
  padding: 0.9rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.cat-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.cat-wa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Catalog Order Form ── */
.cat-order-form {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
  background: rgba(8, 33, 20, 0.85);
  border: 1px solid rgba(154, 235, 177, 0.18);
  border-radius: 18px;
  margin-top: 0.8rem;
  animation: catFormIn 0.35s ease both;
}
.cat-order-form.open {
  display: flex;
}
@keyframes catFormIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cat-form-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #effcf2;
  text-align: center;
  margin-bottom: 0.2rem;
}
.cat-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cat-form-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(234, 245, 239, 0.8);
  letter-spacing: 0.02em;
}
.cat-form-row input,
.cat-form-row select,
.cat-form-row textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(154, 235, 177, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #effcf2;
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.cat-form-row input:focus,
.cat-form-row select:focus,
.cat-form-row textarea:focus {
  border-color: rgba(37, 211, 102, 0.5);
}
.cat-form-row input::placeholder,
.cat-form-row textarea::placeholder {
  color: rgba(234, 245, 239, 0.4);
}
.cat-form-row select option {
  background: #0b2d1b;
  color: #effcf2;
}
.cat-form-row textarea {
  resize: vertical;
  min-height: 60px;
}
#cat-form-address-row {
  position: relative;
  z-index: 3;
}
#cat-address-autocomplete-dropdown {
  z-index: 40;
}
.cat-form-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #25d366;
}
.cat-form-submit {
  width: 100%;
  padding: 0.85rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-top: 0.3rem;
}
.cat-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.cat-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.cat-form-submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.cat-form-error {
  font-size: 0.8rem;
  color: #ff8f8f;
  display: none;
}
.cat-form-error.show {
  display: block;
}
.cat-form-back {
  background: none;
  border: none;
  color: rgba(234, 245, 239, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.3rem 0;
  text-align: center;
  font-family: inherit;
}
.cat-form-back:hover {
  color: #effcf2;
}

/* ══════════════════════════════════════════
               SCROLL-TO-TOP
            ══════════════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.35rem;
  width: 48px;
  height: 48px;
  background: var(--g700);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 998;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ══════════════════════════════════════════
               MOBILE
            ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .mascot-inner {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  #chatbot {
    max-height: 80vh;
    max-height: 80dvh;
  }
  .chat-hdr-sub {
    display: none;
  }
  #footer {
    padding: 2.5rem 1rem 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  #cookie-banner {
    padding: 1rem 1.25rem;
  }
  .chatbot-scene {
    padding-top: 0;
  }
  .mascot-wrap {
    margin-top: -60px;
  }
  .mascot-svg {
    width: 142px;
  }
  .mascot-hint {
    left: calc(100% - 35px);
    margin-left: 12px;
    max-width: 200px;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  #catalogo-toggle {
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
  }
  .cat-title {
    font-size: 1.4rem;
  }
}

/* ══════════════════════════════════════════
               ACCESSIBILITÀ — Touch targets & font sizes
            ══════════════════════════════════════════ */

/* Touch targets minimi 44×44px */
.mascot-hint-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-action-btn {
  min-height: 36px;
  min-width: 72px;
}
#nav-toggle {
  width: 44px;
  height: 44px;
}

/* Font sizes: nessun testo sotto 12px */
.topbar-label {
  font-size: 0.8rem;
}
.chip {
  font-size: 0.78rem;
}

/* Chatbot min-height per mobile */
@media (max-width: 640px) {
  #chatbot {
    min-height: min(480px, 75vh);
  }
}
@media (max-height: 600px) {
  #chatbot {
    min-height: auto;
    max-height: 90vh;
  }
}

/* ══════════════════════════════════════════
               SKIP TO CONTENT — accessibilità tastiera
            ══════════════════════════════════════════ */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99999;
  background: var(--g700);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 1rem;
}

/* ══════════════════════════════════════════
               MOBILE EXPERIENCE FIXES
            ══════════════════════════════════════════ */

/* Fix #1 — iOS Input Zoom: force 16px on all inputs to prevent Safari auto-zoom */
@media (max-width: 768px) {
  .cat-qty-input,
  .cat-unit-select,
  .cat-form-row input,
  .cat-form-row select,
  .cat-form-row textarea {
    font-size: 1rem;
  }
}

/* Fix #5 — backdrop-filter performance: remove blur on less critical elements on mobile */
@media (max-width: 768px) {
  .consegna-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 33, 20, 0.98);
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
  .autocomplete-dropdown {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 34, 22, 0.98);
  }
  .shop-pretitle {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Fix #6 — Touch: global tap delay removal */
a,
button,
[role="button"],
input,
select,
textarea,
.qr-btn,
.topbar-btn,
.faq-q,
.share-btn,
.cat-filter,
.cat-add-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Fix #6 — Hover-only interactions: apply hover effects only on devices with true hover */
@media (hover: none) {
  .review-card:hover {
    box-shadow: var(--shadow-xs);
    transform: none;
  }
  .faq-item:hover {
    box-shadow: none;
    transform: none;
  }
  .qr-btn:hover {
    transform: none;
  }
  .share-btn:hover {
    transform: none;
  }
  .share-btn:hover::before {
    opacity: 0;
  }
  .country-pills li:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(166, 235, 186, 0.12);
  }
  .cat-card:hover {
    transform: none;
    box-shadow: 0 16px 38px rgba(1, 17, 10, 0.18);
  }
  .floating-cart:hover {
    transform: none;
  }
}

/* Fix #8 — FAQ max-height: allow longer answers on mobile */
@media (max-width: 640px) {
  .faq-item.open .faq-a {
    max-height: 600px;
  }
}

/* Fix #9 — Catalog: keep 2 columns on small mobile with compact cards */
@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .cat-card {
    padding: 0.65rem;
    border-radius: 16px;
  }
  .cat-card-img-wrap {
    height: 80px;
    margin-bottom: 0.5rem;
  }
  .cat-card-name {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }
  .cat-card-price {
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
  }
  .cat-card-controls {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .cat-qty-input {
    width: 50px;
    padding: 0.45rem 0.3rem;
  }
  .cat-add-btn {
    padding: 0.55rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 10px;
  }
}

/* Fix #10 — Scroll-to-top: safe-area positioning */
@media (max-width: 768px) {
  #scroll-top {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Fix #14 — Quick replies: tighter on mobile */
@media (max-width: 480px) {
  .quick-replies {
    padding: 0.1rem 0.6rem 0.58rem;
  }
  .qr-btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    min-height: 40px;
  }
}

/* Fix #15 — Landscape orientation: prevent overflow */
@media (max-height: 500px) and (orientation: landscape) {
  #chatbot {
    max-height: 85vh;
    max-height: 85dvh;
    min-height: auto;
  }
  #hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 2rem;
  }
  .shop-name {
    padding-top: 2rem;
  }
  #cookie-banner {
    max-height: 90vh;
    overflow-y: auto;
  }
  .mascot-wrap {
    display: none;
  }
}

/* Fix #17 — Remove CSS smooth scroll (GSAP ScrollTo handles it, avoids conflict with ScrollTrigger) */
html {
  scroll-behavior: auto;
}

/* Fix #20 — will-change hints for animated elements */
.mascot-svg,
.mascot-inner {
  will-change: transform;
}
#navbar.scrolled {
  will-change: background, padding;
}

/* ══════════════════════════════════════════
               MOBILE UX IMPROVEMENTS
            ══════════════════════════════════════════ */

/* Fix #22 — Consegna title: size ridotto + niente trattini su mobile */
@media (max-width: 480px) {
  .consegna-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    hyphens: none;
  }
}

/* Fix #23 — Consegna tag: no wrap su mobile */
@media (max-width: 540px) {
  .consegna-tag {
    white-space: nowrap;
    font-size: 0.63rem;
    padding: 0.26rem 0.7rem;
    letter-spacing: 0.08em;
  }
}

/* ══════════════════════════════════════════
               PREFERS-REDUCED-MOTION
            ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mascot-svg {
    animation: none !important;
    filter: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
