* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* =============================================================================
   ACCESSIBILITÀ — focus visibility (WCAG 2.4.7) + tasti tastiera
   ============================================================================= */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #ff7849;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
[role="tab"]:focus-visible,
.events-cal-day:focus-visible,
.ev-cta:focus-visible,
.pack-cta:focus-visible {
  outline: 2px solid #ff7849;
  outline-offset: 3px;
  border-radius: 2px;
}
.sim-field input:focus-visible,
.sim-field textarea:focus-visible,
.form-row input:focus-visible {
  outline: 2px solid #ff7849;
  outline-offset: 0;
}
.sim-options input:focus-visible + label {
  outline: 2px solid #ff7849;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.5;
}
.event-card:target {
  border-color: #ff7849;
  box-shadow: 0 0 0 3px rgba(255,120,73,0.25);
  animation: pulse 1.5s ease 1;
}
@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
a.events-cal-day { text-decoration: none; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: #000000;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-cta {
  background: #ff7849;
  color: #0a0a0a;
  padding: 12px 24px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-cta:hover { background: #ff5a1f; transform: translateY(-1px); }

.hero {
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 25%, rgba(10,10,10,0.15) 55%, rgba(10,10,10,0.7) 100%),
    url('../img/l1-hero-cheers.webp') center 65%/cover;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(0deg, rgba(10,10,10,1) 0%, transparent 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ff7849;
  color: #ff7849;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { color: #ff7849; }
.hero-sub {
  font-size: 20px;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto 48px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #ff7849;
  color: #0a0a0a;
  padding: 18px 36px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary {
  background: transparent;
  color: #f5f5f5;
  padding: 18px 36px;
  border: 1px solid #f5f5f5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  cursor: pointer;
}

.events {
  padding: 120px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #ff7849;
  letter-spacing: 0.4em;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 80px;
  max-width: 800px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* CALENDAR GRID L1 */
.events-calendar {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.events-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a2a2a;
}
.events-cal-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.05em;
}
.events-cal-month span { color: #ff7849; }
.events-cal-stats {
  font-size: 12px;
  color: #b0b0b0;
  letter-spacing: 0.1em;
}
.events-cal-stats strong { color: #ff7849; }
.events-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.events-cal-dayname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: #ff7849;
  text-align: center;
  padding: 4px 0 12px;
  letter-spacing: 0.3em;
}
.events-cal-day {
  aspect-ratio: 1;
  background: #0d0d0d;
  color: #8a8a8a; /* WCAG AA: 4.6:1 su #0d0d0d (era #555 = 2.85) */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid transparent;
  position: relative;
}
.events-cal-day.empty { background: transparent; }
.events-cal-day.has-event {
  background: rgba(255,120,73,0.15);
  color: #f5f5f5;
  border-color: #ff7849;
  cursor: pointer;
  transition: all 0.2s;
}
.events-cal-day.has-event:hover {
  background: #ff7849;
  color: #0a0a0a;
  transform: scale(1.05);
}
.events-cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #ff7849;
  border-radius: 50%;
}
.events-cal-day.has-event:hover::after { background: #0a0a0a; }
.events-cal-day.sold-out {
  background: rgba(150,150,150,0.1);
  color: #9a9a9a; /* AA 5.6:1 (era #777 = 3.96 fail) */
  border-color: #555;
  cursor: pointer;
}
.events-cal-day.sold-out::after { background: #888; }
.events-cal-legend {
  display: flex; gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  font-size: 12px;
  color: #b0b0b0;
}
.events-cal-legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.cal-helper {
  font-size: 12px;
  color: #ff7849;
  text-align: center;
  margin: 14px 0 32px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.event-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.event-card:hover { border-color: #ff7849; transform: translateY(-4px); }
.event-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.event-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(0deg, rgba(26,26,26,0.95) 0%, transparent 100%);
}
.event-body { padding: 28px 32px 32px; }
.event-tag {
  display: inline-block;
  background: #ff7849;
  color: #0a0a0a;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.event-tag.sold-out { background: #444; color: #888; }
.event-edition {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid #ff7849;
  color: #ff7849;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  vertical-align: top;
}
.event-date { font-size: 13px; color: #888; margin-bottom: 8px; }
.event-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 12px;
}
.event-loc { font-size: 14px; color: #b0b0b0; margin-bottom: 24px; }
.event-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
}
.event-price { color: #ff7849; font-weight: 700; }
.event-spots { color: #b0b0b0; }
.event-spots.warning { color: #ff7849; }

/* Pacchetti — sezione card pacchetti L1 */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}
.pack-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pack-card:hover { border-color: #ff7849; transform: translateY(-4px); }
.pack-card.coming-soon { opacity: 0.78; }
.pack-card.coming-soon:hover { border-color: #444; transform: none; }
.pack-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pack-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(0deg, rgba(26,26,26,0.95) 0%, transparent 100%);
}
.pack-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pack-badge.live { background: #ff7849; color: #0a0a0a; }
.pack-badge.soon { background: rgba(10,10,10,0.85); color: #ff7849; border: 1px solid #ff7849; }
.pack-body { padding: 28px 32px 24px; flex: 1; display: flex; flex-direction: column; }
.pack-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}
.pack-sub { font-size: 14px; color: #b0b0b0; margin-bottom: 18px; min-height: 38px; }
.pack-feats {
  list-style: none;
  margin-bottom: 22px;
  font-size: 13px;
  color: #d0d0d0;
}
.pack-feats li {
  padding: 6px 0;
  border-bottom: 1px solid #2a2a2a;
  display: flex; gap: 8px;
}
.pack-feats li::before { content: '·'; color: #ff7849; font-weight: 700; }
.pack-feats li:last-child { border-bottom: none; }
.pack-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #2a2a2a;
}
.pack-cta {
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.pack-cta.privato {
  background: #ff7849;
  color: #0a0a0a;
}
.pack-cta.privato:hover { background: #ff5a1f; }
.pack-cta.evento {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid #f5f5f5;
}
.pack-cta.evento:hover { border-color: #ff7849; color: #ff7849; }
.pack-cta.notify {
  background: transparent;
  color: #ff7849;
  border: 1px solid #ff7849;
  grid-column: span 2;
}
.pack-cta.notify:hover { background: #ff7849; color: #0a0a0a; }
.pack-price-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #2a2a2a;
  margin-bottom: 0;
  font-size: 12px;
}
.pack-price-block .col {
  display: flex; flex-direction: column; gap: 2px;
}
.pack-price-block .col-label {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
}
.pack-price-block .col-value {
  color: #ff7849;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
}
.events-divider {
  margin: 80px 0 60px;
  text-align: center;
  position: relative;
}
.events-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: #2a2a2a;
}
.events-divider span {
  position: relative;
  background: #0a0a0a;
  padding: 0 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #ff7849;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.fill-meter {
  margin-top: 12px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  height: 6px;
  position: relative;
  overflow: hidden;
}
.fill-meter-bar {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: #ff7849;
}
.fill-meter.confirmed .fill-meter-bar { background: #6dca87; }
.fill-status {
  margin-top: 6px;
  font-size: 11px;
  color: #b0b0b0;
  letter-spacing: 0.05em;
  display: flex; justify-content: space-between;
}
.fill-status .conf-tag { color: #ff7849; font-weight: 700; }
.fill-status .conf-tag.green { color: #6dca87; }

/* TAB SWITCH community / privati */
.event-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 50px;
  border: 1px solid #2a2a2a;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.event-tab-btn {
  padding: 16px 32px;
  background: transparent;
  color: #888;
  border: none;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
}
.event-tab-btn:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: #2a2a2a;
}
.event-tab-btn.active {
  background: #ff7849;
  color: #0a0a0a;
}
.event-tab-btn:not(.active):hover { color: #f5f5f5; }
.tab-lead {
  text-align: center;
  font-size: 15px;
  color: #b0b0b0;
  max-width: 720px;
  margin: 0 auto 50px;
  line-height: 1.7;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* CTA card eventi */
.event-card-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}
.ev-cta {
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.ev-cta.primary {
  background: #ff7849;
  color: #0a0a0a;
  border: 1px solid #ff7849;
}
.ev-cta.primary:hover { background: #ff5a1f; border-color: #ff5a1f; }
.ev-cta.primary.disabled {
  background: #333;
  color: #b0b0b0; /* AA 4.7:1 su #333 (era #777 = 3.04 fail) */
  border-color: #333;
  cursor: not-allowed;
}
.ev-cta.secondary {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
}
.ev-cta.secondary:hover { border-color: #ff7849; color: #ff7849; }

/* Calendario arricchito */
.calendar-intro {
  text-align: center;
  margin: 80px auto 30px;
  max-width: 800px;
  padding: 0 24px;
}
.calendar-intro-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #ff7849;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.calendar-intro-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.calendar-intro-sub {
  font-size: 15px;
  line-height: 1.7;
  color: #b0b0b0;
}
.events-cal-day { aspect-ratio: 1; min-height: 64px; flex-direction: column; padding: 6px 4px; }
.events-cal-day { display: flex; align-items: flex-start; justify-content: center; }
.events-cal-day .day-num {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  align-self: flex-start;
  margin-left: 4px;
}
.events-cal-day .day-chip {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: auto;
  padding: 2px 4px;
  background: #ff7849;
  color: #0a0a0a;
  border-radius: 2px;
  align-self: stretch;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events-cal-day.sold-out .day-chip {
  background: #555;
  color: #aaa;
}
.events-cal-day.available {
  background: #0d0d0d;
  color: #888;
  border: 1px solid #1a3a4a;
  cursor: pointer;
  transition: all 0.18s;
}
.events-cal-day.available:hover {
  background: rgba(73,180,255,0.12);
  border-color: #49b4ff;
  color: #f5f5f5;
}
.events-cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #49b4ff;
  border-radius: 50%;
}
/* override has-event/sold-out per nuova struttura interna */
.events-cal-day.has-event::after { display: none; }
.events-cal-day.sold-out::after { display: none; }

/* DRAWER simulatore preventivo */
.sim-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sim-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sim-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: #0a0a0a;
  border-left: 1px solid #2a2a2a;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sim-drawer.open { transform: translateX(0); }
.sim-drawer-head {
  padding: 24px 32px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-drawer-head h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
}
.sim-drawer-head h3 span { color: #ff7849; }
.sim-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.sim-close:hover { border-color: #ff7849; color: #ff7849; }
.sim-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.sim-step {
  margin-bottom: 32px;
}
.sim-step-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: #ff7849;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sim-step-q {
  font-size: 17px;
  margin-bottom: 16px;
  color: #f5f5f5;
}
.sim-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.sim-options label {
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-size: 13px;
  color: #d0d0d0;
}
.sim-options label:hover { border-color: #ff7849; color: #f5f5f5; }
.sim-options input[type=radio],
.sim-options input[type=checkbox] {
  display: none;
}
.sim-options input[type=radio]:checked + label,
.sim-options input[type=checkbox]:checked + label {
  background: #ff7849;
  color: #0a0a0a;
  border-color: #ff7849;
  font-weight: 700;
}
.sim-options-group {
  display: contents;
}
.sim-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: #ff7849;
}
.sim-slider-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #ff7849;
  margin-left: 8px;
}
.sim-quote {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #ff7849;
  padding: 24px 28px;
  margin: 0;
  position: sticky;
  bottom: 0;
}
.sim-quote-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: #ff7849;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sim-quote-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: #f5f5f5;
  margin-bottom: 4px;
}
.sim-quote-amount small { font-size: 16px; color: #888; margin-left: 8px; }
.sim-quote-breakdown {
  font-size: 12px;
  color: #b0b0b0;
  margin: 12px 0 16px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  line-height: 1.7;
}
.sim-quote-breakdown div { display: flex; justify-content: space-between; }
.sim-quote-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sim-quote-disclaimer {
  font-size: 11px;
  color: #666;
  margin-top: 12px;
  line-height: 1.5;
}
.sim-step-hint {
  font-size: 11px;
  color: #888;
  margin: -4px 0 8px;
  line-height: 1.4;
}
.sim-form {
  display: grid;
  gap: 12px;
}
.sim-field {
  display: grid;
  gap: 4px;
}
.sim-field span {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sim-field input,
.sim-field textarea {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 0;
}
.sim-field input:focus,
.sim-field textarea:focus {
  outline: none;
  border-color: #ff7849;
}
.sim-field textarea { resize: vertical; min-height: 60px; }
.sim-submit-msg {
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-left: 3px solid #ff7849;
  background: rgba(255, 120, 73, 0.08);
  color: #f5f5f5;
}
.sim-submit-msg.error {
  border-left-color: #e84a4a;
  background: rgba(232, 74, 74, 0.08);
}
.sim-submit-msg.success {
  border-left-color: #4ace87;
  background: rgba(74, 206, 135, 0.08);
}
.sim-options.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* Skeleton chips mostrati prima del caricamento listino */
.sim-options-loading {
  pointer-events: none;
}
.sim-skeleton {
  height: 56px;
  flex: 1 1 140px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a1a1a 0%, #242424 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: simSkeletonPulse 1.4s ease-in-out infinite;
}
@keyframes simSkeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Banner mostrato quando carichiamo il listino dal fallback bundled */
.sim-offline-banner {
  margin: 0 24px 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #ffd28a;
  background: rgba(255, 168, 60, 0.08);
  border-left: 3px solid #ffa83c;
}

/* Checkbox consenso privacy */
.sim-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #c9c9c9;
  line-height: 1.45;
  cursor: pointer;
  margin-top: 4px;
}
.sim-privacy input[type=checkbox] {
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #ff7849;
}
.sim-privacy a {
  color: #ff7849;
  text-decoration: underline;
}

.sim-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
}

/* Pax stepper: bottoni ai lati dello slider per touch */
.sim-pax-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sim-pax-row .sim-slider { flex: 1; }
.sim-pax-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #f5f5f5;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.sim-pax-btn:hover { border-color: #ff7849; color: #ff7849; }
.sim-pax-btn:active { background: #1a1a1a; }
.sim-pax-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.reel-preview {
  padding: 120px 48px;
  background: #050505;
}
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.reel-item {
  aspect-ratio: 9/16;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.reel-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.reel-item::after {
  content: '▶';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.85);
  font-size: 32px;
  z-index: 2;
}

.community {
  padding: 120px 48px;
  background: #0a0a0a;
  text-align: center;
}
.community-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 24px;
}
.community-sub {
  font-size: 18px;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto 48px;
}
.form-row {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.form-row input {
  flex: 1;
  background: transparent;
  color: #f5f5f5;
  padding: 18px 24px;
  border: 1px solid #2a2a2a;
  border-right: none;
  font-size: 15px;
  outline: none;
}
.form-row input::placeholder { color: #555; }
.form-row button {
  background: #ff7849;
  color: #0a0a0a;
  padding: 18px 32px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  cursor: pointer;
}

.footer {
  padding: 48px;
  border-top: 1px solid #1a1a1a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  font-size: 13px;
  color: #9a9a9a; /* WCAG AA: 5.6:1 su #0a0a0a (era #555 = 2.83) */
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #b0b0b0; text-decoration: none; } /* AA 7.5:1 (era #888 = 5.04) */
.footer-links a:hover { color: #ff7849; }

/* =============================================================================
   RESPONSIVE — tablet & mobile
   Breakpoint primario 900px (tablet portrait), 640px (mobile), 380px (small)
   ============================================================================= */

/* Tap target minimo WCAG AA: 44×44 px sui touch device */
@media (hover: none) and (pointer: coarse) {
  .ev-cta,
  .pack-cta,
  .nav-cta,
  .btn-primary,
  .btn-secondary,
  .event-tab-btn,
  .events-cal-day,
  .sim-pax-btn,
  .sim-close {
    min-height: 44px;
  }
  .events-cal-day { min-height: 48px; }
}

/* === TABLET ≤900px === */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }

  .nav { padding: 10px 24px; }
  .logo img { height: 44px; }
  .nav-cta { padding: 10px 18px; font-size: 11px; }

  .hero { height: auto; min-height: 100vh; padding: 120px 24px 80px; }
  .hero-title { font-size: clamp(56px, 10vw, 120px); }
  .hero-sub { font-size: 17px; margin-bottom: 36px; }
  .hero-ctas { gap: 12px; }
  .btn-primary, .btn-secondary { padding: 16px 28px; font-size: 12px; }

  .events { padding: 80px 24px; }
  .section-title { font-size: clamp(36px, 7vw, 64px); margin-bottom: 56px; }
  .event-tab-btn { padding: 14px 20px; font-size: 14px; letter-spacing: 0.18em; }

  .events-calendar { padding: 20px; }
  .events-cal-month { font-size: 28px; }
  .events-cal-stats { font-size: 11px; }

  .calendar-intro { margin: 56px auto 24px; padding: 0 16px; }
  .calendar-intro-title { font-size: clamp(24px, 5vw, 40px); }

  .reel-preview, .community { padding: 80px 24px; }

  .footer { padding: 32px 24px; gap: 16px; }
}

/* === MOBILE ≤640px === */
@media (max-width: 640px) {
  .nav { padding: 8px 16px; }
  .logo img { height: 38px; }

  /* Recentra il crop dell'hero per inquadrare i soggetti su portrait mobile */
  .hero {
    padding: 100px 20px 64px; min-height: 90vh;
    background:
      linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.35) 30%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.85) 100%),
      url('../img/l1-hero-cheers.webp') center 50%/cover;
  }
  .hero-tag { font-size: 10px; letter-spacing: 0.25em; padding: 6px 12px; margin-bottom: 24px; }
  .hero-title { font-size: clamp(48px, 13vw, 84px); margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-sub br { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary, .btn-secondary { padding: 16px 20px; width: 100%; }

  .events { padding: 64px 16px; }
  .section-label { font-size: 12px; letter-spacing: 0.3em; }
  .section-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 40px; }

  /* Tabs comunità/privati: switch verticale invece che orizzontale per evitare clip */
  .event-tabs { width: 100%; flex-direction: column; }
  .event-tab-btn { padding: 14px 16px; font-size: 13px; }
  .event-tab-btn:not(:first-child)::before {
    left: 12.5%; right: 12.5%; top: auto; bottom: 0;
    width: auto; height: 1px;
  }

  .tab-lead { font-size: 14px; margin-bottom: 32px; }

  /* Calendario eventi: cella più stretta + chip più piccolo */
  .events-calendar { padding: 14px 12px; }
  .events-cal-header { flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 14px; }
  .events-cal-month { font-size: 24px; }
  .events-cal-grid { gap: 3px; }
  .events-cal-dayname { font-size: 9px; letter-spacing: 0.15em; padding: 2px 0 8px; }
  .events-cal-day { min-height: 44px; padding: 4px 2px; }
  .events-cal-day .day-num { font-size: 12px; margin-left: 2px; }
  .events-cal-day .day-chip {
    font-size: 8px;
    letter-spacing: 0.05em;
    padding: 1px 2px;
  }
  .events-cal-legend { flex-wrap: wrap; gap: 12px; font-size: 11px; padding-top: 14px; margin-top: 14px; }
  .cal-helper { font-size: 11px; margin: 12px 0 24px; }

  .events-grid, .packs-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-body, .pack-body { padding: 22px 22px 24px; }
  .event-title, .pack-title { font-size: 28px; }
  .pack-cta-row { gap: 6px; }
  .pack-cta { padding: 14px 6px; font-size: 10px; letter-spacing: 0.08em; }

  .event-card-ctas { gap: 6px; padding-top: 14px; margin-top: 14px; }
  .ev-cta {
    padding: 14px 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .events-divider { margin: 56px 0 40px; }
  .events-divider span { font-size: 12px; letter-spacing: 0.3em; padding: 0 16px; }

  .reel-preview { padding: 64px 16px; }
  .reel-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .community { padding: 64px 16px; }
  .community-title { font-size: clamp(32px, 9vw, 48px); }
  .community-sub { font-size: 15px; margin-bottom: 32px; }
  .form-row { flex-direction: column; gap: 8px; }
  .form-row input { border-right: 1px solid #2a2a2a; }
  .form-row button { padding: 16px 24px; }

  .footer { padding: 28px 16px; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px; flex-wrap: wrap; }

  /* Drawer simulatore: full screen su mobile */
  .sim-drawer { width: 100%; }
  .sim-drawer-head { padding: 18px 20px; }
  .sim-drawer-head h3 { font-size: 22px; }
  .sim-body { padding: 20px; }
  .sim-options { grid-template-columns: 1fr 1fr; }
  .sim-quote { padding: 20px; }
  .sim-quote-amount { font-size: 36px; }
  .sim-offline-banner { margin: 0 16px 12px; }
}

/* === SMALL MOBILE ≤380px === */
@media (max-width: 380px) {
  .nav { padding: 8px 12px; }
  .events { padding: 56px 12px; }
  .events-calendar { padding: 12px 8px; }
  .events-cal-grid { gap: 2px; }
  .events-cal-day { min-height: 40px; padding: 3px 1px; }
  .events-cal-day .day-num { font-size: 11px; margin-left: 1px; }
  .events-cal-day .day-chip {
    /* Su schermi piccolissimi nascondiamo il chip e teniamo solo il pallino */
    display: none;
  }
  .events-cal-day.has-event::after,
  .events-cal-day.available::after {
    display: block;
  }
  .hero-title { font-size: clamp(40px, 14vw, 56px); }
}
