* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #eeeeee; /* mantém o fundo atual */
  color: #fff;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background-color: #555;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 87, 0.327),
    rgba(0, 24, 101, 0.841)
  );
  transition: background 0.3s ease;
  backdrop-filter: blur(4px); /* leve desfoque para elegância */
}

/* Estado inicial (transparente no topo) */
.navbar.transparent {
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 87, 0),
    rgba(0, 26, 87, 0)
  );
}

.navbar {
  height: 70px; /* ajuste para a altura exata da sua barra */
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 45px; /* mantém a altura real pequena */
  width: auto;
  transform: scale(1.6); /* aumenta visualmente a logo */
  transform-origin: left center;
}

@media (max-width: 600px) {
  .logo img {
    height: 55px;
  }
}

/* LINKS DO MENU */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #00aaff;
}

/* ÍCONES DE REDES SOCIAIS */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white; /* Ícones visíveis */
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #00aaff;
}

/* ======== HOME SLIDER ======== */
.home-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* as imagens */
.slides {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.home-slider .slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.home-slider {
  position: relative;
}

.home-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.581); /* ESCURECIMENTO */
  z-index: 1;
}

.arrow {
  z-index: 3;
}

/* garante que o texto fique acima do overlay */
.home-content {
  position: relative;
  z-index: 2;
}

/* Conteúdo central */
.home-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1200px;
}

.especialistas {
  font-size: 22px;
  letter-spacing: 8px;
  margin-bottom: 20px;
}

.titulo-principal {
  font-size: 50px;
  font-weight: 700;
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.subtitulo {
  margin-top: 20px;
  font-size: 20px;
}

.btn-home {
  display: inline-block;
  margin-top: 40px;
  background: #0077ff;
  padding: 15px 40px;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-home:hover {
  background: #005dcc;
}

/* ===== Setas ===== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 45px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  user-select: none;
}

.arrow:hover {
  color: #0077ff;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.botao {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  transition: background 0.3s;
}

.botao:hover {
  background-color: #005fcc;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 32px;
  }

  .subtitulo {
    font-size: 16px;
  }
}

/* Overlay escondida inicialmente */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(83, 83, 83, 0.347);
  opacity: 0;
  visibility: hidden;
  color: #bdbdbe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease;
}

/* Seu CSS Existente... */

/* 1. Mudar o Contêiner Principal para acomodar grupos */
.detalhes-container {
  color: #005fa0;
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex; /* Mantido flex para que o botão volte para o final */
  flex-wrap: wrap;
  justify-content: center;
  /* Removido o gap daqui para gerenciar o espaçamento dentro do card-group */
}

/* 2. Novo Estilo para Agrupamento de Cards */
.card-group {
  width: 100%; /* Ocupa a largura total do .detalhes-container */
  margin-bottom: 50px; /* Grande espaçamento após cada grupo para separá-los */
  text-align: center;
  display: flex; /* Usa Flexbox para alinhar os cards internos */
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Espaço entre os 4 cards de cada grupo */
  padding-top: 20px; /* Espaço acima do primeiro card após o título */
}

/* 3. Estilo para os Títulos de Agrupamento */
.card-group h3 {
  width: 100%; /* Ocupa a largura total do grupo */
  font-size: 28px;
  margin-bottom: 25px; /* Espaço entre o título do grupo e os cards */
  color: #023f67; /* Título branco para o fundo escuro do body */
  text-align: center;
}

/* 4. Ajustar o estilo do grande-card para caber 4 por linha */
.grande-card {
  /* ... seu estilo anterior ... */
  width: 275px; /* Mantido para que 4 caibam na linha */
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

/* ... o restante do seu CSS para body, h2, efeitos, etc. permanece inalterado. */

/* Efeito ao passar o mouse */
.grande-card:hover {
  transform: translateY(-8px); /* Move um pouco mais para cima */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6); /* Sombra mais proeminente */
}

/* Estilo para a imagem principal (preenche o card) */
.card-img-principal {
  width: 100%;
  height: 100%; /* Ocupa 100% da altura do card */
  object-fit: cover; /* Garante que a imagem preencha, cortando o excesso */
  transition: transform 0.4s ease;
}

/* Efeito de zoom na imagem ao passar o mouse no card */
.grande-card:hover .card-img-principal {
  transform: scale(1.08); /* Zoom um pouco maior na imagem */
}

/* Removido as regras para .card-conteudo, h3 e p para não exibir o texto */
.card-conteudo {
  /* Estas regras efetivamente escondem o div de conteúdo */
  display: none;
}

.btn-voltar {
  display: flex;
  align-items: center; /* centraliza texto na vertical */
  justify-content: center;

  padding: 10px 6px; /* altura e largura semelhante ao menu */
  background: #0268ad;
  color: white;
  border: none;
  border-radius: 8px; /* igual ao estilo moderno */
  font-size: 15px; /* equivalente aos links */
  font-weight: 600;

  cursor: pointer;
  height: 24px; /* deixa exatamente proporcional ao menu */
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-voltar:hover {
  transform: scale(1.05);
  background: #005fa0;
}

/* Estilo para a Descrição Abaixo dos Cards de Cada Grupo */

.group-description h4 {
  font-size: 20px;
  color: #007bce; /* Cor de destaque (o azul do botão) */
  margin-bottom: 10px;
  font-weight: 600;
}

.group-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #a0a0a0; /* Cinza claro para bom contraste no fundo escuro */
  font-weight: 300;
}

.footer {
  width: 100%;
  background-color: #1a2256; /* Azul escuro */
  color: white;
  font-family: "Poppins", sans-serif;
}

/* NEWSLETTER */
.footer-newsletter {
  padding: 40px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-newsletter h2 {
  font-size: 28px;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  width: 40%;
}

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border-radius: 6px 0 0 6px;
  border: none;
  background: #2c357b; /* Azul médio */
  color: white;
}

.newsletter-form button {
  padding: 12px 30px;
  background: #0f1537; /* Azul quase preto */
  border: none;
  border-radius: 0 6px 6px 0;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

/* PARTE PRINCIPAL */
.footer-main {
  background-color: #1f2a6b; /* Azul mais iluminado */
  padding: 50px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.footer-item h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background: white;
  margin-bottom: 20px;
}

.footer-logo {
  width: 230px;
  border-radius: 12px;
}

.footer-social img {
  width: 38px;
  margin-right: 15px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .newsletter-form {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-line {
    margin: 10px auto 20px;
  }

  .footer-social img {
    margin: 10px;
  }
}
