/* Geral */
:root {
  --font-size-16px: 1rem;
  --font-size-18px: 1.125rem;
  --font-size-20px: 1.25rem;
  --font-size-24px: 1.5rem;
  --font-size-26px: 1.625rem;
  --font-size-60px: 3.75rem;
  --preto: #121212;
  --branco: #fff;
  --amarelo: #f9c737;
  --branco-leitura: #e0e0e0;
  --cor-linha: #2b2b2b;
}
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: var(--branco);
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  background: var(--preto) url(img/pattern-modificado.png);
}
:focus {
  outline: none;
}
img {
  display: block;
  max-width: 100%;
}
input,
button,
select,
textarea {
  background: #fff0;
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.menu-mobile {
  display: none;
  cursor: pointer;
}
.line {
  background: #353535;
  width: 100%;
  height: 2px;
  margin: 100px auto 10px auto;
}
.btn {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--amarelo);
  color: var(--preto);
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1rem;
  border: 2px solid var(--amarelo);
  transition: all 0.3s ease;
  width: fit-content;
}
.btn:hover {
  background: #ffdb70;
  border-color: #ffdb70;
}
.btn--secondary {
  background: transparent;
  color: var(--amarelo);
}
.btn--secondary:hover {
  background: var(--amarelo);
  color: var(--preto);
}
.title {
  font-size: var(--font-size-26px);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.esp {
  padding: 100px 20px;
}
.wpp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}
a,
button,
.menu-mobile {
  -webkit-tap-highlight-color: transparent;
}
.text-center {
  text-align: center;
}
/* navegacao */
.navegacao {
  padding: 30px 20px;
  background: var(--preto);
}
.nav {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.1rem;
}
.nav a {
  color: var(--branco);
  transition: color 0.3s ease;
}
.nav a:hover {
  color: var(--amarelo);
}
.navegacao::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cor-linha);
  margin-top: 30px;
}
/* header */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.logo h1 {
  font-family: "Epunda Slab", serif;
  font-size: var(--font-size-60px);
}
.header-txt {
  text-transform: uppercase;
  font-weight: 500;
  font-size: var(--font-size-20px);
}
/* sobre */
.about {
  display: grid;
  grid-template-columns: 2fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.about-txt p {
  font-size: var(--font-size-18px);
  line-height: 40px;
  max-width: 65ch;
  margin-bottom: 20px;
  color: var(--branco-leitura);
}
.about-img {
  max-width: 100%;
  margin-left: 30px;
}
/* regras */
.regras {
  text-align: center;
}
.regras h3 {
  font-size: 20px;
  margin-bottom: 20px;
}
.lista-regras {
  margin-top: 40px;
}
.lista-regras li {
  list-style: disc;
  list-style-position: inside;
  font-size: var(--font-size-18px);
  line-height: 45px;
  color: var(--branco-leitura);
}
/* evento */
.evento {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* O track do carrossel de eventos */
.evento .carousel-container {
  max-width: 500px; /* Largura aproximada do seu flyer */
  width: 100%;
  margin: 50px auto 0 auto; /* Centraliza o carrossel na seção */
}

/* Regra para o 'track' que se move */
.eventos-imgs {
  display: flex;
  flex-wrap: nowrap; /* Essencial para o carrossel */
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

/* Regra para cada 'slide' */
.evento-slide {
  flex: 0 0 100%; /* Faz cada slide ocupar 100% da largura da 'janela' */
  display: flex;
  justify-content: center;
}

/* Regra para a imagem dentro do slide */
.evento-slide img {
  width: 100%; /* Imagem ocupa 100% do slide */
  object-fit: contain; /* Garante que a imagem inteira apareça sem distorcer */
}
/* .galeria */
.galeria {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.galeria-imagens {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.img-galeria {
  flex: 1;
  border-radius: 10px;
  background: var(--preto);
  display: flex;
}
.img-galeria img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}
/* --- ESTILOS DO CARROSSEL --- */
.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 50px;
}
.carousel-window {
  overflow: hidden;
}
.galeria-imagens {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  transition: transform 0.5s ease-in-out;
}
.img-galeria {
  /* Força 3 imagens na versão desktop */
  flex: 0 0 calc(100% / 3 - 14px);
  border-radius: 10px;
  background: var(--preto);
  display: flex;
}
.img-galeria img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.carousel-btn.prev {
  left: -20px;
}
.carousel-btn.next {
  right: -20px;
}
/* footer */
.footer {
  background: var(--preto);
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: var(--font-size-18pxpx);
  font-weight: 700;
}
.footer a {
  color: var(--branco-leitura);
}
.loc::before,
.loc-wpp::before,
.loc-insta::before {
  font-size: 25px;
  vertical-align: middle;
}
.loc::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f3c5";
  margin-right: 10px;
}
.loc-wpp:before,
.loc-insta::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  margin-right: 10px;
}
.loc-wpp:before {
  content: "\f232";
}
.loc-insta::before {
  content: "\f16d";
}
.regulamento-ranking h1 {
  margin-top: 20px;
  margin-bottom: 20px;
}
.regulamento-ranking,
.tabela-pont {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.regulamento-ranking ul li,
.tabela-pont ul li {
  line-height: 36px;
  font-size: 18px;
  list-style: disc;
  list-style-position: inside;
}
.obs-ranking {
  color: var(--amarelo);
}
.tabela-ranking {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  color: #000;
}

.tabela-ranking th,
.tabela-ranking td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  color: #000;
}

.tabela-ranking thead {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* responsivo */
@media (max-width: 1024px) {
  .esp {
    padding: 40px 20px;
  }
  .about {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-txt p {
    max-width: 100%;
  }
  .about-img {
    order: -1;
    margin-left: 0;
    justify-self: center;
    max-width: 250px;
    margin-bottom: 30px;
  }
  .img-galeria {
    flex-basis: calc(100% / 2 - 10px);
  }
}
@media (max-width: 768px) {
  .title {
    font-size: 1.5rem;
  }
  .logo h1 {
    font-size: 3rem;
  }
  .header-txt {
    font-size: 1.125rem;
  }
  .lista-regras {
    text-align: left;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .img-galeria {
    flex-basis: 100%;
  }
  .carousel-btn.prev {
    left: 10px;
  }
  .carousel-btn.next {
    right: 10px;
  }
}
@media (max-width: 500px) {
  .navegacao::after {
    display: none;
  }
  .menu-mobile {
    display: block;
    z-index: 99999;
  }
  .nav {
    display: none;
  }
  .nav.ativo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .regulamento-ranking h1 {
    font-size: 30px;
  }
}
