:root {
  --ink: #f8f1df;
  --muted: rgba(248, 241, 223, 0.74);
  --night: #121722;
  --forest: #17291f;
  --moss: #9db86c;
  --ember: #ff8a2a;
  --sun: #ffd36d;
  --wine: #9c3a2e;
  --cream: #fff4dc;
  --dark-text: #1c1a17;
  --line: rgba(255, 244, 220, 0.22);
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

#spark-field {
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
  z-index: 4;
}

.cursor-glow {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 42, 0.2), transparent 62%);
  filter: blur(12px);
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.2s ease;
  z-index: 3;
}

.hero-brand {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(18, 23, 34, 0.38);
  border: 1px solid rgba(255, 244, 220, 0.14);
  border-radius: var(--radius);
  display: flex;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0;
  padding: 0.75rem 0.9rem;
  width: fit-content;
  min-width: 0;
}

.brand-mark {
  background:
    radial-gradient(circle at 50% 38%, #fff8bd 0 12%, transparent 13%),
    conic-gradient(from 20deg, var(--ember), var(--sun), var(--wine), var(--ember));
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 138, 42, 0.55);
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.hero {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 6vw, 6rem) clamp(3rem, 8vw, 5rem);
  position: relative;
}

.hero-media,
.hero-vignette,
.hero-grid,
.timeline-bg,
.barbecue-media {
  inset: 0;
  position: absolute;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(18, 23, 34, 0.92) 0%, rgba(18, 23, 34, 0.48) 52%, rgba(18, 23, 34, 0.12) 100%),
    radial-gradient(circle at 18% 28%, rgba(255, 138, 42, 0.3), transparent 25%),
    url("assets/scintille-photo-hero.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  z-index: -3;
}

.hero-vignette {
  background:
    linear-gradient(0deg, var(--night) 0%, transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(255, 211, 109, 0.22), transparent 16%);
  z-index: -2;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 244, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 220, 0.08) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  opacity: 0.22;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - clamp(4.25rem, 10vw, 7.5rem));
  max-width: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.countdown {
  align-items: baseline;
  color: var(--sun);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.countdown strong {
  color: var(--ink);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(5.4rem, 15vw, 13.5rem);
  line-height: 0.74;
  margin-top: clamp(2.25rem, 7vw, 4.5rem);
  text-wrap: balance;
  text-transform: uppercase;
}

h1 span {
  display: block;
  max-width: 7.8ch;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

h1 span:first-child {
  color: var(--cream);
  font-family: "Permanent Marker", Bangers, Impact, sans-serif;
  font-weight: 400;
  transform: rotate(-2deg);
}

h1 span:last-child {
  color: var(--ember);
  font-family: Bangers, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: clamp(1rem, 6vw, 5rem);
  transform: rotate(-1deg);
  -webkit-text-stroke: 1px rgba(255, 250, 240, 0.08);
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.65;
  margin-top: 1.65rem;
  max-width: 47rem;
}

.hero-date {
  color: var(--cream);
  font-weight: 800;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.hero-bottom {
  align-items: end;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 33rem);
}

.hero-meta {
  justify-self: end;
  max-width: 33rem;
}

.hero-copy,
.hero-date,
.countdown,
.hero-actions {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.05rem;
}

.button:hover {
  transform: translateY(-3px);
}

.primary,
.flame {
  background: linear-gradient(135deg, var(--sun), var(--ember));
  box-shadow: 0 12px 34px rgba(255, 138, 42, 0.32);
  color: #1d1309;
}

.ghost {
  background: rgba(255, 244, 220, 0.1);
  border: 1px solid var(--line);
}

.text {
  color: var(--cream);
  padding-inline: 0.4rem;
}

.dark {
  background: var(--night);
  color: var(--cream);
}

.poster-card {
  align-self: end;
  background:
    linear-gradient(0deg, rgba(22, 28, 39, 0.74), rgba(22, 28, 39, 0.08)),
    url("assets/locandina-scintille-estate-preview.webp");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 244, 220, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 30rem;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
}

.poster-card::before {
  animation: shine 6s ease-in-out infinite;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  height: 130%;
  left: -80%;
  position: absolute;
  top: -15%;
  transform: rotate(12deg);
  width: 45%;
}

.poster-card span,
.section-heading p,
.event-card span,
.barbecue-content > p:first-child {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poster-card h2 {
  bottom: 4.8rem;
  font-size: 2.25rem;
  left: 1.35rem;
  line-height: 0.95;
  max-width: 15rem;
  position: absolute;
}

.poster-card p,
.poster-card strong,
.poster-card a {
  bottom: 3.1rem;
  left: 1.35rem;
  position: absolute;
}

.poster-card strong {
  bottom: 1.8rem;
  font-size: 0.9rem;
}

.poster-card a {
  background: var(--cream);
  border-radius: var(--radius);
  bottom: 1.15rem;
  color: var(--dark-text);
  font-weight: 900;
  left: auto;
  padding: 0.65rem 0.9rem;
  right: 1.15rem;
}

.section-band,
.program-overview,
.timeline-inner {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem);
}

section {
  scroll-margin-top: 6rem;
}

.intro {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 138, 42, 0.18), transparent 28%),
    linear-gradient(180deg, var(--night), #19251e);
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(17rem, 26rem) minmax(0, 1fr);
}

.intro .poster-card {
  align-self: stretch;
  min-height: 34rem;
}

.intro-panel {
  display: grid;
  gap: 1.5rem;
}

.section-heading {
  max-width: 49rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.98;
  margin-top: 0.75rem;
  text-wrap: balance;
}

.intro-copy {
  color: rgba(255, 244, 220, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.intro-copy .button {
  margin-top: 1.4rem;
}

.program-overview {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 42, 0.16), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(157, 184, 108, 0.14), transparent 34%),
    linear-gradient(180deg, var(--night), #18251e 46%, #121722);
  color: var(--cream);
  position: relative;
}

.program-overview .section-heading p,
.program-card span {
  color: var(--sun);
}

.program-overview::before,
.program-overview::after {
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 0;
}

.program-overview::before {
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.95), transparent);
  height: 8rem;
  top: 0;
}

