/* ═══════════════════════════════════════════════════════
   Festival de Inverno de Amparo – CSS Global
   Tema "Brasa" (variáveis injetadas via PHP em index.php)
   Autor: equipe dev
   ═══════════════════════════════════════════════════════ */

/* ───────────────────────────────────────
   RESET & BASE
─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Classe adicionada pelo JS durante o preloader */
body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

address { font-style: normal; }

/* ───────────────────────────────────────
   TIPOGRAFIA
─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--color-text-main);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }

em { font-style: italic; color: var(--color-primary); }

p { color: var(--color-text-muted); }

/* ───────────────────────────────────────
   CONTAINER & SEÇÕES
─────────────────────────────────────── */
.container {
  width: min(90%, 1280px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(80px, 5vw, 140px);
  overflow: hidden;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__title {
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

.section__footer {
  text-align: center;
  margin-top: clamp(40px, 5vw, 64px);
}

/* ───────────────────────────────────────
   BOTÕES
─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease,
              box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 80%, #000);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: color-mix(in srgb, var(--color-text-main) 30%, transparent);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ───────────────────────────────────────
   BADGES
─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--genero {
  background-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.badge--palco {
  background-color: color-mix(in srgb, var(--color-secondary) 12%, transparent);
  color: var(--color-secondary);
  border: 1px solid color-mix(in srgb, var(--color-secondary) 25%, transparent);
}

/* ───────────────────────────────────────
   ANIMAÇÕES – REVEAL (IntersectionObserver)
─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay em cascata para filhos de um mesmo bloco */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ───────────────────────────────────────
   PRELOADER
─────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader__flame {
  width: 60px;
  height: 80px;
  animation: flamePulse 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 16px var(--color-primary));
}

@keyframes flamePulse {
  from { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 10px var(--color-primary)); }
  to   { transform: scale(1.12) rotate(2deg); filter: drop-shadow(0 0 28px var(--color-secondary)); }
}

.preloader__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.06em;
}

.preloader__city {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Barra de progresso do preloader */
.preloader__inner::after {
  content: '';
  width: 140px;
  height: 2px;
  background: var(--color-bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.preloader__inner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 999px;
  animation: preloaderBar 2s ease forwards;
}

@keyframes preloaderBar {
  from { width: 0; }
  to   { width: 140px; }
}

/* ───────────────────────────────────────
   NAVBAR
─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 20px;
  transition: background-color 0.35s ease, padding-block 0.35s ease,
              box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
  background-color: color-mix(in srgb, var(--color-bg-main) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: 12px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text-main) 8%, transparent);
}

.navbar__container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(90%, 1280px);
  margin-inline: auto;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 0 8px var(--color-primary));
  transition: filter 0.3s;
}
.navbar__logo:hover .navbar__logo-icon {
  filter: drop-shadow(0 0 16px var(--color-primary));
}

.navbar__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}
.navbar__logo-text em {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Links */
.navbar__nav { margin-left: auto; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}
.navbar__link:hover {
  color: var(--color-text-main);
  background-color: color-mix(in srgb, var(--color-text-main) 6%, transparent);
}

/* CTA */
.navbar__cta { flex-shrink: 0; }

/* Hambúrguer */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.navbar__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg-secondary);
  border-top: 1px solid color-mix(in srgb, var(--color-text-main) 8%, transparent);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__mobile.open {
  max-height: 400px;
}

.navbar__mobile-links {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar__mobile-links a {
  display: block;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}
.navbar__mobile-links a:hover {
  color: var(--color-text-main);
  background-color: color-mix(in srgb, var(--color-text-main) 6%, transparent);
}

/* ───────────────────────────────────────
   HERO
─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Camada de fundo parallax */
.hero__bg {
  position: absolute;
  inset: -20%;     /* margem extra para o efeito parallax */
/*  background-image: url('../img/hero-bg.jpg');*/
/*  background-image: url('https://picsum.photos/seed/festival/600/750');*/
  background-image: url('https://picsum.photos/1080/1980?random=1');
  background-size: cover;
  background-position: center top;
  will-change: transform;
  z-index: 0;
}

/* Overlay gradiente */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-bg-main) 80%, transparent) 0%,
    color-mix(in srgb, var(--color-bg-main) 55%, transparent) 40%,
    color-mix(in srgb, var(--color-bg-main) 85%, transparent) 100%
  );
  z-index: 1;
}

