/* Importando fonte moderna */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

:root {
  --cor-secundaria: #11529385;
  --cor-primaria: #073763;
  --cor-terciaria: #115293;
  --cor-x: #3c668f;

  --cor-destaque-claro: #ff8e8e;
  --cor-destaque-escuro: #e55c5c;

  --cor-botao: linear-gradient(135deg, #ff8e8e, #e55c5c);
  --cor-botao-hover: linear-gradient(135deg, #e55c5c, #ff8e8e);

  --cor-fonte: #fff;
  --tamanho-fonte: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* Corpo da página */
body {
  /*justify-content: space-between;*/
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--cor-primaria),
    var(--cor-secundaria)
  );
  background-attachment: fixed;
  color: var(--cor-fonte);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a:link,
:visited {
  text-decoration: none;
  color: white;
}

/* Cabeçalho */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100vw;
  /*height: 10%;*/
  /*padding: 20px calc(5vw);*/
  /*background: rgba(38, 61, 77, 0.2);*/
  background: var(--cor-primaria);
  /*background: linear-gradient(135deg, #2c3e50, #4ca1af);*/
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--cor-fonte);
  margin: 2%;
}

nav ul {
  list-style: none;
  display: flex;
  list-style: none;
  flex-direction: row;
  padding: 0;
  margin: 0;
  gap: 10px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #cfefe7;
  font-weight: 500;
}

nav ul li a:hover {
  font-weight: bolder;
}

.menu {
  display: none;
  position: absolute;
  right: 5%;
  bottom: 5%;
}

.listaMenu {
  display: flex;
  list-style: none;
  flex-direction: row;
  padding: 0;
  margin: 0;
  gap: 10px;
  position: relative;
  bottom: -50px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
  padding: 20px;
  margin-top: 190px;
}

.icone {
  position: fixed;
  bottom: 35%;
  right: 2px;

  width: 40px;
  height: 40px;

  background-color: var(--cor-primaria);

  border-radius: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: normal;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1003;
}

.icone:hover {
  background: linear-gradient(135deg, #1576cc, #2a2a3c);
  transform: translateY(-2px);
}

.interativa {
  /*position: absolute;
  top: 0%;
  transform: translateX(10%);*/
  display: none;
}

.janela {
  position: fixed;
  display: none;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5%;
  border-radius: 5px;
  backdrop-filter: blur(8px); /* Efeito de desfoque */
  background-color: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente */
  width: 80%;
  overflow-y: auto;
  height: 40%;
  z-index: 9999;
}

audio {
  width: 320px;
  height: 40px;
  border-radius: 12px;
  accent-color: #3c668f;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

.speed-float {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3c668f;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  transform-origin: center;
  padding: 0;
}

/* Estilhos para o overlay de carrregamento de dados */

/* Estilização do Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px); /* Efeito de desfoque */
  background-color: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente */
  display: none; /* Inicialmente oculto */
  justify-content: center;
  align-items: center;
  z-index: 9004;
}

/* Loader Giratório */
.loader {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Quando a tela for mais larga (horizontal), os elementos ficam lado a lado */
@media screen and (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
  }
  .hero-image img {
    max-width: 400px; /* Ajuste conforme necessário */
  }
  .listaMenu {
    display: flex;
    flex-direction: row;
  }
}

/* Quando a tela for mais estreita (vertical), a imagem vai para baixo */
@media screen and (max-width: 767px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    width: 100%;
    max-width: 300px; /* Ajuste conforme necessário */
  }
  .menu {
    display: flex;
    z-index: 1000;
  }
  .listaMenu ul {
    display: none;
    flex-direction: column;
    align-items: normal;
    width: 60%;
    background: white; /* Fundo para melhor visibilidade */
    position: fixed; /* Garante que a UL apareça sobre outros elementos */
    top: 20%; /* Ajusta a posição para abaixo do botão */
    /*left: 0;*/
    right: 5%;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
    z-index: 1000; /* Garante que fique acima de outros elementos */
  }
  .listaMenu ul.active {
    display: flex; /* mostra a lista ao ativar */
  }

  .listaMenu ul li a {
    color: var(--cor-primaria);
  }
}

.active {
  display: flex; /* mostra a lista ao ativar */
}

.hero h1 {
  font-size: 2.5em;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-image img {
  object-fit: cover;
  border-radius: 10%;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: var(--cor-botao);
  color: var(--cor-fonte);
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background: var(--cor-botao-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.content-section {
  padding: 80px 10%;
  text-align: center;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 100%;
  overflow-x: visible;
}

.benefit {
  background: white;
  color: var(--cor-primaria);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.linhaV::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 500px; /* A linha começa de cima da explicação */
  width: 2px;
  height: 30px; /* Tamanho da linha */
  background-color: var(--cor-secundaria); /* Cor da linha vertical */
  transform: translateX(-50%); /* Para centralizar a linha */
}

.benefit:hover {
  transform: scale(1.05);
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  background: var(--cor-secundaria);
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: var(--cor-botao-hover);
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--cor-primaria);
  color: white;
}

#funcionalidades,
#beneficios,
#compromisso,
#gerenciamento,
#acessibilidade,
#contato {
  padding: 60px 10%;
  margin-bottom: 20px; /* Evita sobreposição */
}

#sobre {
  padding: 60px 10%;
  margin-bottom: 20px;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
