
/* ======== Cabeçalho ======== */
.main-header {
  background-color: #131313;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* altura do header */
  z-index: 1000;
}

.header-container {
  max-width: 85%;
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  justify-content: flex-start; /* Alinha o logo no início */
  align-items: center;
  gap: 10%; /* Adiciona um espaço fixo entre Logo e Navegação/Botão */
}

/* NOVO ESTILO: Faz a navegação ocupar todo o espaço central */
.main-nav {
  flex-grow: 1; 
}


/* MODIFICAÇÃO: Centraliza os links dentro do espaço expandido */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center; /* ESTA É A MUDANÇA PRINCIPAL */
}

.header-logo {
  height: 70px;
  width: auto;
}

/* ===========================
   BARRA DE PESQUISA MODERNA
   =========================== */
.search-container {
  margin-top: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: 170px; /* espaço abaixo do header fixo */
  box-sizing: border-box;
}

.search-form {
  width: 100%;
  max-width: 1150px; /* mesma largura dos artigos principais */
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form input[type="text"] {
  flex: 1;
  padding: 16px 18px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  outline: none;
}

.search-form input[type="text"]::placeholder {
  color: #999;
}

.search-form button {
  background-color: #ffcc33; /* botão dourado, troque por #d63031 para vermelho */
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background-color: #e6b800; /* tom mais escuro do dourado */
}

/* Ícone dentro do botão */
.search-form button i {
  font-size: 16px;
}

/* ======== Navegação ======== */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.main-nav a {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 1s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C28E18;
  transition: width 0.3s ease-in-out;
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* ======== Botão Contato ======== */
.cta-btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid #C28E18;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
  background-color: #C28E18;
  color: #000;
}

/* Remove qualquer scroll lateral */
body {
  overflow-x: hidden;
}

/* ======== Responsivo ======== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {

  /* Para o conteúdo do site “descer” suavemente */
  body.menu-open main,
  body.menu-open .search-container,
  body.menu-open .secondary-articles,
  body.menu-open footer {
    transform: translateY(200px);
    transition: transform 0.4s ease-in-out;
  }


  .logo-footer {
  width: 150px;
  justify-content: center;
}

  .search-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: 150px; /* espaço abaixo do header fixo */
  box-sizing: border-box;
}

.search-form {
  width: 100%;
  max-width: 310px; /* mesma largura dos artigos principais */
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

  .header-container {
    padding: 12px 20px;
  }

  .header-container {
    padding: 12px 20px;
    
    /* ADICIONE/MANTENHA ESTAS LINHAS: */
    display: flex; /* Garante que o Flexbox está ativo */
    /* Empurra o Logo para a esquerda e o Menu para a direita */
    justify-content: space-between; 
    align-items: center;
  }

  .secondary-card p{
    font-size: 10px;
    color: #ffffff;
  }

  .main-nav{
    padding-left: 20px; /* (opcional) afasta um pouco da borda */
    text-align: left;
    align-items: flex-start; /* Garante alinhamento dos itens à esquerda */
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #2b2b2b;
    display: none;
    flex-direction: column;
    padding: 20px 0;
    text-align: left;
  }

   .main-nav ul {
    padding-left: 20px; /* (opcional) afasta um pouco da borda */
    align-items: flex-start;
    justify-content: flex-start; /* Alinha os links à esquerda */
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .cta-btn {
    display: none; /* esconde botão no mobile */
  }

  .menu-toggle {
    display: block;
  }
}

/* ======== Estrutura geral ======== */
body {
  margin-top: 20em;
  font-family: 'Roboto', sans-serif;
  background-color: #000000;
  margin: 0;
  padding: 0;
}

/* Estrutura geral */
.blog-container {
  margin-top: 100em;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 85%;
  margin: 40px auto;
  padding: 0 20px;
  margin-top: 5em;
  width: 90%;
  gap: 22px;
  align-items: stretch;
}

/* ======== Card principal (borda dourada) ======== */
.featured-article {
  margin-bottom: 20em;
  display: flex;
  flex-direction: column;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  margin: 0;
  max-width: 100%;
  height: 100%;
  border: 2px solid #C28E18; /* borda dourada */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.featured-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 10px 0;
}

.featured-content p {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 10px;
}

.featured-content .btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  color: #C28E18;
  text-decoration: none;
  font-weight: 600;
}

/* ======== Top artigos ======== */
.top-articles {
  display: flex;
  flex-direction: column;
  gap: 19px;
  height: 100%;
}

.top-articles h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #C28E18;
  margin-bottom: 20px;
  margin-top: -10px;
  align-self: flex-start;
}

