:root {
    --verde: #0B6B3A;
    --dourado: #D4AF37;
    --fundo: #183028;
    --fundo-claro: #223A30;
    --texto: #F2F2F2;
    --cinza: #D4C9B8;
    --borda: rgba(212, 175, 55, 0.2);
    --papel: #E9E2D0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--fundo);
    color: var(--texto);
    line-height: 1.75;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =================================================== */
/* HEADER E MENU - UNIFICADO                           */
/* =================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 42, 26, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.25);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    flex-shrink: 0;
}

.brand h1 {
    font-size: 2rem;
    color: var(--dourado);
    line-height: 1;
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b8ad9a;
    display: block;
    margin-top: -2px;
}

/* =================================================== */
/* BOTÃO HAMBURGER - CORRIGIDO                        */
/* =================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--dourado);
    border-radius: 4px;
    padding: 10px 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dourado);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    flex-shrink: 0;
}

/* Transformação para "X" quando ativo */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =================================================== */
/* MENU DE NAVEGAÇÃO                                   */
/* =================================================== */

.main-nav {
    display: flex;
    gap: 0;
    align-items: flex-start;
    margin-left: 0;
    padding: 0;
}

.nav-section {
    position: relative;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-section:last-child {
    border-right: none;
    padding-right: 0;
}

.nav-section::before,
.nav-section::after {
    display: none !important;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dourado);
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    opacity: 0.7;
    margin-bottom: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-title::before,
.nav-title::after {
    content: '' !important;
    opacity: 0 !important;
    display: none !important;
}

.nav-grid {
    display: grid;
    gap: 3px 16px;
    flex-shrink: 0;
}

/* Grid padrão: 1 coluna */
.nav-grid {
    grid-template-columns: 1fr;
}

/* Grid de 2 colunas (METODOLOGIA e CLÁSSICOS) */
.nav-grid-2col {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 3px;
}

.nav-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-column a {
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--texto);
    text-decoration: none;
    padding: 1px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: inline-block;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-column a[href="anais.html"] {
    font-size: 0.75rem;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-column a:hover {
    color: var(--dourado);
    border-bottom-color: var(--dourado);
    transform: none;
}

.nav-column a.placeholder {
    opacity: 0.4;
    pointer-events: none;
}

/* =================================================== */
/* RESPONSIVIDADE DO MENU                              */
/* =================================================== */

@media (max-width: 1200px) {
    .nav-section {
        padding: 0 12px;
    }
    .nav-column a {
        font-size: 0.72rem;
    }
    .nav-column a[href="anais.html"] {
        font-size: 0.68rem;
        white-space: nowrap;
    }
    .nav-title {
        font-size: 0.65rem;
    }
    .nav-grid {
        gap: 2px 12px;
    }
    .nav-grid-2col {
        column-gap: 12px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(10, 42, 26, 0.98);
        backdrop-filter: blur(16px);
        padding: 80px 30px 40px;
        flex-direction: column;
        gap: 28px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        display: flex !important;
        align-items: stretch;
        margin-left: 0;
        height: 100vh;
    }

    .header.menu-open .main-nav {
        right: 0;
    }

    .header.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeInOverlay 0.3s ease;
    }

    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .header-container {
        padding: 16px 24px;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 1002;
        max-width: 100%;
    }

    .brand h1 {
        font-size: 1.8rem;
    }

    .brand-sub {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
    }

    .main-nav .nav-section {
        padding: 0;
        gap: 10px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding-bottom: 16px;
        border-right: none !important;
        height: auto;
        flex-shrink: 1;
    }

    .main-nav .nav-section:last-child {
        border-bottom: none;
        padding-right: 0;
    }

    .main-nav .nav-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        opacity: 0.7;
        margin-bottom: 6px;
    }

    .main-nav .nav-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 16px;
    }

    .main-nav .nav-grid-2col {
        column-gap: 16px;
    }

    .main-nav .nav-column {
        gap: 4px;
    }

    .main-nav .nav-column a {
        font-size: 0.9rem;
        padding: 4px 0;
        color: #f0e8d8;
        border-bottom: none;
        transition: color 0.2s ease;
        font-family: 'Playfair Display', serif;
        white-space: normal;
    }

    .main-nav .nav-column a[href="anais.html"] {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.4;
    }

    .main-nav .nav-column a:hover {
        color: var(--dourado);
        transform: translateX(4px);
    }

    .main-nav .nav-column a.placeholder {
        opacity: 0.5;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .main-nav {
        width: 100%;
        max-width: 100%;
        right: -100%;
        padding: 70px 20px 30px;
        border-left: none;
        padding-top: 80px;
    }

    .main-nav .nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px 10px;
    }

    .main-nav .nav-grid-2col {
        column-gap: 10px;
    }

    .main-nav .nav-column a {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .main-nav .nav-column a[href="anais.html"] {
        font-size: 0.8rem;
    }

    .main-nav .nav-title {
        font-size: 0.7rem;
    }

    .header-container {
        padding: 12px 16px;
        max-width: 100%;
    }

    .brand h1 {
        font-size: 1.5rem;
    }

    .brand-sub {
        font-size: 0.4rem;
        letter-spacing: 1px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        padding: 8px 6px;
        gap: 4px;
        border-width: 1.5px;
    }

    .menu-toggle .hamburger-line {
        width: 20px;
        height: 2px;
    }

    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* =================================================== */
/* HERO                                               */
/* =================================================== */

.hero {
    height: 100vh;
    min-height: 720px;
    background: linear-gradient(rgba(11, 107, 58, 0.75), rgba(24, 48, 40, 0.85)), url('https://picsum.photos/id/1015/2000/1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 82px;
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5.8rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--dourado);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.9;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.7rem;
    color: var(--dourado);
    margin-bottom: 12px;
    text-align: center;
}

.hero-description {
    font-size: 1.35rem;
    color: #e8d9c0;
    margin-bottom: 50px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--verde);
    color: white;
}

.btn-primary:hover {
    background: #094f2d;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--dourado);
    border: 2px solid var(--dourado);
}

.btn-secondary:hover {
    background: var(--dourado);
    color: var(--fundo);
}

/* =================================================== */
/* SEÇÕES GERAIS                                      */
/* =================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 110px 0;
}

.livros, .classicos {
    background-color: var(--fundo-claro);
}

.livraria {
    background-color: #2B4538;
}

.section-title {
    font-size: 3.1rem;
    color: var(--dourado);
    text-align: center;
    margin-bottom: 18px;
}

.section-subtitle {
    text-align: center;
    color: var(--cinza);
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 70px;
}

/* =================================================== */
/* MANIFESTO                                          */
/* =================================================== */

.manifesto {
    background: var(--fundo-claro);
}

.manifesto-content {
    max-width: 860px;
    margin: 0 auto;
}

.manifesto-text {
    font-size: 1.16rem;
    line-height: 1.85;
    color: #e8e0d0;
}

.manifesto-text p {
    margin-bottom: 28px;
}

.manifesto-final {
    font-style: italic;
    color: var(--dourado);
    font-size: 1.25rem;
    margin-top: 40px;
    text-align: center;
}

.manifesto-signature {
    margin-top: 55px;
    padding-top: 35px;
    padding-bottom: 30px;
    border-top: 1px solid var(--borda);
    color: var(--cinza);
    font-size: 1.12rem;
    text-align: center;
    line-height: 1.7;
}

/* =================================================== */
/* CARDS - GRIDS UNIFICADOS                           */
/* =================================================== */

.cards-grid {
    display: grid;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.cards-grid-2col {
    grid-template-columns: 1fr 1fr;
}

.cards-grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.cards-grid-1col {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--borda);
    border-radius: 8px;
    padding: 44px 34px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 35%);
    border-color: var(--dourado);
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    color: var(--dourado);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #fff;
}

