/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #ffffff);
  color: #003366;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Cabeçalho */
header.eventos {
  background: linear-gradient(to right, #003366, #003366);
  color: white;
  padding: 40px 20px;
  text-align: center;
  animation: slideDown 1s ease-out;
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

nav ul {
  margin-top: 15px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  border-bottom: 2px solid #e11d48;
}

/* Conteúdo principal */
main.container {
  min-height: calc(100vh - 160px); /* ocupa a tela inteira menos o header e footer */
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  animation: fadeInUp 1s ease-in;
}

main h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

main p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #333;
}

/* Grid de cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-top: 6px solid #e11d48;
  text-align: left;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInCard 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

.card h3 {
  color: #003366;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: #444;
}

.card a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.card a:hover {
  color: #e11d48;
}

/* Rodapé */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 25px 10px;
  border-top: 4px solid #e11d48;
  margin-top: 60px;
  font-size: 1rem;
  font-weight: 500;
}

footer strong {
  color: #ffdee3;
}

/* Botão de voltar */
#voltarTopo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e11d48;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

#voltarTopo:hover {
  background-color: #033666;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.eventos {
  display: flex;
  justify-content: space-between; /* ou center, se quiser centralizar tudo */
  align-items: center;
  padding: 20px 40px; /* ajuste conforme necessário */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* espaço entre a imagem e o texto */
}

.logo-img {
  height: 70px; /* ajuste conforme o tamanho ideal */
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Menu Responsivo */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 35px;
  right: 25px;
  z-index: 1000;
}

.nav-menu ul {
  flex-direction: row;
}

@media (max-width: 768px) {
  .nav-menu ul {
    display: none;
    flex-direction: column;
  }
  .nav-menu.open ul {
    display: flex;
  }


  .nav-menu {
    display: none;
    background-color: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 0;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }
}

.menu a {
  color: var(--branco);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
  background: var(--amarelo);
  color: var(--azul);
  transform: translateY(-3px);
}

:root {
  --azul: #003366;
  --vermelho: #cc0000;
  --amarelo: #ffcc00;
  --branco: #ffffff;
}


/* Menu padrão: sempre visível em telas grandes */
.nav-menu {
  display: block;
}

/* Menu em telas pequenas: escondido inicialmente */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    background-color: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu .menu {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }

  nav ul.menu {
    flex-direction: column;
    gap: 15px;
    display: flex;
  }
}