.article-item {
  background: #000000;
  border: 1px solid #C28E18;
  padding: 14.4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 5px;
}

.article-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.article-item p {
  font-size: 14px;
  color: #ffffff;
  font-weight: 400;
  margin: 0;
}

/* ======== Cards secundários (borda dourada) ======== */
.secondary-articles {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 85%;
  margin: 40px auto;
  padding: 0 10px;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.secondary-card {
  background-color: #000000;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 32.2%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
  margin-top: 50px;
  align-items: center;
  flex: 0 0 85%;
  min-width: 280px;
  scroll-snap-align: center;
  border: 2px solid #C28E18; /* borda dourada */
}

.secondary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.secondary-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.secondary-card .card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #C28E18;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 200;
  font-family: 'Montserrat';
}

.secondary-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  padding: 15px 20px 0;
  margin: 0;
  margin-bottom: 10px;
}

.secondary-card p {
  font-size: 14px;
  color: #ffffff;
  padding: 0 15px 15px;
  margin: 0;
  font-weight: 400;
  padding: 15px 20px 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.secondary-card a {
  font-size: 14px;
  color: #C28E18;
  text-decoration: none;
  font-weight: 600;
  padding: 0 15px 15px;
  margin-top: auto;
  align-self: flex-start;
}

/* ======== Responsivo ======== */
@media (max-width: 768px) {

  .logo-footer {
  width: 150px;
  justify-content: center;
}

  .top-articles .article-item:nth-child(4),
  .top-articles .article-item:nth-child(5) {
    display: none;
  }

  .secondary-articles {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
  }

  .secondary-card {
    flex: 0 0 75%;
    min-width: 290px;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .blog-container {
    grid-template-columns: 1fr;
    margin-top: 1em;
  }

  .featured-article {
    max-width: 100%;
  }

  .featured-content {
    padding: 15px;
  }
}

/* ======== Rodapé ======== */
.footer {
  background: linear-gradient(to right, rgba(226,146,21,1), rgba(213,148,45,1));
  color: #000000;
  padding-top: 30px;
}

.footer-col h1{
  font-size: 30px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.footer-col p{
  font-size: 16px;
}

.footer-col a{
  font-size: 18px;
  text-decoration: none;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15%;
  align-items: center;
  padding: 1% 7%;
}

.footer-title {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.logo-footer {
  width: 150px;
}

.footer-bottom {
  border-top: 1px solid #000000;
  margin-top: 5px;
  padding: 8px 20px;
  text-align: center;
  color: #000000;
}

/* ======== Ícones das redes sociais ======== */
.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  text-decoration: none !important;
}

.social-icons i {
  width: 35px;
  height: 35px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  text-decoration: none !important;
}

.social-icons i:hover {
  background: #373a3e;
}

.whatsapp-float {
  /* Fixa o elemento na tela, tornando-o flutuante */
    position: fixed; 
  /* Distância da parte inferior da tela (ajuste se necessário) */
    bottom: 20px; 
  /* Distância da lateral direita da tela (ajuste se necessário) */
  left: 20px; 
  /* Cor de fundo verde do WhatsApp */
  background-color: #25D366; 
  /* Cor do ícone */
  color: white; 
  /* Tamanho e formato do círculo */
  width: 50px; 
  height: 50px;
  border-radius: 50%;
  /* Remove a linha de baixo do link */
  text-decoration: none; 
  /* Centraliza o ícone dentro do círculo */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Garante que fique acima de outros elementos */
  z-index: 9999; 
  /* Efeito de transição suave */
  transition: background-color 0.3s ease;
}

/* Estilo para o ícone (o "i" dentro do link) */
.whatsapp-float .fab {
  font-size: 24px;
}

/* Efeito ao passar o mouse */
.whatsapp-float:hover {
  background-color: #128C7E;
}

/* ======== Responsivo rodapé ======== */
@media (max-width: 992px) {

  .logo-footer {
  width: 150px;
  justify-content: center;
}

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (max-width: 576px) {

    .logo-footer {
  width: 150px;
  justify-content: center;
}

  .footer-top {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 30px;
    justify-content: left;
  }
}

/* ======== Links Ler mais ======== */
.article-item a,
.featured-content a,
.secondary-card a {
  display: inline-block; /* necessário pra margin funcionar direitinho */
  margin-top: 2px; /* ajuste como quiser (6px, 10px…) */
  padding-top: 10px;
  color: #C28E18; /* amarelo dourado */
  text-decoration: none;
  font-weight: 600;
}

.article-item a:hover,
.featured-content a:hover,
.secondary-card a:hover {
  color: #e6b800; /* tom mais escuro ao passar o mouse */
}
