/* ═══════════════════════════════════════════════════════
   SYMPHONY OF UNITY — STYLESHEET
   Obsidian Assembly UI Kit tokens
   ═══════════════════════════════════════════════════════ */

/* ── FONTS ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Mile Heights';
  src: url('../fonts/mileheights.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream: #EDE6DA;
  --cream-light: #F5F0E8;
  --cream-dark: #D9CFBF;
  --warm-beige: #C4B8A5;
  --dark-bg: #0A0A0A;
  --dark-card: #141414;
  --dark-muted: #1A1A1A;
  --text-on-dark: #EDE6DA;
  --text-on-light: #0A0A0A;
  --text-muted: #8A8275;
  --text-muted-dark: #6B6560;
  --accent: #B8A088;
  --accent-warm: #C4956A;
  --border: rgba(138, 130, 117, 0.2);
  --border-dark: rgba(237, 230, 218, 0.12);

  --font-display: 'Europa Regular', 'Helvetica Neue', sans-serif;
  --font-body: 'Europa Regular', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;
  --sp-5xl: 128px;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5xl);
  align-items: start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--sp-xxl);
  }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.display-heading {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.reveal-line {
  display: block;
  font-family: var(--font-body);
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: var(--sp-xxl);
}

.body-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  font-weight: 300;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--warm-beige);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 36px;
  border-radius: var(--r-sm);
  border: none;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn-primary {
  background: var(--cream);
  color: var(--dark-bg);
}

.btn-primary:hover {
  background: var(--accent-warm);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.btn-primary::after {
  content: ' →';
}

.btn-outline-beige {
  background: transparent;
  color: var(--warm-beige);
  border: 1px solid var(--warm-beige);
}

.btn-outline-beige:hover {
  background: var(--warm-beige);
  color: var(--dark-bg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-lang {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--border-dark);
  background: transparent;
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease);
  cursor: pointer;
}

.btn-lang:hover {
  border-color: var(--warm-beige);
}

.lang-opt {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: calc(var(--r-sm) - 2px);
  color: rgba(var(--warm-beige-rgb, 245, 235, 220), 0.4);
  transition: background .2s var(--ease), color .2s var(--ease);
  line-height: 1;
}

.lang-opt.active {
  background: var(--warm-beige);
  color: var(--dark-bg);
}

.lang-sep {
  width: 1px;
  height: 12px;
  background: var(--border-dark);
  flex-shrink: 0;
  transition: opacity .2s var(--ease);
}

.btn-lang:hover .lang-sep {
  opacity: 0;
}

/* ── GRAIN OVERLAY ───────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: multiply;
}

.grain-overlay svg {
  width: 100%;
  height: 100%;
}

/* ── MOUSE TRAIL ─────────────────────────────────────────── */
#mouse-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  width: 100%;
  height: 100%;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Per-character text reveal */
.char {
  display: inline-block;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(24px);
  transition:
    opacity .9s var(--ease-out) calc(var(--i) * 0.04s),
    filter 1s var(--ease-out) calc(var(--i) * 0.04s),
    transform .9s var(--ease-out) calc(var(--i) * 0.04s);
  will-change: opacity, filter, transform;
}

.char.space {
  width: .3em;
}

.reveal-line.revealed .char {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-md) var(--sp-xl);
  background: rgba(10, 10, 10, .65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .6s var(--ease), border-color .6s var(--ease);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, .92);
  border-color: var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-logo-name {
  display: flex;
  align-items: center;
}

.nav-logo-name img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-logo-divider {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--border-dark);
}

.nav-logo-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  line-height: 1.5;
}

#nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: var(--sp-xl);
  align-items: center;
}

#nav-links a {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: color .2s;
}

#nav-links a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  #nav-links {
    display: none;
  }
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(196, 149, 106, .07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 10, .10) 0%, rgba(10, 10, 10, .45) 55%, rgba(10, 10, 10, .85) 100%);
}

.hero-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .07;
  stroke: var(--warm-beige);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: var(--sp-4xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  margin-bottom: var(--sp-lg);
  animation: heroLogoFadeIn 1.2s var(--ease) 0.4s both;
}

@keyframes heroLogoFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-logo-img {
  width: clamp(240px, 40vw, 520px);
  height: auto;
  filter: brightness(0) invert(1);
}

#hero-eyebrow {
  margin-bottom: var(--sp-xl);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 2.5px;
}

