/* =========================================
   HALLOWEEN 2026
   Stile della pagina components/promo/halloween-2026/pagina.inc.php
   Tutte le regole sono limitate a #halloween-2026 per non
   interferire con il resto del sito.
   Font: Creepster (titoli) e Poppins (testi), entrambi caricati in news.php
   ========================================= */

/* Font dei pulsanti del form (stesso del Quiz Game) */
@font-face {
  font-family: "MissionGTRCondensed";
  src: url("/fonts/quiz_game/mission-gtr-condensed.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#halloween-2026 {
  --hw-red: #ff1f1f;
  --hw-red-soft: rgba(255, 31, 31, 0.45);
  --hw-ink: #f3eeee;
  --hw-ink-muted: #cfc6c6;
  --hw-surface: rgba(10, 6, 6, 0.84);
  --hw-surface-solid: #0d0909;
  --hw-display: 'Creepster', cursive;
  --hw-body: 'Poppins', Arial, sans-serif;
  --hw-ease: cubic-bezier(0.22, 1, 0.36, 1);

  width: 100%;
  min-height: 90vh;
  background-image: url("/images/promo/halloween/bg_pennywise.webp");
  background-attachment: fixed;
  background-position: top;
  background-size: cover;
  padding: 3rem 0 2.5rem 0;
  color: var(--hw-ink);
  font-family: var(--hw-body);
}

#halloween-2026 .hw-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   TITOLO
========================= */
#halloween-2026 .hw-header {
  text-align: center;
  margin-bottom: 3rem;
}

#halloween-2026 .hw-title {
  font-family: var(--hw-display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 1;
  color: var(--hw-red);
  text-shadow: -3px 3px 0 #fff;
  margin: 0 0 .75rem 0;
  text-wrap: balance;
}

#halloween-2026 .hw-period {
  font-family: var(--hw-display);
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  color: #fff;
  text-shadow: -2px 2px 0 var(--hw-red);
  margin: 0;
}

/* =========================
   TIMELINE
========================= */
#halloween-2026 .hw-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Linea verticale che collega le date */
#halloween-2026 .hw-timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 55px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--hw-red-soft) 6%, var(--hw-red-soft) 94%, transparent);
}

#halloween-2026 .hw-event {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* Blocco data */
#halloween-2026 .hw-date {
  position: relative;
  z-index: 1;
  background: var(--hw-surface-solid);
  border: 1px solid var(--hw-red-soft);
  border-radius: 14px;
  padding: .7rem .4rem .8rem .4rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.18);
}

#halloween-2026 .hw-date-wd {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--hw-ink-muted);
  text-transform: uppercase;
}

#halloween-2026 .hw-date-day {
  display: block;
  font-family: var(--hw-display);
  font-size: 2.9rem;
  line-height: 1;
  color: var(--hw-red);
  text-shadow: -2px 2px 0 #fff;
  margin: .2rem 0;
}

#halloween-2026 .hw-date-month {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

#halloween-2026 .hw-date-range {
  display: block;
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: .75rem;
  font-weight: 600;
  color: var(--hw-ink-muted);
  text-transform: uppercase;
}

/* Contenuto evento */
#halloween-2026 .hw-card {
  background: var(--hw-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-align: left;
  transition: border-color .35s var(--hw-ease), box-shadow .35s var(--hw-ease);
}

#halloween-2026 .hw-event:hover .hw-card {
  border-color: var(--hw-red-soft);
  box-shadow: 0 0 32px rgba(255, 0, 0, 0.16);
}

#halloween-2026 .hw-card h2 {
  font-family: var(--hw-display);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.05;
  color: var(--hw-red);
  text-shadow: -2px 2px 0 #fff;
  letter-spacing: .5px;
  margin: 0 0 .4rem 0;
  text-wrap: balance;
}

#halloween-2026 .hw-when {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem 0;
}

#halloween-2026 .hw-when strong {
  color: var(--hw-red);
}