.card p {
    color: var(--cinza);
    margin-bottom: auto;
}

.card-link {
    display: inline-block;
    margin-top: 34px;
    color: var(--dourado);
    font-weight: 500;
    transition: all 0.3s;
}

.card:hover .card-link {
    padding-left: 8px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

/* =================================================== */
/* FAQ                                                */
/* =================================================== */

.sobre {
    background: #1a2f26;
    padding: 110px 0;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active {
    border-color: var(--dourado);
    background: rgba(212, 175, 55, 0.07);
}

.faq-question {
    padding: 24px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dourado);
    opacity: 0.4;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 30px;
}

.faq-item.active .faq-number {
    opacity: 0.8;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--dourado);
    font-weight: 300;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faq-question h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #f0e8d8;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-item.active .faq-question h3 {
    color: var(--dourado);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 32px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                padding 0.3s ease;
    color: #e0d8c8;
    font-size: 1.05rem;
    line-height: 1.85;
}

.faq-item.active .faq-answer {
    padding: 0 32px 32px 32px;
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #f0e8d8;
}

.faq-answer em {
    color: var(--dourado);
    font-style: italic;
}

.faq-final {
    font-size: 1.2rem;
    color: var(--dourado);
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
}

.faq-convite .faq-question h3 {
    color: var(--dourado);
}