.hero-title {
  margin-bottom: var(--sp-lg);
  font-family: var(--font-display);
}

.hero-title .reveal-line:first-child {
  font-size: clamp(52px, 9.5vw, 120px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text-on-dark);
}

.hero-line2 {
  font-size: clamp(52px, 9.5vw, 120px) !important;
  font-weight: 700 !important;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--cream);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 20px);
  color: var(--warm-beige);
  font-weight: 300;
  letter-spacing: .3px;
  max-width: 520px;
  margin-bottom: var(--sp-3xl);
  transition-delay: .7s;
  white-space: pre-line;
}

#hero-cta {
  transition-delay: .9s;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-5xl);
  opacity: .4;
  transition-delay: 1.2s;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--warm-beige));
}

.hero-scroll span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ── USP ─────────────────────────────────────────────────── */
#usp {
  background: var(--cream);
  color: var(--text-on-light);
  padding: var(--sp-4xl) var(--sp-xl);
  text-align: center;
}

#usp .display-heading {
  font-size: clamp(22px, 2.8vw, 42px);
  max-width: 820px;
  margin: 0 auto var(--sp-xxl);
}

#usp-line1 {
  display: block;
  font-weight: 400;
  color: var(--text-on-light);
}

#usp-line2 {
  display: block;
  font-weight: 700;
  color: var(--text-muted-dark);
}

#usp .body-text {
  max-width: 600px;
  margin: 0 auto var(--sp-3xl);
  color: var(--text-muted-dark);
}

.usp-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-3xl);
}

.usp-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  background: var(--dark-bg);
  border: 1px solid var(--dark-bg);
  border-radius: 999px;
  color: var(--cream-light);
  width: 100%;
  max-width: 460px;
  text-align: center;
}

#usp .btn-primary {
  background: var(--dark-bg);
  color: var(--cream-light);
}

#usp .btn-primary:hover {
  background: var(--accent-warm);
  color: var(--dark-bg);
}

.usp-hero-img {
  width: 100%;
  line-height: 0;
}

.usp-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  #usp {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── SOU ─────────────────────────────────────────────────── */
#sou {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: var(--sp-4xl) var(--sp-xl);
}

#sou .display-heading {
  font-size: clamp(18px, 2.5vw, 32px);
  max-width: 880px;
  margin-bottom: var(--sp-3xl);
}

#sou-line1 {
  display: block;
  font-weight: 400;
  color: var(--cream-dark);
}

#sou-line2 {
  display: block;
  font-weight: 700;
  color: var(--text-on-dark);
}

.sou-body {
  max-width: 680px;
  margin-bottom: var(--sp-3xl);
}

.sou-body p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  font-weight: 300;
  color: var(--warm-beige);
  margin-bottom: var(--sp-lg);
}

.sou-body p:last-child {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--text-on-dark);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #sou {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── ORCHESTRA ───────────────────────────────────────────── */
#orchestra {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: var(--sp-4xl) var(--sp-xl) 0;
  /* no bottom padding: gallery bleeds to edge */
}

#orchestra .display-heading .reveal-line:first-child {
  font-weight: 400;
  font-style: normal;
  color: var(--cream-dark);
}

#orchestra .display-heading .reveal-line:last-child {
  font-weight: 700;
  font-style: normal;
  color: var(--text-on-dark);
  white-space: nowrap;
}

#orchestra .body-text {
  color: var(--warm-beige);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.stat-card {
  padding: var(--sp-lg);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
}

.stat-value {
  display: block;
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

#citazione {
  background: var(--cream);
  padding: var(--sp-4xl) var(--sp-xl);
}

.pull-quote {
  padding: var(--sp-xxl) var(--sp-3xl);
  border-left: 2px solid var(--dark-bg);
  margin: 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-style: normal;
  color: var(--text-on-light);
  line-height: 1.4;
  margin-bottom: var(--sp-md);
}

.pull-quote cite {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted-dark);
  font-style: normal;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Orchestra heading — ID-based (long sentences, no reveal-line char animation) */
#orch-line1 { display: block; font-weight: 400; color: var(--cream-dark); }
#orch-line2 { display: block; font-weight: 700; color: var(--text-on-dark); }
#orchestra .display-heading { font-size: clamp(20px, 2.8vw, 42px); max-width: 640px; margin-bottom: var(--sp-3xl); }

