/* ==========================================================================
         FONTS SELF-HOSTED (Inter & Playfair Display Variable)
      ========================================================================== */
@font-face {
  font-family: "Inter";
  src: 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.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: 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.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

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

/* ══════════════════════════════════════════
               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: #8a7e72;

  /* 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: 110px;
  }
}

/* ══════════════════════════════════════════
               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.55rem;
  text-decoration: none;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.92;
}
.nav-logo-mascot {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.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.65rem;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(3, 22, 15, 0.15);
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}
.topbar-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.topbar-btn:active {
  transform: scale(0.95);
}
.topbar-btn.call {
  background: #fff;
  color: var(--g800);
}
.topbar-btn.call:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}
.topbar-btn.whatsapp {
  background: #25d366;
  color: #fff;
}
.topbar-btn.whatsapp:hover {
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}
.topbar-btn.order {
  background: var(--gold-warm);
  color: #fff;
}
.topbar-btn.order:hover {
  box-shadow: 0 4px 14px rgba(200, 134, 10, 0.45);
}
.topbar-btn.maps {
  background: #34a853;
  color: #fff;
}
.topbar-btn.maps:hover {
  box-shadow: 0 4px 14px rgba(52, 168, 83, 0.45);
}
.topbar-btn.text-size {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.topbar-btn.text-size:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}
.topbar-btn.text-size.active {
  background: var(--gold-light);
  color: var(--g900);
}
.topbar-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
@media (max-width: 540px) {
  #topbar {
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
  }
  .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;
  }
}

/* ══════════════════════════════════════════
               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) {
  .shop-name {
    padding: 5.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;
}

/* ── 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;
}

/* Video hero container */
.scene-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.scene-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scene-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.02) 40%,
    rgba(8, 24, 8, 0.45) 100%
  );
  pointer-events: none;
  border-radius: 24px;
}

