/* Estilos específicos para as páginas de livros */

/* Layout da página de livro */
/* HERO SECTION */
.livro-hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 5px 0;
}

.livro-capa {
    flex: 1;
    max-width: 800px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    border-radius: 0px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.livro-capa:hover {
    transform: translateY(-1px);
}

.livro-capa img {
    width: 100%;
    height: auto;
    display: block;
}

.livro-info {
    flex: 1;
    color: white !important;
}

.livro-titulo {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 500;
    color: white !important;

}

.livro-subtitulo {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
    color: white !important;

}

.livro-descricao {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: white !important;

}

.btn-comprar {
    background-color: #1b9136;
    color: rgb(255, 255, 255);
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background-color: #e27209;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.2rem;
}

/* PROBLEMA Section */
.problema-section {
    background-color: #e0e0e0 !important;
    color: rgb(6, 6, 6) !important;
}

.problema-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: rgb(6, 6, 6) !important;
}

.problema-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgb(79, 78, 78);
}

/*Problema Section ADICIONAL */
.problema-section-adicional {
    background-color: #3a3a3a !important;
    color: rgb(255, 255, 255) !important;
}

.problema-title-adicional {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: rgb(255, 255, 255) !important;
}

.problema-content-adicional {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgb(177, 177, 177);
}

/*usado tanto por Problema Section quanto por Problema Section Adicional */

.problema-content p {
    margin-bottom: 20px;
}

.problema-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.problema-content li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.problema-content li:before {
    content: "•";
    color: var(--livro-cor-destaque);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* O QUE VAI ENCONTRAR Section */
.encontrar-section {
    background-color: #f3f3f3 !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

.encontrar-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.beneficios-lista {
    max-width: 800px;
    margin: 0 auto 40px;
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.beneficio-check {
    color: #28a745;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.beneficio-texto {
    font-size: 1.1rem;
    line-height: 1.6;
}

.encontrar-conclusao {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Seção de depoimentos */
.depoimentos-section {
    background-color: #e0e0e0 !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.depoimento-card {
    background-color: white !important;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.depoimento-texto {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    color: #3a3a3a !important;
}

.depoimento-texto:before {
    content: "";
    font-size: 4rem;
    color: #e0e0e0;
    position: absolute;
    left: -20px;
    top: -20px;
    z-index: 0;
}

.depoimento-autor {
    font-weight: 600;
    font-size: 1.1rem;
    color: #666 !important;
}

.depoimento-local {
    color: #666;
}

/* Seção de opções de compra */
.compra-section {
    background-color: white !important;
}

.opcoes-compra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.opcao-card {
    border: 1px solid #181818 !important;
    border-color: #181818 !important;
    background-color: white !important;
    box-shadow: inset 0 0 0 1px #181818 !important;
    color: #181818 !important;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.opcao-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.opcao-header {
    padding: 20px;
    text-align: center;
    background-color: #000000;
    color: white;
}

.opcao-titulo {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.opcao-subtitulo {
    font-size: 1rem;
    opacity: 0.8;
}

.opcao-preco {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--livro-cor-destaque);
    text-align: center;
}

.opcao-original {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 10px;
}

.opcao-features {
    padding: 20px;
}

.opcao-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.opcao-check {
    color: #28a745;
    margin-right: 10px;
}

.opcao-footer {
    padding: 20px;
    text-align: center;
}

/* Seção sobre o autor */
.autor-section {
    background-color: #747070 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.autor-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.autor-imagem {
    flex: 1;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.autor-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.autor-info {
    flex: 2;
}

.autor-nome {
    font-size: 2rem;
    margin-bottom: 20px;
    color:#e0e0e0 !important;
}

.autor-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.autor-social {
    display: flex;
    gap: 15px;
}

/* CTA Final */
.cta-final-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-final-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-final-texto {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Responsividade */
@media (max-width: 992px) {
    .livro-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .livro-capa {
        margin: 0 auto 30px;
    }
    
    .livro-titulo {
        font-size: 2.5rem;
    }
    
    .autor-content {
        flex-direction: column;
        text-align: center;
    }
    
    .autor-imagem {
        margin: 0 auto 30px;
    }
    
    .autor-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .livro-titulo {
        font-size: 2rem;
    }
    
    .livro-subtitulo {
        font-size: 1.2rem;
    }
    
    .problema-title {
        font-size: 2rem;
    }
    
    .cta-final-title {
        font-size: 2rem;
    }
    
    .opcoes-compra {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .livro-capa {
        max-width: 280px;
    }
    
    .livro-titulo {
        font-size: 1.8rem;
    }
    
    .btn-comprar {
        width: 100%;
    }
}
/* --- Estilos base do Carrossel --- */
.carousel {
    position: relative;
    width: 100%;        /* Preenchimento inicial */
    max-width: 600px;   /* Largura máxima em flows normais */
    margin: auto;
    overflow: hidden;
  }
  
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-item {
    flex: 0 0 100%;     /* Um slide por vez */
  }
  
  .carousel-item img {
    width: 100%;        /* Preenche largura do item */
    height: auto;
    max-width: 600px;
    max-height: 900px;
    object-fit: contain;
    display: block;
    margin: auto;
  }
  
  /* Botões de navegação */
  .carousel .prev,
  .carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 18px;
    z-index: 10;
  }
  
  .carousel .prev { left: 10px; }
  .carousel .next { right: 10px; }
  
  /* Pontos de navegação */
  .carousel .dots {
    text-align: center;
    padding: 10px 0;
  }
  
  .carousel .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .carousel .dot.active {
    background-color: #717171;
  }
  
  /* --- Media Queries para Responsividade --- */
  
  /* Desktop: carrossel ocupa até 35% da largura da viewport */
  @media (min-width: 992px) {
    .carousel {
      width: 35vw;
      max-width: none;   /* Remove limite fixo */
    }
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
      width: 100%;
      height: auto;
    }
  }
  
  /* Tablet e celulares médios: carrossel ocupa até 80% da largura */
  @media (max-width: 991px) {
    .carousel {
      width: 80vw;
      max-width: none;
    }
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
      width: 100%;
      height: auto;
    }
  }
  
  /* Celulares muito pequenos: carrossel ocupa até 90% da largura */
  @media (max-width: 576px) {
    .carousel {
      width: 90vw;
    }
  }
  
  /* Fim do CSS do Carrossel */