/* --- RESET E VARIÁVEIS DE CORES (Estilo Enciclopédia Hermética) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- TEMA CLARO / PERGAMINHO (PADRÃO) --- */
:root {
    --bg-color: #f6f5f1;          /* Fundo pergaminho */
    --card-bg: #ffffff;           /* Fundo dos cards */
    --primary: #0a192f;           /* Azul noite */
    --gold: #b89758;              /* Dourado antigo */
    --text: #2b2b2b;              /* Texto escuro */
    --text-muted: #666666;        /* Texto secundário */
    --border: #dcd6cd;            /* Bordas suaves */
    --header-bg: #0a192f;         /* Fundo do header */
    --quote-bg: #f0ece1;          /* Fundo de citações */
    --tag-bg: #eae6df;            /* Fundo de tags */
}

/* --- TEMA ESCURO / GRIMÓRIO (ATIVADO VIA JS) --- */
body.dark-theme {
    --bg-color: #080f19;          /* Fundo noite escuro */
    --card-bg: #0f1d30;           /* Cards em tom azul/grafite */
    --primary: #b89758;           /* Títulos ganham tom dourado */
    --gold: #d4af37;              /* Dourado mais vívido */
    --text: #e0e6ed;              /* Texto claro de alta legibilidade */
    --text-muted: #9ba8b8;        /* Texto secundário */
    --border: #1e3048;            /* Bordas em tom escuro elegante */
    --header-bg: #040911;         /* Header ainda mais escuro */
    --quote-bg: #14253d;          /* Fundo de citações escuro */
    --tag-bg: #192e4a;            /* Fundo de tags escuro */
}

body {
    font-family: "Bellefair", serif;
    background-color: var(--bg-color);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 18px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. O main ganha uma altura mínima baseada no tamanho da tela */
main {
    min-height: calc(100vh - 200px); /* Ajusta a altura descontando Header e Footer */
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--gold);
}

.section-title {
    font-family: 'Encode Sans', sans-serif;
    font-size: 22px;
    color: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    margin-bottom: 40px;
}

/* --- 1. HEADER --- */
.top-header {
    background-color: var(--header-bg);
    color: white;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-img {
    max-height: 60px; /* Ajuste a altura máxima conforme o seu layout */
    width: auto;      /* Mantém a proporção original da imagem */
    display: block;   /* Remove espaços extras indesejados abaixo da imagem */
}

/* Torna o container da busca a referência para a caixa suspensa */
/* --- BARRA DE PESQUISA DO HEADER --- */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 480px;
    margin: 0 15px;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 9px 14px;
    font-family: "Bellefair", serif;
    font-size: 18px;
    color: var(--text);
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(184, 151, 88, 0.4);
}

.search-bar button {
    padding: 9px 18px;
    font-family: "Bellefair", serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    background-color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.search-bar button:hover {
    background-color: #a08147; /* Tom de dourado ligeiramente mais escuro */
    border-color: #a08147;
    color: #ffffff;
}

/* Ajuste fino na caixa suspensa de resultados para alinhar com as bordas arredondadas */
.search-results-dropdown {
    top: calc(100% + 2px); /* Pequeno espaçamento para não colar na barra */
    border-radius: 4px;
}

/* Responsividade da barra de pesquisa em telas pequenas */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        margin: 10px 0;
        width: 100%;
    }
}

/* Caixa de Resultados da Busca */
.search-results-dropdown {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1002;
    border-radius: 0 0 4px 4px;
}

.search-results-dropdown.active {
    display: block; /* Exibe quando houver resultados */
}

/* Item de resultado individual */
.search-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: var(--text);
    display: block;
    text-decoration: none;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #f0f4f8;
}

.search-item strong {
    color: var(--primary);
    font-family: 'Sprat', serif;
    font-size: 16px;
    display: block;
}

.search-item span {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--gold);
    font-weight: bold;
}

.search-no-results {
    padding: 12px;
    color: #777;
    font-family: 'Bellefair', serif;
    font-size: 14px;
    text-align: center;
}

