@font-face {
    font-family: 'Cravingsoft'; /* Nome para usar no CSS */
    src: url('fonts/Cravingsoft.otf') format('truetype'); /* Caminho para o arquivo da fonte */
    font-weight: normal;
    font-style: normal;
}

/* ESTILO GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Carvingsoft', sans-serif;
}

body {
    background-color: #f8f9fa;
    height: 100vh;
    overflow-x: hidden; /* Impede o scroll horizontal */
    margin: 0; /* Garante que não haja margens externas */
}

.interface{
    max-width: 1900px;
}

.flex {
    display: flex;
}


/* ESTILO DO CABEÇALHO */

.logo img{
    width: 250px;
    height: auto; /* Maintains the aspect ratio */
}

header {
    background-color: #f8f9fa;
    margin-left: 40px;
    margin-right: 40px;
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: inline-block;
    transition: .2s;
}

header .menu-desktop {
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-family: 'Roboto';
}

header .menu-desktop ul li {
    margin: 0 30px; /* Ajuste o valor conforme necessário */
}

header a {
    text-decoration: none;
    color: #000000;
    font-size: 20px;
    padding: 10px;
    position: relative;
}

header a:hover {
    color: black;
    transform: scale(1.05);
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav li {
    margin: 0 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px; /* Espaçamento entre os itens do menu */
}

nav ul li {
    display: inline-block;
}

nav ul li a i {
    margin-right: 10px; /* Espaço entre o ícone e o texto */
}

.menu-desktop a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000000; /* Cor do underline */
    bottom: 0;
    left: 0;
}

header .matricula button{
    display: flex;
    justify-content: space-between;
    padding: 12px 22px;
    align-items: center;
  	gap: 8px;
    border: 0;
    border-radius: 30px;
  	background-color: #FFABF9;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto';
    cursor: pointer;
}

header .matricula button:hover{
    box-shadow: 0px 0px 8px #849ea1;
}

/* livros */
  
  .container {
    max-width: 3000px;
    background-color: #21489d;
    padding: 60px 6%;
  }
  
  h1 {
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
    padding: 10px 2% 5px;
    font-size: 40px;
  }
  
  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .book-item {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .book-item:hover {
    transform: translateY(-5px);
  }
  
  .book-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  .book-item h3 {
    font-size: 1.2rem;
    color: #21489d;
    margin: 10px 0;
  }
  
  .book-item p {
    margin: 5px 0;
  }
  
  .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #FFABF9;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 10px;
  }
  
  .button:hover {
    background-color: #bb7db7;
  }
  
  .book-info {
    display: none;
    margin-top: 10px;
    color: #d9534f;
    font-weight: bold;
  }  

/* estilo rodape*/

.footer img {
  width: 140px;
  height: auto;
  margin-left: 20px;
}

section{
  padding: 40px 5% 20px;
}

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  gap: 10.8rem;
  box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave na parte superior */
}

h3 {
  color: black;
  margin-bottom: 1.5rem;
}

#contato strong {
  color: black; /* Escolha a cor desejada */
}

.footer-content h4 {
  color: black;
  margin-bottom: 1.5rem;
  font-size: 20px;
}

.footer a{
  color:black;
}

.footer-content {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px; /* Ajuste o gap para uma distância mais uniforme entre os itens */
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  color: black;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Sombra suave */
}

.icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.icons a{
  color: white;
}

#instagram {
  background: linear-gradient(#7f37c9, #ff2992, #ff9807);
}

#tiktok {
  background-color: #000000;
}

#youtube{
  background-color: #ff0000;
}

#footer-copyright {
  display: flex;
  justify-content: center;
  color: black;
  background-color: #f8f9fa;
  font-size: 0.9rem;
  padding: 40px 10.5% 20px;
  font-weight: 100;
}

/* RESPONSIVIDADE */

/* Ajuste básico para telas menores */
@media (max-width: 1200px) {
  .header .menu-desktop ul li {
      margin: 0 15px; /* Reduz espaçamento entre os itens */
  }

  header .matricula button {
      font-size: 14px;
      padding: 10px 18px; /* Ajusta o botão para telas menores */
  }
}

/* Para tablets (largura menor que 768px) */
@media (max-width: 768px) {
  /* Ajusta o layout do cabeçalho */
  header > .interface {
      flex-direction: column; /* Coloca os elementos em coluna */
      align-items: center;
  }

  .logo img {
      width: 200px; /* Reduz o tamanho do logo */
  }

  .menu-desktop ul {
      flex-direction: column; /* Coloca os itens do menu em coluna */
      gap: 10px; /* Ajusta o espaçamento entre os itens */
  }

  .matricula-box {
      width: 90%; /* Reduz a largura da caixa de matrícula */
  }

  /* Ajusta o FAQ */
  #faq {
      padding: 20px;
  }

  #faq h2 {
      font-size: 1.5rem;
  }
}

/* Para celulares (largura menor que 480px) */
@media (max-width: 480px) {
  header {
      margin-left: 10px;
      margin-right: 10px; /* Reduz margens laterais no cabeçalho */
  }

  .logo img {
      width: 150px; /* Reduz ainda mais o tamanho do logo */
  }

  .matricula-box {
      padding: 20px; /* Reduz o preenchimento interno */
  }

  .matricula-box h2 {
      font-size: 20px; /* Reduz o tamanho do título */
  }

  .matricula-box button {
      font-size: 14px; /* Ajusta o tamanho do botão */
      padding: 8px 16px;
  }

  /* Ajuste no rodapé */
  /* Para dispositivos móveis (largura menor que 480px) */
@media (max-width: 480px) {
  .footer {
      display: flex; /* Muda para flexbox para facilitar centralização */
      flex-direction: column; /* Organiza os itens em coluna */
      align-items: center; /* Centraliza os itens horizontalmente */
      text-align: center; /* Alinha o texto no centro */
  }

  .footer-content {
      align-items: center; /* Centraliza os itens internos */
  }

  .footer-content h4 {
      text-align: center; /* Centraliza os títulos */
  }

  .footer a {
      text-align: center; /* Centraliza os links */
  }

  #footer-copyright {
      text-align: center; /* Centraliza o texto do copyright */
  }

  .icons {
      justify-content: center; /* Alinha os ícones no centro */
  }
}

}  