@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap');

/* ESTILOS GLOBAIS */
body {
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  background-image: url('assets/fundo3.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  position: fixed;
  /* <-- aqui */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


main {
  flex: 1;
}

/* CABEÇALHO PADRÃO (DESKTOP) */
.cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: #E5F5FF;
  height: auto;
  min-height: 110px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 80px;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.logo img {
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* MENU PADRÃO (DESKTOP) */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 0;
  gap: 15px;
}

.menu a {
  text-decoration: none;
  color: #233A5E;
  /* Mantém a cor original do texto */
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  /* Sombra sutil por padrão */
}

/* Efeito de destaque da sombra ao passar o mouse */
.menu a:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* Sombra mais forte no hover */
  transform: translateY(-2px);
  /* Efeito de "levantar" */
}

/* Estilo para a página atual (sem hover) */
.menu a.active {
  background-color: #233A5E;
  /* Fundo sólido para destacar a página ativa */
  color: #fff;
  /* Texto branco */
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* MENU HAMBÚRGUER (ESCONDIDO POR PADRÃO) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 11;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #233A5E;
  transition: 0.3s;
  border-radius: 2px;
}

/* CARROSSEL */
.carrossel {
  width: 100%;
  max-width: 1000px;
  height: auto;
  aspect-ratio: 1000/475;
  margin: 15px auto;
  overflow: hidden;
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
  opacity: 0;
  top: 0;
  left: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.anterior,
.proximo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.anterior {
  left: 10px;
}

.proximo {
  right: 10px;
}

/* HISTÓRIA */
.historia {
  padding: 40px 20px;
  text-align: left;
  background-color: white;
  max-width: 600px;
  margin: 0 auto;
}

.historia h2 {
  text-align: left;
  margin-bottom: 20px;
  font-size: 28px;
}

.historia-texto p {
  text-align: justify;
  /* Justifica o texto */
  font-size: 1.1em;
  /* Deixa o texto 10% maior que o padrão. Você pode ajustar esse valor */
  line-height: 1.8;
  /* Aumenta o espaçamento entre as linhas para melhorar a leitura */
  line-height: 1.6;
  margin-bottom: -20px;
  margin-right: 20px;
}

/* CONTAINER PRINCIPAL PARA TEXTO E IMAGEM - CORRIGIDO */
.historia-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
  min-height: 400px;
  width: 100%; /* LINHA ADICIONADA */
  box-sizing: border-box; /* LINHA ADICIONADA */
}

.historia-texto {
  flex: 0 0 55%;
  padding-right: 40px;
  box-sizing: border-box;
}

.historia-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
  position: relative;
}

.historia-texto h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #e74c3c;
  margin-top: 10px;
}

.historia-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: left;
}

.mascote-image {
  flex: 0 0 40%;
  position: absolute;
  right: 10px;
  bottom: -40px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.mascote-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
}

/* RODAPÉ */
.rodape {
  text-align: center;
  padding: 20px;
  background-color: #E5F5FF;
  color: white;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.logos-rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 200px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

.logos-rodape img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logos-rodape p {
  margin: 0;
  color: #2c3e50;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 20px;
}


/* BOTÃO WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* Botão Instagram */
.instagram-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 110px; /* fica acima do WhatsApp */
  right: 40px;
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.instagram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* GARANTIR QUE TODOS OS ELEMENTOS PRINCIPAIS TENHAM LARGURA TOTAL */
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
  box-sizing: border-box;
}

.carrossel {
  box-sizing: border-box;
}

/* ========== RESPONSIVIDADE DA HOME ========== */

