html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  /* Previne a rolagem horizontal */
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/*Começo Navbar*/
.logo-area {
  display: flex;
  align-items: center;
}

.logo-navbar {
  height: 50px;
  width: 50px;
  transform: scale(3.6);
  margin-left: 40px;
  transition: all 0.3s ease;
  /* Adiciona uma transição suave */
}

.nav-link{
  color: white !important;
  font-weight: 500 !important;

}

.nav-link:hover{
 color: rgb(253, 193, 82) !important; 
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link :active {
  color: rgb(253, 193, 82) !important;
  font-weight: 500 !important;
}

/* AQUI COMEÇA */
body {
  padding: 0;
  margin: 0;
}

.titulo-principal {
  font-size: smaller;
}

/* SEÇÃO INICIAL (HERO) */
.inicio-hero {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  color: white;
  padding: 60px 20px;
  margin-bottom: 40px;
}

.inicio-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.inicio-texto {
  flex: 1;
  /* FAZ O TEXTO OCUPAR O ESPAÇO DISPONÍVEL */
  min-width: 300px;
  /* Define uma largura mínima para o texto não ficar espremido */
  text-align: left;
  /* Garante o alinhamento do texto à esquerda em telas grandes */
}

.inicio-texto h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.inicio-texto .destaque {
  color: #00c2ff;
}

.descricao {
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
  color: #fff;
  font-size: 1.25rem;
}


.inicio-imagem {
  flex: 1;
  /* FAZ A IMAGEM OCUPAR O ESPAÇO DISPONÍVEL */
  min-width: 300px;
  /* Define uma largura mínima para a imagem */
  text-align: center;
}

.inicio-imagem img {
  max-width: 100%;
  height: auto;
  width: 400px;
  border-radius: 12px;
  transform: scale(1.4);
}

/* MEDIA QUERY: Regra para telas menores */
@media (max-width: 768px) {
  .inicio-content {
    /* Em telas com 768px de largura ou menos, o layout fica de coluna única */
    flex-direction: column;
    text-align: center;
  }

  .inicio-texto {
    text-align: center;
    /* Centraliza o texto em telas menores */
  }

  .logo-navbar {
    margin-left: 10px;
    /* IMPORTANTE PARA DEFINIR A MARGIN NO CELULAR DA LOGO ''''''''''''''''''''''''''''''''''''''' ADICIONA EM TODOS */
  }
}

/* Efeito Hover nos livros */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transição mais suave */
  cursor: pointer;

}

.card-text {
    color: #040414 !important;
    text-shadow: 0px 0px 1px #f0f0f0 !important;
    font-weight: 600 !important;
}

.card:hover {
  transform: translateY(-10px);
  /* Efeito de elevação mais sutil */
  box-shadow: 0 15px 30px rgba(0, 200, 255, 0.600);

}

/* Banner livros */
#livros-rotativos {
  background-image: linear-gradient(to right, #16213e, #00c2ff, #16213e);
  border-radius: 12px;
}

.carousel-slider {
  height: 560px;
  position: relative;
  width: 100%;
  max-width: 1000px; /* Limita a largura em telas gigantes */
  margin: 0 auto;    /* Centraliza o bloco na tela */
  color: #212121;
  font-size: 12px;
  padding: 0;
}

.carousel-slider.fullwidth {
  height: 500px;

}

.carousel-slider.fullwidth .slider-item {
  height: 480px;
  line-height: 480px;
  width: 100%;

}

.slider-wrapper {
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  perspective: 800px !important;

}

.slider-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12), ;
  display: none;
  height: 320px;
  left: 0;
  position: absolute;
  text-align: center;
  top: 0;
  width: 235px;
  cursor: pointer;
  border: 5px solid yellow;
}

.indicators {
  position: absolute;
  top: 0;
  left: 50%; /* Joga para o meio da tela */
  transform: translateX(-50%); /* Traz de volta 50% do próprio tamanho (Centralização Perfeita) */
  
  margin: 40px 0 0 0; /* Espaço do topo apenas */
  padding: 0;
  list-style-type: none;
  
  display: flex; /* Garante que fiquem em linha */
  justify-content: center;
  gap: 8px; /* Espaço entre as bolinhas */
  z-index: 10;
}

.indicators li {
  color: #255f8b;
  float: none; /* Removemos o float antigo */
  height: 16px;
  width: 16px;
  text-align: center;
  cursor: pointer;
}
.indicators li:last-child {
  margin: 0;
}

.indicators a {
  background: #00416a;
  border-radius: 8px;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.indicators .active a {
  background: #e4e5e6;
}

.livro1 {
  background: url(imagens/capa.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro2 {
  background: url(imagens/1\ ano.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro3 {
  background: url(imagens/2\ ano.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro4 {
  background: url(imagens/3\ ano.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro5 {
  background: url(imagens/capa\ livro\ prova\ paulista.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro6 {
  background: url(imagens/capa\ MAXIMA\ Calculo\ com\ GA.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

.livro7 {
  background: url(imagens/capa\ matemágicas.jpg) no-repeat center center / cover;
  border-radius: 30px !important;
}

#conteudo {
  background-color: #16213e;
  border-radius: 12px;
}

/* Footer */
.footer {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 30px 20px !important;
  font-family: Arial, sans-serif !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-top: auto !important; 
  width: 100% !important;
  border-top: 1px solid #1e293b !important;
  box-sizing: border-box !important; /* Garante que o padding não estoure a largura */
}

.footer p, .footer div {
    color: #ffffff !important;
    margin: 0 !important;
}

/* ########## MEDIA QUERIES PARA RESPONSIVIDADE ########## */

/* Para tablets e telas menores (até 992px) */
@media (max-width: 992px) {
  .inicio-content {
    flex-direction: column;
    /* Coloca o texto em cima da imagem */
    text-align: center;
  }

  .inicio-texto {
    margin: 0;
    /* Remove margens laterais desnecessárias */
  }

  .inicio-imagem img {
    transform: scale(1.2);
    /* Reduz um pouco o zoom da imagem */
  }
}

/* Para celulares (até 768px) */
@media (max-width: 768px) {
  /* .logo-navbar {
      transform: scale(2.8); /* Diminui o logo 
      margin-left: 15px;
  }                                     nao precisa por vitim, ja coloquei no max-width la de cima a margin, o scale é desnecessario, pode remover */

  .inicio-texto h1 {
    font-size: 2rem;
    /* Diminui a fonte do título principal */
  }

  
  .footer-section {
    text-align: center;
    /* Centraliza o conteúdo do rodapé quando empilhado */
  }

  .footer-container {
    flex-direction: column;
    /* Empilha as seções do rodapé */
    align-items: center;
  }
}

/* Para telas bem pequenas (até 576px) */
@media (max-width: 576px) {
  .inicio-hero {
    Align-items: center;
    padding: 40px 15px;
  }

  .inicio-imagem img {
    transform: scale(1.0);
    /* Remove o zoom da imagem para não cortar */
  }

  /* Ajuste no Carrossel para telas pequenas */
  .carousel-slider {
    height: 450px;
  }

  .slider-item {
    width: 200px;
    height: 280px;
  }
}