/* VARIÁVEIS */
:root {
    --azul-escuro: #0a182f; 
    --dourado: #c5a059;
    --dourado-brilho: #e2c285;
    --branco: #e6f1ff;
    --bg-footer: rgba(2, 12, 27, 0.95);
}

/* RESET E BASE */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100svh; /* Usa a altura inteira da tela */
    background-color: var(--azul-escuro);
    overflow-x: hidden; 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--branco);
    display: flex;
    flex-direction: column; /* Permite que o rodapé acompanhe o conteúdo */
    position: relative;
}

/* FUNDO (LOGO) */
.bg-foto {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../fundo-logo.png'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40%; 
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

/* CONTEÚDO PRINCIPAL - CENTRALIZAÇÃO TOTAL */
.hero {
    position: relative;
    z-index: 1;
    flex: 1; /* Ocupa o espaço entre o topo e o rodapé */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza na Vertical */
    align-items: center;     /* Centraliza na Horizontal */
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px; /* Margens limpas e controladas */
    box-sizing: border-box;
}

.hero h1 { 
    font-family: 'Times New Roman', serif; 
    font-size: 2.2rem; 
    color: var(--dourado); 
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* CONTAINER DE INFORMAÇÕES (DATA/LOCAL/MAPA) */
.container-info {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.info-item i { color: var(--dourado); font-size: 1.1rem; }

.mapa-container {
    margin-top: 10px;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.mapa-container iframe {
    width: 100%; height: 100%; border: 0;
    filter: grayscale(0.5) contrast(1.1) invert(0.9) hue-rotate(180deg);
}

/* CICLO DE PALESTRAS - ALINHAMENTO CORRIGIDO */
.titulo-palestras {
    font-family: 'Times New Roman', serif; 
    font-size: 1.5rem;
    color: var(--dourado);
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ciclo-palestras-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: var(--dourado);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.nav-arrow:hover {
    color: var(--dourado-brilho);
    transform: scale(1.1);
}

.ciclo-palestras {
    width: 100%;
    display: flex;
    justify-content: center; 
}

.palestras-container {
    display: flex;
    gap: 20px;
    justify-content: center; 
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden; /* Para o carrossel se necessário, ou só flex */
}

.palestra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; 
}

.numero-palestra {
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    color: var(--dourado);
    margin-bottom: 5px;
}

.link-imagem {
    display: flex; /* Trava o link no meio */
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.imagem-palestra {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--dourado);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    /* filter: grayscale(0.5); removido pois colocamos inline na primeira palestra */
}

.nome-palestra {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--branco);
    margin: 15px 0 5px 0;
    font-weight: 500;
    max-width: 250px;
    line-height: 1.4;
}

.btn-certificados {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--dourado);
    color: var(--dourado);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-certificados:hover {
    background: var(--dourado);
    color: var(--azul-escuro);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-certificados i {
    font-size: 1rem;
}

.btn-inscricao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--dourado);
    border: none;
    color: var(--azul-escuro);
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-inscricao:hover {
    background: var(--dourado-brilho);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-inscricao i {
    font-size: 1.1rem;
}

.texto-esgotado {
    font-size: 1rem;
    color: #ff4d4d; /* Vermelho suave para indicar esgotado */
    font-weight: bold;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RODAPÉ NO FLUXO NORMAL (Sem buracos enormes) */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 0; 
    background: var(--bg-footer);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 2;
    /* Removi position: absolute, agora ele se ajusta naturalmente */
}

.social-links { margin-bottom: 5px; }
.social-links a { color: var(--dourado); font-size: 1.5rem; text-decoration: none; }
footer p { margin: 3px 0; font-size: 0.75rem; color: #8892b0; }
.dev-info { margin-top: 8px; font-size: 0.65rem !important; opacity: 0.5; }

/* --- AJUSTES PARA CELULAR --- */
@media (max-width: 768px) {
    .bg-foto { background-size: 80%; }

    .hero {
        padding: 30px 15px; /* Reduzi ainda mais o espaço no celular */
    }

    .hero h1 { font-size: 1.35rem; margin-bottom: 15px; }

    .container-info { 
        max-width: 100%; 
        padding: 10px 15px; 
        margin-bottom: 15px;
    }

    .mapa-container { height: 80px; }

    .info-item { font-size: 0.8rem; margin-bottom: 5px; }
    .titulo-palestras { font-size: 1.2rem; margin: 5px 0; }
    .numero-palestra { font-size: 1.1rem; }
    .nome-palestra { font-size: 0.9rem; max-width: 200px; }

    .imagem-palestra {
        width: 150px; /* Reduzi levemente a foto */
        height: 150px;
    }

    .texto-esgotado { margin-top: 10px; font-size: 0.8rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.15rem; }
    .imagem-palestra { width: 130px; height: 130px; }
    .mapa-container { display: none; } 
}