/* ============================================
   Componenti aggiunti al mockup originale:
   header sopra il video, form, consensi,
   upsell, pagine legali, pannello cassa.
   ============================================ */

/* --- Header sopra il video di apertura --------------------------------
   Finché si è dentro l'intro a scorrimento la barra resta trasparente
   con testo bianco e più grande; superata l'intro torna la barra chiara
   già prevista da style.css (`header.scrolled`).
   -------------------------------------------------------------------- */
header.over-hero {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Il logo è un PNG bianco che style.css tinge di verde: qui lo lasciamo bianco. */
header.over-hero .brand-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
}

header.over-hero nav ul li a {
  color: #ffffff;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 0 3px rgba(0, 0, 0, 0.4);
}

header.over-hero nav ul li a:hover,
header.over-hero nav ul li a.active {
  color: var(--gold-light);
}

header.over-hero nav ul li a::after {
  background: var(--gold-light);
}

header.over-hero .cta-nav {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header.over-hero .cta-nav:hover {
  color: var(--bg-obsidian) !important;
  background: #ffffff;
  border-color: #ffffff;
  text-shadow: none;
}

header.over-hero .menu-toggle span {
  background-color: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Sotto i 768px il menu diventa un pannello bianco a tutta pagina:
   lì il testo bianco sarebbe illeggibile, quindi si torna ai colori scuri. */
@media (max-width: 768px) {
  header.over-hero nav ul li a {
    color: var(--text-muted);
    text-shadow: none;
    font-size: 1.15rem;
  }
  header.over-hero nav ul li a:hover,
  header.over-hero nav ul li a.active {
    color: var(--brand-green-deep);
  }
  header.over-hero .cta-nav {
    color: var(--brand-green-deep) !important;
    border-color: var(--brand-green-deep);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --- Pagina ancorata alla larghezza dello schermo ----------------------
   Su mobile il documento risultava largo 521px su un viewport di 375:
   il telefono rimpiccioliva tutto e la pagina scorreva di lato.
   `clip` invece di `hidden` perché `hidden` creerebbe un contenitore di
   scorrimento e romperebbe il `position: sticky` dell'intro video.
   -------------------------------------------------------------------- */
html,
body {
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}

/* I blob sfocati di sfondo erano in `absolute` con 500 e 700px di lato:
   sporgevano oltre il bordo e allargavano il documento. In `fixed` non
   entrano più nel calcolo della larghezza e restano identici a vedersi. */
.blur-blob {
  position: fixed;
}

/* --- Pulsanti su fondo chiaro ------------------------------------------
   `.btn-luxury` nasce per il video scuro dell'intro: sfondo trasparente e
   testo bianco, che compare solo al passaggio del mouse quando si espande
   il cerchio dorato. Sulle sezioni chiare quel testo è invisibile, quindi
   qui i pulsanti diventano pieni e leggibili fin da subito.
   -------------------------------------------------------------------- */
.btn-submit,
.thanks-card .btn-luxury,
.lottery-box .btn-luxury,
.staff-modal .btn-luxury,
.popup-card .btn-luxury,
.presale-closed .btn-luxury {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  border-color: var(--gold-dark);
  /* Testo scuro sull'oro: 6,7:1 di contrasto, ben oltre il minimo WCAG AA. */
  color: #1c1405;
  box-shadow: 0 6px 18px rgba(var(--gold-primary-rgb), 0.35);
  overflow: visible;
}

/* Spegne il cerchio che si espandeva al passaggio del mouse. */
.btn-submit::before,
.thanks-card .btn-luxury::before,
.lottery-box .btn-luxury::before,
.staff-modal .btn-luxury::before,
.popup-card .btn-luxury::before,
.presale-closed .btn-luxury::before {
  content: none;
}

.btn-submit:hover,
.thanks-card .btn-luxury:hover,
.lottery-box .btn-luxury:hover,
.staff-modal .btn-luxury:hover,
.popup-card .btn-luxury:hover,
.presale-closed .btn-luxury:hover {
  color: #1c1405;
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-dark) 100%);
  border-color: var(--gold-dark);
  box-shadow: 0 10px 26px rgba(var(--gold-primary-rgb), 0.45);
  transform: translateY(-2px);
}

.btn-submit:active,
.thanks-card .btn-luxury:active,
.lottery-box .btn-luxury:active,
.staff-modal .btn-luxury:active,
.popup-card .btn-luxury:active,
.presale-closed .btn-luxury:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(var(--gold-primary-rgb), 0.35);
}

.btn-submit:focus-visible,
.thanks-card .btn-luxury:focus-visible,
.lottery-box .btn-luxury:focus-visible,
.staff-modal .btn-luxury:focus-visible,
.popup-card .btn-luxury:focus-visible,
.presale-closed .btn-luxury:focus-visible {
  outline: 3px solid var(--brand-green-deep);
  outline-offset: 3px;
}

/* Il pulsante d'acquisto è l'azione principale della pagina: più alto,
   testo più grande e leggibile anche da lontano. */
.btn-submit {
  padding: 1.3rem 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.btn-submit[disabled] {
  opacity: 1;
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transform: none;
}

/* --- Titoli sopra il video di apertura ---------------------------------
   Nel mockup erano riquadri verdi pieni che nascondevano metà inquadratura.
   Ora il video resta visibile: pillola in vetro per l'occhiello, titolo
   in bianco puro tenuto leggibile dall'ombra.
   -------------------------------------------------------------------- */
.scrub-tag {
  background: rgba(2, 10, 5, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.scrub-title {
  background: transparent;
  box-shadow: none;
  padding: 0.1em 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.55);
}

.scrub-sub {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7);
}

/* Il suggerimento "scorri" era verde scuro su video scuro: illeggibile. */
.scrub-hint {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.scrub-hint-line {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

/* --- Testo leggermente più grande (richiesta cliente) ------------------
   Il tema era stato scalato al 70%: qui il corpo del testo torna a una
   dimensione più comoda, senza toccare i titoli.
   -------------------------------------------------------------------- */
p { font-size: 0.82rem; }
.concept-text p { font-size: 0.86rem; }
.prevendita-benefit-card li { font-size: 0.82rem; }
.prevendita-benefit-card p { font-size: 0.82rem; }
.location-details strong { font-size: 0.86rem; }
.location-info p { font-size: 0.86rem; }
.ticket-selector-info p { font-size: 0.72rem; }
.form-input, .form-label { font-size: 0.8rem; }
.cart-total-label { font-size: 0.9rem; }
.footer-info p { font-size: 0.8rem; }
.footer-links ul li a { font-size: 0.76rem; }
.consent-item label { font-size: 0.94rem; }

/* --- Ticket estrazione: spunta per singolo partecipante ---------------- */
.lottery-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--border-gold-focus);
  border-radius: 12px;
  background: rgba(var(--gold-primary-rgb), 0.045);
  cursor: pointer;
  transition: var(--transition-quick);
}

.participant-card.has-lottery .lottery-opt {
  background: rgba(var(--gold-primary-rgb), 0.11);
  border-style: solid;
}

.lottery-opt input[type='checkbox'] {
  flex-shrink: 0;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(var(--brand-green-deep-rgb), 0.3);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-quick);
}

.lottery-opt input[type='checkbox']:hover { border-color: var(--gold-primary); }

.lottery-opt input[type='checkbox']:checked {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 15px;
  background-position: center;
  background-repeat: no-repeat;
}

.lottery-opt input[type='checkbox']:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.lottery-opt__text {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.lottery-opt__text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.1rem;
}

.lottery-opt__price {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-dark);
}

