body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #020b18 0%, #0a2540 50%, #103a63 100%);
  background-attachment: fixed;
  color: #ffffff;
}
.topo-site {
width: 100%;
min-height: 200px;
background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('fundo_título.png');
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
border-bottom: 3px solid #00d2ff;
padding: 20px;
box-sizing: border-box;
}

.container-topo {
width: 100%;
max-width: 1200px;
text-align: center;
}

.titulo-principal {
  color: #00d2ff;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}
h1, h2 {
  color: #00d2ff;
  border-bottom: 2px solid rgba(0, 210, 255, 0.3);
  padding-bottom: 8px;
  margin-top: 30px;
}
a[href*="wa.me"] {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
}
a[href*="wa.me"]:hover {
  background-color: #128c7e;
}
.caixa-whatsapp {
  text-align: right;
  margin-top: 15px;
  margin-bottom: 25px;
}

.botao-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #00d2ff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.botao-whatsapp:hover {
  color: #ffffff;
  text-decoration: underline;
}

.icone-whatsapp {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}
.subtitulo-livros {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.subtitulo-livros {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.grid-livros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.card-livro {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease;
}

.card-livro:hover {
  transform: translateY(-8px);
}

.link-livro {
  text-decoration: none;
  display: block;
}

.container-capa {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: transparent !important;
  box-shadow: none !important;
}

.imagem-capa, 
.img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.carrossel-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.container-capa:hover .imagem-capa {
  opacity: 0;
}

.container-capa:hover .carrossel-hover {
  opacity: 1;
}

.img-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: carrosselAnimado 6s infinite;
}

.img-slide:nth-child(1) { animation-delay: 0s; }
.img-slide:nth-child(2) { animation-delay: 2s; }
.img-slide:nth-child(3) { animation-delay: 4s; }

@keyframes carrosselAnimado {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

.titulo-livro {
  color: #00d2ff !important;
  font-size: 1.2rem;
  margin-top: 12px;
  font-weight: bold;
}

.card-livro:hover .titulo-livro {
  color: #ffffff !important;
}

.tag-categoria {
  color: #b0bec5 !important;
  font-size: 0.95rem;
  display: block;
  margin-top: 4px;
}

.icone-whatsapp {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.container-capa {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Mantém a proporção correta do livro */
  overflow: hidden;
}

.container-capa .imagem-capa {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.container-capa .carrossel-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.container-capa .carrossel-hover .img-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.card-livro:hover .container-capa .imagem-capa {
  opacity: 0;
}

.card-livro:hover .container-capa .carrossel-hover {
  opacity: 1;
  visibility: visible;
}

.card-livro:hover .container-capa .carrossel-hover .img-slide.ativa {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

.card-livro:hover .container-capa .carrossel-hover .img-slide:not(.ativa) {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1;
}