* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* =============== MENU FIXO SUPERIOR =============== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #003366;
}

.top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}

.logo img {
  height: 44px;
  object-fit: contain;
}

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

.main-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.main-nav a:hover {
  background-color: #f0f4ff;
}

/* Compensação para não sobrepor conteúdo */
.top-bar-offset {
  height: 80px; /* Ajuste se o menu for mais alto */
}

/* =============== CABEÇALHO DA PÁGINA (HEADER ANTIGO) =============== */
.page-header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #003366, #0055aa);
  color: white;
  margin-top: 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =============== GRID DE CARDS =============== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.card-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* =============== BOTÃO =============== */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #003366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0055aa;
}

/* =============== RODAPÉ =============== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #333;
  color: white;
  margin-top: 2rem;
}

/* =============== RESPONSIVO =============== */
@media (max-width: 768px) {
  .top-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .main-nav ul {
    gap: 1.2rem;
  }

  .top-bar-offset {
    height: 100px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}
/* =============== FOOTER =============== */
.site-footer {
  background-color: #f8f9fa;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid #eaeaea;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-link {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  line-height: 1.6;
}

.footer-link:hover {
  color: #003366;
  text-decoration: underline;
}

.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
}

.social-icon {
  color: #003366;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0.3rem 0;
}

.credits a {
  color: #003366;
  text-decoration: none;
}

.credits a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}