#halloween-2026 .hw-card p:not([class]) {
  color: var(--hw-ink-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 1rem 0;
}

#halloween-2026 .hw-card a:not(.hw-cta) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--hw-red);
  text-underline-offset: 3px;
}

#halloween-2026 .hw-slogan {
  font-family: var(--hw-display);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: #fff;
  text-shadow: -2px 2px 0 var(--hw-red);
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
}

/* Prezzo */
#halloween-2026 .hw-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  margin: 0 0 1rem 0;
}

#halloween-2026 .hw-price-value {
  font-family: var(--hw-display);
  font-size: clamp(3rem, 8vw, 4.2rem);
  line-height: 1;
  color: var(--hw-red);
  text-shadow: -3px 3px 0 #fff;
}

#halloween-2026 .hw-price-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Pulsante prenota (link) */
#halloween-2026 .hw-cta {
  display: inline-block;
  margin-top: .25rem;
  padding: .7rem 1.6rem;
  border: 2px solid var(--hw-red);
  border-radius: 999px;
  background: rgba(255, 31, 31, 0.12);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color .25s var(--hw-ease), box-shadow .25s var(--hw-ease), transform .25s var(--hw-ease);
}

#halloween-2026 .hw-cta:hover,
#halloween-2026 .hw-cta:focus-visible {
  background: var(--hw-red);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 31, 31, 0.55);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =========================
   DR.WHY
========================= */
#halloween-2026 .hw-drwhy-logo {
  display: block;
  width: 260px;
  max-width: 75%;
  height: auto;
  margin: 0 0 .9rem 0;
  /* contorno bianco: rende leggibile la scritta scura del logo sullo sfondo nero (niente riquadro) */
  filter:
    drop-shadow(1px 0 0 #fff)
    drop-shadow(-1px 0 0 #fff)
    drop-shadow(0 1px 0 #fff)
    drop-shadow(0 -1px 0 #fff)
    drop-shadow(0 0 10px rgba(255, 31, 31, 0.5));
}

#halloween-2026 .hw-pacchetti {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#halloween-2026 .hw-pacchetto {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1.5rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#halloween-2026 .hw-pacchetto h3 {
  font-family: var(--hw-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
}

#halloween-2026 .hw-pacchetto .hw-pacchetto-desc {
  grid-column: 1;
  margin: 0;
  color: var(--hw-ink-muted);
  font-size: .95rem;
  line-height: 1.5;
}

#halloween-2026 .hw-pacchetto .hw-pacchetto-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--hw-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--hw-red);
  text-shadow: -2px 2px 0 #fff;
}

#halloween-2026 .hw-note {
  color: var(--hw-ink-muted);
  font-size: .9rem;
  margin: 0;
}

#halloween-2026 .hw-obbligatoria {
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
}

#halloween-2026 .hw-obbligatoria strong {
  color: var(--hw-red);
}

/* =========================
   COCKTAIL A SCALARE
========================= */
#halloween-2026 .hw-cocktail-steps {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: .5rem 0 0 0;
  padding: 0;
}

#halloween-2026 .hw-cocktail-steps li {
  flex: 1 1 0;
  min-width: 70px;
  text-align: center;
  background: rgba(255, 31, 31, 0.08);
  border: 1px solid var(--hw-red-soft);
  border-radius: 12px;
  padding: .7rem .4rem;
}

/* gradini: ogni cocktail costa meno, il blocco scende */
#halloween-2026 .hw-cocktail-steps li:nth-child(1) { padding-top: 1.6rem; }
#halloween-2026 .hw-cocktail-steps li:nth-child(2) { padding-top: 1.2rem; }
#halloween-2026 .hw-cocktail-steps li:nth-child(3) { padding-top: .9rem; }

#halloween-2026 .hw-cocktail-steps .hw-step-price {
  display: block;
  font-family: var(--hw-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--hw-red);
  text-shadow: -2px 2px 0 #fff;
}