/* Conteúdo */
.hero__content {
  position: relative;
  z-index: 2;
  width: min(90%, 1280px);
  margin-inline: auto;
  padding-block: 120px 80px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero__title {
  margin-bottom: 24px;
  text-shadow: 0 2px 40px color-mix(in srgb, var(--color-bg-main) 60%, transparent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 520px;
  margin-bottom: 40px;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

/* Countdown */
.hero__countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg-secondary) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-text-main) 10%, transparent);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 72px;
  backdrop-filter: blur(8px);
}

.countdown__item span {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
  transition: color 0.3s;
}

.countdown__item small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.countdown__sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-inline: 4px;
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0.2; }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.hero__scroll-hint:hover { opacity: 1; }

.hero__scroll-dot {
  display: block;
  width: 28px;
  height: 10px;
  position: relative;
  /* tira a borda do antigo "mouse" */
  border: none;
}

/* Duas setas chevron descendo em sequência (uma à frente, outra atrás) */
.hero__scroll-dot::before,
.hero__scroll-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollArrow 2s ease-in-out infinite;
  opacity: 0;
}
.hero__scroll-dot::before {
  top: 4px;
  animation-delay: 0s;
}
.hero__scroll-dot::after {
  top: 4px;
  animation-delay: .4s;
}

@keyframes scrollArrow {
  0%   { top: 4px;  opacity: 0; }
  40%  {            opacity: 1; }
  80%  { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* Partículas hero */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatParticle linear infinite;
}

.particle--1 { width: 4px; height: 4px; background: var(--color-primary); top: 20%; left: 15%; animation-duration: 8s; animation-delay: 0s; }
.particle--2 { width: 6px; height: 6px; background: var(--color-secondary); top: 60%; left: 80%; animation-duration: 11s; animation-delay: 2s; }
.particle--3 { width: 3px; height: 3px; background: var(--color-primary); top: 75%; left: 30%; animation-duration: 9s; animation-delay: 1s; }
.particle--4 { width: 5px; height: 5px; background: var(--color-secondary); top: 35%; left: 65%; animation-duration: 13s; animation-delay: 3s; }
.particle--5 { width: 4px; height: 4px; background: var(--color-primary); top: 50%; left: 50%; animation-duration: 10s; animation-delay: 0.5s; }

@keyframes floatParticle {
  0%   { transform: translateY(0) scale(1); opacity: 0.5; }
  50%  { transform: translateY(-60px) scale(1.3); opacity: 0.9; }
  100% { transform: translateY(0) scale(1); opacity: 0.5; }
}

/* ───────────────────────────────────────
   SEÇÃO SOBRE
─────────────────────────────────────── */
.sobre {
  background-color: var(--color-bg-main);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}

.sobre__text { order: 1; }
.sobre__visual { order: 2; }

.sobre__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Stats */
.sobre__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid color-mix(in srgb, var(--color-text-main) 8%, transparent);
}

.stat__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Imagem */
.sobre__img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.sobre__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sobre__img-frame:hover .sobre__img {
  transform: scale(1.03);
}

/* Badge circular SVG */
.sobre__badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre__badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: rotateBadge 18s linear infinite;
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--color-text-muted);
}

.sobre__badge-year {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--color-text-main);
}

/* Elemento decorativo de fundo */
.sobre__deco {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.sobre__visual {
  position: relative;
  z-index: 1;
}

/* ───────────────────────────────────────
   SEÇÃO PROGRAMAÇÃO
─────────────────────────────────────── */
.programacao {
  background-color: var(--color-bg-secondary);
}

/* Fundo com textura parallax */
.programacao__bg {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--color-primary) 6%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--color-secondary) 5%, transparent) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.programacao .container { position: relative; z-index: 1; }

/* Tabs */
.prog__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.prog-tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--color-text-main) 15%, transparent);
  background: transparent;
  color: var(--color-text-muted);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s,
              box-shadow 0.25s, transform 0.2s;
}

.prog-tab:hover {
  color: var(--color-text-main);
  border-color: color-mix(in srgb, var(--color-text-main) 40%, transparent);
  transform: translateY(-2px);
}

.prog-tab.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* Painéis de dia */
.prog-day {
  display: none;
}
.prog-day.active {
  display: block;
  animation: fadeInPanel 0.4s ease forwards;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Lista de shows */
.prog__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.prog__item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 20px;
  background: color-mix(in srgb, var(--color-bg-main) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-text-main) 7%, transparent);
  border-radius: 10px;
  padding: 20px 24px;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}

.prog__item:hover {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-main));
  border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
  transform: translateX(4px);
}

