/*
Theme Name: Atraia Sucesso Theme
Theme URI: https://seusite.com/atraia-theme
Author: Giovane Bertol
Author URI: https://conexaogtecnologia.com.br
Description: Tema focado em performance para vídeos e energias sonoras.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atraia-theme
Tags: two-columns, right-sidebar, custom-colors, entertainment, video
*/

/* --- VARIÁVEIS GERAIS --- */
:root {
    --gold: #E6A55C;
    --dark-ui: #0E0C18; /* Cor para Header/Footer */
    --light-bg: #F9F9F9; /* Fundo Clean */
    --text-dark: #333333; /* Texto Leitura */
    --text-light: #F7F7F7; /* Texto em fundos escuros */
}

/* Reset Básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    /* Variáveis injetadas pelo Customizer */
    font-family: 'Montserrat', sans-serif; 
    /* background e color definidos via wp_head */
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; }


/* As variáveis :root padrão ficam como fallback no functions.php */

/* --- HEADER STYLES --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 10px 0; transition: all 0.4s ease;
    background: transparent;
}

.site-header.header-scrolled {
    background: rgba(18, 16, 31, 0.95); /* Mantém fixo para legibilidade ou use var(--dark) com opacidade */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
/* --- NOVO: Header Específico para Single Video (Sempre Dark) --- */
/* Força o header a ser escuro desde o início na página de vídeo */
body.single-video_musical .site-header {
    background-color: rgba(12, 10, 20, 0.85); /* Fundo Dark UI com transparência */
    backdrop-filter: blur(12px); /* Efeito vidro */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.site-logo img { max-height: 50px; width: auto; }
.text-logo { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: #fff; }

.main-navigation ul.nav-links {
    display: flex; list-style: none; gap: 30px; margin: 0;
}

.main-navigation a {
    color: var(--text-main); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s;
}
.main-navigation a:hover { color: var(--gold); }

/* Botão de Fechar Menu (Desktop - Oculto) */
.close-menu-toggle {
    display: none; /* Só aparece no mobile */
}

.btn-cta-header {
    /* Background definido via PHP para usar a variável */
    padding: 10px 25px;
    border-radius: 30px; font-weight: 700; font-size: 0.9rem; transition: transform 0.3s;
}
.btn-cta-header:hover { transform: scale(1.05); color: #000; }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* Overlay Escuro */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; z-index: 1001; }
    
    .main-navigation {
        position: fixed; 
        top: 0; 
        right: -100%; /* Começa escondido */
        width: 80%; /* Ocupa 80% da tela */
        max-width: 300px;
        height: 100vh;
        background: #0E0C18; /* Cor do fundo do menu */
        padding: 80px 30px; 
        transition: 0.4s ease-in-out;
        z-index: 1002; /* Acima do overlay */
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation.active { right: 0; }
    
    .main-navigation ul.nav-links { 
        flex-direction: column; 
        gap: 20px;
    }
    
    .main-navigation a {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block;
        padding-bottom: 10px;
    }

    .btn-cta-header { display: none; }

    /* Botão de Fechar (Mobile - Visível) */
    .close-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }
}

/* --- GRID DE VÍDEOS --- */
.as-video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; padding: 20px 0;
}
.video-card {
    display: block; position: relative; border-radius: 15px; overflow: hidden;
    background: rgba(255,255,255,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(230, 165, 92, 0.15); border-color: var(--gold);
}
.card-thumb {
    height: 180px; background-size: cover; background-position: center; position: relative;
}
.play-overlay {
    position: absolute; inset: 0; background: rgba(18, 16, 31, 0.4);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay i { font-size: 50px; /* Cor via PHP */ text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.card-duration {
    position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8);
    color: #fff; padding: 3px 8px; font-size: 12px; border-radius: 4px;
}
.card-info { padding: 20px; }
.card-title {
    color: var(--text-main); font-size: 1.1rem; margin: 0 0 10px 0; line-height: 1.4; font-weight: 600;
}
.card-cta {
    /* Cor via PHP */ font-size: 0.9rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}

/* --- FOOTER GLOBAL --- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF; font-size: 0.95rem; margin-top: auto;
    /* BG definido no PHP */
}
.footer-main { padding: 60px 0; position: relative; z-index: 1; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.footer-col { flex: 1; min-width: 250px; }

/* Identidade */
.custom-footer-logo { max-width: 180px; margin-bottom: 20px; }
.text-logo { font-family: 'Cinzel', serif; font-size: 1.5rem; color: #fff; font-weight: 700; display:block; margin-bottom:15px; }
.footer-tagline { margin: 20px 0; line-height: 1.6; max-width: 300px; }

/* Ícones Sociais */
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.social-btn {
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.08);
    color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 1.2rem; transition: all 0.3s ease; border: 1px solid transparent;
}
.social-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Cores de Marca (Mantém originais pois são marcas) */
.social-btn.youtube:hover { background: #FF0000; border-color: #FF0000; }
.social-btn.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: #d6249f; }
.social-btn.spotify:hover { background: #1DB954; border-color: #1DB954; }
.social-btn.email:hover { border-color: var(--gold); } /* Email usa a cor do tema */

/* Menu Rodapé */
.footer-col h4 { color: var(--text-main); font-family: 'Cinzel', serif; margin-bottom: 20px; font-size: 1.2rem; }
ul.footer-links { list-style: none; padding: 0; margin: 0; }
ul.footer-links li { margin-bottom: 12px; }
ul.footer-links a { text-decoration: none; color: #9CA3AF; transition: 0.3s; display: flex; align-items: center; }
ul.footer-links a:before { content: '›'; color: var(--gold); margin-right: 8px; font-size: 1.2rem; line-height: 0; }
ul.footer-links a:hover { color: var(--gold); padding-left: 5px; }

/* Contact Form 7 */
.cf7-wrapper { margin-bottom: 20px; }
.newsletter-col .wpcf7 label { display: none; }
.newsletter-col .wpcf7 input[type="email"], .newsletter-col .wpcf7 input[type="text"] {
    width: 100%; padding: 15px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px; color: #fff;
    margin-bottom: 10px; font-family: inherit; font-size: 0.95rem;
}
/* Submit Style definido no PHP */
.newsletter-col .wpcf7 input[type="submit"] {
    width: 100%; padding: 12px;
    border: none; border-radius: 5px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: 0.3s; letter-spacing: 1px;
}
.newsletter-col .wpcf7 input[type="submit"]:hover { background: #fff; box-shadow: 0 0 15px rgba(230, 165, 92, 0.4); color: #000; }
.newsletter-col .wpcf7-response-output { font-size: 0.8rem; padding: 10px !important; border-radius: 5px; margin-top: 10px; background: rgba(0,0,0,0.5) !important; border: 1px solid #333 !important;}

.legal-links-small { font-size: 0.8rem; color: #555; }
.legal-links-small a:hover { text-decoration: underline; color: #ccc; }

/* Copyright */
.footer-bottom { background: rgba(0,0,0,0.3); padding: 20px 0; font-size: 0.85rem; color: #555; position: relative; z-index: 2; }
.footer-bottom .footer-container { align-items: center; }
.footer-bottom strong { color: #888; }
.credits-text { text-align: right; }

@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-tagline { margin: 20px auto; }
    ul.footer-links a { justify-content: center; }
    .credits-text { text-align: center; margin-top: 10px; }
}


/* --- MENU LEGAL (NOVO) --- */
.legal-menu-wrapper {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #555;
}

ul.legal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

ul.legal-links-list li {
    display: inline-block;
}

/* Adiciona a barra | entre os itens */
ul.legal-links-list li:not(:last-child):after {
    content: '|';
    margin-left: 10px;
    color: #444;
}

ul.legal-links-list a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

ul.legal-links-list a:hover {
    text-decoration: underline;
    color: var(--gold);
}

/* Fallback (links soltos) */
.legal-menu-wrapper > a {
    color: #666;
    text-decoration: none;
}
.legal-menu-wrapper > a:hover {
    color: var(--gold);
}

/* Mobile Adjust */
@media (max-width: 768px) {
    ul.legal-links-list {
        justify-content: center;
    }
}



/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* --- FEATURED VIDEOS --- */
.featured-section {
    padding: 100px 0;
    background: var(--dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    margin: 0;
}

.btn-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-link:hover { padding-left: 10px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card-featured {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s ease;
}

.video-card-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--gold);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image .play-btn {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.video-card-featured:hover .card-image .play-btn { opacity: 1; }
.card-image .play-btn i { font-size: 3rem; color: var(--gold); filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.2rem; color: #fff; margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 600; }

/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 0;
    background: linear-gradient(to right, #0E0C18 50%, #12101F 50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 30px;
}

.about-text p { color: #aaa; line-height: 1.8; margin-bottom: 20px; }

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
}
.stat-item span { color: #fff; font-size: 0.9rem; text-transform: uppercase; margin-top: 5px; display: block; }

.glow-image {
    border-radius: 20px;
    box-shadow: 20px 20px 0 rgba(230, 165, 92, 0.1);
}

/* --- SERVICES CTA --- */
.services-cta {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, #1A1826 0%, #0E0C18 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 80px;
    text-align: center;
    position: relative;

}

/* Efeito de luz no fundo */
.cta-box:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 165, 92, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: 'Cinzel', serif; font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
.cta-content p { color: #ccc; margin-bottom: 40px; font-size: 1.1rem; }

.btn-gold-solid {
    background: var(--gold);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    transition: 0.3s;
}
.btn-gold-solid:hover { transform: scale(1.05); background: #fff; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section { background: #0E0C18; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .featured-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 20px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* --- ARCHIVE PAGE --- */
.archive-header {
    background-color: var(--dark-ui); /* Fundo escuro no header */
    padding: 120px 0 60px; /* Espaço para o menu fixo */
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.archive-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.archive-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.archive-description {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Filtros (Botões de Categoria) */
.archive-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: capitalize;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Grid Area */
.archive-grid-section {
    padding: 60px 0;
    background-color: var(--light-bg); /* Fundo claro para contraste com os cards */
}

/* Paginação */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

/* --- PAGINAÇÃO (AJUSTADA PARA AJAX) --- */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Reset da lista UL que o paginate_links gera */
.archive-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px; /* Espaço entre os itens */
}

.archive-pagination li {
    display: inline-block;
    margin: 0; /* Remove margem padrão de li */
}

/* Estilo unificado para Links (a) e Span (current/dots) */
.archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-width: 45px; /* Tamanho mínimo para ficar bonito */
    background: #fff;
    color: #333;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #eee;
}

/* Estado Ativo (Página Atual) */
.archive-pagination .page-numbers.current {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    cursor: default;
}

/* Hover nos links */
.archive-pagination a.page-numbers:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
}

/* Botões Anterior/Próximo (se tiverem classes específicas, ou genéricas) */
.archive-pagination .prev, 
.archive-pagination .next {
    padding-left: 20px;
    padding-right: 20px;
}

/* Responsivo para Paginação */
@media (max-width: 768px) {
    .archive-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 35px;
    }
}


.nav-links .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--gold);
    color: #000;
}

.nav-links .prev, .nav-links .next {
    background: transparent;
    box-shadow: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .archive-title { font-size: 2.2rem; }
    .archive-filters { gap: 10px; }
    .filter-btn { padding: 6px 15px; font-size: 0.8rem; }
}


/* --- ARCHIVE SEARCH --- */
.archive-search-wrapper {
    margin: 30px auto 40px;
    display: flex;
    justify-content: center;
}

.archive-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.archive-search-box input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.archive-search-box input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.archive-search-box input::placeholder { color: rgba(255,255,255,0.5); }

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 50px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-loader {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.fadeIn { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* --- GO TO TOP --- */
#go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#go-to-top:hover {
    background-color: #fff;
    transform: translateY(-5px); /* Efeito de levitação */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#go-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #go-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==================================================
   NOVO: ESTILOS PÁGINA DE CONTATO (MIGRADO DE PAGE-CONTATO.PHP)
   ================================================== */

.contact-page-wrapper {
    background-color: var(--light-bg);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Hero Contato */
.contact-hero {
    background-color: var(--dark-ui);
    padding: 120px 0 60px; /* Ajustado para compensar header fixo */
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-title { 
    font-family: 'Cinzel', serif; 
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: var(--gold); 
}
.contact-subtitle { 
    font-size: 1.1rem; 
    color: #ccc; 
}

/* Grid Contato */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Info Box */
.info-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.info-box h3 { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-dark); 
    margin-bottom: 20px; 
    font-size: 1.5rem; 
}
.info-box p { 
    color: #666; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.contact-list { list-style: none; padding: 0; margin: 0 0 40px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
/* Ícone na lista de contato */
.contact-icon {
    width: 50px; height: 50px;
    background: rgba(230, 165, 92, 0.1);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-list li div strong { display: block; color: var(--text-dark); font-size: 0.9rem; }
.contact-list li div span { color: #888; font-size: 0.95rem; }

/* Social */
.social-connect h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 15px; }
.social-icons-contact { display: flex; gap: 10px; }
.sc-btn {
    width: 40px; height: 40px;
    background: #f5f5f5; color: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s;
}
.sc-btn:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

/* Form Box */
.form-box {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.02);
}
.form-box h3 { margin-bottom: 30px; color: var(--text-dark); font-family: 'Cinzel', serif; font-size: 1.8rem; }

/* Estilização do CF7 (Campos) Específico para Página de Contato */
.form-box .wpcf7 label { 
    font-weight: 600; font-size: 0.9rem; color: #333; margin-bottom: 5px; display: block; 
}
.form-box .wpcf7 input:not([type="submit"]), 
.form-box .wpcf7 textarea, 
.form-box .wpcf7 select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #fcfcfc;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: 0.3s;
}
.form-box .wpcf7 input:focus, 
.form-box .wpcf7 textarea:focus,
.form-box .wpcf7 select:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 165, 92, 0.1);
    outline: none;
}
.form-box .wpcf7 input[type="submit"] {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    padding: 18px;
    letter-spacing: 1px;
    width: 100%;
    border-radius: 50px;
}
.form-box .wpcf7 input[type="submit"]:hover {
    background: #333;
    color: #fff;
}

/* Responsivo para Contato */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-hero { padding: 100px 0 40px; }
    .form-box { padding: 30px; }
}


/* ==================================================
   PÁGINA 404 (Migrado de 404.php)
   ================================================== */

.error-404-container {
    background-color: #0E0C18; /* Dark UI */
    background-image: radial-gradient(circle at center, #1F1D2B 0%, #0E0C18 70%);
    min-height: 80vh; /* Ocupa boa parte da tela */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative; 
    z-index: 1;
}

.error-icon {
    font-size: 5rem;
    color: #333; /* Escuro sutil */
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}
.error-icon i {
    text-shadow: 0 0 20px rgba(230, 165, 92, 0.2);
    background: -webkit-linear-gradient(#E6A55C, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.error-title {
    font-family: 'Cinzel', serif;
    font-size: 8rem;
    line-height: 1;
    margin: 0;
    color: rgba(255,255,255,0.05); /* Quase invisível no fundo */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    font-weight: 700;
}

.error-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.error-text {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Busca 404 */
.error-search {
    margin-bottom: 40px;
}
.search-form-404 {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}
.search-field-404 {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.search-field-404:focus {
    border-color: #E6A55C;
    background: rgba(255,255,255,0.1);
}
.search-submit-404 {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: none;
    border: none;
    color: #E6A55C;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Botões 404 */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-gold-glow {
    background: linear-gradient(135deg, #E6A55C 0%, #C5A059 100%);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(230, 165, 92, 0.3);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-gold-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 165, 92, 0.5);
    color: #000;
}

.btn-outline-gold {
    border: 1px solid rgba(230, 165, 92, 0.5);
    color: #E6A55C;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-outline-gold:hover {
    border-color: #E6A55C;
    background: rgba(230, 165, 92, 0.1);
    color: #fff;
}

/* Mobile 404 */
@media (max-width: 768px) {
    .error-title { font-size: 5rem; }
    .error-subtitle { font-size: 1.8rem; }
    .error-actions { flex-direction: column; gap: 15px; }
    .btn-gold-glow, .btn-outline-gold { width: 100%; justify-content: center; }
}

.no-results-msg{
    color: #9CA3AF; 
}

    .page-container {
        background-color: var(--light-bg);
        min-height: 100vh;
    }

    /* Header */
    .page-header-generic {
        background-color: var(--dark-ui);
        padding: 140px 0 60px; /* Espaço para o menu fixo */
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .page-title {
        font-family: 'Cinzel', serif;
        font-size: 3rem;
        color: #fff;
        margin: 0;
    }

    /* Grid Layout */
    .page-content-grid {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Conteúdo Largo x Sidebar Estreita */
        gap: 60px;
        padding: 60px 20px;
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Conteúdo */
    .entry-content-box {
        background: #fff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.02);
        color: #444;
        line-height: 1.8;
        font-size: 1rem;
    }
    .entry-content-box h2 { color: var(--text-dark); margin-top: 30px; font-family: 'Montserrat', sans-serif; }
    .entry-content-box p { margin-bottom: 20px; }

    /* Sidebar */
    .sidebar-widget-box {
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.02);
        margin-bottom: 30px;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .sidebar-widget-box.highlight {
        background: var(--dark-ui);
        color: #fff;
        text-align: center;
        border: 1px solid rgba(230, 165, 92, 0.2);
    }
    .sidebar-widget-box.highlight h4 { color: var(--gold); }
    .btn-sidebar-cta {
        display: inline-block;
        background: var(--gold);
        color: #000;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .widget-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--gold);
        display: inline-block;
        padding-bottom: 5px;
        color: var(--text-dark);
        font-weight: 700;
    }

    /* Lista de Vídeos na Sidebar */
    .sidebar-video-item {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        text-decoration: none;
        align-items: center;
        transition: transform 0.2s;
    }
    .sidebar-video-item:hover { transform: translateX(5px); }
    .sidebar-video-item:last-child { margin-bottom: 0; }

    .sv-thumb {
        width: 100px;
        height: 60px;
        background-size: cover;
        background-position: center;
        border-radius: 6px;
        position: relative;
        flex-shrink: 0;
    }
    .sv-time {
        /*position: absolute; 
        background: rgba(0,0,0,0.8);
        */
        bottom: 3px; right: 3px;
        color: #fff;
        font-size: 9px; padding: 1px 4px; border-radius: 2px;
    }

    .sv-info h4 {
        font-size: 0.9rem;
        margin: 0 0 5px;
        color: #333;
        line-height: 1.3;
        font-weight: 600;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .sv-cta {
        font-size: 0.75rem;
        color: var(--gold);
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Responsivo */
    @media (max-width: 992px) {
        .page-content-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

/* Torna o iframe responsivo dentro do conteúdo do post */
.entry-content iframe {
    max-width: 100%; /* Garante que não ultrapasse a largura da tela */
    width: 100%; /* Força ocupar o espaço disponível */
    height: auto; /* Reseta a altura fixa */
    aspect-ratio: 16 / 9; /* Mantém a proporção padrão do YouTube (moderno) */
}