/* =========================================================
   VECCHIO WEST · GLOBAL STYLES
   ========================================================= */

@import url('tokens.css');

/* --- Font loading editorial western italiano ---
     Display: Rye (saloon billboard) + Sancreek (extra rough)
     Headline: Oswald condensed
     Body: Fraunces (variable serif, italian-influenced, opt opsz)
     Mono: DM Mono (modern monospace, plus Special Elite legacy) */
@import url('https://fonts.googleapis.com/css2?family=Rye&family=Sancreek&family=Oswald:wght@400;600;700&family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=DM+Mono:wght@400;500&family=Special+Elite&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  color: var(--vw-paper);
  background: var(--vw-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Texture seppia globale opzionale */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at top, rgba(200, 155, 60, 0.04), transparent 70%),
    radial-gradient(ellipse at bottom, rgba(26, 18, 11, 0.5), transparent 60%);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--vw-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--vw-gold-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--vw-paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--vw-gold);
}

/* --- Container --- */
.vw-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Section spacing --- */
.vw-section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) { .vw-section { padding: var(--space-2xl) 0; } }

/* --- Buttons --- */
.vw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-headline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  border: 2px solid var(--vw-gold);
  background: var(--vw-gold);
  color: var(--vw-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.vw-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); background: var(--vw-gold-2); }

.vw-btn--ghost {
  background: transparent;
  color: var(--vw-paper);
  border-color: var(--vw-paper-2);
}
.vw-btn--ghost:hover { background: var(--vw-paper); color: var(--vw-bg); }

.vw-btn--latin {
  background: var(--vw-latin-magenta);
  border-color: var(--vw-latin-magenta);
  color: var(--vw-paper);
}
.vw-btn--latin:hover { background: var(--vw-latin-accent); border-color: var(--vw-latin-accent); }

/* --- Decorazioni western (divisori) --- */
.vw-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-md) auto;
  color: var(--vw-gold);
}
.vw-divider::before, .vw-divider::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vw-gold), transparent);
}
.vw-divider svg { width: 24px; height: 24px; fill: currentColor; }

/* --- Badge --- */
.vw-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--vw-gold);
  color: var(--vw-gold);
  background: rgba(200, 155, 60, 0.08);
  border-radius: var(--radius-sm);
}
.vw-badge--piccante { color: var(--vw-red-2); border-color: var(--vw-red-2); background: rgba(177, 74, 48, 0.1); }
.vw-badge--nuovo { color: var(--vw-paper); border-color: var(--vw-paper); }
.vw-badge--marchigiano { color: var(--vw-sand); border-color: var(--vw-sand); }
.vw-badge--vegan { color: #8ab06a; border-color: #8ab06a; }
.vw-badge--top { background: var(--vw-gold); color: var(--vw-bg); }

/* --- Card pergamena (recensioni, eventi) --- */
.vw-card-paper {
  background: var(--vw-paper);
  color: var(--vw-ink);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 3px solid var(--vw-gold);
}

/* --- Theme latin override (DJ Flow blocks) --- */
.theme-latin {
  --vw-gold: var(--vw-latin-magenta);
  --vw-gold-2: var(--vw-latin-accent);
}

/* --- Utility --- */
.vw-text-gold { color: var(--vw-gold); }
.vw-text-mono { font-family: var(--font-mono); }
.vw-text-display { font-family: var(--font-display); }
.vw-text-headline { font-family: var(--font-headline); text-transform: uppercase; letter-spacing: 0.05em; }
.vw-hide-mobile { display: none; }
@media (min-width: 768px) { .vw-hide-mobile { display: inherit; } .vw-hide-desktop { display: none; } }

/* --- Animations --- */
@keyframes vw-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.vw-anim-fade-up { animation: vw-fade-up .8s ease both; }

@keyframes vw-scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- x-cloak: solo PRIMA che Alpine sia caricato (rimosso quando arriva) ---
   Versione difensiva: NON nasconde tutto, nasconde solo span/text con bindings vuoti.
   Se Alpine non parte, almeno la struttura dei blocchi è visibile. */
[x-cloak] {
  visibility: visible;
}
.vw-loading [x-cloak] {
  visibility: hidden;
}

/* =========================================================
   GRAIN TEXTURE OVERLAY (nuovo)
   Strato sottile di rumore per dare sensazione "pellicola"
   ========================================================= */
.vw-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--grain-z);
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.65  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px;
}
@media (prefers-reduced-motion: reduce) {
  .vw-grain { display: none; }
}

