/* ==========================================================================
   Vanderfest — night theme (black & white, poster-colour hero glow)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-raised: #0b0b0b;
  --text: #fff;
  --muted: #a8a8a8;          /* ~8.6:1 on black */
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .4);
  --error: #ff8080;

  /* Hero glow: the poster's hues (yellow → peach → coral → pink → lilac → sky), nudged a little
     more saturated so they stay colourful at low opacity on black */
  --p-yellow: #ffd84a;
  --p-peach: #ffaa76;
  --p-coral: #ff6f63;
  --p-pink: #f08ac4;
  --p-lilac: #9f86ff;
  --p-sky: #8ab8ff;
  --glow-opacity: .7;

  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --track: .2em;             /* letter-spacing for uppercase labels */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
[hidden] { display: none !important; } /* components that set display (e.g. grid) must still honour hidden */

:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: .6rem 1rem; background: #fff; color: #000; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Buttons: square, unfilled, white outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 2rem;
  border: 2px solid #fff; border-radius: 0;
  background: transparent; color: #fff;
  font-family: var(--font); font-weight: 500; font-size: .85rem;
  letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, letter-spacing .25s ease;
}
.btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn:active { background: rgba(255, 255, 255, .18); }
.btn--sm { min-height: 44px; padding: .6rem 1.4rem; font-size: .78rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Shared type ---------- */
.label {
  display: flex; align-items: center; gap: .9rem;
  font-size: .78rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.label::before { content: ""; width: 2rem; height: 1px; background: var(--line-strong); }
.section-title {
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 4rem); line-height: 1.05; letter-spacing: .06em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: 4rem max(var(--gutter), env(safe-area-inset-right)) 5rem max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  text-align: center;
}
/* Animated glow: concentric poster-colour rings from the left edge, plus three
   soft colour blobs drifting over them. Only transforms are animated, so it
   stays on the compositor (cheap on phones). */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  opacity: var(--glow-opacity);
  isolation: isolate;
}
.hero__glow::before {
  content: ""; position: absolute; inset: -20%;
  /* farthest-corner + a solid last stop: the wash reaches every corner in portrait and
     landscape, so no bare black shows. Few stops, interpolated in oklab, so peach and pink
     appear on their own between yellow/coral/lilac and it reads as one soft wash. */
  background: radial-gradient(in oklab circle farthest-corner at 14% 50%,
    var(--p-yellow) 0%,
    var(--p-coral) 24%,
    var(--p-lilac) 50%,
    var(--p-sky) 78%,
    var(--p-sky) 100%);
  transform-origin: 14% 50%;
  animation: glow-breathe 10s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__glow::after { /* gentle veil centred on the text so white type keeps its contrast */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0, 0, 0, .28), rgba(0, 0, 0, .08) 70%, rgba(0, 0, 0, 0));
}
.hero__glow span {
  position: absolute; aspect-ratio: 1; border-radius: 50%;
  mix-blend-mode: screen;     /* overlapping colours add up like light instead of turning muddy */
  opacity: .85;
  will-change: transform;
}
/* Each blob is a colour that contrasts with the part of the wash it travels
   through, so the movement is actually visible. Distances use vmax so phones
   get as much movement as desktops. */