/* ── GALLERY SLIDESHOW (clip-path reveal, Obsidian Assembly style) ─── */
.gallery {
  /* Break out of section's horizontal padding without 100vw tricks */
  width: calc(100% + 2 * var(--sp-xl));
  margin-left: calc(-1 * var(--sp-xl));
  /* Fixed height */
  height: clamp(300px, 55vw, 660px);
  overflow: hidden;
  margin-top: var(--sp-xxl);
  background: var(--dark-card);
  cursor: pointer;
  position: relative;
}

/* Each slide sits absolutely, hidden via clip-path (from right) */
.gallery-slide {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.35, 0.35, 0, 1);
  will-change: clip-path;
}

/* Active: fully revealed */
.gallery-slide.is-active {
  clip-path: inset(0 0 0 0);
}

/* Leaving: swept out to the left */
.gallery-slide.is-leaving {
  clip-path: inset(0 0 0 100%);
}

/* Image starts slightly zoomed in, settles to 1 when active */
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transform-origin: center center;
  transition: transform 1.5s cubic-bezier(0.35, 0.35, 0, 1);
  display: block;
  pointer-events: none;
  user-select: none;
}

.gallery-slide.is-active img {
  transform: scale(1);
}

/* Dot navigation */
.gallery-nav {
  position: absolute;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(237, 230, 218, .28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.gallery-dot.is-active {
  background: var(--cream);
  transform: scale(1.55);
}

/* Counter e.g. "02 / 06" */
.gallery-counter {
  position: absolute;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(237, 230, 218, .45);
  z-index: 10;
  font-family: var(--font-body);
}

/* Progress bar along the bottom */
.gallery-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--warm-beige);
  opacity: .35;
  z-index: 10;
  width: 0%;
  transition: width linear;
}

/* ── LOCATION ────────────────────────────────────────────── */
#location {
  background: var(--cream);
  color: var(--text-on-light);
  padding: var(--sp-4xl) var(--sp-xl) 0;
}

#location .section-label {
  color: var(--text-muted);
}

#location .display-heading .reveal-line:first-child {
  font-weight: 400;
  font-style: normal;
  color: var(--text-on-light);
}

#location .display-heading .reveal-line:last-child {
  font-weight: 700;
  font-style: normal;
  color: var(--text-muted-dark);
}

#location .body-text {
  color: var(--text-muted-dark);
  margin-top: var(--sp-xl);
}

.location-hero-img {
  width: calc(100% + 2 * var(--sp-xl));
  margin-left: calc(-1 * var(--sp-xl));
  height: clamp(420px, 56vw, 680px);
  background-size: cover;
  background-position: center;
  margin-top: var(--sp-4xl);
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  /* Reveal is driven entirely by JS (double-RAF + IntersectionObserver) */
  opacity: 1 !important;
  transform: none !important;
  will-change: clip-path;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin: var(--sp-xl) 0;
}

.spec-card {
  padding: var(--sp-lg);
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.spec-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spec-value {
  display: block;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-on-light);
}

.info-box {
  padding: var(--sp-xl);
  background: var(--dark-bg);
  border-radius: var(--r-md);
  margin-top: var(--sp-3xl);
}

.info-box .section-label {
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
}

.info-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm-beige);
}

/* Location heading — ID-based (long sentences, no reveal-line char animation) */
#loc-line1 { display: block; font-weight: 400; color: var(--text-on-light); }
#loc-line2 { display: block; font-weight: 700; color: var(--text-muted-dark); }
#location .display-heading { font-size: clamp(20px, 2.8vw, 42px); max-width: 640px; }

/* Event practical info block */
.event-info { margin-top: 0; margin-bottom: var(--sp-xl); }
.event-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--border);
}
.event-info-row:first-child { border-top: none; }
.event-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.event-info-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-on-light);
  text-align: right;
}

.transport-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.transport-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  color: var(--warm-beige);
  font-size: 13px;
  line-height: 1.5;
}

.transport-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(196, 184, 165, .12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-beige);
}

.transport-icon svg {
  width: 16px;
  height: 16px;
}

/* ── PRESALE ─────────────────────────────────────────────── */
#presale {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #141008 100%);
  color: var(--text-on-dark);
  padding: var(--sp-4xl) var(--sp-xl);
}

#presale .display-heading .reveal-line:first-child {
  font-weight: 400;
  font-style: normal;
  color: var(--cream-dark);
}

#presale .display-heading .reveal-line:last-child {
  font-weight: 700;
  font-style: normal;
  color: var(--text-on-dark);
}

