: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: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-size: 2.2rem;
    color: var(--dourado);
    line-height: 1;
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #b8ad9a;
    display: block;
    margin-top: -2px;
}

/* =================================================== */
/* MENU DE NAVEGAÇÃO - PADRÃO                         */
/* =================================================== */

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-section {
    position: relative;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--dourado), transparent);
    opacity: 0.15;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--dourado);
    border-bottom: 1px solid var(--dourado);
    padding-bottom: 4px;
    display: inline-block;
    width: fit-content;
    opacity: 0.85;
}

.nav-title::before {
    content: '✦ ';
    opacity: 0.4;
}

.nav-title::after {
    content: ' ✦';
    opacity: 0.4;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.nav-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-column a {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--texto);
    text-decoration: none;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-column a:hover {
    color: var(--dourado);
    border-bottom-color: var(--dourado);
    transform: translateX(3px);
}

.nav-column a.placeholder {
    opacity: 0.5;
    pointer-events: none;
}

/* =================================================== */
/* BOTÃO HAMBURGER                                     */
/* =================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    transition: transform 0.3s ease;
    position: relative;
}

.menu-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--dourado);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) 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(-9px) rotate(-45deg);
}

/* =================================================== */
/* RESPONSIVIDADE DO MENU                              */
/* =================================================== */

@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;
        border-left: none;
    }

    .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: 12px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding-bottom: 18px;
    }

    .main-nav .nav-section:last-child {
        border-bottom: none;
    }

    .main-nav .nav-section:not(:last-child)::after {
        display: none;
    }

    .main-nav .nav-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        opacity: 0.7;
    }

    .main-nav .nav-title::before,
    .main-nav .nav-title::after {
        content: '';
        opacity: 0;
    }

    .main-nav .nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 20px;
    }

    .main-nav .nav-column {
        gap: 6px;
    }

    .main-nav .nav-column a {
        font-size: 0.95rem;
        padding: 6px 0;
        color: #f0e8d8;
        border-bottom: none;
        transition: color 0.2s ease;
        font-family: 'Playfair Display', serif;
        white-space: normal;
    }

    .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 12px;
    }

    .main-nav .nav-column a {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .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: 26px;
        height: 19px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .menu-toggle .hamburger-line {
        height: 2px;
    }

    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) 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                                              */
/* =================================================== */

.livros .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.classicos .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.livraria .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.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: 170px 40px 40px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-header {
    background: var(--fundo-escuro);
    padding: 30px 50px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.book-title {
    font-size: 2.6rem;
    color: var(--dourado);
    margin: 0 0 14px 0;
}

.book-subtitle {
    font-size: 1.15rem;
    color: #ccc;
    max-width: 700px;
}

.book-stats {
    margin-top: 22px;
    color: #888;
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F2F2F2;
    text-decoration: none;
    font-size: 0.97rem;
    padding: 10px 18px;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 28px;
    font-weight: 500;
}

.page-back:hover {
    color: var(--dourado);
    border-color: var(--dourado);
    background: rgba(212,175,55,0.1);
}

.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;
}

.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;
}

.search-box {
    padding: 25px 30px 20px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--borda);
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 30px 0;
}

.period-group {
    padding: 0 30px 32px;
}

.period-group h3 {
    color: var(--dourado);
    font-size: 1.08rem;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--borda);
    padding-bottom: 9px;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 3px;
    transition: all 0.25s ease;
    font-size: 1.03rem;
    color: #eee;
}

.document-list li:hover {
    background: rgba(212, 175, 55, 0.15);
    padding-left: 26px;
}

.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: 30px 40px 20px 40px;
    border-bottom: 1px solid #d4af3766;
    flex-shrink: 0;
}

.reader-header h2 {
    font-size: 2.15rem;
    line-height: 1.25;
    margin: 0 0 14px 0;
    color: #1a1a1a;
}

.doc-meta {
    color: #444;
    font-size: 1.05rem;
    display: flex;
    gap: 32px;
    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.5s 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: 1200px;
    opacity: 1;
    margin: 8px 0 0 0;
}

.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: 1.2em;
    line-height: 1.92;
    font-size: 1.085rem;
    color: #1a1a1a;
}

.reader-content .doc-paragraph:last-child {
    margin-bottom: 0;
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px 50px 40px;
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.92;
    font-size: 1.085rem;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 120px 40px;
    font-style: italic;
}

/* =================================================== */
/* RESPONSIVIDADE                                     */
/* =================================================== */

@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: 25px 30px 20px 30px;
    }
    .reader-content {
        padding: 25px 30px 40px 30px;
    }
    .book-page {
        padding: 160px 30px 30px;
    }
}

@media (max-width: 768px) {
    .book-page {
        padding: 150px 16px 40px;
    }
    .book-header {
        padding: 20px 24px 16px;
    }
    .book-title {
        font-size: 2.0rem;
    }
    .reader-header h2 {
        font-size: 1.6rem;
    }
    .sidebar {
        max-height: 350px;
    }
    .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: 1rem;
    }
}

@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.95rem;
        margin-bottom: 1em;
    }
}

/* =================================================== */
/* RESPONSIVIDADE DOS CARDS - LIVROS E CLÁSSICOS      */
/* =================================================== */

/* Tablets - Clássicos muda de 3 para 2 colunas */
@media (max-width: 1024px) {
    .classicos .cards-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 700px;
    }
    .livros .cards-grid {
        max-width: 700px;
    }
}

/* Smartphones - ambos viram 1 coluna */
@media (max-width: 640px) {
    .livros .cards-grid,
    .classicos .cards-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 24px;
        padding: 0 8px;
    }
}