.hero__glow span:nth-child(1) { /* warm yellow light, sweeping from the left into the lilac side */
  width: 70vmax; left: -35vmax; top: calc(50% - 35vmax);
  background: radial-gradient(circle, var(--p-yellow) 0%, color-mix(in srgb, var(--p-peach) 50%, transparent) 30%, transparent 62%);
  animation: blob-a 11s ease-in-out infinite alternate;
}
.hero__glow span:nth-child(2) { /* sky blue, drifting from the right into the coral */
  width: 65vmax; right: -30vmax; top: -25vmax;
  background: radial-gradient(circle, var(--p-sky) 0%, color-mix(in srgb, var(--p-lilac) 45%, transparent) 32%, transparent 62%);
  animation: blob-b 13s ease-in-out infinite alternate;
}
.hero__glow span:nth-child(3) { /* coral/pink, rising and falling */
  width: 60vmax; left: 10vmax; bottom: -35vmax;
  background: radial-gradient(circle, var(--p-coral) 0%, color-mix(in srgb, var(--p-pink) 45%, transparent) 32%, transparent 62%);
  animation: blob-c 9s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  0%   { transform: translate3d(-6%, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(6%, -3%, 0) scale(1.12) rotate(6deg); }
  100% { transform: translate3d(-2%, 4%, 0) scale(.96) rotate(-5deg); }
}
@keyframes blob-a {
  0%   { transform: translate3d(0, 0, 0) scale(.9); }
  40%  { transform: translate3d(38vmax, -14vmax, 0) scale(1.1); }
  75%  { transform: translate3d(22vmax, 16vmax, 0) scale(.95); }
  100% { transform: translate3d(50vmax, 4vmax, 0) scale(1.05); }
}
@keyframes blob-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-34vmax, 30vmax, 0) scale(1.15); }
  100% { transform: translate3d(-12vmax, 52vmax, 0) scale(.9); }
}
@keyframes blob-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(24vmax, -36vmax, 0) scale(1.1); }
  100% { transform: translate3d(-10vmax, -58vmax, 0) scale(.95); }
}
.hero__content {
  /* minmax(0, 1fr) stops a wide title from stretching the column past the
     viewport, which used to push everything off-centre in landscape. */
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(1rem, 3vh, 1.75rem);
  width: 100%; max-width: 64rem;
}
.hero__title {
  max-width: 100%;
  font-weight: 700; text-transform: uppercase; line-height: 1;
  font-size: clamp(2.2rem, min(10vw, 19svh), 8.5rem);
  letter-spacing: .08em;
  margin-right: -.08em;       /* cancel trailing letter-spacing so the word is optically centred */
}
.hero__title, .hero__date, .hero__venue { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.hero__meta { display: grid; justify-items: center; gap: .55rem; }
.hero__date {
  --date-track: .3em;
  font-size: clamp(.8rem, 2.4vw, 1rem); font-weight: 500;
  letter-spacing: var(--date-track); text-transform: uppercase; color: #e6e6e6;
  margin-right: calc(-1 * var(--date-track));
  text-wrap: balance;
}
.hero__venue {
  --venue-track: .3em;
  font-size: clamp(.8rem, 2.4vw, 1rem); font-weight: 300;
  letter-spacing: var(--venue-track); text-transform: uppercase; color: #fff;
  margin-right: calc(-1 * var(--venue-track));
}
@media (max-width: 30em) { .hero__date { --date-track: .16em; } .hero__venue { --venue-track: .2em; } }
.hero .btn { margin-top: clamp(.5rem, 2vh, 1.25rem); }

.hero__scroll {
  position: absolute; left: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: 1px; height: 3.5rem; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .7));
}
.hero__scroll::after {
  content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px;
  border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg);
}
.hero__scroll::before { content: ""; position: absolute; inset: -12px -20px; } /* larger tap target */

/* ==========================================================================
   Line-up (parallax)
   ========================================================================== */
