:root {
  --bg: #f6f8ff;
  --ink: #101426;
  --muted: #53607e;
  --brand: #0066ff;
  --brand-2: #00b894;
  --brand-3: #ff6a3d;
  --panel: #ffffff;
  --line: #d7e0f2;
  --dark: #0b1020;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at -5% -10%, rgba(0, 102, 255, 0.2), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, rgba(255, 106, 61, 0.15), transparent 50%),
    radial-gradient(900px 600px at 50% 100%, rgba(0, 184, 148, 0.15), transparent 55%),
    var(--bg);
  line-height: 1.58;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(11, 16, 32, 0.86);
  border-bottom: 1px solid rgba(110, 140, 220, 0.3);
  backdrop-filter: blur(14px);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 0.7rem;
}

.site-nav a {
  color: #eef2ff;
  text-decoration: none;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}

.hero {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  min-height: 82vh;
  margin: 1rem auto 1.2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(120, 145, 210, 0.4);
  box-shadow: 0 24px 50px rgba(14, 24, 54, 0.2);
}

.hero-media,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-media {
  filter: saturate(1.15) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 102, 255, 0.2), rgba(255, 106, 61, 0.18)),
    linear-gradient(190deg, rgba(10, 14, 26, 0.2), rgba(10, 14, 26, 0.86));
}

.hero.has-video .hero-fallback {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2rem 1.4rem 2.2rem;
  max-width: 820px;
}

.hero-title {
  display: grid;
  gap: 0.25rem;
}

.hero-subline {
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.accent-line {
  color: #ffcc7d;
}

.hero-panel {
  position: relative;
  z-index: 2;
  margin: 0 1rem 1rem 0;
  border: 1px solid rgba(193, 214, 255, 0.35);
  background: rgba(245, 250, 255, 0.14);
  border-radius: 20px;
  color: #fff;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.hero-list {
  margin: 0 0 0.7rem;
  padding-left: 1rem;
}

.hero-list li {
  margin-bottom: 0.33rem;
}

.muted-light {
  color: #d7e7ff;
  font-size: 0.92rem;
}

.label {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.27rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
}

.micro-tag {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 42, 104, 0.08);
  color: #1642a6;
}

.hero-content .micro-tag {
  background: rgba(255, 255, 255, 0.17);
  color: #f2f7ff;
}

.page-hero .label {
  background: rgba(0, 102, 255, 0.12);
  color: #12306b;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.text-block a,
.card a {
  color: #0b4ed9;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.72rem 1.1rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), #2f7cff);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.35);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-panel {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-3), #ff8f48);
}

main {
  padding-bottom: 2rem;
}

.split-section,
.schedule-section,
.gallery-section,
.contact-section,
.text-block {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
}

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

.card,
.slot,
.text-block,
.contact-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem;
  box-shadow: 0 10px 28px rgba(18, 26, 50, 0.08);
}

.accent-block {
  color: #fff;
  border: 0;
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.42)),
    linear-gradient(130deg, rgba(0, 102, 255, 0.95), rgba(0, 184, 148, 0.9)),
    linear-gradient(30deg, rgba(255, 106, 61, 0.45), rgba(255, 106, 61, 0.12)),
    url("media/ai/what-is-capoeira.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.accent-block::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 65%);
}

.warning-block {
  border: 1px solid #ffb89e;
  background:
    linear-gradient(120deg, rgba(255, 106, 61, 0.14), rgba(255, 160, 70, 0.16)),
    #fff8f3;
}

.warning-block h2 {
  color: #b83a12;
}

.warning-block .micro-tag {
  background: rgba(184, 58, 18, 0.12);
  color: #9e2f0f;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  filter: saturate(1.12) contrast(1.05);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 24, 50, 0.2);
}

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

.location-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #000;
  margin-top: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-main {
  padding-top: 0.7rem;
}

.page-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
  align-items: center;
}

.page-hero img {
  width: 100%;
  height: min(440px, 58vw);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17, 24, 50, 0.14);
}

.links-list {
  margin: 0;
  padding-left: 1rem;
}

.links-list li {
  margin-bottom: 0.45rem;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid #263564;
  border-radius: 14px;
  color: #eff3ff;
  background: linear-gradient(120deg, #0d1733, #182952);
}

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

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 76vh;
  }

  .hero-panel {
    margin: 0 1rem 1rem;
  }

  .split-section,
  .schedule-grid,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.8rem 1.2rem 1rem;
    background: rgba(11, 16, 32, 0.96);
    border-bottom: 1px solid #2e3d68;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 580px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
    border-radius: 20px;
  }

  .hero-media {
    display: none;
  }
}