/* =========================================================
   REVEAL ON SCROLL (nuovo)
   Animazione "appare" quando l'elemento entra in viewport.
   Usare con: data-reveal su qualsiasi elemento.
   Varianti: data-reveal="up|left|right|zoom"
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--vw-ease-bullet),
    transform 700ms var(--vw-ease-bullet);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   SIDEBAR VERTICALE (nuovo · BLOCK 00)
   Desktop: 72px collapsed → 240px expanded on hover
   Mobile : drawer pattern, toggle con burger
   ========================================================= */
.vw-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: var(--sidebar-z);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: width 320ms var(--vw-ease-out-back);
  overflow: hidden;
}
.vw-sidebar:hover,
.vw-sidebar:focus-within,
.vw-sidebar.is-open {
  width: var(--sidebar-w-expanded);
}

.vw-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: 0 var(--space-sm);
  border-bottom: 1px solid var(--sidebar-border);
  color: var(--vw-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.vw-sidebar__brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.vw-sidebar__brand-text {
  margin-left: 0.6rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 220ms, transform 220ms;
}
.vw-sidebar:hover .vw-sidebar__brand-text,
.vw-sidebar:focus-within .vw-sidebar__brand-text,
.vw-sidebar.is-open .vw-sidebar__brand-text {
  opacity: 1;
  transform: translateX(0);
}

.vw-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) 0;
  flex: 1;
  overflow-y: auto;
}
.vw-sidebar__item {
  display: block;
}
.vw-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 52px;
  padding: 0 22px;
  color: var(--vw-paper-2);
  font-family: var(--font-headline);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 220ms, background 220ms;
}
.vw-sidebar__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: transparent;
  transition: background 220ms;
}
.vw-sidebar__link:hover {
  color: var(--vw-paper);
  background: rgba(200, 155, 60, 0.06);
}
.vw-sidebar__link:hover::before {
  background: var(--vw-gold-dark);
}
.vw-sidebar__link.is-active {
  color: var(--vw-gold);
  background: rgba(200, 155, 60, 0.10);
}
.vw-sidebar__link.is-active::before {
  background: var(--vw-gold);
}
.vw-sidebar__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.vw-sidebar__label {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 220ms, transform 220ms;
}
.vw-sidebar:hover .vw-sidebar__label,
.vw-sidebar:focus-within .vw-sidebar__label,
.vw-sidebar.is-open .vw-sidebar__label {
  opacity: 1;
  transform: translateX(0);
}

.vw-sidebar__cta {
  padding: var(--space-sm);
  border-top: 1px solid var(--sidebar-border);
}
.vw-sidebar__cta .vw-btn {
  width: 100%;
  padding: 0.65rem 0.6rem;
  font-size: 0.78rem;
}
.vw-sidebar:not(:hover):not(:focus-within):not(.is-open) .vw-sidebar__cta .vw-btn span {
  display: none;
}

/* Mobile toggle (burger) */
.vw-sidebar__toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: calc(var(--sidebar-z) + 5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(26, 18, 11, 0.85);
  border: 1px solid var(--sidebar-border);
  color: var(--vw-gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.vw-sidebar__toggle svg { width: 22px; height: 22px; }

/* Backdrop mobile quando drawer è aperto */
.vw-sidebar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--sidebar-z) - 1);
  background: rgba(10, 7, 4, 0.6);
  backdrop-filter: blur(4px);
}
.vw-sidebar__backdrop.is-visible {
  display: block;
}

/* Layout: desktop spinge contenuto a destra */
@media (min-width: 1024px) {
  body.has-sidebar {
    padding-left: var(--sidebar-w);
  }
}

/* Mobile: sidebar nascosta di default, toggle visibile */
@media (max-width: 1023px) {
  .vw-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w-expanded);
    transition: transform 320ms var(--vw-ease-out-back);
  }
  .vw-sidebar.is-open {
    transform: translateX(0);
  }
  .vw-sidebar__brand-text,
  .vw-sidebar__label {
    opacity: 1;
    transform: translateX(0);
  }
  .vw-sidebar__cta .vw-btn span {
    display: inline;
  }
  .vw-sidebar__toggle {
    display: flex;
  }
  body.has-sidebar { padding-left: 0; }
}

/* =========================================================
   GUNSHOT EFFECT (nuovo)
   Foro di proiettile + flash al click su CTA
   ========================================================= */
