/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  /* ... (o resto das suas regras de body) ... */
}

/* Corpo */
body {
  font-family: Arial, sans-serif;
  background: #fffdf5;
  color: #333;
}

/* Header fixo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-family: sans-serif;
  overflow: hidden; /* garante que nada vaze */
}

/* Wrapper que contém tudo do header */
.header-content {
  transform: translateY(-100%); /* começa escondido acima */
  transition: transform 0.4s ease;
}

/* Hover no header — tudo aparece */
header:hover .header-content {
  transform: translateY(0); 
}

/* Main header */
.logo-img {
  max-height: 40px; 
  width: auto; 
  display: block; 
}


.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFD700;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Menu */
.menu-principal a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.menu-principal a:hover {
  text-decoration: underline;
}
/* Banner principal / hero */
.banner {
  
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),  /* camada escura */
    url('background.png');  /*imagem do fundo*/
  padding: 60px 20px;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.banner-texto h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: beige;
}

.banner-texto p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: beige;
}

.banner-texto button {
  padding: 12px 25px;
  background: #0000007a;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

.banner-texto button:hover {
  background: #555;
}

/* Layout de colunas para conteúdo principal */
.conteudo-principal {
  display: flex;
  gap: 20px;
  padding: 30px 20px;
}

/* Coluna esquerda */
.col-esq {
  width: 20%;
}

.destaques li {
  list-style: none;
  margin-bottom: 15px;
}

.destaques a {
  text-decoration: none;
  color: #333;
}
.destaques a:hover {
  color: #666;
}

/* Coluna central */
.col-centro {
  width: 55%;
}

/* Cards de produtos / ofertas */
.produtos .prod-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.prod-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: calc(33% - 10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.prod-card:hover {
  transform: translateY(-5px);
}

.prod-card a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

/* Seção Sobre */
.sobre {
  margin-top: 40px;
}
.sobre p {
  line-height: 1.6;
}

/* Coluna direita */
.col-dir {
  width: 20%;
}

.noticias h3 {
  margin-bottom: 10px;
}
.noticias ul {
  list-style: none;
}
.noticias li {
  margin-bottom: 10px;
}
.noticias a {
  text-decoration: none;
  color: #333;
}
.noticias a:hover {
  color: #666;
}

/* Rodapé */
footer {
  background: #FFD700;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.logo { font-weight: bold; font-size: 1.3rem; }
header nav a { text-decoration: none; color: #333; font-weight: bold; margin-left: 15px; }
header nav a:hover { text-decoration: underline; }

.links-rodape a {
  text-decoration: none;
  color: #333;
}
.links-rodape a:hover {
  text-decoration: underline;
}

footer p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.contato-wrapper {
  position: relative; 
  display: inline-block; 
}

.contato-btn {
  color: #333; /* (Assumindo a cor do link do rodapé) */
  text-decoration: none;
  cursor: pointer;
}
.contato-wrapper:hover .contato-btn {
  text-decoration: underline; /* Imita o hover de um link */
}

/* A "Caixinha" que aparece  */
.contato-box {
  /* Escondido por padrão */
  opacity: 0;
  visibility: hidden;
  
  /* Posicionamento (flutuante) */
  position: absolute;
  z-index: 1000;
  bottom: 100%; 
  right: 0;    
  transform: translateY(0);
  
  /* Estilos da Caixinha */
  background: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 15px 20px;
  width: 250px; /* Largura da caixinha */
  
  transition: opacity 0.2s ease;
}

.contato-wrapper:hover .contato-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Estilos do conteúdo da caixinha */
.contato-box h4 {
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
}
.contato-box p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
}
.contato-box p strong {
  color: #000;
}
.contato-box span {
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 1024px) {

  /* 1. Empilha o Menu do Cabeçalho */
  .header-content .main-header {
    flex-direction: column !important; 
    gap: 15px;
    padding: 10px;
  }
  .menu-principal {
    display: flex !important;
    flex-wrap: wrap !important; 
    justify-content: center !important;
    gap: 10px;
  }
  
  /* 2. Ajusta o Banner */
  .banner {
    padding: 60px 20px !important;
  }
  .banner h1 {
    font-size: 2.2rem !important;
  }

  /* 3. Empilha o Layout de 3 Colunas (A CORREÇÃO PRINCIPAL) */
  .conteudo-principal {
    padding: 10px;
    display: block !important; /* Desliga qualquer flex/grid do original */
  }
  /* Usando seletores mais específicos para garantir o override */
  body .col-esq, 
  body .col-centro, 
  body .col-dir {
    float: none !important; /* Desliga o float */
    width: 100% !important; /* Força a largura total */
    min-width: 0 !important; /* Remove qualquer largura mínima */
    margin: 15px 0;
  }
  
  /* 4. Empilha os Cards de Produto (CORREÇÃO DO TEXTO CORTADO) */
  .prod-cards {
    display: flex;
    flex-direction: column; /* Empilha os 3 cards */
    gap: 20px; 
  }
  .prod-card {
    width: 100% !important; 
  }
  /* Força o texto (ex: "Investimentos") a quebrar a linha */
  .prod-card h3 {
    white-space: normal !important; /* <<< PERMITE A QUEBRA DE LINHA */
    overflow-wrap: break-word; 
  }

  /* 5. Empilha o Rodapé */
  .links-rodape {
    display: flex !important;
    flex-direction: column !important; 
    gap: 10px;
    align-items: center; 
  }
}

/* BLOCO 2: Micro-ajustes para Celulares Pequenos */
@media (max-width: 480px) {

  /* 1. Ajusta o Menu do Cabeçalho */
  .menu-principal {
    gap: 5px; 
  }
  .menu-principal a {
    font-size: 0.9rem; 
  }

  /* 2. Ajusta o Banner */
  .banner h1 {
    font-size: 1.8rem; 
    line-height: 1.3; 
  }
  .banner p {
    font-size: 1rem; 
  }
  .banner button {
    width: 100%; 
    padding: 15px;
  }

  /* 3. Ajusta os Títulos de Seção */
  .sobre h2,
  .produtos h2,
  .noticias h3 {
    font-size: 1.5rem; 
  }
  .sobre p {
    font-size: 0.95rem; 
  }
  
  /* 4. Ajusta os Cards de Produto */
  .prod-card {
    padding: 15px; 
  }
  .prod-card h3 {
    font-size: 1.1rem;
  }
  
  /* 5. Ajusta o dropdown de contato no rodapé */
  .contato-box {
    width: 90vw; 
    right: 5vw; 
    left: auto; 
  }
}
.marketing-top-nav {
    background-color: var(--amarelo-principal); /* Fundo amarelo */
    color: var(--cor-texto);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.marketing-top-nav .logo-text-link {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--verde-principal);
    text-decoration: none;
}
.marketing-top-nav .nav-links a,
.marketing-top-nav .nav-links .btn-abrir-conta-nav {
    margin-left: 15px;
    text-decoration: none;
    color: var(--cor-texto);
    font-size: 0.9em;
}

.marketing-top-nav .nav-links .btn-abrir-conta-nav {
    background-color: var(--verde-principal);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.marketing-top-nav .nav-links .btn-abrir-conta-nav:hover {
    background-color: #2e7d32;
}