#presale .body-text {
  color: var(--warm-beige);
}

.countdown-label {
  margin-bottom: var(--sp-lg) !important;
}

#presale .display-heading {
  margin-bottom: var(--sp-3xl);
}

.countdown-wrap {
  margin-top: var(--sp-xxl);
}

.countdown {
  display: flex;
  gap: var(--sp-xl);
}

.cd-block {
  text-align: center;
  min-width: 60px;
}

.cd-num {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1;
}

.cd-unit {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Presale intro text */
.presale-intro-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--warm-beige);
  margin-bottom: var(--sp-xl);
  border-top: 1px solid var(--border-dark);
  padding-top: var(--sp-xl);
  margin-top: var(--sp-xl);
}

/* Presale mini-timeline */
.presale-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xxl);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.timeline-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1px;
}

.timeline-step-content { flex: 1; }

.timeline-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 2px;
}

.timeline-step-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Countdown zero state */
.presale-open-msg {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-on-dark);
  line-height: 1.4;
}

.presale-open-msg a {
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-wrap {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}

.native-form .field {
  margin-bottom: var(--sp-xl);
}

.native-form label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.native-form input[type="text"],
.native-form input[type="email"],
.native-form input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  background: transparent;
  outline: none;
  color: var(--text-on-dark);
  transition: border-color .2s;
}

.native-form input:focus {
  border-color: var(--warm-beige);
}

.native-form input::placeholder {
  font-family: var(--font-body);
  color: var(--text-muted);
}

.native-form input:-webkit-autofill,
.native-form input:-webkit-autofill:hover,
.native-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-on-dark);
  -webkit-box-shadow: 0 0 0px 1000px #141414 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  margin-top: 2px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--dark-bg);
  font-weight: 700;
}

.checkbox.checked {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

.checkbox.checked::after {
  content: '✓';
}

.field-consent span {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}

.field-consent a {
  color: var(--warm-beige);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-consent strong {
  color: var(--accent-warm);
  font-weight: 700;
}

.form-msg {
  margin-top: var(--sp-md);
  font-size: 13px;
  line-height: 1.6;
}

.form-msg.success {
  color: #7aad8a;
}

.form-msg.error {
  color: #c97272;
}

/* ── TICKETS ─────────────────────────────────────────────── */
#tickets {
  background: var(--cream-light);
  color: var(--text-on-light);
  padding: var(--sp-4xl) var(--sp-xl);
}

#tickets .section-label {
  color: var(--text-muted);
}

#tickets .display-heading .reveal-line:first-child {
  font-weight: 400;
  font-style: normal;
  color: var(--text-on-light);
}

#tickets .display-heading .reveal-line:last-child {
  font-weight: 700;
  font-style: normal;
  color: var(--text-muted-dark);
  white-space: nowrap;
}

.ticket-box {
  background: var(--dark-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 280px;
}

.ticket-box iframe {
  width: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

.ticket-placeholder {
  padding: var(--sp-3xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  justify-content: center;
}

.ticket-placeholder .section-label {
  color: var(--text-muted);
}

.ticket-placeholder p {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: normal;
  color: var(--warm-beige);
  line-height: 1.5;
  max-width: 360px;
  margin-bottom: var(--sp-xl);
}

/* ── FAQ ─────────────────────────────────────────────────── */
#faq {
  background: var(--cream);
  color: var(--text-on-light);
  padding: var(--sp-4xl) var(--sp-xl);
}

#faq .section-label {
  color: var(--text-muted);
}

#faq .display-heading .reveal-line:first-child {
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted-dark);
}

#faq .display-heading .reveal-line:last-child {
  font-weight: 700;
  font-style: normal;
  color: var(--text-on-light);
}

#faq .display-heading {
  margin-bottom: var(--sp-4xl);
}

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-xl) 0;
  text-align: left;
  gap: var(--sp-xl);
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-style: normal;
  color: var(--text-on-light);
  transition: color .2s;
}

.faq-question:hover {
  color: var(--accent-warm);
}

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--warm-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: transform .4s var(--ease);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted-dark);
  padding-bottom: var(--sp-xl);
  max-width: 680px;
}

/* ── PARTNERS ────────────────────────────────────────────── */
#partners {
  padding: var(--sp-4xl) 0;
  border-top: 1px solid var(--border-dark);
}

.partners-tier {
  margin-bottom: var(--sp-3xl);
}

.partners-tier:last-child {
  margin-bottom: 0;
}