/* --- Nota codice sconto ------------------------------------------------- */
.discount-hint {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Sezione Contattaci ------------------------------------------------- */
.contatti {
  padding: 5rem 0 6rem;
}

.contatti-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.contatti-card .section-title {
  margin: 0.4rem 0 0.8rem;
}

.contatti-card p {
  max-width: 520px;
  margin: 0 auto 1.8rem;
  color: var(--text-muted);
}

/* Bottone Contattaci: testo dorato visibile da subito, colori invertiti
   all'hover (sfondo dorato, testo scuro). Niente cerchio che si espande. */
.contatti-btn {
  margin-top: 0.4rem;
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-primary);
  box-shadow: none;
  overflow: visible;
}
.contatti-btn::before { content: none; }
.contatti-btn:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #1c1405;
  border-color: var(--gold-dark);
  box-shadow: 0 8px 22px rgba(var(--gold-primary-rgb), 0.4);
  transform: translateY(-2px);
}
.contatti-btn:focus-visible {
  outline: 3px solid var(--brand-green-deep);
  outline-offset: 3px;
}

/* --- Avviso e chiusura prevendita -------------------------------------- */
.presale-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 auto 2rem;
  max-width: 640px;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-gold-focus);
  border-radius: 12px;
  background: rgba(var(--gold-primary-rgb), 0.08);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-light);
}
.presale-banner svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold-dark); }
.presale-banner strong { color: var(--gold-dark); }

