/* ============================================
   VERACE PIZZERIA — MAIN STYLESHEET
   Design System: Snitch "The Editorial Hearth"
   ============================================ */

/* Base */
body {
  font-family: 'Manrope', sans-serif;
  background-color: #181210;
  color: #ffffff;
  overflow-x: hidden;
}
.font-serif { font-family: 'Noto Serif', serif; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }

/* ---- Nav link active state ---- */
.nav-link.is-active {
  color: #fb923c !important;
  border-bottom-color: #fb923c !important;
}

/* ---- Menu tabs ---- */
.menu-tab { border-color: rgba(86,66,62,0.3); background: transparent; }
.menu-tab:hover { border-color: #dc1a1a; background: #dc1a1a; }
.menu-tab.is-active { border-color: #dc1a1a; background: #dc1a1a; }

/* ---- Cursor Glow (desktop only) ---- */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,114,91,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.3s;
}
.cursor-glow.active { opacity: 1; }
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ---- Hero text split ---- */
.hero-char {
  display: inline-block; opacity: 0;
  transform: translateY(60px) rotateX(-40deg);
}
.hero-ws { width: 0.3em; display: inline-block; }

/* ---- Menu page viewer ---- */
.menu-page-img {
  display: none !important;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
              transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.menu-page-img.active {
  display: block !important;
  opacity: 1;
  transform: scale(1);
}

/* ---- Section clip-path reveal ---- */
.section-reveal { clip-path: inset(8% 4% 8% 4% round 20px); }

/* ---- Magnetic buttons ---- */
.magnetic { transition: transform 0.3s cubic-bezier(0.33,1,0.68,1); }

/* ---- Wipe reveal titles ---- */
.wipe-reveal {
  background: linear-gradient(90deg, #ffffff 50%, rgba(255,255,255,0.15) 50%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Cookie banner ---- */
.cookie-banner { transform: translateY(100%); transition: transform 0.4s ease; }
.cookie-banner.show { transform: translateY(0); }

/* ---- Mobile nav ---- */
.mobile-nav { transform: translateX(100%); transition: transform 0.35s ease; }
.mobile-nav.open { transform: translateX(0); }

/* ---- WhatsApp pulse ---- */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.wa-pulse { animation: pulse-green 2s infinite; transition: bottom 0.4s ease; }
/* Alza WhatsApp quando il cookie banner è visibile */
body.cookie-visible .wa-pulse { bottom: 5.5rem; }
@media (max-width: 768px) {
  body.cookie-visible .wa-pulse { bottom: 8rem; }
}

/* ---- Counter ---- */
.counter-num { font-variant-numeric: tabular-nums; }

/* ---- Gallery tilt ---- */
.gallery-tilt { transition: transform 0.4s cubic-bezier(0.33,1,0.68,1); }

/* ---- reCAPTCHA badge hide (v3 invisible) ---- */
.grecaptcha-badge { visibility: hidden !important; }

/* ---- Form success/error messages ---- */
.form-msg {
  padding: 1rem; border-radius: 0.5rem; margin-top: 1rem;
  font-weight: 600; text-align: center; display: none;
}
.form-msg.success { display: block; background: rgba(37,211,102,0.15); color: #25D366; }
.form-msg.error { display: block; background: rgba(255,75,75,0.15); color: #ff4b4b; }