.program-overview::after {
  background: linear-gradient(0deg, rgba(18, 23, 34, 0.98), transparent);
  bottom: 0;
  height: 9rem;
}

.program-overview > * {
  position: relative;
  z-index: 1;
}

.program-cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 43rem;
}

.program-card {
  background-color: #1c1a17;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(42, 32, 22, 0.11);
  border-radius: var(--radius);
  color: var(--cream);
  min-height: 17.5rem;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2rem);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.program-card::before {
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.56), rgba(12, 14, 18, 0.18) 42%, rgba(12, 14, 18, 0.84));
  content: "";
  inset: 0;
  position: absolute;
  transition: background 0.35s ease;
}

.program-card::after {
  background: radial-gradient(circle, rgba(255, 211, 109, 0.38), transparent 58%);
  bottom: -4rem;
  content: "";
  height: 9rem;
  position: absolute;
  right: -3rem;
  width: 9rem;
}

.program-card:hover {
  box-shadow: 0 18px 40px rgba(55, 35, 20, 0.16);
  transform: translateY(-8px);
}

.program-card:hover::before {
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.48), rgba(12, 14, 18, 0.08) 42%, rgba(12, 14, 18, 0.72));
}

.card-grill {
  background-image: url("assets/scintille-photo-grill.webp");
}

.card-live {
  background-image: url("assets/scintille-poster-concert.webp");
}

.card-horses {
  background-image: url("assets/scintille-poster-horses.webp");
}

.card-lunch {
  background-image: url("assets/scintille-picnic.webp");
}

.card-sunday-live {
  background-image: url("assets/scintille-live-afternoon.webp");
}

.card-camping {
  background-image: url("assets/scintille-camping.webp");
}

.program-card span {
  color: var(--sun);
  display: block;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 900;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  z-index: 1;
}

.program-card h3 {
  bottom: clamp(1.4rem, 4vw, 2rem);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1;
  padding-right: 0.5rem;
  position: absolute;
  z-index: 1;
}

.program-title {
  margin-inline: auto;
  max-width: 43rem;
}

.program-title h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
}

.timeline-section {
  background: #141a23;
  overflow: hidden;
  position: relative;
}

