*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --red: #671724;
  --red-dark: #9B0B22;
  --red-light: #F4E0E4;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --text: #191818;
  --text-muted: #070707;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}
nav .logo { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 1.4rem; color: var(--red); 
  letter-spacing: 1px; 
  height: 45px; 
}

nav a { text-decoration: none; color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--red); }


.hero {
  min-height: 100vh;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
#code-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  color: #fff;
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 span { display: block; font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: 6px; opacity: 0.7; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--red);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-outline { display: inline-block; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); margin-left: 1rem; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.sobre {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.sobre h2 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; line-height: 1; margin-bottom: 1.5rem; letter-spacing: 1px; color: #671724; }
.sobre p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.sobre-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sobre-card { background: var(--gray); border-radius: 8px; padding: 1.5rem; border-left: 4px solid var(--red); }
.sobre-card .num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--red); line-height: 1; }
.sobre-card .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }


.programacao { background: var(--red-light); padding: 6rem 2rem 5rem; }
.programacao-inner { max-width: 860px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; }
.section-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: 1px; }
.section-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }


.carrossel-wrapper {
  display: flex;
  justify-content: center;
}

.carrossel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.carrossel::-webkit-scrollbar { display: none; }


.fase-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: white;
  border-radius: 14px;
  padding: 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(103,23,36,0.07);
  user-select: none;
}
.fase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(103,23,36,0.15);
  border-color: var(--red);
}
.fase-card.ativo {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(103,23,36,0.35);
  transform: translateY(-4px);
}

.fase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fase-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--red-light);
  color: var(--red);
  padding: 3px 10px;
  border-radius: 100px;
}
.fase-card.ativo .fase-pill { background: rgba(255,255,255,0.2); color: white; }
.fase-card-icon { font-size: 1.4rem; }

.fase-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.fase-card.ativo .fase-card-title { color: white; }

.fase-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.fase-card.ativo .fase-card-desc { color: rgba(255,255,255,0.8); }

.fase-card-datas {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.fase-card.ativo .fase-card-datas { color: rgba(255,255,255,0.7); }

.fase-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  border-top: 1px solid var(--red-light);
  padding-top: 0.75rem;
  transition: letter-spacing 0.2s;
}
.fase-card.ativo .fase-card-cta { color: rgba(255,255,255,0.9); border-top-color: rgba(255,255,255,0.2); }
.fase-card:hover .fase-card-cta { letter-spacing: 0.5px; }

.carrossel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(103,23,36,0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.dot.active { background: var(--red); width: 22px; border-radius: 4px; }


.painel-programacao {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(103,23,36,0.12);
}
.painel-programacao.aberto {
  max-height: 1200px;
  opacity: 1;
}

.painel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 0;
}
.painel-fase-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--red);
}
.painel-fechar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.painel-fechar:hover { border-color: var(--red); color: var(--red); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--gray);
  border: none;
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { background: var(--red-light); color: var(--red); }
.tab-btn.active { background: var(--red); color: white; box-shadow: 0 6px 18px rgba(103,23,36,0.25); }


.prog-content { display: none; padding: 0 2rem 2rem; animation: fadeProg 0.3s ease; }
.prog-content.active { display: block; }

@keyframes fadeProg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0.15;
}
.timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.timeline-item.last { padding-bottom: 0.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.95rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
}
.timeline-item.last::before { background: #ccc; }
.timeline-item .dia { font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.timeline-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }


.inscricao { padding: 6rem 2rem; max-width: 760px; margin: 0 auto; text-align: center; }
.inscricao h2 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: 1px; margin-bottom: 1rem; color: #671724; }
.inscricao > p { color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.7; }

.inscricao-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.inscricao-card {
  background: var(--gray);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: left;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.inscricao-card:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(103,23,36,0.1); }
.inscricao-card-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); background: var(--red-light); padding: 3px 10px; border-radius: 100px; margin-bottom: 0.75rem; }
.inscricao-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 1px; color: var(--text); margin-bottom: 0.4rem; }
.inscricao-card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }

.btn-full {
  display: block; width: 100%;
  background: var(--red); color: #fff;
  font-weight: 600; font-size: 1rem;
  padding: 1rem; border: none; border-radius: 4px;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px; text-decoration: none; text-align: center;
}
.btn-full:hover { background: var(--red-dark); transform: translateY(-1px); }


footer { background: var(--red); color: white; text-align: center; padding: 2rem; font-size: 0.85rem; }

/* ANIMAÇÕES */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-content { animation: fadeUp 0.8s ease both; }
.hero-content > * { animation: fadeUp 0.8s ease both; }
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.35s; }
.hero .btns { animation-delay: 0.5s; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .carrossel-arrow { display: none; }
  .fase-card { flex: 0 0 85vw; }
  .inscricao-cards { grid-template-columns: 1fr; }
  .painel-header { padding: 1.25rem 1.25rem 0; }
  .tabs { padding: 1.25rem; gap: 0.5rem; }
  .prog-content { padding: 0 1.25rem 1.5rem; }
}
@media (max-width: 480px) {
  .sobre { grid-template-columns: 1fr; gap: 2rem; }
  .btn-outline { display: inline-block; margin-left: 0; margin-top: 0.75rem; }
  .btns { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
  nav .nav-links { display: none; }
  .hero h1 { font-size: clamp(3.5rem, 15vw, 6.5rem); }
  .hero p { font-size: 0.95rem; }
  .hero { padding-top: 5rem; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .tab-btn { font-size: 0.8rem; padding: 10px 16px; }
}
