body {
    background-color: #F5F5DC;
    color: #333;
    font-family: 'Arsenica Variable', sans-serif;
}

footer {
    background-color: #B8860B;
    color: white;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

p {
    padding: 10px 40px;
    max-width: 900px;
}

h2 {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 0px;
    text-transform: uppercase;
    font-weight: 100;
    font-size: 28px;
}

h2 .hight {
    font-size: 34px;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: #6c757d;
    color: white;
}
.navbar a {
    color: white !important;
}

.navbar .btn-comprar {
    background-color: #B8860B;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.bloco {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column; /* Organiza o título e o vídeo em coluna */
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #eee;
}

.home-footer {
    background-color: #CDCDCD;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: -2px;
}

.home-footer .btn-amazon, .home-footer .btn-whatsapp {
    margin: 0;
    font-size: 24px;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.home-footer .btn-amazon:hover, .home-footer .btn-whatsapp:hover {
    color: #212529;
}
.btn-buy {
    background-color: #B8860B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.bloco-book {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #eee;
    background-color: #fff;
}

.bg-book {
    height: calc(100vh - 150px);
    align-items: center;
    padding-bottom: 40px;
    justify-content: end;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 32px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.item-3 {
    border-bottom: 2px solid #eee;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 40px 40px 0 40px;
    flex-direction: row;
    height: auto;
}

.item-3 h2 {
    margin-top: 0px;
    margin-bottom: 20px;
}

.bloco-tablet {
    width: 40%; /* Ajuste a largura conforme necessário */
    text-align: center;
}

.bloco-texto {
    width: 50%; /* Ajuste a largura conforme necessário */
    padding: 20px;
}

.item-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-amazon, .btn-whatsapp, .btn-youtube {
    border: none;
    width: 250px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* Remove o sublinhado dos links */
    color: #fff; /* Cor do texto branco */
}

.btn-youtube {
    background-color: #c4302b;
    width: 290px;
}

.btn-amazon {
    background-color: #e47911; /* Cor sólida da Amazon */
}

.btn-whatsapp {
    background-color: #25D366; /* Cor sólida do WhatsApp */
}


@media (max-width: 768px) {
    .item-3 {
        height: auto;
        padding: 0;
    }

    .bloco-tablet {
        width: 90%;
        text-align: center;
        margin-top: 30px;
    }

    .bloco-texto {
        width: 100%;
        padding: 20px;
    }

    .bloco-texto h2 {
        text-align: center;
    }

    .bloco-texto .btn-you {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-footer {
        flex-direction: row;
        gap: 15px;
        padding: 30px 0;
        margin-top: -50px;
    }

    .home-footer .btn-amazon, .home-footer .btn-whatsapp {
        font-size: 20px;
    }

    .navbar .btn-comprar {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }
    .bloco-book h4{
        margin-left: 20px;
    }

    #webinar .grid-container {
        grid-template-columns: 1fr !important;
    }

    #webinar .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .video-container {
        max-width: 98vw;
        margin-bottom: 24px;
        padding-bottom: 54vw; /* slightly less height for mobile */
    }

    /* Responsividade dedicada da seção SOBRE O LIVRO */
    .sobre-livro { padding: 40px 0 50px; }
    .sobre-livro .container {
        flex-direction: column;      /* empilha texto e vídeo */
        gap: 32px;                   /* espaço vertical entre blocos */
        transform: none;             /* remove subida que encosta na navbar */
        padding: 0 18px;             /* respiro lateral */
    }
    .sobre-livro .texto { max-width: 100%; }
    .sobre-livro .texto h2 { text-align: center; font-size: 1.6rem; margin: 0 0 12px; }
    .sobre-livro .texto p { margin-bottom: 14px; padding: 0; }
    .sobre-livro .video { width: 100%; }
    .sobre-livro .video iframe {
        width: 100%;
        height: auto;                /* deixa a altura se ajustar pela proporção */
        aspect-ratio: 16/9;          /* browsers modernos */
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    p { padding: 10px 40px; }
    .item-3 { flex-direction: row; padding: 40px 40px 0 40px; }
    .bloco-tablet { width: 40%; }
    .bloco-texto { width: 50%; }
    .conteudo-livro .item-conteudo { flex-direction: row; text-align: left; }
    .conteudo-livro .item-conteudo .icone-conteudo { margin-right: 30px; margin-bottom: 0; }
    .conteudo-livro .item-conteudo .icone-conteudo::after { display: block; }
    .bg-book { height: calc(100vh - 150px); }
    .navbar .navbar-brand { font-size: 1.05rem; }
}

@media (min-width: 1180px) {
    h2 { font-size: 32px; }
    .navbar .navbar-brand { font-size: 1.15rem; }
}

/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Estilos para a seção de conteúdo do livro */
.conteudo-livro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.item-conteudo {
    display: flex;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-conteudo:hover {
    transform: translateY(-5px);
}

.icone-conteudo {
    width: 80px;
    height: 80px;
    background-color: #B8860B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
}

.icone-conteudo::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60px;
    background-color: #ddd;
}

.icone-conteudo i {
    font-size: 32px;
    color: white;
}

.texto-conteudo {
    flex: 1;
    padding-left: 20px;
}

.texto-conteudo h4 {
    color: #B8860B;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.texto-conteudo p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Responsividade para a seção de conteúdo */
@media (max-width: 768px) {
    .conteudo-livro {
        padding: 20px 10px;
    }

    .item-conteudo {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .icone-conteudo {
        margin-right: auto !important;
        margin-left: auto !important;
        margin-bottom: 20px;        
    }

    .icone-conteudo::after {
        display: none;
    }

    .texto-conteudo h4 {
        font-size: 16px;
    }

    .texto-conteudo p {
        font-size: 14px;
    }
}

/* Estilos para o botão do Instagram */
.instagram-link {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #B8860B !important;
    padding: 8px 16px;
    border: 2px solid #B8860B;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-instagram:hover {
    background-color: #B8860B;
    color: white !important;
    transform: translateY(-1px);
}

.btn-instagram i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-instagram:hover i {
    transform: scale(1.05);
}

.btn-instagram span {
    font-family: 'Arsenica Variable', sans-serif;
}

/* Responsividade para o botão Instagram */
@media (max-width: 768px) {
    .btn-instagram {
        padding: 6px 12px;
        font-size: 14px;
        gap: 6px;
    }

    .btn-instagram i {
        font-size: 16px;
    }
}

/* ===================== MOBILE-FIRST OVERRIDES (ADDED) ===================== */
:root {
    --space-xs: 4px;
    --space-sm: 8px;
    --space: 16px;
    --space-lg: 32px;
    --max-width-text: 820px;
}

body {
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    letter-spacing: .5px;
}

p {
    padding: 6px var(--space);
    max-width: var(--max-width-text);
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste de seções para compensar navbar fixa */
.bloco, .bloco-book, .item-3, #comprar, #webinar { scroll-margin-top: 90px; }

/* Layout do bloco do autor e outros em coluna por padrão (mobile) */
.item-3 {
    flex-direction: column-reverse;
    padding: var(--space) var(--space) 0 var(--space);
}

.bloco-tablet, .bloco-texto { width: 100%; }
.bloco-texto { padding: var(--space); }

/* Conteúdo do livro: cada item em coluna no mobile */
.conteudo-livro .item-conteudo { flex-direction: column; text-align: center; }
.conteudo-livro .item-conteudo .icone-conteudo { margin-right: 0; margin-bottom: 16px; }
.conteudo-livro .item-conteudo .icone-conteudo::after { display: none; }

/* Hero adjustments */
.bg-book { height: 70vh; }

/* Navbar melhorias em mobile */
.navbar { padding: 6px 12px; }
.navbar .navbar-brand { font-size: 0.95rem; font-weight: 600; }
.lang-switcher { gap: 6px !important; }
.lang-btn { width: 34px; height: 34px; font-size: 17px; }

/* Botão comprar ocupa largura quando colapsado */
@media (max-width: 767.98px) {
    .navbar .btn-comprar { width: 100%; margin-left: 0; }
}

/* Carrossel: padding menor no mobile */
#testemunhos .carousel-item > div { padding: 28px !important; }

/* Video container largura total com menos margem no mobile */
.video-container { width: 100%; padding-bottom: 56.25%; margin-bottom: 48px; }

/* Footer texto menor em mobile */
footer { font-size: 0.85rem; }

/* ===================== DESKTOP / TELAS MAIORES ===================== */
@media (min-width: 768px) {
    p { padding: 10px 40px; }
    .item-3 { flex-direction: row; padding: 40px 40px 0 40px; }
    .bloco-tablet { width: 40%; }
    .bloco-texto { width: 50%; }
    .conteudo-livro .item-conteudo { flex-direction: row; text-align: left; }
    .conteudo-livro .item-conteudo .icone-conteudo { margin-right: 30px; margin-bottom: 0; }
    .conteudo-livro .item-conteudo .icone-conteudo::after { display: block; }
    .bg-book { height: calc(100vh - 124px); }
    .navbar .navbar-brand { font-size: 1.05rem; }
}

@media (min-width: 1180px) {
    h2 { font-size: 32px; }
    .navbar .navbar-brand { font-size: 1.15rem; }
}

/* ===================== ACESSIBILIDADE ===================== */
.lang-btn { position: relative; }
.lang-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ===================== UTILITÁRIOS ===================== */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }

/* ===================================================================== */

.sobre-livro {
    padding: 30px 0 60px; /* reduz topo para subir conteúdo */
    background: #fdfdf9 url('../img/fundo-2.png') no-repeat center center/cover;
}

.sobre-livro .container {
    display: flex;
    align-items: center;   /* alinha verticalmente vídeo e texto */
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;             /* espaço entre texto e vídeo */
    transform: translateY(-15px);
}

.sobre-livro .texto {
    flex: 1;
    max-width: 500px;
    text-align: left;      /* garante alinhamento à esquerda */
}

.sobre-livro .texto h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;      /* título alinhado com texto */
    padding-left: 40px;
}

.sobre-livro .texto p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
}

.sobre-livro .video {
    flex: 1;
    display: flex;
    justify-content: center;   /* centraliza vídeo na coluna */
    align-items: center;       /* centraliza verticalmente em relação ao texto */
}

.sobre-livro .video iframe {
    width: 100%;
    max-width: 600px;
    height: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 70px; /* espaço para o título absoluto */
}

.sobre-autor {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 0;              /* sem espaços extras */
    min-height: 100vh;       /* ocupa a viewport inteira */
    overflow: hidden;
    display: flex;           /* centraliza conteúdo */
    flex-direction: column;
    justify-content: center; /* centra verticalmente a .conteudo */
    align-items: center;     /* centra horizontalmente */
    scroll-margin-top: 90px; /* compensação da navbar fixa */
}

.sobre-autor .background {
    position: absolute !important; /* sobrescreve inline se existir */
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;               /* base da pilha */
}

.sobre-autor .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* cobre toda a área sem distorcer */
    object-position: center;  /* centraliza o foco */
    display: block;
}

.sobre-autor .overlay {
    position: absolute;
    inset: 0;                 /* shorthand para top/right/bottom/left = 0 */
    background: rgba(0,0,0,0.45);
    z-index: 1;               /* acima da imagem, abaixo do conteúdo */
}

/* Título absoluto dentro do .background já tem z-index inline; reforçamos */
.sobre-autor h2 { z-index: 2; }

/* Conteúdo central sobre a imagem; se ficar muito alto em mobile, desloca naturalmente */
.sobre-autor .conteudo {
    z-index: 2;
    max-width: 980px;
    background: rgba(0,0,0,0.55);
    padding: 32px 28px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    margin-top: 550px;       /* espaço do título */
}

/* Ajustes responsivos: reduz padding em telas pequenas */
@media (max-width: 768px) {
    .sobre-autor .conteudo { padding: 24px 18px; }
    .sobre-autor h2 { top: 30px !important; font-size: 1.4rem; }
}

.sobre-autor .background h2 {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 2px 8px #000;
    margin: 0;
    padding: 0 10px;
    z-index: 2; /* acima da overlay (z-index:1) */
    width: auto;
    max-width: 90%;
}
@media (max-width: 768px) {
    .sobre-autor .background h2 { top: 30px; font-size: 1.35rem; }
}

.bloco-book {
    padding: 80px 10%;
    background: #fff;
    display: flex;
    justify-content: center;
}

.conteudo-book {
    display: flex;
    justify-content: center; /* centraliza horizontal */
    align-items: center;     /* centraliza vertical */
    max-width: 1200px;
    width: 100%;
    gap: 80px;
    flex-wrap: wrap; /* permite quebrar no mobile */
}

.col-esquerda {
    flex: 1;
    text-align: center; /* centraliza conteúdo da esquerda */
}

.col-esquerda h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.btn-comprar {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #d69a2d, #a36c15);
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-comprar:hover {
    opacity: 0.9;
}

.col-direita {
    flex: 1.5;
}

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

.icone-conteudo {
    font-size: 28px;
    color: #c79328;
    margin-right: 15px;
    flex-shrink: 0;
}

.texto-conteudo h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #c79328;
    margin-bottom: 5px;
}

.texto-conteudo p {
    font-size: 0.95rem;
    color: #555;
}

/* Responsividade */
@media (max-width: 768px) {
    .conteudo-book {
        flex-direction: column; /* empilha esquerda em cima, direita embaixo */
        text-align: center;
        gap: 40px;
    }

    .col-direita {
        flex: 1;
        width: 100%;
    }

    .item-conteudo {
        justify-content: center; /* centraliza os ícones + texto */
        text-align: left; /* deixa o texto alinhado certinho ao lado do ícone */
        max-width: 400px;
        margin: 0 auto 20px;
    }

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