.presale-closed {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.presale-closed h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.presale-closed p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

/* --- Pop-up avviso ----------------------------------------------------- */

/* CRITICO: `.popup-overlay`/`.lightbox` impostano display:flex, che sovrascrive
   il display:none dell'attributo [hidden]. Senza questa regola gli overlay
   restano a tutto schermo (opacity 0) e intercettano ogni click/tocco,
   rendendo la pagina inutilizzabile. Il selettore composto ha specificità
   maggiore e vince. */
.popup-overlay[hidden],
.lightbox[hidden] {
  display: none !important;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(2, 10, 5, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.open { opacity: 1; }

.popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.popup-overlay.open .popup-card { transform: translateY(0) scale(1); }

.popup-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-light);
  margin: 0.5rem 0 0.9rem;
}
.popup-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.popup-card strong { color: var(--gold-dark); }

.popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-quick);
}
.popup-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--text-light); }

/* --- Galleria slideshow ------------------------------------------------ */
.galleria { padding: 5rem 0 5.5rem; }
.galleria-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.galleria-head .section-title { margin: 0.4rem 0 0.7rem; }
.galleria-head p { color: var(--text-muted); }

.slideshow {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #0e130f;
}
.slideshow-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide {
  flex: 0 0 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(2, 10, 5, 0.5);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-quick);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slide-nav:hover { background: var(--gold-primary); color: #1c1405; }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }

.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  background: rgba(2, 10, 5, 0.4);
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}
.slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition-quick);
}
.slide-dot.active { background: var(--gold-primary); transform: scale(1.25); }

/* --- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(2, 10, 5, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-quick);
}
.lightbox-nav:hover { background: var(--gold-primary); color: #1c1405; }
.lightbox-prev { left: 2vw; }
.lightbox-next { right: 2vw; }

/* --- FAQ --------------------------------------------------------------- */
.faq { padding: 4.5rem 0 5.5rem; }
.faq-head { text-align: center; margin-bottom: 2.4rem; }
.faq-head .section-title { margin-top: 0.4rem; }
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: var(--transition-quick);
}
.faq-item[open] { border-color: var(--border-gold-focus); box-shadow: var(--shadow-card); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-primary);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: '−'; }

.faq-body {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq-body a { color: var(--gold-dark); text-decoration: underline; }

@media (max-width: 640px) {
  .slide { aspect-ratio: 4 / 3; }
  .slide-nav { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* --- Grazie: numeri estrazione in sola lettura ------------------------- */
.lottery-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Upsell lotteria (legacy, non più usato) --------------------------- */
.lottery-teaser {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  margin-top: 1.5rem;
  border: 1px dashed var(--border-gold-focus);
  border-radius: 14px;
  background: rgba(var(--gold-primary-rgb), 0.05);
}

.lottery-teaser__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--gold-primary-rgb), 0.14);
  color: var(--gold-primary);
}

.lottery-teaser__icon svg { width: 22px; height: 22px; fill: currentColor; }

.lottery-teaser h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.lottery-teaser p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.lottery-teaser strong { color: var(--gold-dark); }

/* --- Note / intolleranze --------------------------------------------- */
.form-textarea {
  width: 100%;
  min-height: 96px;
  padding: 1.1rem 1rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  resize: vertical;
  transition: var(--transition-quick);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--border-gold-focus);
  box-shadow: 0 0 0 3px rgba(var(--gold-primary-rgb), 0.1);
}

.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: 0.45rem;
  font-size: 0.7rem;
  color: var(--gold-primary);
}

/* --- Consensi GDPR ---------------------------------------------------- */
.consents {
  margin-top: 1.6rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(var(--bg-card-rgb), 0.6);
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
}

.consent-item input[type='checkbox'] {
  flex-shrink: 0;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(var(--brand-green-deep-rgb), 0.28);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-quick);
}

.consent-item input[type='checkbox']:hover { border-color: var(--gold-primary); }

.consent-item input[type='checkbox']:checked {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 15px;
  background-position: center;
  background-repeat: no-repeat;
}

.consent-item input[type='checkbox']:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.consent-item label {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-item label .req { color: #b3261e; font-weight: 700; }
.consent-item a { color: var(--gold-dark); text-decoration: underline; }

/* --- Metodi di pagamento (informativi, non selezionabili) -------------- */
.payment-accepted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-chip svg { width: 20px; height: 20px; fill: currentColor; opacity: 0.7; }

.secure-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.secure-note svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--brand-green-light); }

/* --- Errori del form --------------------------------------------------- */
.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(179, 38, 30, 0.3);
  border-left: 3px solid #b3261e;
  border-radius: 10px;
  background: rgba(179, 38, 30, 0.05);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #7f1d1a;
}

.form-error.active { display: flex; }

.btn-submit[disabled] { cursor: progress; }