.partners-tier-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3xl);
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
  opacity: 0.65;
}

.partner-item:hover {
  opacity: 1;
}

.partner-item img {
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Main Partner */
.partners-row--main .partner-item img {
  height: 44px;
  max-width: 140px;
  width: auto;
}

/* Institutional — badge-style logos */
.partners-row--institutional .partner-item img {
  height: 72px;
  max-width: 180px;
  width: auto;
}

/* Media Partner */
.partners-row--media .partner-item img {
  height: 44px;
  max-width: 160px;
  width: auto;
}

.partner-item[aria-label="Radio M2O"] img,
.partner-item[aria-label="Tune Talks"] img {
  height: 51px;
  max-width: 184px;
}

@media (max-width: 768px) {
  .partners-row {
    gap: var(--sp-xl);
  }

  .partners-row--main .partner-item img {
    height: 32px;
    max-width: 110px;
  }

  .partners-row--institutional .partner-item img {
    height: 56px;
    max-width: 140px;
  }

  .partners-row--media .partner-item img {
    height: 32px;
    max-width: 120px;
  }

  .partner-item[aria-label="Radio M2O"] img,
  .partner-item[aria-label="Tune Talks"] img {
    height: 37px;
    max-width: 138px;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: var(--sp-4xl) var(--sp-xl) var(--sp-xxl);
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  padding-bottom: var(--sp-4xl);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: var(--sp-xxl);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  display: block;
  margin-bottom: var(--sp-md);
}

.footer-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.footer-col .section-label {
  color: var(--text-muted);
}

.footer-orgs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.footer-orgs a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: normal;
  color: var(--warm-beige);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 2px;
  width: fit-content;
  transition: color .2s, opacity .2s;
}

.footer-orgs a:hover {
  color: var(--cream);
  opacity: 1 !important;
}

.footer-logo-img {
  display: block;
  height: 30px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity .2s;
}

.footer-orgs a:hover .footer-logo-img {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 14px;
  transition: all .2s;
}

.social-icon:hover {
  border-color: var(--warm-beige);
  color: var(--warm-beige);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-company {
  padding: var(--sp-lg) 0 var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-company p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-company-name {
  font-weight: 600;
  color: var(--text-secondary) !important;
  margin-bottom: 2px;
}

.footer-company a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-company a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-legal a:hover {
  color: var(--warm-beige);
}

.footer-credits {
  text-align: center;
  padding-top: var(--sp-md);
  margin-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-credits p {
  font-size: 10px;
  color: var(--text-muted);
  opacity: .5;
}

.footer-credits a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}

.footer-credits a:hover {
  opacity: 1;
}

/* ── HERO VOLUME BUTTON ──────────────────────────────────── */
.hero-volume-btn {
  position: absolute;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(196, 184, 165, 0.35);
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--warm-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}

.hero-volume-btn:hover {
  border-color: var(--warm-beige);
  background: rgba(10, 10, 10, 0.7);
  transform: scale(1.08);
}

.hero-volume-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.spotify-embed {
  margin-top: var(--sp-5xl);
  margin-bottom: var(--sp-5xl);
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Container: 5vw horizontal gutter */
  .container {
    padding: 0 5vw;
  }

  /* Sections: remove their own horizontal padding so container's 5vw is the only margin */
  #orchestra {
    padding-left: 0;
    padding-right: 0;
  }

  #location {
    padding-left: 0;
    padding-right: 0;
  }

  #presale {
    padding-left: 0;
    padding-right: 0;
  }

  #tickets {
    padding-left: 0;
    padding-right: 0;
  }

  #faq {
    padding-left: 0;
    padding-right: 0;
  }

  #footer {
    padding-left: 0;
    padding-right: 0;
  }

  /* Gallery: direct child of #orchestra (0 section padding) → already full-width */
  .gallery {
    width: 100%;
    margin-left: 0;
  }

  /* Location hero: inside .container with 5vw padding → break out of it */

  /* Italic overflow compensation: Safari clips oblique glyphs beyond bounding box */
  .hero-title {
    padding-right: 0.12em;
  }

  .hero-title .reveal-line {
    letter-spacing: -1px;
  }

  /* Pull-quote: less horizontal padding */
  #partners {
    padding-left: 0;
    padding-right: 0;
  }

  .pull-quote {
    padding: var(--sp-xl) var(--sp-md);
  }

  /* Countdown: wrap if needed */
  .countdown {
    gap: var(--sp-lg);
    flex-wrap: wrap;
  }

  /* Volume button: move slightly inward */
  .hero-volume-btn {
    bottom: var(--sp-lg);
    right: var(--sp-lg);
  }

  /* Spec grid & stats grid: single column on very small screens */
  @media (max-width: 480px) {
    .spec-grid {
      grid-template-columns: 1fr;
    }

    .stats-grid {
      grid-template-columns: 1fr;
    }

    .cd-num {
      font-size: clamp(32px, 10vw, 52px);
    }
  }
}