#theme-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 12px;
    cursor: pointer;
	font-size: 16px;
    border-radius: 3px;
	font-weight: 400;
    font-family: 'Bellefair', serif;
}

/* --- MENU PRINCIPAL (DESKTOP) --- */
.main-menu {
    background-color: #050d18;
    border-bottom: 1px solid var(--gold);
    position: sticky; /* Mantém o menu fixo no topo ao rolar */
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none; /* Escondido por padrão no PC */
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: 'Sprat', serif;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-links {
    display: flex;
    padding: 12px 0;
}

.nav-item {
    color: #e0e0e0;
    font-family: 'Bellefair', serif;
    font-size: 16px;
	font-weight: 400;
    transition: color 0.2s;
    margin-right: 25px;
    padding-right: 10px;
}

.nav-item:hover {
    color: var(--gold);
}

/* --- MENU RESPONSIVO (CELULAR) --- */
@media (max-width: 768px) {
    /* 1. Garante que o container do menu seja a referência de posição */
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block; /* Exibe o botão sanduíche no celular */
        width: auto;   /* Ocupa apenas o tamanho do texto do botão */
    }

    .nav-links {
        display: none; /* Esconde os links por padrão */
        flex-direction: column;
        
        /* 2. Faz o menu flutuar POR CIMA do conteúdo */
        position: absolute;
        top: 100%;       /* Posiciona exatamente ABAIXO do menu principal */
        left: 0;
        width: 250px;    /* Largura fixa ou 100% se preferir ocupar toda a largura */
        
        background-color: #050d18; /* Mantém a cor de fundo para cobrir o texto de baixo */
        border: 1px solid var(--gold);
        border-top: none;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6); /* Sombra para dar profundidade de sobreposição */
        z-index: 1001;   /* Garante que fique acima de qualquer imagem ou texto */
        padding: 0;
    }

    /* Classe ativada via JavaScript para abrir o menu */
    .nav-links.active {
        display: flex;
    }

    .nav-item {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        display: block;
    }

    .nav-item:last-child {
        border-bottom: none;
    }
}

/* --- 3. HERO --- */
.hero-section {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), 
                url('/images/background.webp') center/cover no-repeat;
    color: white;
    padding: 70px 0;
    margin-bottom: 40px;
}

.hero-text-box {
    max-width: 650px;
}

.badge {
    background-color: var(--gold);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 8px;
    font-family: 'Encode Sans', sans-serif;
}

.hero-text-box h1 {
    font-family: 'Sprat', serif;
    font-size: 32px;
    margin: 15px 0;
    line-height: 1.2;
}

.hero-text-box p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #d1d5db;
}

.btn-primary {
    background-color: var(--gold);
    color: #0d131d;
    border: 1px solid var(--gold);
    padding: 12px 28px;
    border-radius: 4px;
    font-family: 'Encode Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #d4af37;
    color: #0d131d; /* Mantém o texto escuro legível */
    box-shadow: 0 0 15px rgba(184, 151, 88, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 28px;
    border-radius: 4px;
    font-family: 'Encode Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* HOVER CORRIGIDO: O fundo vira dourado e o texto fica escuro com leitura perfeita */
.btn-secondary:hover {
    background-color: var(--gold);
    color: #0d131d; /* Garante que o texto fique escuro sobre o fundo dourado */
    box-shadow: 0 0 15px rgba(184, 151, 88, 0.4);
    transform: translateY(-2px);
}

/* --- 4. ÁREAS DO CONHECIMENTO --- */
.knowledge-areas {
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-top: 3px solid var(--gold);
    border-radius: 3px;
}

.card h3 {
    font-family: 'Sprat', serif;
	font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.card p {
    font-size: 16px;
    color: var(--text-muted);
}

/* --- 5. ARTIGO EM DESTAQUE --- */
.featured-article {
    margin-bottom: 40px;
}

.featured-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
}

.featured-info .category {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--gold);
    font-weight: bold;
}

.featured-info h2 {
    font-family: "Sprat", serif;
    font-size: 30px;
    margin: 10px 0;
	line-height: 1.3;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
	font-size: 14px;
    font-family: 'Encode Sans', sans-serif;
}

/* --- DIVISOR BANNER --- */
.divider-banner {
    background-color: #050d18;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    text-align: center;
    padding: 50px 0;
    margin: 40px 0;
}

.brand-title {
    font-family: 'Sprat', serif;
    color: var(--gold);
    letter-spacing: 6px;
    font-size: 36px;
}

.brand-option {
    font-family: 'Sprat', serif;
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 14px;
	font-weight: 400;
}

/* --- MAIN + SIDEBAR LAYOUT --- */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.article-summary {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.article-summary h3 {
    font-family: 'Sprat', serif;
    margin-bottom: 10px;
}

.article-summary .meta {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* SIDEBAR WIDGETS */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
}

/* BOTÃO PRINCIPAL DA SIDEBAR (Preenchido) */
.sidebar-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
	margin-top: 25px;
    background-color: var(--gold);
    color: #ffffff;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.sidebar-btn:hover {
    background-color: #a08247; /* Dourado levemente mais escuro */
    border-color: #a08247;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(184, 151, 88, 0.3);
}

/* OPCIONAL: BOTÃO SECUNDÁRIO (Apenas Contorno) */
.sidebar-btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    margin-top: 10px;
}