/* CTA buttons over video */
.scene-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}
.scene-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.scene-cta-btn.catalogo {
  background: rgba(200, 134, 10, 0.75);
  border-color: rgba(232, 160, 32, 0.5);
}
.scene-cta-btn.catalogo:hover {
  background: rgba(200, 134, 10, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 134, 10, 0.5);
}
.scene-cta-btn.chat {
  background: rgba(45, 106, 45, 0.75);
  border-color: rgba(90, 173, 90, 0.5);
}
.scene-cta-btn.chat:hover {
  background: rgba(45, 106, 45, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(45, 106, 45, 0.5);
}
.scene-cta-btn .cta-icon {
  font-size: 1.2rem;
}

/* ── Mascot Container with Side Buttons ── */
.mascot-container {
  position: relative;
  margin: 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 980px;
  padding: 0 1rem;
  z-index: 20;
  flex-wrap: wrap;
  overflow: visible;
}

.mascot-side-btn {
  width: 200px;
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.mascot-side-btn img {
  display: block;
  width: 100%;
  height: auto;
}
.mascot-side-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

/* ── 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: 178px;
  max-width: 100%;
}

.mascot-svg {
  width: 100%;
  height: auto;
  display: block;
  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;
  position: relative;
}
#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;
  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;
  word-break: 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.62rem 1rem;
  border: 1px solid rgba(212, 255, 224, 0.14);
  border-radius: 50px;
  background: linear-gradient(
    180deg,
    rgba(75, 214, 114, 0.98) 0%,
    rgba(33, 171, 81, 0.98) 52%,
    rgba(22, 139, 67, 0.98) 100%
  );
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background var(--t),
    color var(--t),
    transform var(--t-spring),
    box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 9px 18px rgba(7, 35, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(5, 64, 26, 0.22);
  min-height: 42px;
  display: flex;
  align-items: center;
  letter-spacing: 0.01em;
}
.qr-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 22px rgba(7, 35, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(5, 64, 26, 0.22);
}
.qr-btn:active {
  transform: scale(0.95);
}
.qr-btn.confirm {
  background: linear-gradient(180deg, #efc55c 0%, #d89c2b 100%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 10px 20px rgba(78, 46, 7, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.qr-btn.confirm:hover {
  transform: translateY(-2px);
}

/* Input */
.chat-input-row {
  position: relative;
  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 .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-mic,
.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-mic:hover,
.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;
}

/* ── Mic button ── */
.chat-mic {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #23c65a, #119445);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t);
  padding: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chat-mic svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}
.chat-mic .mic-lbl {
  display: none;
}
.chat-mic:hover {
  transform: scale(1.06);
}
.chat-mic:active {
  transform: scale(0.93);
}
.chat-mic.recording {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
}
/* Voice listening overlay inside chatbot */
.voice-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(7, 26, 17, 0.84) 0%, rgba(5, 20, 13, 0.9) 100%);
  border-radius: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.voice-overlay.active {
  display: flex;
}
.voice-panel {
  width: min(100%, 460px);
  padding: 1.3rem 1.1rem 1.15rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(18, 58, 38, 0.9) 0%, rgba(11, 39, 25, 0.94) 100%);
  border: 1px solid rgba(166, 235, 186, 0.14);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
}
.voice-ripple {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #139949);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
  animation: voiceRipple 1.2s ease-in-out infinite;
}
.voice-ripple svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
@keyframes voiceRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.44);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.voice-label {
  font-size: 1.18rem;
  font-weight: 800;
  color: #effcf2;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.voice-label small {
  display: block;
  margin-top: 0.38rem;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(234, 245, 239, 0.7);
}
.voice-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dff7e6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.voice-interim {
  width: 100%;
  min-height: 90px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(166, 235, 186, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.98rem;
  color: #effcf2;
  text-align: center;
  max-width: 100%;
  font-style: normal;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}
.voice-interim.voice-empty {
  color: rgba(234, 245, 239, 0.46);
}
.voice-confirm {
  padding: 0.82rem 1.4rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #3f9440;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--t),
    transform var(--t);
  min-height: 48px;
}
.voice-confirm:hover {
  background: var(--g600);
  transform: scale(1.04);
}
.voice-cancel {
  padding: 0.82rem 1.4rem;
  border-radius: 16px;
  border: 2px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all var(--t);
  min-height: 48px;
}
.voice-cancel:hover {
  background: #ef4444;
  color: #fff;
}
.voice-actions {
  display: flex;
  gap: 0.7rem;
  width: 100%;
}
.voice-actions button {
  flex: 1;
}
/* Voice hint banner */
.voice-hint {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  margin: 0.2rem 1rem 0.65rem;
  background: rgba(22, 46, 36, 0.35);
  border: 1px solid rgba(136, 219, 164, 0.35);
  border-radius: 14px;
  font-size: 0.86rem;
  font-family: "Inter", sans-serif;
  color: #d8f3e4;
  cursor: default;
  animation: hintSlide 0.5s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#voice-hint-bar {
  background: transparent;
}
@keyframes hintSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.voice-hint svg {
  width: 14px;
  height: 14px;
  fill: #2f8f3f;
  flex-shrink: 0;
}
.voice-hint-close {
  margin-left: auto;
  background: rgba(47, 143, 63, 0.12);
  border: 1px solid rgba(47, 143, 63, 0.22);
  cursor: pointer;
  color: #2d7f3a;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voice-hint-close:hover {
  background: rgba(47, 143, 63, 0.2);
  color: #1f5d2a;
}

/* 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);
}
@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;
  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;
}
.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;
}

/* ══════════════════════════════════════════
               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;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.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: 3rem 1.5rem;
}
.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 {
  background: #fff;
  border: 1px solid var(--ivory-3);
  border-radius: var(--r-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition:
    box-shadow var(--t),
    transform var(--t);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.faq-item.open {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  border-color: var(--g100);
}

.faq-q {
  width: 100%;
  padding: 1.2rem 1.3rem;
  background: none;
  border: none;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  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(--g600);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--g50);
  border: 1.5px solid var(--g100);
  color: var(--g600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background var(--t),
    border-color var(--t);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--g600);
  border-color: var(--g600);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.42s ease,
    padding 0.3s ease;
  padding: 0 1.3rem;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.85;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 1.3rem 1.15rem;
}

/* ══════════════════════════════════════════
               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: 360px;
  aspect-ratio: 4/3;
  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;
  opacity: 0.5;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  opacity: 1;
}

/* ══════════════════════════════════════════
               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;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#cookie-banner-overlay.show {
  opacity: 1;
  pointer-events: all;
}

#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  background: rgba(12, 12, 12, 0.95);
  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),
    opacity 0.5s ease;
}
#cookie-banner.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
.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(--g500);
  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-trigger-wrap {
  width: 100%;
  max-width: 240px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}
#catalogo-toggle {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    opacity 0.3s;
  opacity: 0.95;
}
#catalogo-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 1;
}
#catalogo-toggle img {
  display: block;
  width: 100%;
  height: auto;
}

#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: none;
  overflow: visible;
  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);
}

.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;
}
.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: transparent;
}
.cat-card-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.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 {
  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-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-radio-group {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.15rem;
}
.cat-form-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #effcf2;
  cursor: pointer;
}
.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-container {
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .mascot-side-btn {
    width: 165px;
  }
}

@media (max-width: 480px) {
  #chatbot {
    max-height: 80vh;
  }
  .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;
  }
  .scene-video-wrap {
    border-radius: 18px;
  }
  .scene-cta {
    bottom: 0.8rem;
    gap: 0.5rem;
  }
  .scene-cta-btn {
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
  }
  .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: 480px;
  }
}

/* Chat mic button font-size fix */
#chat-mic {
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════
               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;
}

/* ══════════════════════════════════════════
               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;
  }
}
