
/* Reset simples */
* {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  color: #222;
}

main {
  background: #f4f4f4;
}

/* Esconde mobile em desktop */
@media (min-width: 768px) {
  .cabecalho-mobile {
    display: none;
  }
}

/* ------------- HEADER ------------- */
.cabecalho {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  
  /* Layout Flexível */
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* CORREÇÃO 1: Altura dinâmica e padding flexível */
  /* Use porcentagem para os lados, assim se a tela diminuir (zoom 150%), o espaço se adapta */
  padding: 15px 3%; 
  min-height: 80px; /* Altura mínima, mas pode crescer se precisar */
  
  /* Estilos padrão (Fundo Branco) */
  background: #fff;
  color: #F36D53;
  box-shadow: 0 6px 20px rgba(46, 48, 49, 0.06);
  
  transition: background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  /* Removido margin fixa para usar o justify-content do pai */
}

.logo img {
  /* CORREÇÃO 2: Logo responsiva */
  height: 50px; /* Levemente menor para caber melhor */
  width: auto;
  max-width: 100%;
}

/* nav básico */
.nav-principal {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
  font-weight: 500;
}

.nav-links a {
  padding: 6px 4px;
  color: inherit;
  text-decoration: none;
}

.nav-principal ul {
  /* CORREÇÃO 3: Margem responsiva */
  margin: 0 30px 0 0; /* Reduzido de 80px para não empurrar tanto */
  font-family: "Poppins", sans-serif;
  color: inherit;
  font-weight: 300;
  font-size: 1rem; /* Levemente reduzido para melhor ajuste */
}

.botao-contactar {
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  background-color: #F36D53;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap; /* Impede que o texto quebre */
}

.botao-contactar img {
  height: 18px;
  margin: 0;
}
.botao-contactar a {
  text-decoration: none;
  color: #fff;
}

/* Seletor de idioma */
.seletor-idioma {
  position: relative;
  cursor: pointer;
  background-color: #F36D53;
  color: #fff;
  font-weight: 300;
  border-radius: 8px;
  padding: 8px 16px;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.idioma-selecionado {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

#textoIdioma {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seletor-idioma img {
  height: 16px;
  width: auto;
  display: block;
}

/* Dropdown */
.lista-idiomas {
  list-style: none;
  padding: 10px 0; /* Ajustado */
  background: #F36D53;
  color: #fff;
  border-radius: 5px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;  /* Alinha à direita para não sair da tela */
  margin-top: 500px;
  min-width: 150px; /* Largura mínima */
  display: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 99;
}

.lista-idiomas li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px; /* Aumentado área de clique */
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  color: #fff;
  font-size: 0.9em;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
  /* Removido width fixo que quebrava o layout */
}

.lista-idiomas li:hover {
  background: #fff;
  color: #F36D53;
}

.lista-idiomas li img {
  height: 16px;
  flex-shrink: 0;
}

/* ============================
   ESTADOS DO HEADER (Transparência)
   ============================ */

/* Classe para forçar laranja em fundo branco */
.cabecalho.cabecalho-branco {
  background: #fff;
  color: #F36D53; 
  box-shadow: 0 6px 20px rgba(46, 48, 49, 0.06);
}

/* Classe para transparência (Index) */
.cabecalho.modo-transparente {
  background: transparent;
  box-shadow: none;
  color: #fff !important; 
}

.cabecalho.modo-transparente .nav-principal ul {
  color: #fff !important;
}

/* ============================
   CORREÇÃO PARA ZOOM 150% (Telas Médias)
   ============================ */
/* Isso ativa quando a "janela" do navegador fica menor, o que acontece no zoom 150% */
@media (max-width: 1200px) {
  .cabecalho {
    padding: 10px 2%; /* Reduz padding lateral ainda mais */
  }

  .nav-principal ul {
    margin-right: 15px;
    font-size: 0.9rem; /* Fonte um pouco menor */
    gap: 10px;
  }

  .botao-contactar, .seletor-idioma {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .logo img {
    height: 40px; /* Logo menor para caber */
  }
}