body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('logo-torneio-maribar-2025.jpg') no-repeat center center fixed;
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #f7f7f7;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.91);
  z-index: -1;
}

/* Cabeçalho */
header {
  background-color: #004080;
  color: white;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* Secção principal */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to right, #004080, #0073e6);
  color: white;
}

.botao {
  display: inline-block;
  margin-top: 1rem;
  background-color: white;
  color: #004080;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #e0e0e0;
  margin-top: 2rem;
}

footer a {
  color: #004080;
  text-decoration: none;
}

footer .social-icons {
  margin-top: 0.5rem;
}

footer .social-icons a {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer .social-icons a:hover {
  opacity: 1;
}

/* Secção do Instagram */
.instagram-feed {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f9f9f9;
}

.instagram-feed h2 {
  margin-bottom: 1rem;
  color: #004080;
}

/* Contador */
#countdown {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.85);
  color: #004080;
  padding: 1rem;
  border-radius: 8px;
  display: inline-block;
}

.submenu {
  background-color: #ffffffcc;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.submenu ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submenu a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}

.submenu a:hover {
  color: #0073e6;
}

/* Menu responsivo */
.menu-toggle {
  display: none;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.conteudo {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.botoes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.botao {
  padding: 10px 20px;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  border: 1px solid #004080;
  background-color: white;
  color: #004080;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
  /* impede quebra de linha dentro do botão */
}

.botao:hover {
  background-color: #004080;
  color: white;
}

.patrocinadores-carousel {
  overflow: hidden;
  padding: 2rem 0;
  background-color: #f8f8f8;
}

.carousel-track {
  display: flex;
  gap: 40px;
  animation: deslizar 20s linear infinite;
}

.carousel-track img {
  max-height: 80px;
  height: auto;
  width: auto;
  object-fit: contain;
}

@keyframes deslizar {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding-top: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.torneios-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.torneio-bloco {
  width: 300px;
  text-align: left;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.duplas-lista {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.duplas-lista li {
  margin-bottom: 5px;
}

@media (max-width: 900px) {
  .torneios-container {
    flex-direction: column;
    align-items: center;
  }
}
.cartaz {
  text-align: center;
  margin: 20px 0;
}