/* CapoeiraFest 2026 */
body.festival-page {
  --festival-ink: #111218;
  --festival-muted: #585b68;
  --festival-blue: #0c7890;
  --festival-orange: #ef5d22;
  --festival-yellow: #f6be37;
  --festival-teal: #1f9d93;
  --festival-night: #071315;
  --festival-paper: #fff8eb;
  --festival-line: rgba(17, 18, 24, 0.14);
  font-family: "Manrope", sans-serif;
  color: var(--festival-ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 235, 0.96), rgba(244, 233, 211, 0.92)),
    var(--festival-paper);
}

.festival-page h1,
.festival-page h2,
.festival-page h3 {
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  letter-spacing: 0;
}

.festival-header {
  background: rgba(7, 19, 21, 0.9);
  border-bottom-color: rgba(246, 190, 55, 0.24);
}

.festival-brand {
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.festival-page .site-nav a[aria-current="page"] {
  background: var(--festival-yellow);
  color: #111218;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border: 1px solid rgba(246, 190, 55, 0.32);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.08);
}

.language-switch a {
  min-width: 38px;
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  color: #fff8eb;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 900;
}

.language-switch a[aria-current="true"] {
  color: #111218;
  background: var(--festival-yellow);
}

.festival-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 128px);
  align-items: end;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 19, 21, 0.88), rgba(7, 19, 21, 0.52) 52%, rgba(7, 19, 21, 0.82)),
    linear-gradient(0deg, rgba(7, 19, 21, 0.82), rgba(7, 19, 21, 0.08) 38%, rgba(7, 19, 21, 0.72)),
    url("media/capoeirafest2026/history/hero-roda.jpg");
  background-position: center;
  background-size: cover;
}

.festival-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--festival-orange), var(--festival-yellow), var(--festival-blue), var(--festival-teal));
}

.festival-hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding-bottom: clamp(1rem, 4vw, 3rem);
}

.festival-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.8rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #fff8eb;
  background: rgba(7, 19, 21, 0.34);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.festival-kicker--dark {
  color: #18434a;
  background: rgba(12, 120, 144, 0.08);
  border-color: rgba(12, 120, 144, 0.18);
}

.festival-hero__logo {
  display: block;
  width: min(430px, 82vw);
  max-height: min(58vh, 560px);
  margin: -0.4rem 0 0.9rem;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.48));
}

.festival-hero h1 {
  max-width: 780px;
  margin: 0 0 0.8rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  color: #fff;
}

.festival-hero__lead {
  max-width: 760px;
  margin: 0;
  color: #fff4dd;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.62;
}

.festival-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.festival-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.festival-btn--primary {
  color: #111218;
  background: var(--festival-yellow);
  box-shadow: 0 14px 26px rgba(246, 190, 55, 0.28);
}

.festival-btn--whatsapp {
  color: #fff;
  background: #178f58;
  box-shadow: 0 14px 26px rgba(23, 143, 88, 0.22);
}

.festival-btn--whatsapp::before {
  content: "WA";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 0.55rem;
  border-radius: 50%;
  color: #178f58;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.festival-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.festival-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.festival-hero__facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-self: end;
  margin-top: 1.5rem;
}

.festival-hero__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.54rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 19, 21, 0.48);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 800;
}

.festival-intro,
.festival-band,
.festival-detail,
.festival-formatura,
.festival-contact {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.festival-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  padding: clamp(2.6rem, 7vw, 5.4rem) 0 clamp(1.6rem, 4vw, 3rem);
}

.festival-intro h2,
.festival-section-head h2,
.festival-detail h2,
.festival-formatura h2,
.festival-contact h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.95;
}

.festival-intro p,
.festival-section-head p,
.festival-detail p,
.festival-formatura p,
.festival-contact p {
  margin: 0;
  color: var(--festival-muted);
  font-size: 1rem;
}