.faq-convite .faq-number {
    opacity: 0.8;
}

/* =================================================== */
/* SEÇÃO ACERVO EM NÚMEROS                            */
/* =================================================== */

.acervo {
    background: var(--fundo);
    padding: 110px 0 80px;
    border-top: 1px solid var(--borda);
    border-bottom: 1px solid var(--borda);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--dourado);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--dourado);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--cinza);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Distribuição por período */
.period-distribution {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0 10px;
}

.period-item {
    margin-bottom: 16px;
}

.period-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.period-name {
    font-size: 0.95rem;
    color: var(--texto);
    font-weight: 500;
}

.period-count {
    font-size: 0.95rem;
    color: var(--dourado);
    font-weight: 600;
}

.period-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.period-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
    width: 0;
}

/* =================================================== */
/* TIMELINE - VERTICAL                                */
/* =================================================== */

.timeline-container {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 20px 10px;
}

.timeline-vertical {
    position: relative;
    padding: 20px 0 10px 40px;
}

/* Linha vertical à esquerda */
.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, var(--dourado), rgba(212, 175, 55, 0.15));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 30px;
}

.timeline-item:hover {
    border-left-color: var(--dourado);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 4px 4px 0;
}

/* Ponto da linha do tempo */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--dourado);
    border-radius: 50%;
    border: 3px solid var(--fundo);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.4), 0 2px 12px rgba(0,0,0,0.4);
}

.timeline-item .marker-year {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dourado);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.timeline-item .marker-label {
    display: block;
    font-size: 0.95rem;
    color: var(--cinza);
    opacity: 0.85;
    margin-top: 2px;
    line-height: 1.4;
}

/* Conexão entre os pontos - pequenas linhas */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-50%);
}

/* =================================================== */
/* RESPONSIVIDADE DA TIMELINE VERTICAL                */
/* =================================================== */

@media (max-width: 768px) {
    .timeline-container {
        padding: 10px 5px;
    }
    
    .timeline-vertical {
        padding: 10px 0 10px 30px;
    }
    
    .timeline-vertical::before {
        left: 10px;
    }
    
    .timeline-item {
        padding: 10px 0 10px 22px;
        padding-left: 22px;
    }
    
    .timeline-item::before {
        left: -18px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .timeline-item:not(:last-child)::after {
        left: -13px;
        width: 6px;
    }
    
    .timeline-item .marker-year {
        font-size: 1rem;
    }
    
    .timeline-item .marker-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 5px 0;
    }
    
    .timeline-vertical {
        padding: 5px 0 5px 20px;
    }
    
    .timeline-vertical::before {
        left: 6px;
        width: 2px;
    }
    
    .timeline-item {
        padding: 8px 0 8px 16px;
        padding-left: 16px;
    }
    
    .timeline-item::before {
        left: -13px;
        width: 10px;
        height: 10px;
        border-width: 2px;
        box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
    }
    
    .timeline-item:not(:last-child)::after {
        left: -9px;
        width: 4px;
    }
    
    .timeline-item .marker-year {
        font-size: 0.9rem;
    }
    
    .timeline-item .marker-label {
        font-size: 0.8rem;
    }
}

/* =================================================== */
/* FOOTER - INDEX                                     */
/* =================================================== */

.footer-index {
    background: #162822;
    padding: 100px 0 50px;
    border-top: 1px solid var(--borda);
}

.footer-index .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-index .footer-brand h3 {
    color: var(--dourado);
    font-size: 2.3rem;
}

