/* ============ FONTS (self-hosted) ============ */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --bg: #08080a;
  --bg-raised: #121014;
  --red: #ff1338;
  --red-2: #ff4d5e;
  --red-dim: #6e0f1c;
  --white: #f5f3f0;
  --grey: #9a9298;
  --grey-dim: #524b50;
  --line: rgba(245, 243, 240, 0.12);

  --font-display: "Oswald", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --countdown-h: 82px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--countdown-h);
  padding-bottom: 96px; /* sticky cta clearance */
}

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

.hl {
  color: var(--red);
  text-shadow: 0 0 6px rgba(255, 19, 56, 0.85), 0 0 22px rgba(255, 19, 56, 0.45);
}

/* ============ COUNTDOWN BAR ============ */
.countdown-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: #000;
  border-bottom: 1px solid var(--red-dim);
  box-shadow: 0 1px 14px rgba(255, 19, 56, 0.25);
}
.countdown-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
}
.countdown-bar__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8d4d1;
  white-space: nowrap;
}
.countdown-bar__timer {
  display: flex;
  gap: 8px;
}
.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(255, 19, 56, 0.12);
  border: 1px solid var(--red-dim);
  border-radius: 7px;
  padding: 6px 10px;
  font-family: var(--font-display);
}
.cd-unit span {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.cd-unit small {
  font-size: 10px;
  color: var(--red-2);
  text-transform: uppercase;
}

/* ============ SOCIAL PROOF TOAST ============ */
.proof-toast {
  position: fixed;
  top: calc(var(--countdown-h) + 10px);
  left: 10px;
  z-index: 55;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(18, 16, 20, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.proof-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.proof-toast__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ee06a;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 6px #2ee06a;
}
.proof-toast p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--white);
}
.proof-toast p strong { color: var(--red-2); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--countdown-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 22px;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(8,8,10,0.98) 0%,
      rgba(8,8,10,0.95) 12%,
      rgba(8,8,10,0.55) 34%,
      rgba(8,8,10,0.42) 52%,
      rgba(8,8,10,0.78) 74%,
      #08080a 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,19,56,0.15), transparent 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
}
.hero__logo {
  width: 170px;
  filter: drop-shadow(0 0 18px rgba(255, 19, 56, 0.55));
  margin-bottom: 10px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 9.2vw, 48px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero__sub {
  font-size: 16px;
  color: #d8d4d1;
  margin: 0 0 16px;
  max-width: 380px;
}
.hero__sub strong { color: var(--white); }

.hero__details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  width: 100%;
}
.hero__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  background: rgba(245, 243, 240, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.hero__detail .ico { font-size: 16px; }

.scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--grey);
  font-size: 18px;
  animation: bob 1.8s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ CTA ============ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.cta:active { transform: scale(0.97); }

.cta--main {
  background: linear-gradient(135deg, var(--red) 0%, #c40a24 100%);
  color: #fff;
  font-size: 16px;
  padding: 15px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 0 0 1px rgba(255,77,94,0.4), 0 10px 30px rgba(255, 19, 56, 0.4), 0 0 40px rgba(255,19,56,0.25);
  animation: pulse-glow 2.6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,77,94,0.4), 0 10px 30px rgba(255, 19, 56, 0.4), 0 0 40px rgba(255,19,56,0.25); }
  50% { box-shadow: 0 0 0 1px rgba(255,77,94,0.6), 0 10px 34px rgba(255, 19, 56, 0.6), 0 0 60px rgba(255,19,56,0.4); }
}

.scarcity {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 7px;
}
.scarcity strong { color: var(--red-2); font-weight: 700; }
.scarcity__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 64px 20px;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.section__subtitle {
  color: var(--grey);
  font-size: 16px;
  margin: 0 0 36px;
}

/* ---- reviews ---- */
.section--reviews { background: var(--bg); }
.reviews__scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 10px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews__scroller::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  flex: 0 0 82%;
  max-width: 320px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 0;
  text-align: left;
  position: relative;
}
.review::before {
  content: "";
  position: absolute;
  top: 0; left: 20px;
  width: 30px; height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.review p {
  font-size: 16px;
  line-height: 1.55;
  color: #ece9e6;
  margin: 8px 0 16px;
}
.review cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--red-2);
}

