/* =============================================
   MENÙ DI NATALE 2026 — popup home + pagina /natale
   Rimuovibile dopo il 25/12/2026 insieme a natale.js
   ============================================= */
:root {
  --xmas-cream: #F7F4EE;
  --xmas-red:   #8B0000;
  --xmas-ink:   #2A1A12;
  --xmas-muted: #6A5546;
  --xmas-script: 'Great Vibes', 'Snell Roundhand', cursive;
  --xmas-serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

/* ── LINK NAV ── */
.nav-xmas a::before {
  content: '✦';
  margin-right: .45em;
  color: #E06A5E;
}
nav.scrolled .nav-xmas a::before { color: var(--xmas-red); }

/* ── CARD (condivisa tra popup e pagina) ── */
.xmas-card {
  position: relative;
  background: var(--xmas-cream);
  color: var(--xmas-ink);
  font-family: var(--xmas-serif);
  text-align: center;
  border: 1px solid var(--xmas-red);
  border-radius: var(--r-md, 14px);
  outline: 1px solid rgba(139,0,0,.35);
  outline-offset: -8px;
}
.xmas-inner { padding: 1.4rem 1.75rem 1.9rem; }

.xmas-bow { display: block; width: 64px; height: auto; margin: 0 auto .2rem; }

.xmas-title {
  font-family: var(--xmas-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 1.1;
  color: var(--xmas-red);
}
.xmas-sub {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--xmas-muted);
  margin-top: .15rem;
}

.xmas-divider {
  display: block;
  width: 120px; height: 12px;
  margin: 1rem auto;
  color: var(--xmas-red);
}

.xmas-course { margin-bottom: 1.05rem; }
.xmas-course h3 {
  font-family: var(--xmas-serif);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--xmas-red);
  margin-bottom: .2rem;
}
.xmas-course p {
  font-size: 1.15rem;
  line-height: 1.35;
}
.xmas-course p + p { margin-top: .3rem; }

.xmas-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--xmas-red);
  line-height: 1.1;
}
.xmas-incl {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--xmas-muted);
  margin-top: .25rem;
}

.xmas-notes {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139,0,0,.2);
  font-size: 1.02rem;
  line-height: 1.45;
}
.xmas-notes p + p { margin-top: .4rem; }
.xmas-notes strong { font-weight: 600; color: var(--xmas-red); }

.xmas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.xmas-btn {
  flex: 1 1 180px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .75rem 1.2rem;
  border-radius: 2rem;
  font-family: var(--body, system-ui, sans-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--xmas-red);
  transition: background .2s, color .2s, transform .2s;
}
.xmas-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.xmas-btn-primary { background: var(--xmas-red); color: #fff; }
.xmas-btn-primary:hover { background: #6E0000; transform: translateY(-1px); }
.xmas-btn-ghost { background: transparent; color: var(--xmas-red); }
.xmas-btn-ghost:hover { background: rgba(139,0,0,.07); transform: translateY(-1px); }
.xmas-download {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  font-family: var(--xmas-serif);
  font-size: 1.05rem;
  color: var(--xmas-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.xmas-download:hover { color: #6E0000; }
.xmas-download:focus-visible,
.xmas-btn:focus-visible,
.xmas-dismiss:focus-visible,
.xmas-close:focus-visible { outline: 2px solid var(--xmas-red); outline-offset: 3px; }

/* ── POPUP ── */
.xmas-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: rgba(24,14,4,.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.xmas-overlay[hidden] { display: none; }
.xmas-overlay.is-open { opacity: 1; }

.xmas-overlay .xmas-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  transform: translateY(14px) scale(.97);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.xmas-overlay.is-open .xmas-card { transform: none; }

.xmas-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

.xmas-close {
  position: absolute; top: 12px; right: 12px;
  z-index: 1;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(247,244,238,.9);
  color: var(--xmas-red);
  cursor: pointer;
  transition: background .2s;
}
.xmas-close:hover { background: rgba(139,0,0,.08); }
.xmas-close svg { width: 18px; height: 18px; }

.xmas-dismiss {
  display: inline-block;
  margin-top: 1rem;
  padding: .4rem .8rem;
  background: none; border: none;
  font-family: var(--xmas-serif);
  font-size: 1.05rem;
  color: var(--xmas-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.xmas-dismiss:hover { color: var(--xmas-red); }

@media (max-width: 480px) {
  .xmas-overlay { padding: 8px; }
  .xmas-overlay .xmas-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .xmas-inner { padding: 1.2rem 1.25rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-overlay, .xmas-overlay .xmas-card { transition: none; }
}