.festival-intro__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.festival-intro__stats div {
  min-height: 130px;
  padding: 1rem;
  border: 1px solid var(--festival-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.festival-intro__stats strong {
  display: block;
  color: var(--festival-orange);
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.festival-intro__stats span {
  display: block;
  margin-top: 0.35rem;
  color: #31333b;
  font-weight: 800;
}

.festival-band {
  padding: clamp(2rem, 5vw, 4.2rem) 0;
}

.festival-band--light {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 235, 0.3)),
    #fffdf6;
  border-block: 1px solid rgba(17, 18, 24, 0.08);
}

.festival-section-head {
  width: min(820px, 100%);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.festival-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.festival-program-card {
  overflow: hidden;
  border: 1px solid var(--festival-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 18, 24, 0.08);
}

.festival-program-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.festival-program-card__body {
  position: relative;
  padding: 1rem;
}

.festival-program-card h3,
.festival-teacher-card h3,
.festival-schedule-day h3,
.festival-contact__panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  line-height: 1;
}

.festival-program-card p {
  margin: 0 0 0.9rem;
  color: var(--festival-muted);
}

.festival-program-card a {
  color: #124a55;
  font-weight: 900;
}

.festival-free-program {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(12, 120, 144, 0.12), rgba(246, 190, 55, 0.2)),
    #fff8eb;
  border-bottom: 1px solid rgba(17, 18, 24, 0.08);
}

.festival-free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.festival-free-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(17, 18, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(17, 18, 24, 0.07);
}

.festival-free-card .festival-mini-schedule__day {
  flex-wrap: wrap;
  white-space: normal;
}

.festival-free-card .festival-mini-schedule__day span {
  color: #fff8eb;
  background: var(--festival-teal);
}

.festival-free-card .festival-mini-schedule__day strong {
  color: var(--festival-orange);
  font-size: 1rem;
}

.festival-free-card h3 {
  margin: 0 0 0.55rem;
  color: var(--festival-ink);
  font-size: 1.35rem;
  line-height: 1;
}

.festival-free-card p {
  margin: 0;
  color: var(--festival-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.festival-free-card .festival-mini-schedule__items {
  margin-bottom: 0.65rem;
}

.festival-free-card .festival-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 0.85rem;
  padding-inline: 0.8rem;
  text-align: center;
}

.festival-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(2.3rem, 6vw, 5rem) 0;
}

.festival-detail--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.festival-detail--reverse .festival-detail__media {
  order: 2;
}

.festival-detail__media {
  overflow: hidden;
  border-radius: 8px;
  background: #071315;
  box-shadow: 0 20px 42px rgba(17, 18, 24, 0.16);
}

.festival-detail__media video {
  display: block;
  width: 100%;
  height: min(620px, 72vw);
  object-fit: cover;
}

.festival-video-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: #071315;
}

.festival-video-stack--wide {
  grid-template-columns: 1fr;
}

.festival-video-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.festival-video-card video {
  height: min(520px, 52vw);
}

.festival-video-stack--wide .festival-video-card video {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: cover;
}

.festival-video-card figcaption {
  padding: 0.65rem 0.75rem;
  color: #fff8eb;
  font-size: 0.92rem;
  font-weight: 900;
}

.festival-detail__copy {
  padding-block: 1rem;
}

.festival-checklist {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.festival-checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: #24262d;
  font-weight: 700;
}

.festival-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 2px;
  background: var(--festival-orange);
}

.festival-section-plan {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.35rem;
  padding: 1rem;
  border: 1px solid rgba(12, 120, 144, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 190, 55, 0.16), rgba(31, 157, 147, 0.08)),
    #fff;
}