.timeline-bg {
  background:
    linear-gradient(rgba(18, 23, 34, 0.7), rgba(18, 23, 34, 0.94)),
    url("assets/scintille-poster-concert.webp");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  opacity: 0.72;
}

.timeline-inner {
  display: block;
  margin-inline: auto;
  max-width: 58rem;
  position: relative;
  z-index: 1;
}

.timeline-inner .section-heading {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.event-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.event-card {
  background-color: rgba(255, 244, 220, 0.08);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 244, 220, 0.16);
  border-radius: var(--radius);
  display: block;
  min-height: 10.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem) clamp(1.35rem, 3vw, 2rem);
  position: relative;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.event-card::before {
  background:
    linear-gradient(90deg, rgba(18, 23, 34, 0.97), rgba(18, 23, 34, 0.88) 38%, rgba(18, 23, 34, 0.72)),
    radial-gradient(circle at 90% 15%, rgba(255, 211, 109, 0.25), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.event-card:hover {
  border-color: rgba(255, 211, 109, 0.42);
  transform: translateY(-6px);
}

.event-grill {
  background-image: url("assets/scintille-photo-grill.webp");
}

.event-live {
  background-image: url("assets/scintille-poster-concert.webp");
}

.event-horses {
  background-image: url("assets/scintille-poster-horses.webp");
}

.event-lunch {
  background-image: url("assets/scintille-picnic.webp");
}

.event-sunday-live {
  background-image: url("assets/scintille-live-afternoon.webp");
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-time {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 211, 109, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 0.85rem;
  min-height: 0;
  padding: 0 0 0.75rem;
}

.event-time time {
  border-right: 1px solid rgba(255, 211, 109, 0.35);
  color: var(--sun);
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 2.55vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  border-right: 0;
  min-height: 0;
  padding-right: 0;
  white-space: nowrap;
  width: auto;
}

.event-time span {
  display: block;
  margin-top: 0;
}

.event-card > div:not(.event-time) {
  border-left: 0;
  padding-left: 0;
}

.event-card h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  line-height: 1.18;
  margin: 0.25rem 0 0.35rem;
}

.event-card p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

.event-card a {
  color: var(--sun);
  display: inline-block;
  font-weight: 900;
  margin-top: 0.75rem;
}

.barbecue {
  min-height: 88vh;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem);
  position: relative;
}

.barbecue-media {
  background:
    linear-gradient(90deg, rgba(29, 19, 9, 0.94), rgba(29, 19, 9, 0.54) 48%, rgba(29, 19, 9, 0.12)),
    url("assets/scintille-photo-grill.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  z-index: -1;
}

.barbecue-content {
  max-width: 44rem;
  padding-top: clamp(3rem, 8vw, 7rem);
}

.barbecue h2 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.94;
  margin-top: 0.75rem;
}

.barbecue-content > p:not(:first-child) {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-top: 1.2rem;
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0;
}

.stats article {
  backdrop-filter: blur(16px);
  background: rgba(255, 244, 220, 0.1);
  border: 1px solid rgba(255, 244, 220, 0.18);
  border-radius: var(--radius);
  padding: 1rem;
}

.stats strong {
  color: var(--sun);
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

footer {
  align-items: center;
  background: #0f141d;
  display: flex;
  justify-content: space-between;
  padding: 1.3rem clamp(1.25rem, 6vw, 6rem);
}

footer span {
  font-weight: 900;
}

footer a {
  color: var(--sun);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(0) rotate(12deg);
  }
  100% {
    transform: translateX(360%) rotate(12deg);
  }
}

@media (max-width: 1050px) {
  .poster-card {
    max-width: 25rem;
  }

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

@media (max-width: 720px) {
  #spark-field {
    opacity: 0.72;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero-brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 6.25rem;
  }

  h1 {
    font-size: clamp(3.6rem, 16vw, 5rem);
    margin-top: 2rem;
  }

  h1 span:last-child {
    margin-left: 0.75rem;
  }

  .hero-actions,
  .stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    justify-self: stretch;
  }

  .program-card {
    min-height: 15rem;
  }

  .event-card {
    min-height: 12rem;
  }

  .event-card time {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
    width: auto;
  }


  .intro .poster-card {
    min-height: 29rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