.footer-index .footer-brand p {
    color: var(--cinza);
    margin-top: 8px;
}

.footer-seal {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.footer-seal:hover {
    opacity: 0.8;
}

.footer-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(0.4) brightness(0.9);
}

.footer-index .footer-info {
    text-align: center;
}

.footer-index .footer-info .footer-mission {
    font-weight: 500;
    color: #e8e0d0;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.footer-index .footer-info p {
    color: var(--cinza);
    margin-bottom: 8px;
}

.footer-index .disclaimer {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-index .footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--cinza);
    font-size: 0.95rem;
}

/* =================================================== */
/* FOOTER - LIVROS (compacto)                         */
/* =================================================== */

.footer-livros {
    background: #162822;
    padding: 24px 0 16px;
    border-top: 1px solid var(--borda);
    margin-top: 60px;
}

.footer-livros .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-livros .footer-content {
    text-align: center;
    margin-bottom: 12px;
}

.footer-livros .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.92rem;
    color: var(--cinza);
}

.footer-livros .footer-brand .brand-name {
    color: var(--dourado);
    font-weight: 600;
    font-size: 1rem;
}

.footer-livros .footer-brand .separator {
    color: rgba(212, 175, 55, 0.25);
    font-size: 0.7rem;
    user-select: none;
}

.footer-livros .footer-brand .brand-sub {
    color: #e0d5c0;
}

.footer-livros .footer-brand .brand-info {
    color: var(--cinza);
    font-size: 0.85rem;
}

.footer-livros .footer-bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    color: var(--cinza);
    font-size: 0.78rem;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* =================================================== */
/* PÁGINAS DE LIVROS - AJUSTE DO PADDING              */
/* =================================================== */

.book-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 130px 40px 40px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-header {
    background: var(--fundo-escuro);
    padding: 24px 50px 16px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.book-title {
    font-size: 2.6rem;
    color: var(--dourado);
    margin: 0 0 10px 0;
}

.book-subtitle {
    font-size: 1.15rem;
    color: #ccc;
    max-width: 700px;
}

.book-stats {
    margin-top: 16px;
    color: #888;
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
}

/* .page-back removido - botão não é mais usado */

.document-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: #1a2520;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    flex: 1;
    min-height: 550px;
    margin-top: 0;
}

.sidebar {
    background: rgba(34, 58, 48, 0.98);
    border-right: 1px solid var(--borda);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    padding-top: 4px;
}

.search-box {
    padding: 20px 30px 16px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--borda);
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 30px 0;
}

.period-group {
    padding: 0 30px 24px;
}

.period-group h3 {
    color: var(--dourado);
    font-size: 1.04rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--borda);
    padding-bottom: 6px;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.25s ease;
    font-size: 0.98rem;
    color: #eee;
}

.document-list li:hover {
    background: rgba(212, 175, 55, 0.15);
    padding-left: 22px;
}

.document-list li.selected {
    background: rgba(212, 175, 55, 0.32);
    color: var(--dourado);
    font-weight: 500;
}

.reader {
    background: #F3EBD7;
    color: #222;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.reader-header {
    padding: 22px 40px 16px 40px;
    border-bottom: 1px solid #d4af3766;
    flex-shrink: 0;
}

.reader-header h2 {
    font-size: 2.0rem;
    line-height: 1.25;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.doc-meta {
    color: #444;
    font-size: 0.98rem;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.reader-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.reader-header-top .title-area {
    flex: 1;
    min-width: 200px;
}

.reader-header-top .pdf-area {
    flex-shrink: 0;
    padding-top: 4px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    background: var(--dourado);
    color: #1a1a1a !important;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.pdf-btn:hover {
    background: #c4a030;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.pdf-btn:active {
    transform: translateY(0);
}

.pdf-btn .icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* =================================================== */
/* BOTÃO E PAINEL - NOTA DO EDITOR                    */
/* =================================================== */

.context-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 12px;
    background: rgba(139, 69, 19, 0.08);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 6px;
    color: #5a3e1b;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e8ddd0;
}

.context-toggle:hover {
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.3);
}

.context-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    margin-left: 2px;
}

.context-toggle.active .arrow {
    transform: rotate(180deg);
}

.context-toggle .icon {
    font-size: 1rem;
}