#halloween-2026 .hw-cocktail-steps .hw-step-label {
  display: block;
  margin-top: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}

/* =========================
   CONTATTI
========================= */
#halloween-2026 .hw-contatti {
  text-align: center;
  margin-top: 1rem;
}

#halloween-2026 .hw-contatti p {
  color: #fff;
  font-weight: 600;
  margin-bottom: .4rem;
}

#halloween-2026 .hw-contatti a {
  color: var(--hw-red);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

#halloween-2026 .hw-contatti a:hover {
  color: #fff;
}

/* =========================
   CTA BUTTON "PRENOTA ORA" (Dr.Why)
   (stesso stile Quiz Game - From Uiverse.io by StealthWorm)
========================= */
#halloween-2026 .hw-star-btn {
  position: relative;
  margin: 1.5rem auto 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 13rem;
  overflow: hidden;
  height: 3rem;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 4rem;
  transition: 0.5s;
  animation: hw26_gradient 5s ease infinite;
  border: double 6px transparent;
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(
      137.48deg,
      #ffdb3b 10%,
      #fe53bb 45%,
      #8f51ea 67%,
      #0044ff 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
  font-family: "MissionGTRCondensed", sans-serif;
}

#halloween-2026 .hw-star-btn strong {
  z-index: 2;
  font-family: "MissionGTRCondensed", sans-serif;
  font-size: 14px;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 0 0 4px white;
}

#halloween-2026 .hw-star-btn .container-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 4rem;
}

#halloween-2026 .hw-star-btn .stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

#halloween-2026 .hw-star-btn .stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: hw26_starRotate 90s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

#halloween-2026 .hw-star-btn .stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: hw26_star 60s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

#halloween-2026 .hw-star-btn .glow {
  position: absolute;
  display: flex;
  width: 12rem;
}

#halloween-2026 .hw-star-btn .circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: hw26_pulse 4s infinite;
  z-index: -1;
}

#halloween-2026 .hw-star-btn .circle:nth-of-type(1) {
  background: rgba(254, 83, 186, 0.636);
}

#halloween-2026 .hw-star-btn .circle:nth-of-type(2) {
  background: rgba(142, 81, 234, 0.704);
}

#halloween-2026 .hw-star-btn:hover .container-stars {
  z-index: 1;
  background-color: #212121;
}

#halloween-2026 .hw-star-btn:hover {
  transform: scale(1.1);
}

#halloween-2026 .hw-star-btn:active {
  border: double 4px #fe53bb;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

#halloween-2026 .hw-star-btn:active .circle {
  background: #fe53bb;
}

#halloween-2026 .hw-star-btn:disabled {
  opacity: .6;
  cursor: wait;
}

@keyframes hw26_star {
  from { transform: translateY(0); }
  to   { transform: translateY(-135rem); }
}

@keyframes hw26_starRotate {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0); }
}

@keyframes hw26_gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hw26_pulse {
  0%   { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
  100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* =========================
   MODAL FORM DR.WHY
   (stesso stile del form Quiz Game)
========================= */
#halloween-2026 .modal-content {
  border-radius: 22px;
  background: transparent;
  border: none;
}

#halloween-2026 .quiz-uicard {
  background-image: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
  border-radius: 22px;
  transition: all 0.3s;
  padding: 2px;
}

#halloween-2026 .quiz-uicard:hover {
  box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.3);
}

#halloween-2026 .quiz-uicard2 {
  border-radius: 20px;
  transition: all 0.2s;
}

#halloween-2026 .quiz-uicard2:hover {
  transform: scale(0.99);
}

#halloween-2026 .quiz-uiform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 18px 24px;
  background-color: #171717;
  border-radius: 20px;
}

#halloween-2026 .quiz-uiheading {
  text-align: center;
  margin: 10px 0 12px 0;
  color: #ffffff;
  font-family: "MissionGTRCondensed", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 18px;
}

#halloween-2026 .quiz-uifield {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 25px;
  padding: 12px 14px;
  color: #ffffff;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

