body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

header {
  background-color: #003366;
  color: white;
  padding: 1rem 0 0.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.logo img {
  height: 60px;
  margin-right: 15px;
}

nav {
  background-color: #002244;
  padding: 0.5rem 1rem;
  overflow-x: auto; /* Permite rolagem horizontal */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center; /* Centraliza os itens no desktop */
  scroll-behavior: smooth;
}

.nav-center {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1000px; /* Limita largura máxima para melhor controle */
}

nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
  min-width: max-content;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav::-webkit-scrollbar {
  display: none;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

article {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
  color: #003366;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

footer {
  background: #ddd;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .nav-center {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 10px;
    gap: 10px; /* reduz espaço entre os links no celular */
  }

  nav a {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }
}