.sidebar-btn-outline:hover {
    background-color: var(--gold);
    color: #ffffff;
}
.widget ul {
    margin: 10px 0;
    padding-left: 0px;
    font-size: 16px;
    line-height: 1.4;
}
.widget ol {
    margin: 10px 0;
    padding-left: 25px;
    font-size: 16px;
    line-height: 1.4;
}

/* Espaçamento entre os itens da lista */
.widget ul li {
    font-family: 'Bellefair', serif;
	font-size: 16px;
    margin-bottom: 8px;
}
.widget ol li {
    font-family: 'Bellefair', serif;
	font-size: 16px;
    margin-bottom: 8px;
}

.widget ul li::marker {
    color: var(--gold);
    font-weight: 400;
}
.widget ol li::marker {
    color: var(--gold);
    font-weight: 400;
}

/* Destaque opcional para termos dentro da lista */
.widget ul strong {
	font-size: 18px;
	font-weight: 400!important;
    color: var(--gold);
}
.widget ol strong {
	font-size: 18px;
	font-weight: 400!important;
    color: var(--gold);
}
.widget h4 {
    font-family: 'Encode Sans', sans-serif;
	font-size: 22px;
	font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin-bottom: 20px;
    color: var(--primary);
}

.widget p {
    font-family: 'Bellefair', serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}

.widget .book-title {
    font-family: 'Sprat', serif;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 700;
	margin-bottom: 10px;
}

.banner-widget {
    background-color: #0f233d;
    color: white;
}

.banner-widget h4 {
    color: var(--gold);
}

blockquote {
	font-size: 20px;
    color: var(--text);
}

/* ESTILOS PARA LISTAS (UL / OL) INTEGRADOS AO LAYOUT */
ul {
    margin: 10px 0 40px 0;
    padding-left: 30px;
    font-size: 18px;
    line-height: 1.5;
}
ol {
    margin: 10px 0 40px 0;
    padding-left: 30px;
    font-size: 18px;
    line-height: 1.5;
}

/* Espaçamento entre os itens da lista */
ul li {
    font-family: 'Bellefair', serif;
	font-size: 18px;
    margin-bottom: 8px;
}
ol li {
    font-family: 'Bellefair', serif;
	font-size: 18px;
    margin-bottom: 8px;
}

ul li::marker {
    color: var(--gold);
    font-weight: 400;
}
ol li::marker {
    color: var(--gold);
    font-weight: 400;
}

/* Destaque opcional para termos dentro da lista */
ul strong {
	font-size: 20px;
	font-weight: 400!important;
    color: var(--gold);
}
ol strong {
	font-size: 20px;
	font-weight: 400!important;
    color: var(--gold);
}