.vw-gunshot-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--gunshot-z);
  overflow: hidden;
}
.vw-gunshot-hole {
  position: absolute;
  width: var(--gunshot-size);
  height: var(--gunshot-size);
  margin-left: calc(var(--gunshot-size) / -2);
  margin-top: calc(var(--gunshot-size) / -2);
  background:
    radial-gradient(circle at 50% 50%,
      #050302 0%,
      #14100b 20%,
      rgba(20, 16, 11, 0.85) 38%,
      rgba(60, 38, 18, 0.45) 55%,
      rgba(120, 80, 40, 0.18) 72%,
      transparent 85%);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
  opacity: 0;
  transform: scale(0.2);
  animation: vw-gunshot-fade var(--gunshot-fade-ms) var(--vw-ease-bullet) forwards;
}
.vw-gunshot-hole::after {
  /* crepe sottili */
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(35deg, transparent 49.5%, rgba(20, 14, 8, 0.55) 50%, transparent 50.5%),
    linear-gradient(120deg, transparent 49.5%, rgba(20, 14, 8, 0.45) 50%, transparent 50.5%),
    linear-gradient(-65deg, transparent 49.6%, rgba(20, 14, 8, 0.35) 50%, transparent 50.4%);
  background-size: 100% 100%;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, black 30%, transparent 70%);
          mask: radial-gradient(circle, black 30%, transparent 70%);
  opacity: 0.85;
}
.vw-gunshot-flash {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: radial-gradient(circle, rgba(255, 230, 170, 0.95), rgba(255, 180, 80, 0.5) 40%, transparent 70%);
  border-radius: 50%;
  animation: vw-gunshot-flash 220ms ease-out forwards;
}
@keyframes vw-gunshot-fade {
  0%   { opacity: 0;   transform: scale(0.2); }
  10%  { opacity: 0.95; transform: scale(1.05); }
  20%  { opacity: 0.92; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.08); }
}
@keyframes vw-gunshot-flash {
  0%   { opacity: 1; transform: scale(0.4); }
  60%  { opacity: 0.6; transform: scale(8); }
  100% { opacity: 0; transform: scale(14); }
}
@media (prefers-reduced-motion: reduce) {
  .vw-gunshot-hole,
  .vw-gunshot-flash { display: none !important; }
}

/* =========================================================
   ROULETTE OVERLAY (nuovo · BLOCK 11)
   ========================================================= */
.vw-roulette-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--roulette-overlay-z);
  background: var(--roulette-backdrop);
  display: grid;
  place-items: center;
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vw-roulette-modal {
  width: 100%;
  max-width: 540px;
  background:
    radial-gradient(ellipse at top, rgba(200, 155, 60, 0.08), transparent 60%),
    var(--vw-bg-2);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  text-align: center;
  animation: vw-fade-up 500ms var(--vw-ease-out-back) both;
}
.vw-roulette-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--vw-paper-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 200ms, border-color 200ms;
}
.vw-roulette-close:hover { color: var(--vw-gold); border-color: var(--vw-gold); }