.festival-section-plan h3 {
  margin: 0;
  color: var(--festival-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.festival-section-plan p {
  margin: 0;
}

.festival-mini-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.festival-mini-schedule--dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.festival-mini-schedule article {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(17, 18, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.festival-mini-schedule__day {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  white-space: nowrap;
}

.festival-mini-schedule__day span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  color: #071315;
  background: var(--festival-yellow);
  font-size: 0.76rem;
  font-weight: 900;
}

.festival-mini-schedule__day strong {
  display: inline-flex;
  color: var(--festival-ink);
  font-size: 1.05rem;
}

.festival-mini-schedule__items {
  display: grid;
  gap: 0.32rem;
}

.festival-mini-schedule__items time {
  color: var(--festival-ink);
  font-weight: 900;
  white-space: nowrap;
}

.festival-mini-schedule__items p,
.festival-note {
  color: var(--festival-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.festival-band--dark {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  color: #fff8eb;
  background:
    linear-gradient(135deg, rgba(239, 93, 34, 0.18), rgba(12, 120, 144, 0.24)),
    #071315;
}

.festival-band--dark .festival-section-head p {
  color: rgba(255, 248, 235, 0.76);
}

.festival-teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.festival-guest-groups {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.festival-guest-group {
  display: grid;
  gap: 1rem;
}

.festival-guest-label {
  max-width: 780px;
}

.festival-guest-label h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.festival-guest-label p {
  margin: 0;
  color: rgba(255, 248, 235, 0.72);
}

.festival-teacher-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.festival-teacher-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.festival-teacher-card img,
.festival-teacher-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.festival-teacher-card img {
  display: block;
  object-fit: cover;
}

.festival-teacher-card__placeholder {
  display: grid;
  place-items: center;
  color: #071315;
  background: linear-gradient(135deg, var(--festival-yellow), var(--festival-orange));
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
}

.festival-teacher-card h3,
.festival-teacher-card p {
  padding-inline: 0.85rem;
}

.festival-teacher-card h3 {
  margin-top: 0.85rem;
  color: #fff;
}

.festival-teacher-card p {
  margin: 0 0 0.95rem;
  color: rgba(255, 248, 235, 0.72);
}

.festival-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.95rem;
}

.festival-role-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(246, 190, 55, 0.32);
  border-radius: 8px;
  color: #fff8eb;
  background: rgba(246, 190, 55, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.festival-schedule {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.festival-percussion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(12, 120, 144, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 190, 55, 0.18), rgba(12, 120, 144, 0.08)),
    #fff;
}

.festival-percussion-panel h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.festival-percussion-panel p {
  margin: 0.25rem 0 0;
  color: var(--festival-muted);
}

.festival-percussion-schedule {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.festival-subhead {
  margin: 1.4rem 0 0.85rem;
}

.festival-subhead h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.festival-subhead p {
  margin: 0;
  color: var(--festival-muted);
}

.festival-schedule-day {
  min-height: 210px;
  padding: 1rem;
  border: 1px solid var(--festival-line);
  border-radius: 8px;
  background: #fff;
}

.festival-schedule-day span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  color: #071315;
  background: var(--festival-yellow);
  font-weight: 900;
}

.festival-schedule-day p {
  margin: 0;
  color: var(--festival-muted);
}

.festival-schedule-day p + p {
  margin-top: 0.45rem;
}

.festival-events {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 4rem) auto;
}

.festival-event-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--festival-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 18, 24, 0.08);
}

.festival-event-card--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.festival-event-card--reverse > img,
.festival-event-card--reverse .festival-event-media {
  order: 2;
}

.festival-event-card > img,
.festival-event-media {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.festival-event-card > img {
  object-fit: cover;
}

.festival-event-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #071315;
}

.festival-event-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.festival-event-media figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #fff8eb;
  background: rgba(7, 19, 21, 0.68);
  font-size: 0.88rem;
  font-weight: 900;
}

.festival-event-card div {
  padding: clamp(1rem, 3vw, 2rem);
}

.festival-event-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
}

.festival-event-card p {
  margin: 0;
  color: var(--festival-muted);
}

.festival-event-card p + p {
  margin-top: 0.75rem;
}

.festival-formatura {
  min-height: 440px;
  display: grid;
  align-items: end;
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 19, 21, 0.9), rgba(7, 19, 21, 0.42)),
    url("media/capoeirafest2026/history/stage-moment.jpg");
  background-position: center;
  background-size: cover;
}

.festival-formatura__copy {
  max-width: 720px;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.festival-formatura p {
  color: rgba(255, 248, 235, 0.82);
}

.festival-band--gallery {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  background: #f3ead8;
}

.festival-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(180px, 24vw);
  gap: 0.8rem;
}

.festival-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(1.08) contrast(1.04);
}

.festival-gallery img:first-child {
  grid-row: span 2;
}

.festival-supporters {
  padding-top: clamp(1.8rem, 4vw, 3.2rem);
  padding-bottom: clamp(1.2rem, 3vw, 2.2rem);
}