.prog__time {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.prog__info { display: flex; flex-direction: column; gap: 8px; }

.prog__artista {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
}

.prog__meta { display: flex; flex-wrap: wrap; gap: 6px; }

.prog__icon {
  color: var(--color-text-muted);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.25s, color 0.25s;
}
.prog__item:hover .prog__icon {
  opacity: 1;
  color: var(--color-primary);
}

/* ───────────────────────────────────────
   SEÇÃO ATRAÇÕES PRINCIPAIS
─────────────────────────────────────── */
.atracoes {
  background-color: var(--color-bg-main);
}

.atracoes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.atracoes__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  border: 1px dashed color-mix(in srgb, var(--color-text-main) 12%, transparent);
  border-radius: 12px;
}

/* Card artista */
.card-artista {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border: 1px solid color-mix(in srgb, var(--color-text-main) 6%, transparent);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.card-artista:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px color-mix(in srgb, var(--color-bg-main) 60%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.card-artista__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card-artista__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-artista:hover .card-artista__photo {
  transform: scale(1.06);
}

.card-artista__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    color-mix(in srgb, var(--color-bg-secondary) 90%, transparent) 100%
  );
}

.card-artista__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-artista__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-artista__nome {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
}

.card-artista__bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  flex: 1;

  /* Limitar a 5 linhas com ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-artista__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--color-text-main) 7%, transparent);
  margin-top: auto;
}

.card-artista__data {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.card-artista__mic {
  color: var(--color-text-muted);
  opacity: 0.4;
  transition: opacity 0.25s, color 0.25s;
}
.card-artista:hover .card-artista__mic {
  opacity: 1;
  color: var(--color-primary);
}

/* ───────────────────────────────────────
   SEÇÃO NOTÍCIAS
─────────────────────────────────────── */
.noticias {
  background-color: var(--color-bg-secondary);
}

.noticias__bg {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(ellipse at 70% 80%, color-mix(in srgb, var(--color-primary) 7%, transparent) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.noticias .container { position: relative; z-index: 1; }

.noticias__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  border: 1px dashed color-mix(in srgb, var(--color-text-main) 12%, transparent);
  border-radius: 12px;
}

/* Grid de notícias */
.noticias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card notícia */
.card-noticia {
  background: var(--color-bg-main);
  border: 1px solid color-mix(in srgb, var(--color-text-main) 7%, transparent);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-noticia:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--color-bg-main) 70%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
}

/* Card em destaque (primeira notícia) */
.card-noticia--featured {
  grid-column: span 1;
}

.card-noticia__img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card-noticia__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-noticia:hover .card-noticia__img {
  transform: scale(1.05);
}

.card-noticia__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-noticia__data {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.card-noticia__titulo {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.card-noticia__titulo a {
  color: var(--color-text-main);
  transition: color 0.2s;
}
.card-noticia__titulo a:hover { color: var(--color-primary); }

.card-noticia__resumo {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-noticia__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 4px;
  transition: gap 0.2s;
}
.card-noticia__cta:hover { gap: 10px; }

/* ───────────────────────────────────────
   SEÇÃO GALERIA
─────────────────────────────────────── */
.galeria {
  background-color: var(--color-bg-main);
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.galeria__item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
}

/* Spans especiais */
.galeria__item--wide {
  grid-column: span 2;
}
.galeria__item--tall {
  grid-row: span 2;
}

.galeria__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.galeria__item:hover .galeria__img {
  transform: scale(1.08);
}

.galeria__item-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-primary) 40%, var(--color-bg-main) 60%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.35s ease;
  border-radius: 10px;
}

.galeria__item:hover .galeria__item-overlay {
  opacity: 1;
}

/* ───────────────────────────────────────
   FOOTER
─────────────────────────────────────── */
.footer {
  position: relative;
  background-color: var(--color-bg-secondary);
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 100px);
}

.footer__bg {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(ellipse at 15% 40%, color-mix(in srgb, var(--color-primary) 6%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, color-mix(in srgb, var(--color-secondary) 4%, transparent) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
}

/* Brand */
.footer__logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}
.footer__logo:hover { opacity: 0.8; }
.footer__logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-text-main);
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.footer__tagline strong { color: var(--color-text-main); }

/* Social links */
.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-text-main) 12%, transparent);
  color: var(--color-text-muted);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.2s;
}
.footer__social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  transform: translateY(-3px);
}

/* Nav colunas */
.footer__nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color 0.2s, padding-left 0.2s;
}
.footer__nav a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

/* Contato */
.footer__contact address {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.footer__contact p svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
}
.footer__contact a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--color-primary); }