.vw-roulette-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--vw-gold);
  margin-bottom: 0.4rem;
}
.vw-roulette-sub {
  color: var(--vw-paper-2);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.vw-roulette-wheel-wrap {
  position: relative;
  width: var(--roulette-wheel-size);
  height: var(--roulette-wheel-size);
  margin: 0 auto var(--space-md);
}
.vw-roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--vw-gold-dark);
  box-shadow:
    0 0 0 4px var(--vw-bg-2),
    0 0 0 6px var(--vw-gold-dark),
    var(--shadow-lg);
  background: conic-gradient(
    from -90deg,
    #8c2f1b 0deg 30deg,
    #1a120b 30deg 60deg,
    #c89b3c 60deg 90deg,
    #1a120b 90deg 120deg,
    #8c2f1b 120deg 150deg,
    #1a120b 150deg 180deg,
    #c89b3c 180deg 210deg,
    #1a120b 210deg 240deg,
    #8c2f1b 240deg 270deg,
    #1a120b 270deg 300deg,
    #c89b3c 300deg 330deg,
    #1a120b 330deg 360deg
  );
  transition: transform var(--roulette-spin-duration) var(--vw-ease-spin);
  transform: rotate(0deg);
}
.vw-roulette-wheel.is-spinning {
  /* la rotazione è applicata via JS con style.transform */
}
.vw-roulette-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: 22%;
  margin: -11% 0 0 -11%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--vw-gold) 30%, var(--vw-gold-dark) 70%);
  box-shadow: var(--shadow-md), inset 0 0 8px rgba(26, 18, 11, 0.6);
  display: grid;
  place-items: center;
  color: var(--vw-bg);
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.vw-roulette-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--vw-gold);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.vw-roulette-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}
.vw-roulette-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-top: 1px dashed var(--sidebar-border);
  animation: vw-fade-up 500ms var(--vw-ease-out-back) both;
}
.vw-roulette-result__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--vw-gold);
  margin-bottom: 0.4rem;
}
.vw-roulette-result__code {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  border: 1px dashed var(--vw-gold);
  color: var(--vw-paper);
  background: rgba(200, 155, 60, 0.06);
}
.vw-roulette-meta {
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  color: var(--vw-dust);
}
.vw-roulette-cooldown {
  font-family: var(--font-mono);
  color: var(--vw-sand);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

/* Trigger floating (mobile/desktop) opzionale */
.vw-roulette-trigger {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: calc(var(--sidebar-z) + 2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vw-gold);
  color: var(--vw-bg);
  border: 2px solid var(--vw-gold-dark);
  cursor: pointer;
  box-shadow: var(--shadow-gold), var(--shadow-md);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: transform 200ms ease;
  animation: vw-pulse-soft 2.4s ease-in-out infinite;
}
.vw-roulette-trigger:hover { transform: scale(1.08); }
@keyframes vw-pulse-soft {
  0%, 100% { box-shadow: var(--shadow-gold), var(--shadow-md); }
  50%      { box-shadow: 0 0 36px rgba(200, 155, 60, 0.55), var(--shadow-md); }
}
@media (prefers-reduced-motion: reduce) {
  .vw-roulette-trigger { animation: none; }
  .vw-roulette-wheel  { transition: none; }
}

/* =========================================================
   SKIP LINK (C1 · WCAG 2.4.1) — pattern sr-only
   ========================================================= */
.vw-skip-link {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--vw-gold);
  color: var(--vw-bg);
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 10000;
}
.vw-skip-link:focus,
.vw-skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip: auto;
  outline: 3px solid var(--vw-paper);
  outline-offset: 2px;
}

/* =========================================================
   FOCUS RING (A9)
   ========================================================= */
*:focus-visible {
  outline: none;
  box-shadow: var(--vw-focus-ring);
  border-radius: var(--radius-sm);
}

/* =========================================================
   BADGE — alias --veg per --vegan (A9)
   ========================================================= */
.vw-badge--veg {
  color: var(--vw-olive-soft);
  border-color: var(--vw-olive);
  background: rgba(107, 138, 74, 0.12);
}

/* =========================================================
   CHIP (A2 allergeni)
   ========================================================= */
.vw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .15s var(--vw-ease-out-back), background .15s ease, color .15s ease, border-color .15s ease;
}
.vw-chip--allergen {
  background: rgba(200, 155, 60, 0.10);
  color: var(--vw-gold);
  border: 1px solid rgba(200, 155, 60, 0.30);
  text-transform: lowercase;
}
.vw-chip--allergen:hover { transform: translateY(-1px); }

.vw-menu__item-aller,
.vw-menu-vert__item-aller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.vw-menu__item-aller-label,
.vw-menu-vert__item-aller-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--vw-dust);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 0.2rem;
}

/* =========================================================
   TABS SCROLLABLE — mask fade laterale (A4)
   ========================================================= */
