:root {
  --bg-body: #070707;
  --bg-alt: #111111;
  --bg-card: #181818;
  --accent: #d4af37;
  --accent-soft: #f1e1a6;
  --text-main: #f5f5f5;
  --text-muted: #b5b5b5;
  --border-soft: #2b2b2b;
  --error: #ff5a5f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
}

/* UTILITÁRIOS BÁSICOS */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: var(--text-muted);
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo img {
  height: 135px;
  display: block;
  object-fit: contain;
  margin-top: -10px;
}

/* NAV */

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.4rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* MENU MOBILE */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO – BANNER SEM CORTAR EM NENHUM DISPOSITIVO */

.hero {
  position: relative;
  padding: 1.5rem 0 2.5rem;          /* espaço em cima e embaixo */
  background: radial-gradient(circle at top, #151515 0, #050505 55%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;           /* se quiser um véu escuro, mude aqui */
}

.hero-bg {
  position: relative;
  max-width: 1200px;                 /* largura máxima no desktop */
  margin: 0 auto;                    /* centraliza */
  padding: 0 1rem;                   /* respiro lateral no mobile */
}

.hero-placeholder {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 2px solid var(--accent);   /* contorno dourado */
  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.7),
    0 0 80px rgba(212, 175, 55, 0.6); /* brilho dourado */
}

.hero-placeholder img {
  display: block;
  width: 100%;
  height: auto;                      /* mantém proporção original */
  object-fit: contain;               /* garante que a imagem inteira apareça */
}





.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 5rem 0 4rem 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero p {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f5d76e);
  color: #000;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.full-width {
  width: 100%;
}

/* LAYOUT GRID PADRÃO */

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* BLOCO DE IMAGENS */

.image-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.image-placeholder {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  min-height: 120px;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder.secondary {
  opacity: 0.95;
}

/* ÍCONES SOBRE */

.icon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.icon-card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--border-soft);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.icon-card h3 {
  margin: 0 0 0.3rem 0;
  font-size: 0.95rem;
}

.icon-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CARDS DE PERCURSO */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.8rem 1.4rem 1.5rem;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.card .tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(212, 175, 55, 0.14);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  color: var(--accent-soft);
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.9rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: "• ";
  color: var(--accent);
}

.card-list li + li {
  margin-top: 0.3rem;
}

/* MAPA */

.map-wrapper {
  margin-top: 2.5rem;
}

/* PATROCINADORES */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.secondary-sponsors {
  grid-template-columns: minmax(0, 1fr);
}

.sponsor-card {
  background: var(--bg-card);
  border-radius: 1.2rem;
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--border-soft);
}

.sponsor-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* REGULAMENTO */

.regulamento-download {
  display: flex;
  align-items: center;
  justify-content: center;
}

.regulamento-download .btn {
  max-width: 320px;
}

/* CONTATO / INFO GERAL */

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info li + li {
  margin-top: 0.35rem;
}



.instagram-call {
  margin: 1.5rem 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.instagram-link {
  margin-left: 0.5rem;
  text-decoration: none;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Ícone do Instagram bem pequeno, estilo emoji */
.instagram-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url("img/Instagram_icon2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.instagram-user {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Efeito no hover */
.instagram-link:hover .instagram-user {
  color: var(--accent);
}

/* se o PNG estiver dentro da pasta img, use esta linha: */
.instagram-icon {
  background-image: url("img/Instagram_icon.png");
}



.social-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.social-bottom {
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  font-size: 1.1rem;
}

.social-icons a {
  text-decoration: none;
  color: var(--text-muted);
}

.social-icons a:hover {
  color: var(--accent);
}

/* ORGANIZADORES - CONTATO */

.organizer-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.organizer-card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.organizer-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  margin-bottom: 0.9rem;
}

.organizer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.organizer-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.organizer-role {
  margin: 0 0 0.8rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.organizer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.organizer-contact li + li {
  margin-top: 0.35rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border-soft);
  background: #050505;
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* BUTTON VOLTAR AO TOPO */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

/* TEXTO PEQUENO */

.small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .icon-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .organizer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}




@media (max-width: 768px) {
  /* MENU MOBILE */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 320px;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.1rem;
  }

  .menu-toggle {
    display: flex;
  }

  /* HERO NO CELULAR – SEM CORTAR O BANNER */
  .hero {
    min-height: auto;        /* não força 70vh */
    padding-top: 1.5rem;
    display: block;          /* tira o alinhamento central com flex */
  }

  .hero-bg {
    position: static;        /* deixa o bloco fluir normalmente */
  }

  .hero-placeholder {
    position: relative;
    inset: 0;                /* remove o "inset" absoluto */
    margin: 0 1rem 0;        /* margem nas laterais */
    border-radius: 1.5rem;
  }

  .hero-placeholder img {
    width: 100%;
    height: auto;            /* altura automática */
    object-fit: contain;     /* mostra a imagem inteira, sem cortar */
    display: block;
  }

  /* SEÇÕES GERAIS */
  .section {
    padding: 4rem 0;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .icon-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .organizer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