#halloween-2026 .quiz-uiicon {
  height: 18px;
  width: 18px;
  fill: #ffffff;
  flex-shrink: 0;
  opacity: 0.9;
}

#halloween-2026 .quiz-uiinput {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #d3d3d3;
  font-size: 14px;
}

#halloween-2026 .quiz-uiinput::placeholder {
  color: rgba(211, 211, 211, 0.75);
}

#halloween-2026 .quiz-uinotes {
  padding: 4px 2px;
}

#halloween-2026 .quiz-uitextarea {
  width: 100%;
  background: #171717;
  border: none;
  outline: none;
  color: #d3d3d3;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
  resize: vertical;
  min-height: 90px;
  font-size: 14px;
}

#halloween-2026 .quiz-uitextarea::placeholder {
  color: rgba(211, 211, 211, 0.75);
}

#halloween-2026 .quiz-uiselect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

#halloween-2026 .quiz-uiselect option {
  background: #171717;
  color: #d3d3d3;
}

/* Testi informativi dentro il form (pacchetti, orario, riepilogo) */
#halloween-2026 .drwhy-form-info {
  margin: 4px 6px 0 6px;
  color: #d3d3d3;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

#halloween-2026 .drwhy-form-info strong {
  color: #ffffff;
}

#halloween-2026 .drwhy-riepilogo {
  margin: 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d3d3d3;
  font-size: 13px;
  text-align: center;
}

#halloween-2026 .drwhy-riepilogo strong {
  color: #ffffff;
}

#halloween-2026 .drwhy-riepilogo.is-error {
  border-color: rgba(255, 60, 60, 0.55);
  color: #ffb3b3;
}

/* Feedback + anti-spam */
#halloween-2026 .quiz-form-alert {
  display: none;
  margin: 10px 0 6px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
}

#halloween-2026 .quiz-form-alert.is-error {
  display: block;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.55);
  color: #ffb3b3;
}

#halloween-2026 .quiz-form-alert.is-success {
  display: block;
  background: rgba(0, 255, 117, 0.12);
  border: 1px solid rgba(0, 255, 117, 0.45);
  color: #bfffe0;
}

#halloween-2026 .quiz-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 575.98px) {
  #halloween-2026 {
    background-position: bottom;
    padding-top: 2rem;
  }

  #halloween-2026 .hw-header {
    margin-bottom: 2rem;
  }

  /* su mobile la data diventa una striscia sopra il riquadro */
  #halloween-2026 .hw-timeline::before {
    display: none;
  }

  #halloween-2026 .hw-event {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  #halloween-2026 .hw-date {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .2rem .5rem;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    padding: .55rem .8rem;
  }

  #halloween-2026 .hw-date-day {
    font-size: 1.9rem;
    margin: 0;
  }

  #halloween-2026 .hw-date-range {
    margin: 0;
    padding: 0 0 0 .5rem;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  #halloween-2026 .hw-card {
    border-radius: 0 0 16px 16px;
    padding: 1.4rem 1.2rem;
  }

  #halloween-2026 .hw-pacchetto .hw-pacchetto-price {
    font-size: 2rem;
  }

  #halloween-2026 .quiz-uiform {
    padding: 18px 14px 14px 14px;
  }
}

/* =========================
   RIDUZIONE MOVIMENTO
========================= */
@media (prefers-reduced-motion: reduce) {
  #halloween-2026 .pulse,
  #halloween-2026 .hw-star-btn,
  #halloween-2026 .hw-star-btn .circle,
  #halloween-2026 .hw-star-btn .stars::before,
  #halloween-2026 .hw-star-btn .stars::after {
    animation: none;
  }

  #halloween-2026 .hw-cta,
  #halloween-2026 .hw-card,
  #halloween-2026 .hw-star-btn {
    transition: none;
  }

  #halloween-2026 .hw-cta:hover,
  #halloween-2026 .hw-star-btn:hover {
    transform: none;
  }
}