/* ── Spotify placeholder ──────────────────────────────────────────────────── */
.spotify-placeholder {
  width: 100%;
  min-height: 160px;
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xxl) var(--sp-xl);
}

.spotify-placeholder__inner {
  text-align: center;
  max-width: 420px;
}

.spotify-placeholder__inner p {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}

.spotify-placeholder__inner .btn {
  margin: 0 auto;
}

/* ── Cookie consent banner — override --cc-* ──────────────────────────────── */
#cc-main {
  /* Font */
  --cc-font-family:            'Europa Regular', 'Helvetica Neue', sans-serif;

  /* Modal shape */
  --cc-modal-border-radius:    4px;   /* --r-md */
  --cc-btn-border-radius:      2px;   /* --r-sm */

  /* Backgrounds */
  --cc-bg:                     #141414;               /* --dark-card */
  --cc-overlay-bg:             rgba(10, 10, 10, 0.82);

  /* Text */
  --cc-primary-color:          #EDE6DA;               /* --cream / --text-on-dark */
  --cc-secondary-color:        #8A8275;               /* --text-muted */

  /* Primary button → .btn-primary */
  --cc-btn-primary-bg:                  #EDE6DA;      /* --cream */
  --cc-btn-primary-color:               #0A0A0A;      /* --dark-bg */
  --cc-btn-primary-border-color:        #EDE6DA;
  --cc-btn-primary-hover-bg:            #C4956A;      /* --accent-warm */
  --cc-btn-primary-hover-color:         #0A0A0A;
  --cc-btn-primary-hover-border-color:  #C4956A;

  /* Secondary buttons → .btn-outline-beige */
  --cc-btn-secondary-bg:                transparent;
  --cc-btn-secondary-color:             #C4B8A5;      /* --warm-beige */
  --cc-btn-secondary-border-color:      #C4B8A5;
  --cc-btn-secondary-hover-bg:          #C4B8A5;
  --cc-btn-secondary-hover-color:       #0A0A0A;
  --cc-btn-secondary-hover-border-color:#C4B8A5;

  /* Separators */
  --cc-separator-border-color:          rgba(237, 230, 218, 0.12); /* --border-dark */

  /* Category blocks (pannello preferenze) */
  --cc-cookie-category-block-bg:              #1A1A1A; /* --dark-muted */
  --cc-cookie-category-block-border:          rgba(237, 230, 218, 0.12);
  --cc-cookie-category-block-hover-bg:        #1A1A1A;
  --cc-cookie-category-block-hover-border:    rgba(196, 184, 165, 0.2);
  --cc-cookie-category-expanded-block-bg:     #1A1A1A;
  --cc-cookie-category-expanded-block-hover-bg: #141414;

  /* Toggle */
  --cc-toggle-on-bg:                    #C4956A;      /* --accent-warm */
  --cc-toggle-off-bg:                   #6B6560;      /* --text-muted-dark */
  --cc-toggle-on-knob-bg:               #0A0A0A;
  --cc-toggle-off-knob-bg:              #EDE6DA;
  --cc-toggle-readonly-bg:              #1A1A1A;
  --cc-toggle-readonly-knob-bg:         #8A8275;      /* --text-muted */
  --cc-toggle-readonly-knob-icon-color: #0A0A0A;

  /* Scrollbar */
  --cc-webkit-scrollbar-bg:             #1A1A1A;
  --cc-webkit-scrollbar-hover-bg:       #8A8275;
}

/* Bottoni: uppercase + letter-spacing coerenti con .btn del sito */
#cc-main .cm__btn,
#cc-main .pm__btn {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 13px 28px;
  transition: background .3s, color .3s, transform .3s;
}

#cc-main .cm__btn--primary:hover,
#cc-main .pm__btn--primary:hover {
  transform: translateY(-1px);
}

/* Ombra modale coerente con l'estetica dark */
#cc-main .cm,
#cc-main .pm {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