.festival-supporter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.festival-supporter {
  flex: 0 1 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 74px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(17, 18, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.festival-supporter img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.festival-supporter--tall img {
  max-height: 58px;
}

.festival-application-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.festival-application-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(17, 18, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.festival-application-card h3 {
  margin: 0;
  color: var(--festival-ink);
  font-size: 1.18rem;
  line-height: 1;
}

.festival-application-card p {
  font-size: 0.93rem;
}

.festival-application-card .festival-btn {
  min-height: 44px;
  padding-inline: 0.75rem;
  text-align: center;
}

.festival-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
  padding: clamp(2.4rem, 6vw, 5rem) 0;
}

.festival-contact__panel {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--festival-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 18, 24, 0.09);
}

.festival-contact__panel p {
  margin-bottom: 0.3rem;
}

.festival-contact__label {
  color: var(--festival-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.festival-contact__panel a {
  display: block;
  color: #124a55;
  font-weight: 900;
}

.festival-footer {
  border-radius: 8px;
  background: #071315;
  border-color: rgba(246, 190, 55, 0.32);
}

@media (max-width: 1060px) {
  .festival-program-grid {
    grid-template-columns: 1fr;
  }

  .festival-teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .festival-teacher-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .festival-schedule {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .festival-percussion-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .festival-supporter {
    flex-basis: 190px;
  }
}

@media (max-width: 860px) {
  .festival-hero {
    min-height: calc(100svh - 104px);
    background-position: 58% center;
  }

  .festival-intro,
  .festival-detail,
  .festival-detail--reverse,
  .festival-contact,
  .festival-event-card,
  .festival-event-card--reverse {
    grid-template-columns: 1fr;
  }

  .festival-detail--reverse .festival-detail__media {
    order: 0;
  }

  .festival-event-card--reverse > img,
  .festival-event-card--reverse .festival-event-media {
    order: 0;
  }

  .festival-detail__media video {
    height: min(620px, 110vw);
  }

  .festival-video-stack {
    grid-template-columns: 1fr;
  }

  .festival-video-card video {
    height: min(620px, 120vw);
  }

  .festival-video-stack--wide .festival-video-card video {
    height: auto;
    max-height: none;
  }

  .festival-gallery {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
    gap: 0.8rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .festival-gallery img {
    flex: 0 0 min(82vw, 420px);
    height: min(58vw, 330px);
    min-height: 230px;
    scroll-snap-align: start;
  }

  .festival-gallery img:first-child {
    grid-row: auto;
  }

  .festival-supporter {
    flex-basis: 180px;
  }

  .festival-mini-schedule,
  .festival-mini-schedule--dense {
    grid-template-columns: 1fr;
  }

  .festival-teacher-grid,
  .festival-teacher-grid--compact {
    display: flex;
    grid-template-columns: none;
    gap: 0.8rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .festival-teacher-card {
    flex: 0 0 min(74vw, 300px);
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .festival-hero {
    min-height: auto;
    padding-top: 2.4rem;
    padding-bottom: 2.2rem;
  }

  .festival-hero__logo {
    width: min(340px, 88vw);
    max-height: 48vh;
  }

  .festival-hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .festival-header {
    gap: 0.45rem;
    padding-inline: 0.75rem;
  }

  .festival-brand {
    font-size: 1.05rem;
  }

  .language-switch a {
    min-width: 34px;
    padding-inline: 0.42rem;
  }

  .festival-actions,
  .festival-hero__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .festival-btn,
  .festival-hero__facts span {
    width: 100%;
  }

  .festival-intro__stats,
  .festival-schedule,
  .festival-percussion-panel,
  .festival-percussion-schedule {
    grid-template-columns: 1fr;
  }

  .festival-gallery img {
    flex-basis: min(84vw, 360px);
    height: min(64vw, 290px);
  }

  .festival-supporter-grid {
    justify-content: center;
  }

  .festival-supporter {
    flex: 0 1 170px;
    min-height: 64px;
  }

  .festival-supporter img {
    max-height: 38px;
  }

  .festival-supporter--tall img {
    max-height: 48px;
  }

  .festival-detail__media video {
    height: 118vw;
    max-height: 560px;
  }

  .festival-video-card video {
    height: 118vw;
    max-height: 560px;
  }

  .festival-video-stack--wide .festival-video-card video {
    height: auto;
    max-height: none;
  }
}

.festival-video-card--single {
  border: 0;
  border-radius: 0;
  background: #071315;
}

.festival-video-card--wide video {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .gallery img,
  .festival-program-card,
  .festival-teacher-card {
    transition: none;
  }
}
