/* ===== MENU PRINCIPAL ===== */
.navegacao {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.navbar a {
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
}

.navbar a:hover {
  transition: 0.2s;
  color: #4A3638;
}

.navbar a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 103%;
  height: 3px;
  background-color: #4A3638;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform ease 0.3s;
}

.navbar a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 800px) {
  .navegacao img {
    width: 70px;
  }
}

@media (max-width: 550px) {
  /* Adicionando cor branca apenas no modo responsivo */
  .navbar a {
    font-size: 0.9rem;
    margin-left: -10px;
    color: #fff;
  }

  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;  
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    background-color: #4A3638;
    border: none;
    z-index: 300;
    cursor: pointer;
    position: relative;
    margin-left: 100px;
  }

  .menu-button:hover {
    transition: 0.2s;
    background: #4A3638
  }

  .menu-button span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2px;
    width: 15px;
    background: #fff;
    box-shadow: 0 6px #fff, 0 -6px #fff;  /* Espaçamento entre as linhas (6px) */
  }

  .navbar {
    display: none;
  }

  .navbar.active {
    display: block !important;
    position: absolute;
    background: #4d3333;
    padding: 35px;
    top: 145px;
    left: 180px;
    border-radius: 8px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
    text-align: start;
    width: 100px;
    z-index: 400;
  }

  .navbar.active::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 30px;  /* Ajustado para alinhar a setinha com o botão */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #4A3638;
  }

  .navbar.active li a {
    color: #fff;
  }

  .navbar.active li {
    margin-top: 8px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*============= Responsividade total da pagina =============*/
@media (max-width: 768px) {
 .navegacao {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .navegacao a img {
    width: 150px;
    height: auto;
  }

  main {
    margin-top: -30px;
    margin-bottom: -120px;
  }
  
  /*===== HERO1 =====*/

  .hero1 {
    flex-direction: column;
    text-align: start;
  }

  .hero1-texto h2 {
    font-size: 1.7rem;
  }
  .hero1-texto h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .hero1-texto p {
    font-size: 0.9rem;
  }
  .hero1-texto p bold {
    font-size: 0.9rem;
  }
  .hero1-texto button {
    width: 160px;
    font-size: 1rem;
  }

  .hero1-img {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -120px;
    margin-bottom: -120px;
  }

  .hero1-img img {
    width: 350px;
    height: auto;
  }

  /*===== SOBRE =====*/

  .sobre {
    flex-direction: column;
    text-align: start;
  }

  .sobre-texto h2 {
    font-size: 1.7rem;
    margin-bottom: -10px;
  }
  .sobre-texto p {
    font-size: 0.9rem;
    margin-top: -20px;
  }
  .sobre-texto p bold {
    font-size: 0.9rem;
  }

  .sobre-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sobre-img img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
  }

  /*===== OBJETIVO =====*/

  .objetivo {
    height: 78rem;
    flex-direction: column;
    text-align: start;
  }

  .objetivo-texto h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .objetivo-texto p {
    font-size: 0.9rem;
  }
  .objetivo-texto p bold {
    font-size: 0.9rem;
  }

  .objetivo-conteudo {
    margin-bottom: 20px;
  }

  .cards {
    display: grid; /* usar grid para controle preciso */
    grid-template-columns: 1fr; /* uma coluna: um card por linha */
    gap: 18px;
    width: 100%;
    max-width: 100%;
  }

  .card {
    width: 300px;
    height: auto;
    max-width: 100%;
    margin: 0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    padding: 16px;
  }

  .card-conteudo {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .card-conteudo .header-card {
    /* Container apenas para imagem e título */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .card-conteudo img {
    width: 40px;
    height: auto;
    flex-shrink: 0;
  }

  .card-conteudo h1 {
    font-size: 1rem;
    margin: 0;
  }

  .card-conteudo p {
    margin-top: -10px;
    font-size: 0.9rem;
  }

  /*===== FUNCIONALIDADES =====*/

  .funcionalidades {
    flex-direction: column;
    text-align: start;
    margin-top: 120px;
  }
  
  .funcionalidades-texto {
    align-items: center;    /* centraliza o conteúdo todo */
    text-align: start;
  }

  .funcionalidades-texto h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  #conteudo-predicao,
  #conteudo-dashboard {
    font-size: 1rem;
    margin-top: -10px;
  }
  
  .funcionalidades-texto div span {
    font-size: 0.9rem;
    line-height: 1rem;
    white-space: nowrap; 
  }

  .funcionalidades img {
    width: 300px;
    height: auto;
  }

  .funcionalidades-conteudo button {
    width: 160px;
    height: 45px;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-left: 0px;         /* remove a margem fixa */
    align-self: center;     /* centraliza o botão */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /*===== PARCERIAS =====*/

  .parceiros {
    flex-direction: column;
    text-align: start;
    padding: 16px;
    white-space: normal;
    gap: 16px;
    margin-top: -10px;
  }

  .parceiros > div.parceiros-texto {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    margin-bottom: 20px;
  }

  .parceiros > div.parceiros-texto h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    white-space: normal;
    line-height: 2rem;
  }

  .parceiros > div.parceiros-texto p {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    margin-bottom: 16px; /* espaço após o parágrafo */
  }

  /* Mantém o carrossel funcionando com menos espaço */
  .parceiros_img,
  #image-list {
    white-space: nowrap;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  /* Ajustes responsivos do carrossel: diminuir gap e acelerar animação
     para evitar sensação de lentidão e garantir que o loop mostre todas as imagens. */
  #image-list {
    gap: 40px; /* reduz o espaçamento entre logos em telas pequenas */
    animation: slide 6s linear infinite; /* mais rápido no mobile */
    width: max-content; /* garante que a animação translateX(-50%) funcione corretamente */
  }

  .parceiros_img img {
    width: 180px;
    height: auto;
  }

  /*===== FOOTER =====*/

  .footer-container {
    flex-direction: column;
    align-items: start;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .footer-img {
    padding: 40px 0 30px 0;
    text-align: start;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-img img {
    max-width: 200px;
    height: auto;
  }

  .footer-listas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .footer-listas h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: start;
    width: 100%;
  }

  .footer-colunas {
    align-items: start;
    text-align: start;
    margin-bottom: 20px;
  }

  .footer-colunas ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .footer-colunas ul li {
    margin: 0;
  }

  .footer-colunas.Mapa ul li a {
    font-size: 0.9rem;
    line-height: 1rem;
  }

  .footer-colunas.contatos ul li {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 5px;
  }

  .footer-colunas.contatos ul li img {
    width: 24px;
    height: 24px;
  }

  .footer-colunas.contatos ul li a {
    margin: 0;
    font-size: 0.9rem;
  }

  .footer-container span {
    padding: 30px 0 0 0;
    text-align: start;
    font-size: 0.8rem;
    display: block;
  }
}