/* --- SEÇÃO DUPLA (LIVROS E GRIMÓRIOS) --- */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.dual-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
}
.dual-box .section-title {
    font-family: 'Encode Sans', sans-serif;
    font-size: 22px;
    color: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.dual-box ul {
    list-style: none;
	margin: 0;
	padding: 0;
}

.dual-box li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

/* --- GRANDES MESTRES --- */
.masters-section {
    margin-bottom: 40px;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.master-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}

.master-card h4 {
    font-family: 'Sprat', serif;
	font-size: 22px;
	font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}
.master-card p {
	font-size: 16px;
    margin-bottom: 10px;
}

/* --- NEWSLETTER GLOBAL --- */
.global-newsletter {
    background-color: #050d18;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-bottom: 0;
}

.global-newsletter h2 {
    font-family: 'Sprat', serif;
	font-size: 26px;
	line-height: 1.2;
    color: var(--gold);
    margin-bottom: 15px;
}
.global-newsletter p {
	line-height: 1.2;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    font-family: 'Bellefair', serif;
	font-size: 16px;
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 3px;
}

.newsletter-form button {
    font-family: 'Encode Sans', sans-serif;
    padding: 10px 20px;
    background-color: var(--gold);
    color: var(--primary);
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}

/* --- FOOTER --- */
.footer {
    background-color: #050d18;
    color: #888888;
    padding: 30px 0;
    text-align: center;
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
	margin: 0 15px;
    color: #aaa;
}

/* --- RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .main-layout, 
    .dual-section {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}
/* --- ESTILOS PARA IMAGENS DO ARTIGO EM DESTAQUE --- */
.featured-card {
    display: flex;
    gap: 25px;
    align-items: center;
}

.featured-image {
    flex: 1;
    max-width: 45%;
}

.featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: 3px;
    border: 1px solid var(--border);
}

.featured-info {
    flex: 1.2;
}

/* --- ÚLTIMOS ARTIGOS COM IMAGEM --- */
.article-summary {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.article-body {
    flex: 1;
}

/* --- LISTAS DE LIVROS E GRIMÓRIOS (MEDIA LIST) --- */
.media-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0 20px 0;
    border-bottom: 1px dashed var(--border);
}

.media-list img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border);
}

.media-list div {
    display: flex;
    flex-direction: column;
}

.media-list span {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- AVATARES DOS GRANDES MESTRES --- */
.master-card .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Torna a imagem circular */
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: 12px;
}

/* Ajuste Responsivo para telas menores */
@media (max-width: 768px) {
    .featured-card,
    .article-summary {
        flex-direction: column;
    }

    .featured-image {
        max-width: 100%;
        width: 100%;
    }

    .article-thumb {
        width: 100%;
        height: 180px;
    }
}
/* --- BARRA DE PROGRESSO DE LEITURA --- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--gold);
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* --- LAYOUT DA PÁGINA INTERNA --- */
.article-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
	margin-right: 15px;
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

/* Cabeçalho do Artigo */
.category-tag {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.article-title {
    font-family: 'Sprat', serif;
    font-size: 26px;
    color: var(--primary);
    line-height: 1.2;
    margin: 10px 0 15px 0;
}

.article-subtitle {
    font-size: 20px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    margin-bottom: 30px;
}

/* Imagens do Artigo */
.featured-media, .in-text-image {
    margin-bottom: 30px;
}

.featured-media img, .in-text-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
}