/* Painel de contexto - expansível */
.context-panel-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin 0.3s ease;
    opacity: 0;
    margin: 0;
}

.context-panel-wrapper.open {
    max-height: 2000px;
    opacity: 1;
    margin: 8px 0 0 0;
    overflow-y: auto;
}

.context-content {
    padding: 20px 24px;
    background: #faf6f0;
    border-left: 4px solid #8b4513;
    border-radius: 4px;
    font-size: 0.98rem;
    line-height: 1.85;
    color: #2c1810;
    margin: 0;
}

.context-content .context-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b4513;
    background: rgba(139, 69, 19, 0.1);
    padding: 2px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.context-content p {
    margin-bottom: 12px;
}

.context-content p:last-child {
    margin-bottom: 0;
}

/* =================================================== */
/* PARÁGRAFOS NO READER - COM RECUO E ESPAÇAMENTO    */
/* =================================================== */

.reader-content .doc-paragraph {
    text-indent: 2.5em;
    margin-bottom: 1em;
    line-height: 1.9;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.reader-content .doc-paragraph:last-child {
    margin-bottom: 0;
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 22px 40px 40px 40px;
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.9;
    font-size: 1.05rem;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 120px 40px;
    font-style: italic;
}

/* =================================================== */
/* BOTÃO "NOTA DA SEÇÃO" - ESTILO REFINADO            */
/* =================================================== */

.period-group h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--dourado);
    font-size: 1.04rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--borda);
    padding-bottom: 6px;
}

.nota-secao-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--dourado);
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    padding: 3px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nota-secao-btn::before {
    content: '📖';
    font-size: 0.65rem;
    opacity: 0.7;
}

.nota-secao-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--dourado);
    transform: translateY(-1px);
}

.nota-secao-btn:active {
    transform: scale(0.97);
}

/* =================================================== */
/* CONTEÚDO DA NOTA DA SEÇÃO NO READER                */
/* =================================================== */

.nota-secao-content {
    background: #faf6f0;
    padding: 30px 36px;
    border-left: 6px solid #8b4513;
    border-radius: 4px;
    margin: 0;
}

.nota-secao-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b4513;
    background: rgba(139, 69, 19, 0.1);
    padding: 4px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.nota-secao-content .doc-paragraph {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1a1a1a;
    text-indent: 2.5em;
    margin-bottom: 1em;
}

.nota-secao-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 69, 19, 0.15);
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    font-style: italic;
}

/* =================================================== */
/* METODOLOGIA                                         */
/* =================================================== */

.metodologia {
    background: var(--fundo-claro);
    padding: 110px 0;
}

.metodologia-content {
    max-width: 860px;
    margin: 0 auto;
}

.metodologia-text {
    font-size: 1.16rem;
    line-height: 1.85;
    color: #e8e0d0;
    margin-bottom: 50px;
}

.metodologia-text p {
    margin-bottom: 24px;
}

.metodologia-text ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.metodologia-text ul li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    position: relative;
    color: #e0d8c8;
    font-size: 1.05rem;
}

.metodologia-text ul li::before {
    content: '◆';
    color: var(--dourado);
    position: absolute;
    left: 0;
    font-size: 0.65rem;
    opacity: 0.5;
    top: 50%;
    transform: translateY(-50%);
}

.metodologia-text ul li strong {
    color: #f0e8d8;
}

.ordem-leitura {
    margin: 40px 0 50px;
    padding: 0;
}

.ordem-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    align-items: flex-start;
}

.ordem-item:last-child {
    border-bottom: none;
}

.ordem-numero {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dourado);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}

.ordem-conteudo h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--dourado);
    margin: 0 0 4px 0;
}

.ordem-conteudo p {
    font-size: 1rem;
    color: #d0c8b8;
    margin: 0;
    line-height: 1.6;
}

.metodologia-final {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 1.1rem;
    color: #e0d8c8;
    line-height: 1.8;
    text-align: center;
}

.metodologia-final p {
    margin-bottom: 16px;
}

.metodologia-final p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--dourado);
}

/* =================================================== */
/* RESPONSIVIDADE - METODOLOGIA                        */
/* =================================================== */