.vw-menu__tabs-wrap { position: relative; }
.vw-menu__tabs--scrollable {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(
    to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(
    to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.vw-menu__tabs--scrollable::-webkit-scrollbar { display: none; }

/* =========================================================
   STAGGER · child fade-up con delay progressivo
   Aggiungere classe .vw-stagger al parent.
   Ogni child con .vw-anim-fade-up parte 100ms dopo il precedente.
   ========================================================= */
.vw-stagger > .vw-anim-fade-up:nth-child(1) { animation-delay: 0ms; }
.vw-stagger > .vw-anim-fade-up:nth-child(2) { animation-delay: 100ms; }
.vw-stagger > .vw-anim-fade-up:nth-child(3) { animation-delay: 200ms; }
.vw-stagger > .vw-anim-fade-up:nth-child(4) { animation-delay: 350ms; }
.vw-stagger > .vw-anim-fade-up:nth-child(5) { animation-delay: 500ms; }

/* =========================================================
   ATMOSFERA · vignette overlay sezioni
   ========================================================= */
.vw-section--vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

/* =========================================================
   CARD SYSTEM · 3 tier (B1)
   Coesiste con .vw-card-paper legacy.
   - --paper:   eroe, sfondo cream
   - --wood:    portante, sfondo legno scuro stratificato
   - --minimal: secondaria, trasparente + bordo sottile
   ========================================================= */
.vw-card {
  background: var(--vw-paper);
  color: var(--vw-ink);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vw-card--paper {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--vw-paper);
  border: 1px solid rgba(200, 155, 60, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 24px -12px rgba(0, 0, 0, 0.55);
}
.vw-card--paper:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 32px -14px rgba(0, 0, 0, 0.7);
}

.vw-card--wood {
  background:
    linear-gradient(180deg, rgba(60, 38, 22, 0.55), rgba(40, 24, 14, 0.75)),
    var(--vw-bg-2);
  color: var(--vw-paper);
  border: 1px solid rgba(200, 155, 60, 0.22);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.vw-card--wood:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 155, 60, 0.45);
}

.vw-card--minimal {
  background: transparent;
  border: 1px solid rgba(200, 155, 60, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: none;
  color: inherit;
}
.vw-card--minimal:hover {
  border-color: rgba(200, 155, 60, 0.45);
  background: rgba(200, 155, 60, 0.04);
}

/* DESIGN BOOST · perforazione "biglietto saloon" su menu items
   Realizzata via radial-gradient repeating sui lati.
   Attiva con .vw-card--ticket sui menu items. */
.vw-card--ticket {
  background:
    radial-gradient(circle at left 0, transparent 6px, transparent 7px, var(--vw-bg-2) 7.5px),
    radial-gradient(circle at right 0, transparent 6px, transparent 7px, var(--vw-bg-2) 7.5px),
    linear-gradient(180deg, rgba(60, 38, 22, 0.65), rgba(40, 24, 14, 0.80));
  -webkit-mask:
    radial-gradient(circle 7px at left center, transparent 98%, #000 100%) left/12px 22px repeat-y,
    radial-gradient(circle 7px at right center, transparent 98%, #000 100%) right/12px 22px repeat-y,
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
          mask-composite: add;
}

/* =========================================================
   TACTILE FEEDBACK :active (B6) · pressione mobile
   ========================================================= */
.vw-btn,
.vw-chip,
.vw-sidebar__link,
button:not([disabled]) {
  transition:
    transform .12s cubic-bezier(.4, 0, .6, 1),
    box-shadow .12s cubic-bezier(.4, 0, .6, 1),
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
}
.vw-btn:active,
.vw-chip:active,
.vw-sidebar__link:active,
button:not([disabled]):active {
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
@media (hover: hover) and (pointer: fine) {
  .vw-btn:active,
  button:not([disabled]):active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .vw-btn:active,
  .vw-chip:active,
  button:not([disabled]):active { transform: none; }
}

/* =========================================================
   CHIP TOGGLE multi (B4 · filtro allergeni)
   ========================================================= */
.vw-chip--toggle {
  background: transparent;
  border: 1px solid rgba(200, 155, 60, 0.35);
  color: var(--vw-paper);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: lowercase;
}
.vw-chip--toggle:hover {
  border-color: var(--vw-gold);
  background: rgba(200, 155, 60, 0.08);
  color: var(--vw-gold-2);
}
.vw-chip--toggle.is-active {
  background: var(--vw-gold);
  color: var(--vw-bg);
  border-color: var(--vw-gold);
  text-decoration: line-through;
}
.vw-chip--clear {
  background: transparent;
  border: 1px dashed rgba(240, 227, 200, 0.4);
  color: rgba(240, 227, 200, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}
.vw-chip--clear:hover {
  color: var(--vw-paper);
  border-color: var(--vw-paper-2);
}
.vw-allergen-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
}
.vw-allergen-filter__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--vw-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 0.25rem;
}

/* =========================================================
   STARS SVG (B2) · stamp animation cinematica
   Difese: width/height fissi su .vw-star, max-width sul wrap.
   ========================================================= */
@keyframes vw-star-stamp {
  0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(2deg);   opacity: 1; }
  100% { transform: scale(1)   rotate(0);      opacity: 1; }
}
.vw-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  color: rgba(200, 155, 60, 0.30);
  vertical-align: middle;
  line-height: 0;
  max-width: 140px;
}
.vw-star {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform .2s ease;
}
.vw-star--full,
.vw-star--half { color: var(--vw-gold); }
.vw-stars.is-visible .vw-star--full,
.vw-stars.is-visible .vw-star--half {
  animation: vw-star-stamp .45s cubic-bezier(.34, 1.56, .64, 1) backwards;
  animation-delay: var(--vw-star-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .vw-stars.is-visible .vw-star { animation: none; }
}

/* =========================================================
   URGENCY CHIP (B8) · etichetta tape "Stasera/Domani/..."
   ========================================================= */
.vw-evento__urgency {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--vw-gold);
  color: var(--vw-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  transform: rotate(-1.5deg);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  /* tape look: bordi leggermente irregolari */
  border-radius: 1px 3px 1px 3px;
}
.vw-evento__urgency--past {
  background: rgba(120, 80, 40, 0.30);
  color: var(--vw-paper-2);
}

/* =========================================================
   DRAWER MOBILE (B5) · burger animato + transitions
   Adattamento su .vw-sidebar esistente (no duplicazione).
   ========================================================= */
.vw-sidebar__toggle .vw-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}
.vw-sidebar__toggle .vw-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vw-gold);
  transition: transform .3s ease, opacity .3s ease;
  border-radius: 1px;
}
.vw-sidebar.is-open ~ .vw-sidebar__toggle .vw-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.vw-sidebar.is-open ~ .vw-sidebar__toggle .vw-burger span:nth-child(2) {
  opacity: 0;
}
.vw-sidebar.is-open ~ .vw-sidebar__toggle .vw-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.vw-sidebar__backdrop {
  opacity: 0;
  transition: opacity .25s ease;
}
.vw-sidebar__backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* =========================================================
   CURSOR MIRINO (C2) · galleria con mirino dorato
   ========================================================= */
.vw-galleria,
.vw-galleria * {
  cursor: url('../assets/img/cursor-mirino.svg') 14 14, crosshair;
}
@media (hover: none) {
  .vw-galleria,
  .vw-galleria * { cursor: auto; }
}

/* =========================================================
   ORNAMENTI DECORATIVI · stelle sceriffo angoli sezione
   Usabile con .vw-section--ornament. SVG inline come bg.
   ========================================================= */
.vw-section--ornament::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0.35;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c89b3c'%3E%3Cpath d='M12 2l2.5 5.5L20 8l-4 4 1 6-5-3-5 3 1-6-4-4 5.5-.5L12 2z'/%3E%3C/svg%3E") no-repeat center / contain;
  z-index: 1;
}