/* ---- gallery (masonry polaroid, attaccata alle recensioni) ---- */
.gallery {
  column-count: 2;
  column-gap: 14px;
  margin: 40px 0 0;
}
.polaroid {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  background: #f2efec;
  padding: 8px 8px 24px;
  border-radius: 3px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.35);
}
.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:nth-child(3n) { transform: rotate(-1deg); }
.polaroid img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1px;
}
.polaroid:nth-child(4n+1) img { aspect-ratio: 4/5; }
.polaroid:nth-child(4n+2) img { aspect-ratio: 1/1; }
.polaroid:nth-child(4n+3) img { aspect-ratio: 3/4; }
.polaroid:nth-child(4n) img { aspect-ratio: 5/6; }

/* ---- location ---- */
.section--location { background: var(--bg-raised); }
.location__text {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color: #d8d4d1;
}
.location__map {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.location__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 28px auto 0;
  text-align: left;
}
.location__info-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.location__info-item strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--red-2);
}
.location__info-item span {
  font-size: 16px;
  color: var(--white);
}

/* ---- sponsor ---- */
.section--sponsor { background: var(--bg); }
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sponsor-card {
  background: #ffffff;
  border-radius: 12px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sponsor-card img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
.sponsor-card--text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #101012;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.sponsor-card--wide { grid-column: span 2; }

/* ---- faq ---- */
.section--faq { background: var(--bg-raised); }
.faq {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 18px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 26px 16px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 20px;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--grey);
  line-height: 1.6;
}

/* ---- final ---- */
.section--final {
  padding: 70px 20px 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,19,56,0.16), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.final__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 8vw, 42px);
  margin: 0 0 12px;
}
.final__sub {
  color: var(--grey);
  font-size: 16px;
  margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 40px 20px 34px;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 15px;
}
.footer__logo {
  width: 110px;
  margin: 0 auto 16px;
  opacity: 0.85;
}
.footer p { margin: 4px 0; }
.footer__ticketing { color: var(--grey-dim); font-size: 13px; }

/* ============ STICKY CTA (head + subhead, effetto LED) ============ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 58;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,8,10,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--red-dim);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--red) 0%, #c40a24 100%);
  color: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  animation: led-blink 1.3s ease-in-out infinite;
}
@keyframes led-blink {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 6px 20px rgba(255,19,56,0.6), 0 0 32px rgba(255,19,56,0.55);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 3px 10px rgba(255,19,56,0.3), 0 0 10px rgba(255,19,56,0.25);
  }
}
.sticky-cta__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sticky-cta__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

/* ============ DESKTOP ============ */
@media (min-width: 900px) {
  :root { --countdown-h: 96px; }
  body { font-size: 17px; padding-bottom: 0; }
  .sticky-cta { display: none; }

  .countdown-bar__inner { padding: 13px 10px; gap: 8px; }
  .countdown-bar__label { font-size: 14px; }
  .cd-unit { padding: 7px 14px; }
  .cd-unit span { font-size: 26px; }
  .cd-unit small { font-size: 11px; }

  .proof-toast { max-width: 320px; left: 24px; top: calc(var(--countdown-h) + 18px); }

  .hero { padding: 60px 40px 50px; }
  .hero__content { max-width: 640px; }
  .hero__logo { width: 260px; }
  .hero__headline { font-size: clamp(46px, 5.2vw, 64px); }
  .hero__sub { max-width: 460px; font-size: 16px; }
  .hero__details { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero__detail { font-size: 15px; }
  .cta--main { font-size: 18px; padding: 20px 40px; max-width: 480px; white-space: nowrap; }

  .section { padding: 100px 40px; }

  .reviews__scroller { overflow: visible; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
  .review { flex: 0 0 300px; }

  .gallery { column-count: 4; column-gap: 18px; margin-top: 56px; }

  .location__info { flex-direction: row; max-width: 820px; }
  .location__info-item { flex: 1; }

  .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor-card--wide { grid-column: span 1; }

  .faq { max-width: 720px; margin: 0 auto; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .gallery { column-count: 3; }
}