/* Barra inferior */
.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid color-mix(in srgb, var(--color-text-main) 7%, transparent);
  padding-block: 20px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy,
.footer__credits {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__credits span {
  color: var(--color-primary);
}

/* ───────────────────────────────────────
   PARALLAX LAYER – base
─────────────────────────────────────── */
.parallax-layer {
  will-change: transform;
}

/* Desativa parallax em dispositivos com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
  }
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .preloader__flame {
    animation: none !important;
  }
}

/* ───────────────────────────────────────
   RESPONSIVIDADE
─────────────────────────────────────── */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .sobre__grid {
    gap: 48px;
  }

  .noticias__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-noticia--featured {
    grid-column: span 2;
  }

  .atracoes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet – 768px */
@media (max-width: 1248px) {
  /* Navbar mobile */
  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    display: block;
  }

  /* Hero */
  .hero__content {
    padding-block: 100px 60px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__countdown {
    gap: 2px;
  }

  .countdown__item {
    min-width: 58px;
    padding: 10px 12px;
  }

  .countdown__item span {
    font-size: 1.5rem;
  }

  /* Sobre */
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sobre__visual { order: -1; }

  .sobre__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre__badge {
    right: 16px;
  }

  /* Programação */
  .prog__item {
    grid-template-columns: 64px 1fr;
  }
  .prog__icon { display: none; }

  /* Notícias */
  .noticias__grid {
    grid-template-columns: 1fr;
  }

  .card-noticia--featured {
    grid-column: span 1;
  }

  /* Galeria */
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .galeria__item--wide {
    grid-column: span 2;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobile – 480px */
@media (max-width: 480px) {
  .hero__countdown {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .countdown__sep { display: none; }

  .sobre__stats {
    grid-template-columns: 1fr 1fr;
  }

  .prog__tabs {
    gap: 6px;
  }

  .prog-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .atracoes__grid {
    grid-template-columns: 1fr;
  }

  .galeria__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .galeria__item--wide,
  .galeria__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ── Link ativo na navbar ── */
.navbar__link--active {
  color: var(--color-primary) !important;
  background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* ── Link ativo no menu mobile ── */
.navbar__mobile-links a.active {
  color: var(--color-primary);
  background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* ── Canvas de folhas secas ── */
#leavesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* nunca bloqueia cliques ou scroll */
  z-index: 1;           /* acima do fundo, abaixo do conteúdo */
}

/* ═══════════════════════════════════════════
GALERIA PREVIEW (Index) — Legenda/Categoria Fixas
═══════════════════════════════════════════ */
#galeria .galeria__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    margin: 0;
}

#galeria .galeria__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

#galeria .galeria__item:hover .galeria__img {
    transform: scale(1.08);
}

/* Esconde o overlay verde antigo apenas na prévia */
#galeria .galeria__item-overlay {
    display: none;
}

/* Badge de categoria (sempre visível) */
#galeria .galeria__item-categoria {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--color-bg-main) 70%, transparent);
    backdrop-filter: blur(8px);
    color: var(--color-text-main);
    border: 1px solid color-mix(in srgb, var(--color-text-main) 20%, transparent);
    z-index: 2;
    pointer-events: none;
}

/* Legenda (sempre visível) */
#galeria .galeria__item-legenda {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--color-bg-main) 90%, transparent) 0%,
        transparent 100%
    );
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    z-index: 2;
    pointer-events: none;
}

/* ═══════════════════════════════════════
LOGO DINÂMICO NA NAVBAR (Corrigido)
═══════════════════════════════════════ */

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: flex-direction 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                gap 0.35s ease;
}

.navbar__logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    /* SOMBRA: Cinza discreto para destaque inicial */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); 
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.35s ease,
                opacity 0.3s ease;
}

.navbar__logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
    /* Animação de deslocamento suave */
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease;
}

/* ── Estado SCROLLED (Menu fixo) ── */
.navbar.scrolled .navbar__logo {
    flex-direction: column;       /* Coloca texto abaixo da imagem */
    align-items: flex-start;
    gap: 4px;
}

.navbar.scrolled .navbar__logo-img {
    height: 40px;                 /* Reduz tamanho */
    /* Sombra mais intensa para destacar sobre o fundo transparente */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.navbar.scrolled .navbar__logo-text {
    transform: translateY(6px);   /* Efeito visual de "descer" suavemente */
    font-size: 0.82rem;
}

/* Hover suave */
.navbar__logo:hover .navbar__logo-img {
    opacity: 0.85;
}