@media (max-width: 768px) {
    .metodologia {
        padding: 70px 0;
    }
    
    .metodologia-text {
        font-size: 1.05rem;
    }
    
    .ordem-item {
        gap: 16px;
        padding: 16px 0;
    }
    
    .ordem-numero {
        font-size: 1.5rem;
        min-width: 36px;
    }
    
    .ordem-conteudo h4 {
        font-size: 1rem;
    }
    
    .ordem-conteudo p {
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .metodologia {
        padding: 50px 0;
    }
    
    .metodologia-text {
        font-size: 0.98rem;
    }
    
    .metodologia-text ul li {
        font-size: 0.95rem;
        padding: 10px 0 10px 20px;
    }
    
    .ordem-item {
        gap: 12px;
        padding: 14px 0;
        flex-direction: row;
    }
    
    .ordem-numero {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .metodologia-final {
        font-size: 1rem;
    }
}

/* =================================================== */
/* RESPONSIVIDADE DOS CARDS - UNIFICADA               */
/* =================================================== */

@media (max-width: 768px) {
    .cards-grid-2col,
    .cards-grid-3col {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cards-grid-2col,
    .cards-grid-3col,
    .cards-grid-1col {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 24px;
        padding: 0 8px;
    }
}

/* =================================================== */
/* RESPONSIVIDADE GERAL - LAYOUTS                      */
/* =================================================== */

@media (max-width: 1100px) {
    .document-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--borda);
        max-height: 400px;
    }
    .reader-header {
        padding: 18px 30px 14px 30px;
    }
    .reader-content {
        padding: 18px 30px 30px 30px;
    }
    .book-page {
        padding: 120px 30px 30px;
    }
}

@media (max-width: 768px) {
    .book-page {
        padding: 110px 16px 30px;
    }
    .book-header {
        padding: 16px 20px 12px;
    }
    .book-title {
        font-size: 1.8rem;
    }
    .reader-header h2 {
        font-size: 1.4rem;
    }
    .sidebar {
        max-height: 320px;
    }
    .document-container {
        min-height: 500px;
    }
    .pdf-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    .reader-header-top {
        flex-direction: column;
        align-items: stretch;
    }
    .reader-header-top .pdf-area {
        padding-top: 8px;
    }
    .header-container {
        padding: 16px 24px;
        flex-direction: row;
        gap: 0;
    }
    .hero {
        min-height: 620px;
    }
    .hero-title {
        font-size: 3.6rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.4rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .context-content {
        padding: 16px 18px;
        font-size: 0.92rem;
    }
    .reader-content .doc-paragraph {
        text-indent: 2em;
        font-size: 0.98rem;
    }
    .search-box {
        padding: 14px 20px 12px;
    }
    .search-box input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .period-group {
        padding: 0 20px 16px;
    }
    .period-group h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }
    .document-list li {
        padding: 8px 12px;
        font-size: 0.92rem;
    }
    .reader-header {
        padding: 16px 24px 12px 24px;
    }
    .reader-content {
        padding: 16px 24px 30px 24px;
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 28px 16px;
    }
    .stat-number {
        font-size: 2.4rem;
    }
    .period-distribution {
        padding: 10px 0;
    }
    .period-name {
        font-size: 0.85rem;
    }
    .period-count {
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .container {
        padding: 0 20px;
    }
    .context-content {
        padding: 14px 14px;
        font-size: 0.88rem;
    }
    .context-toggle {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .reader-content .doc-paragraph {
        text-indent: 1.8em;
        font-size: 0.92rem;
        margin-bottom: 0.9em;
    }
    .book-page {
        padding: 100px 12px 20px;
    }
    .book-header {
        padding: 12px 16px 10px;
    }
    .book-title {
        font-size: 1.5rem;
    }
    .book-subtitle {
        font-size: 0.95rem;
    }
    .book-stats {
        font-size: 0.8rem;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .reader-header h2 {
        font-size: 1.2rem;
    }
    .doc-meta {
        font-size: 0.85rem;
        gap: 16px;
    }
    .reader-content {
        padding: 14px 16px 24px 16px;
        font-size: 0.92rem;
    }
    .sidebar {
        max-height: 280px;
    }
}

/* =================================================== */
/* CORREÇÃO DE SCROLL PARA HEADER FIXO                */
/* =================================================== */

section[id] {
    scroll-margin-top: 100px;
}