/* =================================== */
/*   ESTILOS GERAIS E DESKTOP (BASE)   */
/* =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #0b469e;
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  transition: padding 0.3s ease;
}

.logo {
  height: 45px;
  margin-left: 100px;
  transition: opacity 0.4s ease, margin 0.3s ease;
}

.logo-scroll {
  display: none;
}
.logo-topo {
  display: block;
}
.header-scrolled .logo-scroll {
  display: block;
}
.header-scrolled .logo-topo {
  display: none;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

.header-scrolled nav a {
  color: #373435;
}

nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff; /* Linha branca para o header transparente */
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.header-scrolled nav a::after {
  background: linear-gradient(to right, #44a7ea, #153880); /* Gradiente no scroll */
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a.active::after {
  transform: scaleX(1);
}


/* --- Estilos para o Seletor de Idioma --- */

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px; /* Ajuste o espaçamento do menu */
}

.current-language {
    display: flex;
    align-items: center;
    padding: 5px; /* MODIFICADO: Padding ajustado para conter apenas a bandeira */
    border: 0px solid #ccc;
    border-radius: 5px;
    background-color: transparent; /* MODIFICADO: Fundo agora é transparente por padrão */
    color: #373435;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    outline: none;
}

/* MODIFICADO: Adicionado estado de fundo para o header com scroll */

.current-language:hover {
    background-color: #f0f0f0e8;
    border-color: #999;
}

.current-language:focus {
    outline: 2px solid #a0a0a0;
    outline-offset: 1px;
}

.flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 0; /* MODIFICADO: Removida a margem que separava a bandeira do texto */
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* MODIFICADO: Esconde o texto (span) dentro do botão e das opções do dropdown */
.current-language span,
.language-option span {
    display: none;
}

/* URLs para as imagens das bandeiras (SVG para melhor qualidade e escalabilidade) */
.flag-br { background-image: url(../../assets/images/flags/brasil.png); }
.flag-gb { background-image: url(../../assets/images/flags/usa.png); }
.flag-es { background-image: url(../../assets/images/flags/espanha.png); }

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 3px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center; /* MODIFICADO: Centraliza a bandeira na opção */
    padding: 5.5px; /* MODIFICADO: Padding uniforme */
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: background-color 0.15s ease;
    outline: none;
}


.language-option:hover {
    background-color: #f0f0f0;
}

.language-option:focus {
    background-color: #e0e0e0;
    outline: 1px solid #999;
    outline-offset: -1px;
}

.language-option .flag {
    margin-right: 0; /* MODIFICADO: Removida a margem */
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Garante que o nav-container alinhe os itens corretamente */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* --- SEÇÃO PRODUTOS --- */
.produtos {
  background: #fff;
}

.banner-produtos {
  background: linear-gradient(to left, #153880, #44a7ea);
  color: #fff;
  padding: 180px 50px 80px;
  text-align: center;
}

.banner-produtos h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.banner-produtos p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.produtos-container {
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.linha-produto {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.item-produto {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.item-produto img {
  width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

.item-produto:hover img {
    transform: scale(1.05);
}

.descricao {
  flex: 1;
}

.descricao h1 {
  font-size: 2.5rem;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 40%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  margin-bottom: 5px;
}

.descricao h3 {
  font-size: 0.95rem;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 40%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  margin-bottom: 15px;
}

.descricao p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.btn-ver {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-ver:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(68, 167, 234, 0.4);
}

/* --- FOOTER --- */
.footer {
  background: #fff;
  border-top: 2px solid #44a7ea;
  padding: 50px 20px 10px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo img {
  height: 60px;
}

.footer-menu h4,
.footer-contato h4 {
  color: #44a7ea;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 6px;
}

.footer-menu ul li a, .footer-contato p, .footer-contato a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.footer-redes {
  margin-top: 10px;
}

.footer-redes a {
  margin-right: 10px;
  display: inline-block;
}

.footer-redes img {
  width: 24px;
  transition: 0.3s;
}

.footer-redes a:hover img {
  transform: scale(1.1);
}

.footer hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 30px auto;
  max-width: 1200px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px;
}

.footer-bottom spam a{
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px; /* Adicionado: padding-bottom para igualar o arquivo de referência */
}
/* ======================================================= */
/* ============= SEÇÃO DE RESPONSIVIDADE ================= */
/* ======================================================= */

@media (max-width: 1200px) {
  .nav-container {
    padding: 15px 30px;
  }
  .logo, .user-icon-container {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .banner-produtos {
    padding: 150px 30px 60px;
  }
  .produtos-container {
    padding: 60px 30px;
  }
  .item-produto {
    flex-direction: column;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .descricao {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    order: 1;
    height: 40px;
    width: auto;
  }

  .user-icon {
    order: 2;
  }

  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 15px;
  }
  .banner-produtos {
    padding: 150px 20px 40px;
  }
  .banner-produtos h1 {
    font-size: 1.8rem;
  }
  .banner-produtos p {
    font-size: 0.9rem;
  }
  .produtos-container {
    padding: 40px 20px;
    gap: 40px;
  }
  .item-produto img {
    width: 200px;
  }
  .descricao h1 {
      font-size: 2rem;
  }
}