/* Estilos gerais */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
.site-header {
    
    color: var(--white);
    padding: 5px 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

/* Navegação */
.main-navigation {
    display: flex;
    align-items: center;
}

/* Menu Toggle - Escondido por padrão */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transform: translateX(145px);
}

.menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
}

.menu-toggle .menu-icon-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-icon-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Principal - Visível em desktop */
.primary-menu-container {
    display: block;
}

.primary-menu-container ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu-container li {
    margin-left: 25px;
    position: relative;
}

.primary-menu-container a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-menu-container a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.primary-menu-container a:hover:after,
.primary-menu-container .current-menu-item > a:after {
    width: 100%;
}

/* Botão de fechar do menu */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-menu:hover {
    opacity: 1;
}

/* Estilos para dispositivos móveis */
@media screen and (max-width: 1024px) {
    /* Mostra o botão de menu em telas menores */
    .menu-toggle {
        display: flex;
        align-items: center;
    }
    
    /* Esconde o menu principal em telas menores */
    .primary-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding: 80px 30px 30px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .primary-menu-container .close-menu {
        display: block;
    }
    
    .primary-menu-container.active {
        right: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    .primary-menu-container ul {
        flex-direction: column;
    }
    
    .primary-menu-container li {
        margin: 0 0 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .primary-menu-container.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .primary-menu-container li:nth-child(1) { transition-delay: 0.1s; }
    .primary-menu-container li:nth-child(2) { transition-delay: 0.15s; }
    .primary-menu-container li:nth-child(3) { transition-delay: 0.2s; }
    .primary-menu-container li:nth-child(4) { transition-delay: 0.25s; }
    .primary-menu-container li:nth-child(5) { transition-delay: 0.3s; }
    
    .primary-menu-container a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }
    
    /* Overlay quando o menu está aberto */
    .menu-overlay {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Conteúdo principal */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

.page-template-page-orcamento .site-main,
.page-template-page-resultados .site-main,
.page-template-page-contato .site-main,
.page-template-default .site-main,
.page-template-page-proximos-eventos .site-main {
    min-height: 0vh !important;
    padding: 0 !important;
}




/* Seção Hero */
.hero-section {
    background-color: var(--light-gray);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-section .tagline {
    font-size: 1.5rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Posts em destaque */
.featured-content {
    margin: 40px 0;
}

.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header {
    padding: 20px;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.entry-content {
    padding: 0 20px 20px;
}

.entry-footer {
    padding: 0 20px 20px;
}

.read-more {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =================================
   Rodapé Estilizado
   ================================= */
.site-footer {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.6;
    background-color: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.site-footer a {
    color: #e6e6e6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #4cc9f0;
    text-decoration: none;
}

/* Topo do Footer */
.footer-top {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    position: relative;
    z-index: 1;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYwMyI+PHBhdGggZD0iTTEyODAgMTQwSDBWNDBjMzAuMzMzIDAgNDAgMTMuMzMzIDgwIDQwczUwIDYwIDkwIDYwIDUwLTI2LjY2NyA5MC02MGM0MC0yNi42NjcgNDkuOTk5LTQwIDgwLTQwdjQwIiBmaWxsLW9wYWNpdHk9Ii4wNSIvPjwvZz48L3N2Zz4=') repeat-x bottom center/contain;
    opacity: 0.1;
    z-index: -1;
}

/* Widgets do Footer */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-area {
    padding: 0 15px;
}

/* Área Sobre */
.footer-about {
    padding-right: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

@media (max-width: 776px) {

    .footer-logo-img {
        margin: 0 auto;
    }
}

.footer-description {
    color: #b8c4cc;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Redes Sociais */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4cc9f0;
    transform: translateY(-3px);
    color: #fff;
}

/* Títulos dos Widgets */
.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4cc9f0;
}

/* Menu de Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-menu li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 6px;
    color: #4cc9f0;
}

.footer-menu a {
    color: #b8c4cc;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #4cc9f0;
    padding-left: 8px;
}

/* Contato */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b8c4cc;
}

.contact-item i {
    color: #4cc9f0;
    margin-right: 15px;
    font-size: 16px;
    margin-top: 4px;
    min-width: 20px;
    text-align: center;
}

.contact-item a {
    color: #b8c4cc;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #4cc9f0;
}

/* Newsletter */
.newsletter-description {
    color: #b8c4cc;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.wpcf7-submit {
    background: #4cc9f0;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.wpcf7-submit:hover {
    background: #3ab7dd;
    transform: translateY(-2px);
}

/* Rodapé Inferior */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.9rem;
    color: #8a99b5;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-legal a {
    color: #8a99b5;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: #4cc9f0;
}

.divider {
    color: #4a5568;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .site-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-widget-area {
        text-align: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu li {
        padding-left: 0;
    }
    
    .footer-menu li::before {
        display: none;
    }
    
    .contact-item {
        justify-content: center;
    }
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.theme-credit {
    margin-top: 10px;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .primary-menu-container.toggled {
        display: block;
    }
    
    .primary-menu-container ul {
        flex-direction: column;
    }
    
    .primary-menu-container li {
        margin: 10px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .tagline {
        font-size: 1.2rem;
    }
    
    .featured-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Estilos para os Eventos */
.evento-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.evento-imagem {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.evento-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-card:hover .evento-imagem img {
    transform: scale(1.05);
}

.evento-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evento-status.inscrições-abertas {
    background-color: #27ae60;
}

.evento-status.em-breve {
    background-color: #f39c12;
}

.evento-status.esgotado {
    background-color: #e74c3c;
}

.evento-status.finalizado {
    background-color: #7f8c8d;
}

.evento-conteudo {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.evento-titulo {
    margin: 0 0 15px;
    font-size: 1.5rem;
    line-height: 1.3;
}

.evento-titulo a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.evento-titulo a:hover {
    color: var(--secondary-color);
}

.evento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.evento-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

.evento-resumo {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.evento-rodape {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.botao i {
    margin-left: 8px;
    font-size: 0.9em;
}

.botao-primario {
    background-color: var(--primary-color);
    color: white;
}

.botao-primario:hover {
    background-color: #1a252f;
    color: white;
}

.botao-destaque {
    background-color: var(--secondary-color);
    color: white;
}

.botao-destaque:hover {
    background-color: #2980b9;
    color: white;
}

/* Página de Eventos */
.eventos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Página de Resultados */
.eventos-anteriores {
    margin: 40px 0;
    margin: 40px 0;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.resultados-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Estilo dos cards de evento */
.evento-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagem do evento */
.evento-imagem {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.evento-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-card:hover .evento-imagem img {
    transform: scale(1.05);
}

/* Conteúdo do card */
.evento-conteudo {
    padding: 20px!important;
    flex: 0;
    display: flex;
    flex-direction: column;
}

.evento-titulo {
    font-size: 1.25rem;
    margin: 0 0 15px;
    line-height: 1.3;
}

.evento-titulo a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.evento-titulo a:hover {
    color: #3498db;
}

.evento-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.evento-meta i {
    width: 20px;
    color: #3498db;
    margin-right: 8px;
}

.evento-resumo {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* Botão Saiba Mais */
.evento-botao {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.evento-botao:hover {
    background-color: #2980b9;
    color: white;
}

/* Status do evento */
.evento-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Responsividade */
@media (max-width: 768px) {
    .resultados-lista {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .evento-imagem {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .resultados-lista {
        grid-template-columns: 1fr;
    }
}

/* Página de Contato */
.contato-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contato-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contato-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

/* Página de Resultado ao Vivo */
.live-event {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-title {
    margin: 0;
    color: var(--primary-color);
}

.event-meta {
    display: flex;
    gap: 20px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.event-meta-item i {
    color: var(--secondary-color);
}

/* Responsividade para as páginas */
@media (max-width: 992px) {
    .contato-container {
        grid-template-columns: 1fr;
    }
    
    .eventos-lista {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .event-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .evento-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .eventos-lista {
        grid-template-columns: 1fr;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--secondary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   Menu de Navegação
   =========================================== */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px 0; */
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    z-index: 100;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--secondary-color);
}

.site-description {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menu Principal */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-principal-container {
    display: none;
}

.menu-principal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-principal > li {
    position: relative;
    margin: 0 5px;
}

.menu-principal > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.menu-principal > li > a:hover,
.menu-principal > li.current-menu-item > a,
.menu-principal > li.current_page_item > a {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Submenu */
.menu-principal .sub-menu,
.menu-principal .children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    margin: 5px 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-principal li:hover > .sub-menu,
.menu-principal li:hover > .children,
.menu-principal li.focus > .sub-menu,
.menu-principal li.focus > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-principal .sub-menu li,
.menu-principal .children li {
    margin: 0;
    position: relative;
}

.menu-principal .sub-menu a,
.menu-principal .children a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.menu-principal .sub-menu a:hover,
.menu-principal .children a:hover,
.menu-principal .sub-menu .current-menu-item > a,
.menu-principal .children .current-menu-item > a {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Submenu de segundo nível */
.menu-principal .sub-menu .sub-menu,
.menu-principal .children .children {
    top: -10px;
    left: 100%;
    margin: 0 0 0 5px;
}

/* Seta para itens com submenu */
.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8em;
}

/* Botão do menu móvel */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
}

.menu-icon-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Estilo quando o menu está aberto */
.toggled .menu-icon-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.toggled .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.toggled .menu-icon-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu móvel */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-principal-container {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 40px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .admin-bar .menu-principal-container {
        padding-top: 110px;
    }
    
    .menu-principal-container.toggled {
        right: 0;
    }
    
    .menu-principal {
        flex-direction: column;
    }
    
    .menu-principal > li {
        margin: 5px 0;
    }
    
    .menu-principal > li > a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-principal .sub-menu,
    .menu-principal .children {
        position: static;
        box-shadow: none;
        padding-left: 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-principal .sub-menu.toggled,
    .menu-principal .children.toggled {
        max-height: 1000px;
    }
    
    .menu-principal .sub-menu .sub-menu,
    .menu-principal .children .children {
        left: auto;
        right: auto;
        top: auto;
        margin: 0 0 0 15px;
    }
    
    .menu-item-has-children {
        position: relative;
    }
    
    .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 12px 15px;
        cursor: pointer;
    }
    
    .menu-item-has-children > a.toggled::after {
        content: '\f106';
    }
    
    /* Overlay quando o menu está aberto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
}

/* Ajustes para telas pequenas */
@media (max-width: 480px) {
    .menu-principal-container {
        width: 280px;
        right: -280px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
}

/* Ajustes para o menu quando o WooCommerce está ativo */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cart {
    position: relative;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-cart:hover {
    color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Estilos para o menu quando fixo no topo */
.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Ajuste quando o admin bar está visível */
.admin-bar .site-header.fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header.fixed {
        top: 0px!important;
    }
}

/* Estilos para o overlay do menu móvel */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Melhorias no menu para desktop */
@media (min-width: 992px) {
    .menu-principal-container {
        display: block !important;
    }
    
    .menu-principal > li {
        margin: 0 2px;
    }
    
    .menu-principal > li > a {
        padding: 10px 12px;
        position: relative;
        overflow: hidden;
    }
    
    .menu-principal > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .menu-principal > li > a:hover::after,
    .menu-principal > li.current-menu-item > a::after,
    .menu-principal > li.current_page_item > a::after {
        width: calc(100% - 24px);
    }
    
    .menu-principal .sub-menu,
    .menu-principal .children {
        border-top: 2px solid var(--secondary-color);
    }
    
    .menu-principal .sub-menu a,
    .menu-principal .children a {
        padding: 10px 20px;
        transition: all 0.2s ease;
    }
}

/* Melhorias no menu móvel */
@media (max-width: 991px) {
    .menu-principal-container {
        padding-top: 80px;
    }
    
    .admin-bar .menu-principal-container {
        padding-top: 120px;
    }
    
    .menu-principal > li > a {
        padding: 12px 20px;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-principal .sub-menu,
    .menu-principal .children {
        padding-left: 0;
        margin: 0;
        border-left: 3px solid var(--secondary-color);
    }
    
    .menu-principal .sub-menu a,
    .menu-principal .children a {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
    
    .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
    }
    
    .menu-item-has-children > a.toggled::after {
        transform: rotate(180deg);
    }
}

/* Tooltips */
.tooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1100;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #333 transparent transparent;
}

.tooltip.visible {
    opacity: 0.95;
    transform: translateY(0);
}

/* Melhorias de acessibilidade */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Efeito de transição suave para o menu */
.menu-principal-container,
.menu-principal .sub-menu,
.menu-principal .children {
    transition: all 0.3s ease;
}

/* Melhorias no botão de menu móvel */
.menu-toggle {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    display: none;
}

.menu-toggle:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Estilo para o botão de alternância de submenu */
.submenu-toggle {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 0 10px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.submenu-toggle:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
    border-radius: 4px;
}

.submenu-toggle .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.submenu-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.submenu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Estilos para a página individual de eventos */
.evento-single {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.evento-header {
    padding: 30px;
    /* background: linear-gradient(135deg, var(--primary-color), #1a252f); */
    color: white;
    text-align: center;
}

.evento-titulo {
    font-size: 2.1rem;
    margin: 0 0 20px;
    color: white;
}

.evento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.evento-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.evento-meta i {
    font-size: 1.1rem;
}

.evento-conteudo {
    padding: 30px;
}

.evento-imagem-destaque {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.evento-imagem-destaque img {
    width: 100%;
    height: auto;
    display: block;
}

.evento-descricao {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.evento-informacoes-adicionais {
    margin-bottom: 40px;
}

.evento-informacoes-adicionais h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-informacoes-adicionais h3 i {
    color: var(--secondary-color);
}

.evento-informacoes-adicionais > div {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.evento-resultado {
    /* text-align: center; */
    margin: 40px 0;
    display: none;
}

.evento-compartilhar {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.evento-compartilhar h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.redes-sociais {
    display: flex;
    /* justify-content: center; */
    gap: 15px;
    margin-left: 40px;
}

.botao-rede-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.botao-rede-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }

/* Responsividade */
@media (max-width: 768px) {
    .evento-titulo {
        font-size: 2rem;
    }
    
    .evento-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .evento-meta > div {
        width: 100%;
        justify-content: center;
    }
}

.menu-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Efeito de hover no botão do menu */
.menu-toggle:hover .menu-icon-line {
    background-color: var(--secondary-color);
}

/* Melhorias no header fixo */
.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #4cc9f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-header.fixed.header-hide {
    transform: translateY(-100%);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ajustes para telas pequenas */
@media (max-width: 480px) {
    .menu-principal-container {
        width: 85%;
        max-width: 300px;
    }
    
    .menu-principal > li > a {
        padding: 12px 15px;
    }
    
    .menu-principal .sub-menu a,
    .menu-principal .children a {
        padding: 10px 25px;
    }
}

/* Melhorias na acessibilidade do foco */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Suporte para modo escuro */
/* Estilos para a página de evento único */
.evento-single {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 30px 0;
}

.evento-header {
    padding: 30px;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    border-bottom: 1px solid #e9ecef;
}

.evento-titulo {
    font-size: 2.1rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

.evento-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.evento-data, .evento-local, .evento-valor, .evento-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 1rem;
}

.evento-status {
    display: inline-flex;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    background: #e9ecef;
    color: #2c3e50;
    margin-top: 5px;
}

.evento-status.inscrições-abertas {
    background: #38a169;
    color: white;
}

.evento-botoes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.evento-botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Botões principais */
.botao-destaque, 
.botao-primario,
.botao-secundario,
.evento-resultado .botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.botao-destaque,
.botao-primario {
    background: #3498db;
    color: white;
}

.botao-destaque:hover,
.botao-primario:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

.botao-secundario,
.evento-resultado .botao {
    background: #3498db;
    color: #2c3e50;
}

.botao-secundario:hover,
.evento-resultado .botao:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Container de botões */
.evento-botoes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* Alinhamento específico para o botão de resultado */
.evento-resultado {
    margin: 40px 0;
}

/* Garantir que os ícones tenham o mesmo tamanho */
.botao i {
    font-size: 1em;
    line-height: 1;
}

/* Conteúdo do evento */
.evento-conteudo {
    padding: 30px;
}

.evento-imagem-destaque {
    margin: -30px -30px 30px -30px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.evento-imagem-destaque img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.evento-descricao {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #4a5568;
}

.evento-descricao h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.evento-descricao h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

/* Seções de informações adicionais */
.evento-informacoes-adicionais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.evento-percurso,
.evento-kit,
.evento-premiacao {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-percurso:hover,
.evento-kit:hover,
.evento-premiacao:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.evento-informacoes-adicionais h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-informacoes-adicionais h3 i {
    color: #3498db;
    font-size: 1.1em;
}

/* Seção de compartilhamento */
.evento-compartilhar {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.evento-compartilhar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.redes-sociais {
    display: flex;
    gap: 10px;
}

.botao-rede-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.botao-rede-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.whatsapp { background: #25d366; }

/* Responsividade */
@media (max-width: 768px) {
    .evento-header {
        padding: 20px;
    }
    
    .evento-titulo {
        font-size: 1.8rem;
    }
    
    .evento-meta {
        grid-template-columns: 1fr;
    }
    
    .evento-conteudo {
        padding: 20px;
    }
    
    .evento-imagem-destaque {
        margin: -20px -20px 20px -20px;
        max-height: 300px;
    }
    
    .evento-informacoes-adicionais {
        grid-template-columns: 1fr;
    }
}

/* Estilos para a página de resultados */
.resultado-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    color: white;
    border-radius: 8px;
}

.resultado-titulo {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

.resultado-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.resultado-data,
.resultado-local {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.resultado-conteudo {
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); */
    padding: 30px;
    margin-bottom: 40px;
}

.resultado-embed {
    width: 100%;
    min-height: 500px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.resultado-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

.resultado-acoes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.botao-impressao {
    background-color: #6c757d;
}

.botao-certificado {
    background-color: #28a745;
}

.nenhum-resultado {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.nenhum-resultado p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* Modal de Certificado */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-conteudo {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
}

.fechar-modal:hover {
    color: #343a40;
}

.form-certificado {
    margin: 20px 0;
}

.form-certificado input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.certificado-encontrado {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.certificado-encontrado h3 {
    margin-top: 0;
    color: #28a745;
}

.erro {
    color: #dc3545;
    margin-top: 10px;
}

@media (prefers-color-scheme: dark) {
    /* .menu-principal-container {
        background-color: #1a1a1a;
    } */
    
    .menu-principal .sub-menu,
    .menu-principal .children {
        background-color: #2d2d2d;
    }
    
    .menu-principal > li > a {
        color: #f0f0f0;
    }
    
    .menu-principal .sub-menu a,
    .menu-principal .children a {
        color: #e0e0e0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .menu-principal > li > a:hover,
    .menu-principal > li.current-menu-item > a,
    .menu-principal > li.current_page_item > a {
        background-color: rgba(52, 152, 219, 0.2);
    }
    
    /* Melhorias de contraste para melhor acessibilidade */
    .menu-principal > li > a:focus {
        outline: 2px solid #fff;
        outline-offset: -2px;
    }
    
    .submenu-toggle:focus {
        outline-color: #fff;
    }
}

/* Melhorias de acessibilidade para links do menu */
.menu-principal a:focus:not(:focus-visible) {
    outline: none;
}

.menu-principal a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
    position: relative;
    z-index: 2;
}

/* Melhorias para leitores de tela */
.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none !important;
    display: block;
    height: auto;
    width: auto;
    padding: 0.5em;
    background: #fff;
    color: #000;
    font-size: 1em;
    line-height: normal;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    z-index: 100000;
    top: 5px;
    left: 5px;
}

/* Melhorias para dispositivos com hover forçado (como tablets com caneta) */
@media (hover: hover) and (pointer: fine) {
    .menu-principal > li > a:hover {
        background-color: rgba(52, 152, 219, 0.1);
    }
    
    .menu-principal .sub-menu a:hover,
    .menu-principal .children a:hover {
        background-color: rgba(52, 152, 219, 0.15);
    }
}

/* Melhorias para impressão */
/* ==========================================================================
   Otimizações de desempenho
   ========================================================================== */

/* Otimizações de desempenho para imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Estilo para imagens com lazy loading */
.lazyload,
.lazyloading {
    opacity: 0;
    transition: opacity 400ms;
}

.lazyloaded {
    opacity: 1;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Otimização para imagens de fundo */
[data-bg],
[data-bg-small] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out;
}

/* Melhorias de desempenho para elementos visuais */
.hero-video,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Estilo para o efeito de carregamento suave */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-placeholder {
    position: relative;
    overflow: hidden;
    background: #f6f7f8;
    background: linear-gradient(to right, #f6f7f8 0%, #e9ebee 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 104px;
    animation: shimmer 1.5s infinite linear;
}

/* Melhorias de desempenho para animações */
/* Removido bloco global que aplicava backface-visibility e preserve-3d em todos os elementos */

/* Previne layout shift */
.aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.aspect-ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Media Queries para otimização em dispositivos móveis */
@media (max-width: 768px) {
    .hero-video img {
        min-height: 400px; /* Altura mínima para mobile */
    }
}

/* Otimização para impressão */
@media print {
    .menu-toggle,
    .submenu-toggle {
        display: none !important;
    }
    
    .menu-principal-container {
        display: block !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        background: none !important;
    }
    
    .menu-principal {
        display: block !important;
    }
    
    .menu-principal > li {
        display: block;
        margin: 0 !important;
        page-break-inside: avoid;
    }
    
    .menu-principal a {
        padding: 5px 0 !important;
        color: #000 !important;
        text-decoration: underline;
    }
    
    .menu-principal .sub-menu,
    .menu-principal .children {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        padding-left: 20px !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* Estilos para os botões de evento */
.evento-botoes {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.evento-botoes .botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
    border: 2px solid transparent;
}

.evento-botoes .botao i {
    margin-left: 8px;
    font-size: 0.9em;
}

.botao-destaque {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.botao-destaque:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ESTILOS CORRIGIDOS PARA HEADER E BANNER
   ============================================ */

/* Reset de estilos conflitantes */
body {
    overflow-x: hidden;
}

/* Estilos do Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Ajuste para a barra de administração do WordPress */
.admin-bar .site-header {
    top: 32px;
}

/* Estilos do Banner/Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 115vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 767px) {
    .hero {
        min-height: 80vh;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .admin-bar .site-header {
        top: 46px;
    }
}