/* --- Pannello staff: login e riepilogo --------------------------------- */
.staff-login { display: grid; gap: 1rem; max-width: 340px; }

.staff-login input {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.staff-login input:focus {
  outline: none;
  border-color: var(--border-gold-focus);
}

.staff-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.staff-stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(var(--gold-primary-rgb), 0.04);
}

.staff-stat span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.staff-stat strong {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.staff-msg { font-size: 0.88rem; color: #7f1d1a; min-height: 1.2em; }
.staff-hidden { display: none !important; }

/* --- Area riservata staff (pagina dedicata) ---------------------------- */
.staff-page {
  min-height: 100vh;
  padding: 8rem 0 5rem;
  background: var(--bg-obsidian);
}

.staff-auth {
  max-width: 460px;
  margin: 2rem auto;
  padding: 2.6rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.staff-auth h1 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--text-light);
  margin: 0.5rem 0 0.8rem;
}
.staff-auth p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.6rem; }
.staff-auth .staff-login { max-width: none; }

.staff-dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.staff-dash-head h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.staff-stat--ko { border-color: rgba(179, 38, 30, 0.4); background: rgba(179, 38, 30, 0.06); }
.staff-stat--ko strong { color: #b3261e; }

.staff-add {
  padding: 1.8rem;
  margin-bottom: 2.4rem;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.staff-add h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.staff-add-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.4rem; line-height: 1.55; }
.staff-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.staff-add .btn-submit { width: auto; padding: 1rem 2.4rem; }

.staff-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.staff-table-head h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
}
.staff-table-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.staff-table-actions .btn-excel,
.staff-table-actions .btn-ghost { padding: 0.7rem 1.4rem; font-size: 0.72rem; }
.staff-toggle { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.staff-page .staff-table-wrapper {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
}
.staff-page .staff-table th { position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.staff-page .col-num { font-weight: 700; color: var(--gold-dark); }

.staff-page .staff-msg { margin-top: 0.9rem; font-size: 0.85rem; }

@media (max-width: 640px) {
  .staff-add-grid { grid-template-columns: 1fr; }
  .staff-dash-head { flex-direction: column; align-items: flex-start; }
}

/* --- Pagine legali ----------------------------------------------------- */
.legal-page {
  padding: 10rem 0 6rem;
  background: var(--bg-obsidian);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.legal-content .legal-updated {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green-deep);
  margin: 2.4rem 0 0.8rem;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 1.6rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1.2rem 1.2rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-content strong { color: var(--text-light); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.legal-table th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* --- Pagina di ringraziamento ------------------------------------------ */
.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.2rem 4rem;
  background: var(--bg-obsidian);
}

.thanks-card {
  width: 100%;
  max-width: 620px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  text-align: center;
}

.thanks-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--gold-primary-rgb), 0.12);
  border: 1px solid var(--border-gold-focus);
  font-size: 2rem;
  color: var(--gold-primary);
}

.thanks-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.thanks-card > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.thanks-order {
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  border: 1px dashed var(--border-gold-focus);
  border-radius: 12px;
  background: rgba(var(--gold-primary-rgb), 0.05);
}

.thanks-order span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.thanks-order strong {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.thanks-details {
  text-align: left;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.thanks-details li {
  list-style: none;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.thanks-details li:last-child { border-bottom: none; }
.thanks-details li strong { color: var(--text-light); }

.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.btn-ghost {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: var(--transition-quick);
}

.btn-ghost:hover { border-color: var(--gold-primary); color: var(--gold-dark); }

/* --- Assegnazione dei numeri dell'estrazione --------------------------- */
.lottery-box {
  text-align: left;
  padding: 1.6rem 1.7rem;
  margin-bottom: 2rem;
  border: 1px dashed var(--border-gold-focus);
  border-radius: 14px;
  background: rgba(var(--gold-primary-rgb), 0.05);
}

.lottery-box h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.lottery-intro {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.lottery-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.lottery-row:last-child { border-bottom: none; }

.lottery-num {
  flex-shrink: 0;
  min-width: 76px;
  padding: 0.45rem 0.7rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  background: var(--bg-card);
  border: 1px solid var(--border-gold-focus);
  border-radius: 8px;
}

.lottery-select {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.lottery-select:focus {
  outline: none;
  border-color: var(--border-gold-focus);
}

.lottery-msg {
  min-height: 1.3em;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lottery-msg--ok { color: var(--brand-green-deep); }
.lottery-msg--ko { color: #7f1d1a; }

.lottery-box .btn-luxury { margin-top: 1rem; }

@media (max-width: 640px) {
  .lottery-teaser { flex-direction: column; }
  .legal-page { padding-top: 7rem; }
}
