/* ===== Reset básico e preferências de fonte ===== */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

/* Evita qualquer scroll lateral decorrente de elementos fora da viewport */
html { overflow-x: hidden; }

/* ===== Mídia responsiva ===== */
img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Iframes responsivos quando usados */
.responsive-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.responsive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== Fontes Locais ===== */
/* removido ApplewoodAlternate */

/* removido Applewood (alias) */

@font-face {
  font-family: "Baloo 2";
  src: local("Baloo 2 Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Baloo 2";
  src: local("Baloo 2 Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Fonte Applewood (FontsFree) para títulos */
@font-face {
  font-family: "Applewood Free";
  src: url("fonts/FontsFree-Net-applewood.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: var(--font-text);
  line-height: 1.6;
  color: #1b133a;
  background: linear-gradient(135deg, #faf7ff, #f0effa);
  /* Mantém o footer no fim da página */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* fallback */
  min-height: 100svh;
  /* corrige em iOS/Safari */
  overflow-x: hidden;
}
/* regra global removida para permitir títulos com fonte própria */

main {
  flex: 1 1 auto
}

:root {
  --maxw: 1180px;
  --gap: 20px;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .12);
  --primary: #ffd000;
  /* amarelo */
  --accent: #3b2a6e;
  /* roxo mais profundo do mockup */
  --pink: #ef476f;
  /* rosa cards */
  --teal: #00c2ba;
  /* verde cards */
  --yellow: #ffd000;
  --dark: #1b133a;
  --font-title: "Applewood Free";
  --font-text: "Baloo 2", system-ui;
}

/* Utilidades globais de mídia responsiva */
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap)
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.preheader {
  background: #1f1f1f;
  color: #fff;
  padding: 2rem;
  position: relative;
}

.preheader__inner {
  font-size: .78rem; /* ligeiramente menor */
  font-weight: 700;
  letter-spacing: .6px;
  position: relative;
  left: 0;
  max-width: var(--maxw);
  margin: 0 auto; /* alinha ao container do site */
  padding: 0 12px;
}

/* ===== Topbar / Navegação ===== */
.topbar {
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: none;
  /* evita scroll lateral e permite a logo sair verticalmente */
  overflow-x: hidden;
  overflow-y: visible;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 8px 0; /* reduz altura da barra de menu */
  position: relative
}

.logo {
  display: flex;
  align-items: center;
}

.topbar__logo {
  /* padrão: logo dentro do menu nas páginas internas */
  height: 72px; /* compacta a logo para reduzir a barra */
  width: auto;
  display: block;
  z-index: 30;
  position: static;
  transition: all .2s ease;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px
}

.nav a {
  color: #1b1b1f;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: .82rem
}

.nav a:hover {
  opacity: .8
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 700;
  text-decoration: none
}

.btn.primary {
  background: var(--dark);
  color: #fff
}

.btn.dark {
  background: #222;
  color: #fff
}

.insta {
  background: #ff3e73;
  color: #fff
}

/* Link Voltar (páginas externas) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #1b1b1f;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
}
.back-link::before {
  content: "←";
  font-weight: 800;
}

/* ===== Seção do banner ===== */

.hero {
  padding: 0;
}

.hero__wrap {
  position: relative;
  width: 100%
  ;
  overflow: hidden; /* impede overlay de ultrapassar os limites do vídeo */
}

.hero__img {
  width: 100%;
  height: 400px;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* vídeo do hero ocupando toda a largura */
.hero__video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  left: 10%;
  bottom: 40%;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.hero__headline {
  display: flex;
  align-items: center;
  gap: 16px
}

.play-btn-img {
  width: 56px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

.hero__text {
  font-size: clamp(1.2rem, 3.3vw, 2.2rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35)
}

/* ===== Contador regressivo sobre o vídeo ===== */
.countdown {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  max-width: 92vw; /* limita para caber na viewport */
}

.countdown.is-hidden { display: none !important; }

.countdown__grid {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap; /* permite quebra em telas menores */
}

.countdown__item {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(0,0,0,.55);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  backdrop-filter: saturate(160%) blur(2px);
}

.countdown__value {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
}

.countdown__label {
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .95;
}

@media (max-width: 768px) {
  .countdown { max-width: 96vw; }
  .countdown__grid { gap: 14px; }
  .countdown__item { min-width: 95px; padding: 10px 12px; border-radius: 14px; }
  .countdown__value { font-size: clamp(1.6rem, 6.2vw, 2.2rem); }
  .countdown__label { font-size: .8rem; letter-spacing: .6px; }
}

@media (max-width: 480px) {
  .countdown__grid { gap: 10px; }
  .countdown__item { min-width: 80px; padding: 8px 10px; border-radius: 12px; }
  .countdown__value { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
  .countdown__label { font-size: .72rem; }
}

.pill {
  background: #ff3e73;
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 700
}

/* ===== Destaques (botões com imagem) ===== */
.features {
  padding:  0;
}

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

.feature-btn {
  display: block;
  text-decoration: none;
  position: relative;
  aspect-ratio: 3 / 2
  ;
  margin: 0;
}

.feature-btn__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0
}

.feature-btn__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  font-size: clamp(1rem, 2.5vw, 1.3rem)
}

.feature-btn--green {
  background: #00a676;
  position: relative;
}

.features .container {
  padding: 0;
  max-width: none;
  width: 100%;
}

/* ===== Atrações ===== */
.artists {
  padding: 0;
  background: var(--accent);
  color: #fff
}

.artists h2 {
  margin: 0 0 10px
}

.artists h2,
.schedule h2,
.gallery h2,
.sponsors h2,
.map h2,
.numbers h2,
.cta-info h2,
.faq h2 {
  font-family: var(--font-title)
}

/* Garante peso compatível com Applewood (evita bold sintético) */
.artists h2,
.schedule h2,
.gallery h2,
.sponsors h2,
.map h2,
.numbers h2,
.cta-info h2,
.faq h2 {
  font-weight: 400;
  font-synthesis: none;
}

.artists img {
  width: 100%;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.chips li {
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 700
}

/* ===== Evento gratuito ===== */
.free {
  background: var(--yellow);
  color: #1b1b1f;
  padding: 0;
}

.free__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px
}

.free__banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.free__content h2 {
  margin: 0 0 6px
}

.applewood {
  font-family: var(--font-title);
  font-weight: 400;
}

.big {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: .9
}

/* ===== Programação ===== */
.schedule {
  padding: 5rem 0;
  background: url('img/programacao.png') center/cover no-repeat;
  color: #fff;
  overflow-x: hidden; /* previne overflow horizontal do conteúdo interno */
}

.schedule__container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.schedule__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 6.5vw, 4rem);
  font-weight: 400;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.schedule__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.4;
  margin: 0;
}

.schedule__highlight {
  color: var(--yellow);
  font-weight: 800;
  font-size: 4rem;
}

.schedule__date-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.schedule__month {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.schedule__buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.schedule__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.schedule__btn:hover {
  transform: scale(1.05);
}

.schedule__day {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.schedule__weekday {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.schedule__btn--pink {
  background: #ef476f;
}

.schedule__btn--blue {
  background: #118ab2;
}

.schedule__btn--orange {
  background: #f77f00;
}

.schedule__btn--green {
  background: #06d6a0;
}

/* Cores adicionais para dias faltantes */
.schedule__btn--purple { /* 16 */
  background: #6a4c93;
}
.schedule__btn--teal { /* 17 */
  background: #00c2ba;
}
.schedule__btn--yellow { /* 18 */
  background: #ffd000;
}
.schedule__btn--accent { /* 23 */
  background: #3b2a6e;
}

/* Referências de programação por dia (imagens) */
.schedule__refs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.schedule__refs a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule__refs img {
  width: 100%;
  height: auto;
  display: block;
}

/* Imagem principal da programação em páginas diárias */
.schedule__image {
  grid-column: 1 / -1;
  margin-top: 16px;
}
.schedule__table { grid-column: 1 / -1; }
.schedule__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .schedule__refs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Galeria ===== */
.gallery {
  padding: 0;
  background: url('img/galeria.png') center/cover no-repeat;
  color: #fff;
}

.gallery__container {
  width: 100%;
  padding: 0;
}

.gallery__header {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin: 0 0 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.05);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__instagram {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: left;
  min-height: 300px;
}

/* Grid que organiza os embeds públicos do Instagram */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.insta-grid .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Patrocinadores ===== */
.sponsors {
  padding: 0;
  background: #fff;
  color: #1b133a;
  overflow-x: hidden; /* impede scroll lateral caso linhas excedam temporariamente */
}

.sponsors__container {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.sponsors__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 6.5vw, 3.6rem);
  font-weight: 400;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: center;
  color: var(--yellow);
  text-shadow: none;
}

.sponsors__grid {
  margin-bottom: 40px;
  max-width: 100%;
}

.sponsors__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sponsors__row--main {
  gap: 40px;
}

.sponsors__row--secondary {
  gap: 20px;
}

.sponsors__logo {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  min-width: 250px;
}

.sponsors__logo--small {
  min-height: 60px;
  min-width: 100px;
  padding: 15px;
}

.sponsors__logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sponsors__logo img {
  max-width: 100%;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

.sponsors__logo--small img {
  max-height: 40px;
}

.sponsors__placeholder {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: #f9f9f9;
}

.sponsors__placeholder-text {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 20px;
  font-weight: 600;
}

.sponsors__placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.sponsors__placeholder-item {
  background: #eee;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 30px 20px;
  color: #999;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.title {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .8px;
  text-shadow: none
}
section h2 {
  font-family: var(--font-title)
}

/* Padroniza Applewood (FontsFree) para todos os títulos */
h1, h2, h3, .title {
  font-family: var(--font-title) !important;
  font-weight: 400;
  font-synthesis: none;
}

.shadow-yellow {
  color: #ffd000;
  text-shadow: none
}

/* ===== Mapa e números ===== */
.metrics {
  padding: 0;
  background: #E72A85; /* fundo rosa em toda a largura */
  color: #fff;
  position: relative;
  font-family: var(--font-text)
}

.metrics__wrap {
  display: grid;
  grid-template-columns: 420px 1fr; /* mapa um pouco maior */
  gap: 72px; /* muito mais espaço entre mapa e texto */
  padding: 40px 32px;
  align-items: start;
  position: relative;
  z-index: 1; /* sobre a imagem do carneiro */
}

.map__box {
  background: #ffffff10;
  border-radius: 12px;
  height: 280px; /* levemente maior */
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.numbers {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-right: 8%; /* deixa espaço visual para o carneiro à direita */
  align-self: center; /* centraliza verticalmente em relação aos mapas */
}

.numbers__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.numbers__underline {
  height: 4px;
  width: 68%;
  background: #fff;
  margin: 8px 0 14px;
}

.numbers__items {
  display: grid;
  gap: 12px;
}

.number__value {
  font-family: var(--font-title);
  color: var(--yellow);
  text-shadow: none;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.1;
}

.number__desc {
  margin: 4px 0 0;
  opacity: .9;
  font-family: var(--font-text);
}

/* Ilustração do carneiro à direita */
.metrics__sheep {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 95% 80%; /* destaca o carneiro à direita como no mock */
  z-index: 0;
  pointer-events: none;
}

/* ===== CTA info ===== */
.cta-info {
  padding: 0;
  background: #e8f6f5
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px
}

.benefits li {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow)
}

/* ===== CTA bar ===== */
.cta-bar {
  padding: 0;
  background: var(--accent);
  color: #fff
}

.cta-bar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between
}
/* controla a altura do botão/cta como imagem */
.cta-bar__wrap img {
  height: 40px
}

/* FAQ */
.faq {
  padding: 0
}

.faq details {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  color: #000;
}

/* ===== Rodapé ===== */
.site-footer {
  height: 700px;
  border-top: none;
  padding: 0;
  margin: 0;
  color: #555;
  background: #0e0e0e;
  position: relative
}

.footer__img {
  width: 100%;
  height: 100%;
  display: block
}

/* FAQ overlay no rodapé */
.faq--overlay {
  position: absolute;
  left: 6%;
  top: 10%;
  width: 60%;
  color: #fff;
  text-shadow: none
}

/* ===== Tabela genérica ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.table th, .table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  overflow-wrap: anywhere; /* impede corte de textos longos */
}
.table thead th {
  background: #f8f8f8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--dark);
  border-bottom: 2px solid var(--yellow);
}
.table tbody tr:hover { background: rgba(0,0,0,.04); }
.table tbody tr:nth-child(even) { background: #fcfcfc; }
.table a.btn {
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 700;
}

/* espaçamento entre tabelas na seção de programação */
.schedule__table { grid-column: 1 / -1; margin-top: 12px; }
.table .time { font-weight: 800; color: #1b133a; }
.table ul { margin: 0; padding-left: 18px; }

/* Tabela responsiva: empilha linhas com rótulos em mobile */
@media (max-width: 768px) {
  .table.table--responsive thead { display: none; }
  .table.table--responsive { border: 0; box-shadow: none; background: transparent; }
  .table.table--responsive tbody { display: grid; gap: 12px; }
  .table.table--responsive tr { display: block; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
  .table.table--responsive td { display: block; width: 100%; border: 0; padding: 10px 12px; }
  .table.table--responsive td::before { content: attr(data-label); display: block; font-weight: 800; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
  .table.table--responsive td.center { text-align: left; }
}

/* Versão completa da seção de programação: container em uma coluna e sem cortes */
.schedule--full { overflow-x: visible; }
.schedule--full .schedule__container { grid-template-columns: 1fr; gap: 24px; padding: 32px; max-width: 1100px; }
.schedule--full .schedule__title { white-space: normal; font-size: clamp(1.3rem, 4.5vw, 2.6rem); letter-spacing: 1px; }

/* Responsividade antecipada para tabelas com conteúdo extenso */
@media (max-width: 1024px) {
  .table.table--responsive thead { display: none; }
  .table.table--responsive { border: 0; box-shadow: none; background: transparent; }
  .table.table--responsive tbody { display: grid; gap: 12px; }
  .table.table--responsive tr { display: block; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
  .table.table--responsive td { display: block; width: 100%; border: 0; padding: 10px 12px; }
  .table.table--responsive td::before { content: attr(data-label); display: block; font-weight: 800; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
}

/* Títulos com ícones para blocos da programação */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.section-title__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* Estilo moderno das tabelas nesta página */
.table--modern thead th {
  background: #fafafa;
  border-bottom: 2px solid var(--yellow);
}
.table--modern tbody tr:nth-child(even) { background: rgba(59, 42, 110, .045); }
.table--modern tbody tr:hover { background: rgba(59, 42, 110, .085); }
.table--modern td, .table--modern th { vertical-align: middle; }

/* Variante: resumo por dia com chips de destaque */
.table--summary { table-layout: auto; }
.table--summary thead th { font-size: .82rem; }
.table--summary th:nth-child(1),
.table--summary td:nth-child(1) { width: 120px; }
.table--summary th:nth-child(2),
.table--summary td:nth-child(2) { width: 120px; }
.table--summary th:nth-child(4),
.table--summary td:nth-child(4) { width: 160px; text-align: center; }
.table--summary .btn { padding: .38rem .7rem; font-size: .86rem; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: rgba(59, 42, 110, .08); border: 1px solid rgba(59, 42, 110, .15); color: var(--dark); font-weight: 700; font-size: .83rem; border-radius: 999px; padding: .25rem .55rem; }
.tag--primary { background: var(--yellow); border-color: var(--yellow); color: #1b1b1f; }
.tag--soft { background: #f6f6fb; border-color: #e7e7f3; }

/* Ocultar elementos quando filtrados */
.is-hidden { display: none !important; }

/* Barra de filtro por dia */
.filter-bar { display: flex; align-items: center; gap: 10px; background: #0f0f14; color: #fff; padding: 12px; border-radius: 12px; margin: 8px 0 16px; }
.filter-bar label { font-weight: 800; }
.filter-bar select, .filter-bar button { appearance: none; border: 1px solid #333; background: #15151c; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: .95rem; }
.filter-bar button { border-color: #555; cursor: pointer; }

/* Estado vazio dentro de tabelas responsivas */
.table__empty td { text-align: center; font-weight: 800; opacity: .75; padding: 16px; }
.table.table--responsive tr.table__empty { display: block; border: 1px dashed #ddd; background: #fafafa; border-radius: 12px; }
.table.table--responsive tr.table__empty td { display: block; width: 100%; }

/* Melhorias específicas: Gastronomia e Oficinas */
.table--gastro th:nth-child(1), .table--gastro td:nth-child(1) { width: 180px; }
.table--gastro th:nth-child(3), .table--gastro td:nth-child(3) { width: 220px; }
.table--workshops th:nth-child(1), .table--workshops td:nth-child(1) { width: 200px; }
.table--workshops th:nth-child(3), .table--workshops td:nth-child(3) { width: 280px; }

/* Ajuste de chips para tabelas lotadas */
.table--summary .tags { gap: 8px; }
.table--summary .tag { line-height: 1.1; }

.faq--overlay .title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  color: #fff
}

.faq__item { margin: 8px 0; }
.faq__item summary {
  position: relative;
  list-style: none;
  padding-left: 36px;
  cursor: pointer;
  font-weight: 800
}
.faq__item summary::-webkit-details-marker { display: none }
.faq__item summary::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffd000;
  color: #1b1b1f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25)
}
.faq__item p {
  margin: 6px 0 0;
  padding-left: 36px;
}

/* ===== Responsividade ===== */
@media (max-width:768px) {
  .topbar__inner {
    gap: 8px
  }

  .nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 12px 8px;
    overflow: visible;
  }
  .nav a {
    flex: 0 1 auto;
    font-size: .78rem;
    padding: .4rem .6rem;
    background: rgba(0,0,0,.06);
    border-radius: 999px;
  }

  .features__grid {
    grid-template-columns: 1fr
  }

  .schedule__grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .sponsors__grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .metrics__wrap {
    grid-template-columns: 1fr
  }

  .benefits {
    grid-template-columns: 1fr
  }

  .metrics__wrap {
    grid-template-columns: 1fr;
    padding: 24px 16px
  }

  .metrics__sheep {
    display: none
  }

  /* Responsividade específica: Programação e Galeria */
  .schedule { padding: 3rem 0; }
  .schedule__container { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .schedule__date-info { align-items: flex-start; }
  .schedule__buttons { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .schedule__btn { width: 86px; height: 86px; }
  .schedule__day { font-size: 1.9rem; }
  .schedule__weekday { font-size: .95rem; }
  .gallery__header { padding: 24px; }
}

@media (max-width:1024px) {
  .schedule__container { gap: 28px; padding: 32px; }
  .schedule__btn { width: 96px; height: 96px; }
  .schedule__day { font-size: 2rem; }
  .schedule__weekday { font-size: 1rem; }
}

/* ===== Responsividade adicional ===== */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .topbar__inner { padding: 16px 0; justify-content: space-between; }
  .logo { justify-content: center; }
  .topbar__logo { position: static; height: 100px; top: 0; }
  .hero__img { height: 300px; }
  .gallery__header { padding: 24px; }
  .schedule__title, .sponsors__title {
    font-size: clamp(1.4rem, 7vw, 2.4rem);
    letter-spacing: 1px;
  }
  /* mostra apenas a logo centralizada no mobile */
  .topbar { display: block; }
  /* mostra os links do menu diretamente no mobile */
  .nav { display: flex !important; }
  .nav-toggle { display: none !important; }
  /* título da programação deve quebrar linha no mobile */
  .schedule__title { white-space: normal; }
}

@media (max-width: 480px) {
  .topbar__logo { height: 100px; }
  .hero__img { height: 240px; }
}

@media (max-width:480px) {
  .schedule__btn { width: 72px; height: 72px; }
  .schedule__day { font-size: 1.6rem; }
  .schedule__weekday { font-size: .8rem; }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #f7f7ff;
    background: linear-gradient(135deg, #1e1f50, #3b2a6e)
  }

  .logo,
  .nav a {
    color: #1b1b1f
  }
}

/* ===== Menu hamburguer: estilos e comportamento ===== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: rgba(0,0,0,.08);
  cursor: pointer;
  position: relative;
  z-index: 35;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1b1b1f;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #1b1b1f;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

@media (max-width: 768px) {
  /* fechado por padrão */
  .nav { display: none !important; }
  .nav-toggle { display: inline-flex; }
  /* aberto */
  .topbar.nav-open .nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 25;
  }
  .topbar.nav-open .nav a {
    font-size: .9rem;
    padding: .6rem .8rem;
    background: rgba(0,0,0,.06);
    border-radius: 8px;
  }
  /* alias: suporte a .top-open igual a .nav-open */
  .topbar.top-open .nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 25;
  }
  .topbar.top-open .nav a {
    font-size: .9rem;
    padding: .6rem .8rem;
    background: rgba(0,0,0,.06);
    border-radius: 8px;
  }
}

/* ===== Desktop: posicionamento e ocultação da logo ao rolar ===== */
@media (min-width: 1024px) {
  .topbar__inner { position: relative; }
  /* somente na home a logo é posicionada sobre o topo */
  .home .topbar__logo {
    position: static;
    height: 72px;
  }
  /* somente na home a logo some ao rolar */
  .home .topbar.scrolled .topbar__logo {
    position: static;
    height: 72px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