figcaption {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

/* Conteúdo do Texto */
.article-content {
    font-size: 20px;
    line-height: 1.8;
    color: #222;
}

.lead-paragraph {
    font-size: 20px;
    line-height: 1.6;
    color: #111;
    margin-bottom: 25px;
}

.article-content h2 {
    font-family: 'Sprat', serif;
    font-size: 26px;
    color: var(--primary);
    margin: 35px 0 15px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

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

/* Bloco de Citação */
.quote-box {
    background-color: #f0ece1;
    border-left: 4px solid var(--gold);
    padding: 20px 25px;
    margin: 30px 0;
	line-height: 1.3;
    font-size: 18px;
    color: #333;
}

/* Tags do Artigo */
.article-footer-box {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tags {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
	font-weight: 700;
}

.tags span span {
    background-color: #eae6df;
	font-weight: 400;
    color: var(--primary);
    padding: 4px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* Sidebar Interna / Sumário e Autor */
.toc-widget ul {
    list-style: none;
}

.toc-widget li {
    margin-bottom: 8px;
}

.toc-widget a {
    font-family: 'Bellefair', serif;
    font-size: 16px;
}

.author-profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar-small {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.author-profile h3 {
    font-family: 'Sprat', serif;
    font-size: 16px;
    line-height: 1.4;
	margin-bottom: 5px;
    color: var(--primary);
}

.author-profile p {
    font-size: 14px;
    line-height: 1;
    color: var(--text-muted);
}

.related-links {
    list-style: none;
}

.related-links li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.related-links strong {
    display: block;
    font-size: 16px;
}

.related-links span {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 850px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 26px;
    }
}
/* ==========================================================================
   MICRO-INTERAÇÕES & EFEITOS HOVER (CARDS & ELEMENTOS)
   ========================================================================== */

/* 1. Transição suave padrão para todos os cards */
.card,
.featured-card,
.article-summary,
.widget,
.dual-box,
.master-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s ease;
    will-change: transform, box-shadow; /* Otimização de performance */
}

/* 2. Efeito de Elevação e Brilho Dourado nos Cards Primários */
.card:hover,
.article-summary:hover,
.master-card:hover,
.dual-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    /* Sombra suave com brilho (glow) dourado delicado */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 
                0 0 12px rgba(184, 151, 88, 0.25);
}

/* 3. Efeito no Card de Destaque (Featured) */
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 
                0 0 15px rgba(184, 151, 88, 0.3);
}

/* Modo Escuro: Brilho Dourado levemente mais intenso para maior contraste */
body.dark-theme .card:hover,
body.dark-theme .article-summary:hover,
body.dark-theme .master-card:hover,
body.dark-theme .featured-card:hover,
body.dark-theme .dual-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 
                0 0 18px rgba(212, 175, 55, 0.35);
}

/* 4. Zoom suave nas imagens dos artigos ao passar o mouse */
.featured-image,
.article-summary {
    overflow: hidden; /* Mantém a imagem contida na caixa durante o zoom */
}