/* =========================================================
   HERO BOOST · asymmetric + cinematic stagger
   Aggiungere classe .vw-hero--cinematic al contenitore.
   ========================================================= */
.vw-hero--cinematic .vw-hero__content {
  position: relative;
}
.vw-hero--cinematic .eyebrow {
  display: inline-block;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(200, 155, 60, 0.45);
  background: rgba(26, 18, 11, 0.55);
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.vw-hero--cinematic .vw-hero__claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.vw-hero--cinematic .vw-hero__claim-2 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
.vw-hero--cinematic .vw-hero__claim-2::before,
.vw-hero--cinematic .vw-hero__claim-2::after {
  content: '✦';
  display: inline-block;
  margin: 0 0.6em;
  color: var(--vw-gold);
  font-size: 0.7em;
  vertical-align: middle;
  opacity: 0.7;
}

/* =========================================================
   PAPER NOISE TEXTURE OVERLAY · per sezioni paper
   ========================================================= */
.vw-rec::after {
  background-color: transparent;
}
.vw-rec {
  position: relative;
}
.vw-rec > .vw-container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   STAGGER BOOST · default child fade-up con delay graduali
   Su hero per cinematic intro
   ========================================================= */
.vw-stagger > * {
  animation: vw-fade-up .9s var(--vw-ease-bullet) both;
}
.vw-stagger > *:nth-child(1) { animation-delay: 80ms; }
.vw-stagger > *:nth-child(2) { animation-delay: 220ms; }
.vw-stagger > *:nth-child(3) { animation-delay: 380ms; }
.vw-stagger > *:nth-child(4) { animation-delay: 560ms; }
.vw-stagger > *:nth-child(5) { animation-delay: 760ms; }
@media (prefers-reduced-motion: reduce) {
  .vw-stagger > * { animation: none; }
}

/* =========================================================
   SECTION HEADER · display alt "Sancreek" per i titoli sezione
   Optional via .vw-section__head--bold
   ========================================================= */
.vw-section__head--bold h2 {
  font-family: var(--font-display-alt);
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 5vw, 3.6rem);
}