/* Tablets (até 1024px) */
@media (max-width: 1024px) {
    .cabecalho {
        height: 100px;
        padding: 0 15px;
    }

    .logo img {
        height: 70px;
    }

    /* Esconde o menu completo */
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #E5F5FF;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        margin: 10px 0;
        font-size: 16px;
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(35, 58, 94, 0.1);
        width: 100%;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    /* Exibe o botão do hambúrguer */
    .menu-toggle {
        display: flex;
    }

    /* Ajustes do container de história */
    .historia-container {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        min-height: auto;
    }

    .historia-texto {
        flex: 0 0 100%;
        padding-right: 0;
        padding-bottom: 30px;
    }

    .mascote-image {
        position: relative;
        right: auto;
        bottom: auto;
        flex: 0 0 100%;
        justify-content: center;
        height: auto;
        margin-top: 20px;
    }

    .mascote-image img {
        max-height: 400px;
    }

    /* Ajuste do rodapé - CORRIGIDO */
    .logos-rodape {
        gap: 30px;
        justify-content: space-between;
        padding: 0 15px;
        max-width: 100%;
    }

    .logos-rodape img {
        height: 50px;
    }

    .logos-rodape p {
        padding-right: 0;
        text-align: right;
        flex: none;
        margin-left: 0;
    }
}

/* Celulares (até 600px) */
@media (max-width: 600px) {
    .cabecalho {
        height: 80px;
        padding: 0 10px;
    }

    .logo img {
        height: 50px;
    }

    .carrossel {
        margin: 10px 0;
        aspect-ratio: 4/3;
    }

    .historia {
        padding: 30px 15px;
    }

    .historia-texto h2 {
        font-size: 2rem;
    }

    .historia-texto p {
        font-size: 1rem;
    }

    .mascote-image img {
        max-height: 300px;
    }

    /* Rodapé corrigido - REMOVIDAS MARGENS FIXAS */
    .logos-rodape {
        gap: 20px;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logos-rodape img {
        height: 35px;
    }

    .logos-rodape p {
        font-size: 12px;
        padding-right: 0;
        margin-left: 0;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

      .instagram-float {
        bottom: 140px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Celulares Pequenos (até 480px) */
@media (max-width: 480px) {
    .cabecalho {
        height: 70px;
        padding: 0 8px;
    }

    .logo img {
        height: 45px;
    }

    .menu a {
        font-size: 14px;
    }

    .menu-toggle {
        width: 25px;
        height: 20px;
    }

    .menu-toggle span {
        height: 2.5px;
        margin: 2.5px 0;
    }

    .carrossel {
        aspect-ratio: 3/2;
    }

    .historia-container {
        padding: 0 10px;
    }

    .historia-texto h2 {
        font-size: 1.8rem;
    }

    .mascote-image img {
        max-height: 250px;
    }

    /* Rodapé corrigido */
    .logos-rodape {
        gap: 15px;
        justify-content: space-between;
        padding: 0 10px;
    }

    .logos-rodape img {
        height: 30px;
    }

    .logos-rodape p {
        font-size: 11px;
        padding-right: 0;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .instagram-float {
        bottom: 130px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* Dispositivos Muito Pequenos (até 320px) */
@media (max-width: 320px) {
    .cabecalho {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    /* Rodapé corrigido */
    .logos-rodape {
        gap: 10px;
        justify-content: space-between;
        padding: 0 8px;
    }

    .logos-rodape img {
        height: 25px;
    }

    .logos-rodape p {
        font-size: 10px;
        padding-right: 0;
    }

    .whatsapp-float {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .instagram-float {
        bottom: 120px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Garantir que o carrossel não corte em telas menores */
@media (max-width: 1000px) {
  .carrossel {
    aspect-ratio: 4/3; /* Proporção mais adequada para mobile */
    max-width: 100%;
    margin: 15px 0;
  }
  
  .slide img {
    object-fit: contain; /* Garante que a imagem inteira seja visível */
  }
}

/* Garantir que o mascote sempre fique colado no rodapé */
@media (max-width: 1024px) {
    .historia-container {
        margin-bottom: 0;
    }
    
    .mascote-image {
        align-self: flex-end;
    }
}

/* Manter as logos e texto lado a lado em todas as telas */
.logos-rodape {
    flex-wrap: nowrap !important;
}

.logos-rodape img,
.logos-rodape p {
    flex-shrink: 0;
}