/* --- RESET GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #460404; 
    color: #867878;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- ANIMAÇÕES GLOBAIS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Classes de animação para Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

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

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- CABEÇALHO --- */
header {
    background-color: #111;
    padding: 5px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 2px;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu a {
    color: #ffffff;
    margin-left: 20px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b0808, #b71c1c);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a:hover, .menu a.active {
    color: #b71c1c; 
}

/* --- MENU HAMBÚRGUER --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* --- HERO (CAPA) --- */
.hero {
    /* Mantenha a altura que você preferir */
    height: 70vh; 

    
    background-image: url('img/imagem-efeito-fundo.JPG');
    background-size:contain;
    background-repeat: no-repeat;
    background-position: center; 
    background-attachment: fixed; /* Efeito Parallax */
    
    /* Cor de fundo para preencher o espaço que sobrar nas laterais */
    background-color: #000; 
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Película escura sobre a foto */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(70,4,4,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1; /* Texto acima da película */
    animation: fadeInUp 1s ease;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 25px; 
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #840404, #b71c1c);
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(132, 4, 4, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover { 
    background: linear-gradient(135deg, #5d0101, #840404);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(132, 4, 4, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

/* --- SEÇÕES --- */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fefdfd;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #840404, #b71c1c);
    border-radius: 2px;
}

.subtitle {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fefdfd;
}

/* --- GRID DE VÍDEOS E FOTOS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    border-radius: 25px;
}

.video-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(183, 28, 28, 0.3);
}

.video-card iframe {
    width: 100%;
    border-radius: 8px;
    height: 200px;
}

.video-card h3 {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.video-card video {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-card video:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.gallery-img:hover { 
    transform: scale(1.05) rotate(1deg); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* --- SEÇÃO LIVRO (30%) --- */
.book-section {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-top: 4px solid #711f06;
    position: relative;
    overflow: hidden;
}

.book-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #711f06, #b71c1c, #711f06);
}

.book-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.book-layout img {
    max-width: 250px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border-radius: 8px;
}

.book-layout img:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.book-layout h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.book-layout p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}


.contact-layout {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.contact-info, .contact-form { flex: 1; min-width: 300px; }

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #666;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* --- PÁGINA SOBRE --- */
.page-header {
    padding: 60px 0;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-content {
    background: #140000;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.mvv-box {
    text-align: center;
    padding: 20px;
}

.mvv-box i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.mvv-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Ajustes do Rodapé --- */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #111; /* Ou a cor escura que você já usa */
    color: #fff;
}

.dev-credits {
    margin-top: 10px; /* Espaço entre o copyright e seu nome */
    font-size: 0.85rem; /* Um pouco menor que o texto principal */
    opacity: 0.7; /* Leve transparência para ficar elegante */
}

.dev-credits a {
    color: #fff; /* Cor do link */
    text-decoration: none; /* Tira o sublinhado padrão */
    font-weight: bold;
    transition: 0.3s;
}

.dev-credits a:hover {
    color: #b71c1c; /* Muda para vermelho (cor do tema) ao passar o mouse */
    text-decoration: underline;
}

/* --- Botões de Redes Sociais --- */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espaço entre os ícones */
    margin-bottom: 20px; /* Espaço para separar do texto de copyright */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Deixa redondinho */
    background-color: rgba(255, 255, 255, 0.1); /* Fundo cinza bem transparente */
    color: #fff; /* Cor do ícone */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse (Hover) */
.social-btn:hover {
    transform: translateY(-5px); /* O botão "pula" para cima */
    color: #fff;
}

/* Cores específicas de cada rede */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 0 15px rgba(214, 36, 159, 0.5);
}

.social-btn.youtube:hover {
    background-color: #FF0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* --- Estilos da Página de Contato (Layout com Foto) --- */

.contact-section {
    padding: 60px 0;
}

.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Alinha tudo no topo */
}

/* O Formulário ocupa 60% da tela */
.contact-form-container {
    flex: 3; 
}

.contact-sidebar {
    flex: 2;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Estilo da Foto */
.contact-image-box img {
    width: 100%;
    height: auto;
    border-radius: 9px;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Caixa de Checkbox da Agenda */
.agenda-checkbox-wrapper {
    background-color: #fff4f4; /* Fundo levemente avermelhado */
    border-left: 5px solid #b71c1c; /* Faixa vermelha de destaque */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agenda-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    cursor: pointer;
}

.agenda-checkbox-wrapper label {
    cursor: pointer;
    color: #333;
    font-size: 0.95rem;
}

.agenda-checkbox-wrapper small {
    display: block;
    color: #666;
    margin-top: 3px;
}

/* Informações da Barra Lateral */
.sidebar-info h3 {
    color: #b71c1c;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-item i {
    color: #b71c1c;
    font-size: 1.2rem;
    width: 25px; /* Para alinhar os ícones */
    text-align: center;
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column-reverse; /* Foto em cima, formulário embaixo no celular */
    }
    
    .contact-sidebar {
        width: 100%;
    }
}

/* =========================================
   BOTÃO VOLTAR AO TOPO
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #840404, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(132, 4, 4, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(132, 4, 4, 0.5);
}

/* =========================================
   CARDS DE ARTIGOS/POSTS
   ========================================= */
.post-card {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

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

.post-card:hover img {
    transform: scale(1.05);
}

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

.post-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.post-card small {
    color: #888;
    margin-bottom: 15px;
}

.post-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* =========================================
   LOADING SKELETON
   ========================================= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    height: 300px;
    border-radius: 12px;
}

/* =========================================
   CORREÇÃO DE RESPONSIVIDADE (MOBILE)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Menu Hambúrguer */
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        margin: 0;
        font-size: 1.3rem;
        padding: 10px 20px;
    }

    .menu a::after {
        display: none;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    /* 2. Ajustando o Tamanho da Fonte da Capa (Hero) */
    .hero {
        height: 60vh;
        background-attachment: scroll; /* Remove parallax no mobile */
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    /* 3. A SOLUÇÃO PRINCIPAL: Destrava o Grid de 2 Colunas */
    .grid-2-col {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* 4. Ajuste da Seção do Livro */
    .book-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .book-layout img {
        max-width: 80%;
        margin: 0 auto;
    }

    /* 5. Ajustes Gerais de Espaçamento */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        width: 95%;
    }
    
    /* 6. Formulário de Contato */
    .contact-layout {
        flex-direction: column-reverse; 
    }
    
    .contact-sidebar, .contact-form-container {
        width: 100%;
        flex: none;
    }

    /* 7. Grid de vídeos/fotos */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* 8. Botão voltar ao topo */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Overlay para menu mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}