.lineup {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(6rem, 18vh, 10rem) clamp(2.5rem, 6vh, 4rem);
}
.lineup__media {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: -2;
  will-change: transform;
}
.lineup__video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;  /* portrait footage: keep the performer's face in frame on wide screens */
  filter: grayscale(1) contrast(1.1) brightness(.6);  /* always black & white, also the poster frame */
}
.lineup::after { /* fade into the black sections above and below, and darken behind the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 22%, rgba(0, 0, 0, .35) 78%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .55));
}
.lineup__inner { position: relative; }
.lineup__list { border-top: 1px solid var(--line-strong); }
.lineup__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding-block: clamp(1rem, 2.6vw, 1.6rem);
  border-bottom: 1px solid var(--line-strong);
}
.lineup__name {
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.45rem, 5.4vw, 3.4rem); line-height: 1.1; letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.lineup__meta { display: grid; justify-items: end; gap: .2rem; text-align: right; }
.lineup__role {
  max-width: 14ch;
  font-size: clamp(.72rem, 1.8vw, .9rem); font-weight: 500; line-height: 1.35;
  letter-spacing: var(--track); text-transform: uppercase; color: #d9d9d9;
}
.lineup__time { font-size: clamp(.85rem, 2vw, 1rem); font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #fff; }
@media (min-width: 40em) { .lineup__role { max-width: none; } }

/* Closing set — the poster's inverted final slot: a solid white block, bigger and bold */
.lineup__row--headliner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "role time" "name name";
  align-items: center; row-gap: clamp(.4rem, 1.4vw, .9rem);
  margin-top: clamp(1.25rem, 3.5vw, 2.25rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.25rem, 3.5vw, 2.5rem);
  background: #fff; color: #000; border-bottom: 0;
}
.lineup__row--headliner .lineup__meta { display: contents; }
.lineup__row--headliner .lineup__role { grid-area: role; max-width: none; text-align: left; color: #333; }
.lineup__row--headliner .lineup__time { grid-area: time; color: #000; }
.lineup__row--headliner .lineup__name {
  grid-area: name;
  font-weight: 700; letter-spacing: .02em; line-height: 1;
  font-size: clamp(2.1rem, 8vw, 5rem);
  overflow-wrap: normal;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: clamp(5rem, 12vw, 8rem); }
.lineup + .section { padding-top: clamp(2.5rem, 6vw, 4rem); } /* keep Location close to the line-up */

/* Location */
.info-grid { display: grid; gap: 2.5rem; }
@media (min-width: 50em) { .info-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.info-block {
  display: grid; gap: .6rem; align-content: start;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.info-block__label { font-size: .78rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.info-block__big { font-weight: 300; font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.2; }
.info-block .btn { justify-self: start; margin-top: .75rem; }
.program { margin-top: .4rem; border-top: 1px solid var(--line); }
.program__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding-block: .85rem; border-bottom: 1px solid var(--line);
}
.program__time { white-space: nowrap; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.program__what { display: grid; gap: .1rem; }
.program__label { font-size: .72rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.program__title { font-size: 1.05rem; }

/* CTA */
.section--cta { text-align: center; border-top: 1px solid var(--line); }
.cta { display: grid; justify-items: center; gap: 1.25rem; }
.cta__title { font-weight: 300; font-size: clamp(2rem, 7vw, 3.5rem); text-transform: uppercase; letter-spacing: .1em; margin-right: -.1em; }
.cta__text { max-width: 32rem; color: var(--muted); }
.cta .btn { margin-top: .5rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
  font-size: .85rem; letter-spacing: .06em; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }

/* ==========================================================================
   Booking modal
   ========================================================================== */
.modal {
  width: min(100% - 1.5rem, 32rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 0;
  color: var(--text); background: var(--bg-raised);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__inner { position: relative; padding: clamp(1.5rem, 5vw, 2.4rem); }
.modal__close {
  position: absolute; top: .5rem; right: .5rem;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.modal__close:hover { color: #fff; }
.modal__title { font-weight: 300; font-size: clamp(1.4rem, 5vw, 1.75rem); text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; padding-right: 2.5rem; }
.modal__desc { margin-top: .6rem; color: var(--muted); font-size: 1rem; }
#booking-form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }

.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 30em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #d9d9d9; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: #fff;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: rgba(255, 255, 255, .65); }
.field input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: .9rem; line-height: 1.35; }
.field__error:empty { display: none; }

.field--check { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.field--check input {
  appearance: none; -webkit-appearance: none; margin: .2rem 0 0;
  width: 1.35rem; height: 1.35rem; border-radius: 0; cursor: pointer;
  background: transparent; border: 1.5px solid #fff;
  display: grid; place-items: center;
}
.field--check input::after {
  content: ""; width: .7rem; height: .38rem; margin-top: -.12rem;
  border-left: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(-45deg) scale(0); transition: transform .12s ease;
}
.field--check input:checked { background: #fff; }
.field--check input:checked::after { transform: rotate(-45deg) scale(1); }
.field--check input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.field--check input[aria-invalid="true"] { border-color: var(--error); }
.field--check label { font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--text); cursor: pointer; }
.field--check .field__error { grid-column: 2; }

.turnstile { min-height: 65px; }
.turnstile:empty::before { content: "Caricamento verifica di sicurezza…"; display: block; padding-top: 1.2rem; color: var(--muted); font-size: .9rem; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  padding: .75rem 1rem; border-left: 2px solid var(--error);
  background: rgba(255, 128, 128, .08); color: #ffd9d9; font-size: .97rem;
}
.form-alert:focus { outline: none; }

.spinner {
  display: none; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal__success { text-align: center; display: grid; justify-items: center; gap: .5rem; padding-block: 1rem .5rem; }
.modal__success .modal__title { padding-right: 0; }
.modal__success .modal__title:focus { outline: none; }
.modal__success .btn { margin-top: 1.25rem; }
.success-icon { color: #fff; margin-bottom: .75rem; }

/* ==========================================================================
   Simple content pages (privacy)
   ========================================================================== */
.page-header { padding: clamp(3rem, 9vw, 5rem) 0 clamp(2rem, 6vw, 3rem); border-bottom: 1px solid var(--line); }
.page-header .container { max-width: 44rem; }
.page-header .back { display: inline-block; margin-bottom: 1.5rem; font-size: .8rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); text-decoration: none; }
.page-header .back:hover { color: #fff; }
.page-header h1 { font-weight: 300; font-size: clamp(1.9rem, 7vw, 3rem); text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.prose { max-width: 44rem; padding-block: clamp(2rem, 6vw, 3.5rem); }
.prose h2 { font-weight: 500; font-size: .85rem; letter-spacing: var(--track); text-transform: uppercase; margin: 2.5rem 0 .75rem; }
.prose p + p { margin-top: .8rem; }
.prose ul { display: grid; gap: .45rem; margin-top: .6rem; }
.prose li { position: relative; padding-left: 1.4rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: .7rem; height: 1px; background: var(--line-strong); }
.prose strong { font-weight: 500; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .lineup__media { transform: none !important; }
  .hero__glow::before, .hero__glow span { animation: none !important; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}