.featured-image img,
.article-thumb {
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img,
.article-summary:hover .article-thumb {
    transform: scale(1.03); /* Efeito leve de aproximação na imagem */
}

/* 5. Animação nos Avatares dos Grandes Mestres */
.master-card .avatar {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.master-card:hover .avatar {
    transform: scale(1.08) rotate(2deg);
    border-color: var(--primary);
}

/* 6. Animação de Botões e Links */
.btn-primary,
.search-bar button,
#theme-btn {
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.search-bar button:hover,
#theme-btn:hover {
    box-shadow: 0 4px 10px rgba(184, 151, 88, 0.3);
}

.btn-primary:active,
.search-bar button:active {
    transform: translateY(0);
}
/* ==========================================================================
   EFEITO DE ZOOM NAS IMAGENS DA PÁGINA DO ARTIGO (artigo.html)
   ========================================================================== */

/* 1. Previne que a imagem saia das bordas durante o zoom */
.featured-media,
.in-text-image {
    overflow: hidden;
    border-radius: 4px;
}

/* 2. Suaviza a transição da imagem */
.featured-media img,
.in-text-image img {
    transition: transform 0.4s ease, border-color 0.3s ease;
}

/* 3. Aplica o zoom e um leve brilho dourado na borda ao passar o mouse */
.featured-media:hover img,
.in-text-image:hover img {
    transform: scale(1.03); /* Zoom sutil e elegante */
    border-color: var(--gold);
}
/* ==========================================================================
   MODAL DE LEITURA RÁPIDA (POPUP)
   ========================================================================== */

/* Botão nos cards */
.btn-quick-read {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-quick-read:hover {
    background-color: var(--gold);
    color: #000;
}

/* Fundo Escurecido com Desfoque (Overlay) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 13, 24, 0.75);
    backdrop-filter: blur(4px); /* Desfoca o fundo do site */
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Caixa do Modal */
.modal-container {
    background-color: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 5px;
    max-width: 650px;
    width: 100%;
    position: relative;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 151, 88, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Botão Fechar (X) */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gold);
}

/* Conteúdo do Modal */
.modal-header h2 {
    font-family: 'Sprat', serif;
    color: var(--primary);
    font-size: 22px;
    margin: 5px 0 10px 0;
	line-height: 1.2;
}

.modal-subtitle {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.modal-image-box {
    flex: 1;
    max-width: 200px;
}

.modal-image-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.modal-text-box {
    flex: 1.5;
    font-size: 18px;
}

.modal-text-box h4 {
    font-family: 'Sprat', serif;
    color: var(--gold);
    margin-bottom: 8px;
}

.modal-text-box p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 20px;
}

.modal-meta-grid {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-footer {
    text-align: right;
}

/* Responsividade para Celular */
@media (max-width: 600px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-image-box {
        max-width: 100%;
    }
    .modal-image-box img {
        height: 140px;
    }
}
/* --- CORREÇÃO DE CONTRASTE NO HOVER DOS BOTÕES --- */

/* 1. Botões com fundo dourado (ex: .btn-primary, botão do modal) */
.btn-primary:hover,
.search-bar button:hover,
.btn-quick-read:hover,
.newsletter-form button:hover {
    color: #0a192f !important; /* Força o texto a ficar azul escuro/preto no hover */
    text-decoration: none;      /* Remove qualquer sublinhado de link */
}

/* 2. Ajuste para o Modo Escuro / Grimório */
body.dark-theme .btn-primary:hover,
body.dark-theme .search-bar button:hover,
body.dark-theme .btn-quick-read:hover,
body.dark-theme .newsletter-form button:hover {
    color: #040911 !important; /* Garante fundo dourado com texto bem escuro para leitura no escuro */
}

/* 3. Se houver algum link interno dentro de um botão dourado, garante a cor do texto */
.btn-primary:hover *,
.btn-quick-read:hover * {
    color: #0a192f !important;
}
/* ==========================================================================
   AJUSTES DO MODO ESCURO NA PÁGINA DO ARTIGO (artigo.html)
   ========================================================================== */

/* 1. Transição e uso de variáveis de cores nos textos do artigo */
.article-title {
    color: var(--primary);
}

.article-subtitle {
    color: var(--text-muted);
}

.article-content {
    color: var(--text);
}

.lead-paragraph {
    color: var(--text);
}

.article-content p, 
.article-content li {
    color: var(--text);
}

/* 2. Ajuste do Bloco de Citação no Modo Escuro */
.quote-box {
    background-color: var(--quote-bg);
    color: var(--text);
    border-left-color: var(--gold);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 3. Regras Específicas de Alto Contraste para Body.dark-theme no Artigo */
body.dark-theme .article-title {
    color: var(--gold); /* Título brilha em dourado no escuro */
}

body.dark-theme .article-subtitle,
body.dark-theme .breadcrumbs,
body.dark-theme .article-meta,
body.dark-theme figcaption {
    color: var(--text-muted);
}

body.dark-theme .article-content,
body.dark-theme .lead-paragraph,
body.dark-theme .article-content p {
    color: #e0e6ed; /* Texto em tom prata claro para leitura ultra confortável */
}

body.dark-theme .quote-box {
    background-color: #0f1d30;
    color: #f6f5f1;
}

body.dark-theme .tags a {
    background-color: var(--tag-bg);
    color: var(--gold);
}

body.dark-theme .tags a:hover {
    background-color: var(--gold);
    color: #0a192f !important;
}
/* ==========================================================================
   CORREÇÃO DE CONTRASTE NA BARRA DE PESQUISA (MODO CLARO E ESCURO)
   ========================================================================== */

/* 1. Uso de Variáveis CSS no Input da Busca */
.search-bar input[type="text"] {
    background-color: var(--card-bg);
    color: var(--text);
    border-color: var(--border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Cor do texto do Placeholder (quando o campo está vazio) */
.search-bar input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* 2. Ajuste na Caixinha de Resultados Flutuante */
.search-results-dropdown {
    background-color: var(--card-bg);
    border-color: var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.search-item {
    color: var(--text);
    border-bottom-color: var(--border);
}

.search-item:hover {
    background-color: var(--quote-bg);
}

.search-item strong {
    color: var(--primary);
}

.search-item small {
    color: var(--text-muted) !important;
}

/* 3. Regras Específicas para o Modo Escuro / Grimório */
body.dark-theme .search-bar input[type="text"] {
    background-color: #0f1d30;
    color: #e0e6ed;
    border-color: var(--border);
}

body.dark-theme .search-bar input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

body.dark-theme .search-results-dropdown {
    background-color: #0f1d30;
    border: 1px solid var(--gold);
}

body.dark-theme .search-item:hover {
    background-color: #14253d;
}

body.dark-theme .search-item strong {
    color: var(--gold); /* Títulos dos resultados brilham em dourado no escuro */
}
/* ==========================================================================
   ESTILOS DA PÁGINA DE CATÁLOGO (catalogo.html)
   ========================================================================== */

.catalog-section {
    margin-top: 30px;
    margin-bottom: 60px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 35px;
}

.catalog-header h1 {
    font-family: 'Sprat', serif;
    font-size: 32px;
    color: var(--primary);
    margin: 10px 0;
}

.catalog-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Painel de Filtros */
.filter-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 9px 12px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text);
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: var(--gold);
}

.btn-reset-filters {
    padding: 9px 15px;
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
}

.btn-reset-filters:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Contador */
.catalog-counter {
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.catalog-counter strong {
    color: var(--gold);
}

/* Grade de Cards do Catálogo */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.catalog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 0 12px rgba(184, 151, 88, 0.25);
}

.catalog-card-media {
    height: 180px;
    overflow: hidden;
}

.catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card-media img {
    transform: scale(1.04);
}

.catalog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Sprat', serif;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.btn-primary-sm {
    background-color: var(--gold);
    color: #0a192f;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary-sm:hover {
    background-color: #a08147;
    color: #ffffff !important;
}

/* Badges / Etiquetas de Status */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.badge-completo { background-color: #1b4332; color: #d8f3dc; }
.badge-original { background-color: #4a154b; color: #f3d5f5; }
.badge-analise  { background-color: #7f4f24; color: #fefae0; }

/* Caixa sem resultados */
.no-results-box {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--card-bg);
    border: 1px dashed var(--gold);
    border-radius: 5px;
    margin-top: 20px;
}

.no-results-box h3 {
    font-family: 'Sprat', serif;
	font-size: 20px;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Ajustes no Modo Escuro */
body.dark-theme .catalog-header h1,
body.dark-theme .card-title {
    color: var(--gold);
}

body.dark-theme .filter-select {
    background-color: #0f1d30;
    color: #e0e6ed;
}
/* ==========================================================================
   ESTILOS DA PÁGINA DOS GRANDES MESTRES (mestres.html)
   ========================================================================== */

.masters-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.masters-header {
    text-align: center;
    margin-bottom: 40px;
}

.masters-header h1 {
    font-family: 'Sprat', serif;
    font-size: 26px;
    color: var(--primary);
    margin: 10px 0;
}

.masters-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
}

/* Grade Biográfica */
.masters-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.master-card-full {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.master-card-full:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(184, 151, 88, 0.2);
}

/* Cabeçalho do Card do Mestre */
.master-card-header {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.master-avatar-container {
    text-align: center;
}

.master-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.master-era {
    display: block;
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 8px;
}

.master-title-tag {
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.master-intro h2 {
    font-family: 'Sprat', serif;
    font-size: 24px;
    color: var(--primary);
    margin: 4px 0;
}

.master-role {
    font-size: 16px;
    color: var(--text-muted);
}

/* Corpo do Card */
.master-quote {
    background-color: var(--quote-bg);
    padding: 12px 18px;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.master-bio {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

.master-timeline, .master-works {
    margin-bottom: 18px;
}

.master-timeline h4, .master-works h4 {
    font-family: 'Sprat', serif;
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 8px;
}

.master-timeline ul {
    list-style: none;
    font-size: 16px;
    color: var(--text);
}

.master-timeline li {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.master-timeline strong {
    color: var(--primary);
}

/* Badges de Obras */
.works-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-badge {
    background-color: var(--tag-bg);
    color: var(--text);
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* Rodapé do Card */
.master-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
}

/* Responsividade */
@media (max-width: 650px) {
    .master-card-header {
        flex-direction: column;
        text-align: center;
    }
    .master-card-footer {
        flex-direction: column;
        gap: 12px;
    }
}

/* Suporte ao Modo Escuro */
body.dark-theme .masters-header h1,
body.dark-theme .master-intro h2,
body.dark-theme .master-timeline strong {
    color: var(--gold);
}

body.dark-theme .work-badge {
    background-color: #14253d;
    color: #e0e6ed;
}
/* ==========================================
   BOTÃO VOLTAR AO TOPO (ESTILO HERMÉTICO)
   ========================================== */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    
    /* Inicia oculto e transparente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

/* Estado Visível (ativado via JS) */
#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Efeito ao passar o mouse (Glow Ocultista) */
#backToTopBtn:hover {
    background-color: var(--gold);
    color: #0d131d;
    box-shadow: 0 0 15px rgba(184, 151, 88, 0.6);
    transform: translateY(-3px);
}

#backToTopBtn:active {
    transform: translateY(0) scale(0.95);
}
/* ==========================================
   CAIXA DE CITACÕES E AXIOMAS
   ========================================== */
.quote-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    position: relative;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quote-symbol {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

.quote-box blockquote {
    font-family: 'Bellefair', serif;
    font-size: 22px;
    color: var(--text);
    line-height: 1.2;
	font-weight: 400;
    margin: 0 0 15px 0;
    transition: opacity 0.3s ease;
}

.quote-box cite {
    display: block;
    font-family: 'Sprat', serif;
    color: var(--gold);
    font-size: 16px;
	font-weight: 700;
	font-style: normal;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.quote-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-btn:hover {
    background-color: var(--gold);
    color: #0d131d;
    box-shadow: 0 0 10px rgba(184, 151, 88, 0.4);
}

/* Efeito suave de transição na troca de texto */
.fade-out {
    opacity: 0;
}
/* ==========================================
   ACESSIBILIDADE: FOCO DE NAVEGAÇÃO
   ========================================== */

/* Remove o outline padrão feio apenas para cliques de mouse */
:focus:not(:focus-visible) {
    outline: none;
}

/* Cria uma borda de foco bem visível e elegante para navegação por TECLADO */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Esconde o link visualmente, mas mostra assim que receber o foco do Tab */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
	margin-top: 10px;
    background-color: var(--gold);
    color: #0d131d !important; /* Cor escura fixa para alto contraste com o dourado */
    padding: 10px 16px;
    font-family: 'Encode Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transition: top 0.2s ease-in-out;
}

/* Quando focado via teclado */
.skip-link:focus {
    top: 0;
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}
/* Respeita a escolha do usuário por menos animações */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================
   BANNER DE CONSENTIMENTO (LGPD / COOKIES)
   ========================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 16px 0;
    z-index: 10000;
    transition: bottom 0.4s ease-in-out;
}

/* Classe ativada via JS para deslizar o banner para cima */
.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.2;
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-content a:hover {
    color: var(--primary);
}

.cookie-btn {
    background-color: var(--gold);
    color: #0d131d;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-btn:hover {
    background-color: #d4af37;
    box-shadow: 0 0 10px rgba(184, 151, 88, 0.4);
    transform: translateY(-1px);
}

/* Ajuste Responsivo para Celulares */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-btn {
        width: 100%;
    }
}