/* ======================================================= */
/* === VERSÃO FINAL CORRIGIDA - 23/06 === */
/* ======================================================= */

:root {
    --cor-preto: #030303f3; 
    --cor-laranja: #FF6600;
    --cor-branco: #FFFFFF;
    --cor-cinza-claro: #f4f4f4;
    --cor-texto: #333333;
}

/* Regra de Ouro para Prevenir "Vazamentos" de Layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: var(--cor-texto); 
    background-color: var(--cor-branco); 
}

/* Adiciona espaço no topo das páginas que NÃO são a homepage para compensar o header */
body:not(.homepage) main {
    padding-top: 80px;
}


/* --- ESTILOS DO CABEÇALHO --- */
header {
    background-color: var(--cor-preto);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}
/* Efeito especial SÓ na homepage */
.homepage header {
    position: fixed;
    width: 100%;
    left: 0;
    transition: top 0.4s ease-in-out;
    top: -85px; 
}
.homepage header.header-visible {
    top: 0;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container { display: flex; align-items: center; text-decoration: none; gap: 12px; }
.logo { height: 60px; width: auto; }
.logo-text { color: var(--cor-laranja); font-size: 1.8rem; font-weight: bold; line-height: 1; }
nav a { color: var(--cor-branco); text-decoration: none; font-weight: bold; margin-left: 25px; transition: color 0.3s; }
nav a:hover { color: var(--cor-laranja); }
.hamburger-menu { display: none; }


/* --- ESTILOS DA SEÇÃO HERO (HOMEPAGE) --- */
.homepage .hero {
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background-size: cover;
    background-position: center;
    background-color: var(--cor-cinza-claro);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('Imagens/Oxebots.webp');
}
.homepage .hero .hero-content { max-width: 800px; }
.homepage .hero h1 { font-size: 3.5rem; color: var(--cor-branco); text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.homepage .hero p { font-size: 1.3rem; color: var(--cor-branco); text-shadow: 1px 1px 5px rgba(0,0,0,0.7); margin-bottom: 2rem; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero .cta-button { animation: fadeInUp 0.8s ease-out 0.5s; animation-fill-mode: forwards; opacity: 0; }


/* --- BOTÕES --- */
.cta-button { display: inline-block; background-color: var(--cor-laranja); color: var(--cor-branco) !important; padding: 15px 30px; font-size: 1.1rem; font-weight: bold; text-decoration: none; border: 2px solid var(--cor-laranja); border-radius: 5px; transition: background-color 0.3s, color 0.3s; text-shadow: none !important; margin-top: 20px;}
.cta-button:hover { background-color: #E65C00; border-color: #E65C00; }
nav a.cta-button { padding: 8px 16px; font-size: 0.9rem; margin-top: 0; }


/* --- SEÇÃO SOBRE --- */
.about-section { padding: 4rem 2rem; }
.about-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.about-content { flex: 1.5; min-width: 300px; }
.about-content h2 { font-size: 2.8rem; margin-bottom: 1rem; border-left: 5px solid var(--cor-laranja); padding-left: 10px; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.about-image.visible img { opacity: 1; transform: translateX(0); }
.areas-tabs { display: flex; gap: 10px; margin-top: 2rem; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.area-tab { padding: 10px 20px; cursor: pointer; background-color: #f0f0f0; border: none; border-radius: 5px 5px 0 0; font-size: 1rem; font-weight: bold; }
.area-tab.active { background-color: var(--cor-laranja); color: var(--cor-branco); }
.areas-content-container { padding: 1.5rem; background-color: #f9f9f9; border-radius: 0 0 8px 8px; border: 1px solid #ddd; border-top: none; }
.area-content { display: none; }
.area-content.active { display: block; }
.area-content h3 { color: var(--cor-laranja); margin-top: 0; }


/* --- SEÇÃO PROJETOS --- */
.projects { padding: 4rem 2rem; background-color: var(--cor-laranja); }
.projects-container { max-width: 1200px; margin: 0 auto; }
.projects h2 { text-align: center; font-size: 2.8rem; margin-bottom: 3rem; color: var(--cor-branco); }
.project-item { display: flex; align-items: center; gap: 3rem; margin-bottom: 4rem; flex-wrap: wrap; }
.project-item:last-child { margin-bottom: 0; }
.project-item.reverse-layout { flex-direction: row-reverse; }
.project-text { flex: 1; color: var(--cor-branco); min-width: 300px; }
.project-text h3 { font-size: 2rem; margin-top: 0; margin-bottom: 1rem; }
.project-text p, .project-text li { line-height: 1.7; margin-bottom: 1rem; }
.project-text ul { list-style-position: inside; padding-left: 0; }
.project-image { flex: 1; min-width: 300px; }
.project-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: block; }


/* --- ESTILOS DE PÁGINAS SECUNDÁRIAS (APOIADOR, PUBLICAÇÕES) --- */
.page-container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.page-title { text-align: center; margin-bottom: 3rem; }
.page-title h1 { font-size: 2.8rem; color: var(--cor-laranja); }
.page-title p { font-size: 1.2rem; color: #666; }
.sponsorship-section h2, .supporters-section h2, .page-title h2 { text-align: center; font-size: 2.2rem; margin-bottom: 2rem; color: var(--cor-texto); }
.accordion-container { max-width: 900px; margin: 0 auto; }
.accordion-item { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 1rem; overflow: hidden; }
.accordion-header { width: 100%; padding: 1.2rem 1.5rem; background-color: #fff; border: none; text-align: left; font-size: 1.2rem; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s; }
.accordion-header:hover { background-color: #f9f9f9; }
.accordion-header.active { background-color: var(--cor-laranja); color: var(--cor-branco); }
.accordion-icon { font-size: 1.5rem; font-weight: bold; transition: transform 0.3s ease-out; }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; background-color: #fdfdfd; padding: 0 1.5rem; }
.accordion-content p { padding: 1.5rem 0; line-height: 1.6; border-top: 1px solid #eee; }
.supporters-section { background-color: var(--cor-branco); padding: 4rem 2rem; border-top: 1px solid #eee; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; align-items: center; }
.logo-item { text-align: center; }
.logo-item img { max-width: 100%; height: auto; }
.contact-wrapper { display: flex; gap: 3rem; background-color: #fff; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; flex-wrap: wrap;}
.contact-form { flex: 2; padding: 2.5rem; min-width: 300px;}
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;}
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; font-family: inherit; box-sizing: border-box;}
.contact-form textarea { resize: vertical; }
.form-button { width: 100%; margin-top: 1rem; }
.contact-info { flex: 1; background-color: var(--cor-laranja); color: var(--cor-branco); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 2rem; min-width: 300px;}
.info-item { display: flex; align-items: center; gap: 1rem; }
.info-item i { font-size: 1.5rem; }
.info-item p { margin: 0; line-height: 1.5; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--cor-branco); text-decoration: none; font-size: 1.2rem; }
.publication-list { max-width: 900px; margin: 0 auto; }
.publication-item { background-color: #fff; border: 1px solid #ddd; border-left: 5px solid var(--cor-laranja); border-radius: 8px; padding: 2rem; margin-bottom: 2rem; }
.publication-item h3 { font-size: 1.8rem; margin-top: 0; margin-bottom: 0.5rem; }
.publication-meta { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }
.publication-meta span { margin-right: 1rem; }
.publication-summary { line-height: 1.6; margin-bottom: 1.5rem; }
.cta-button.small { padding: 8px 16px; font-size: 0.9rem; }


/* --- RODAPÉ --- */
footer { background-color: var(--cor-preto); color: var(--cor-branco); padding: 3rem 2rem; width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-column { flex: 1; min-width: 300px; }
.footer-map iframe { width: 100%; height: 100%; min-height: 250px; border-radius: 8px; filter: invert(90%) hue-rotate(180deg); }
.footer-contact h4 { font-size: 1.5rem; color: var(--cor-laranja); margin-top: 0; margin-bottom: 1.5rem; }
.footer-contact .info-item { color: var(--cor-branco); margin-bottom: 1.5rem; }
.footer-contact .social-icons a { font-size: 1.5rem; }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0 auto; padding-top: 1.5rem; border-top: 1px solid #444; text-align: center; font-size: 0.9rem; color: #aaa; }


/* ======================================================= */
/* === ESTILOS RESPONSIVOS (CELULAR) === */
/* ======================================================= */
@media (max-width: 820px) {
    /* Esconde a navegação principal e mostra o botão hambúrguer */
    header nav {
        display: none;
        position: fixed;
        top: 80px;
        right: 0;
        background-color: rgba(3, 3, 3, 0.98);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    header nav.active {
        display: flex;
        transform: translateX(0);
    }
    header nav a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
    .hamburger-menu {
        display: block;
        font-size: 1.8rem;
        color: var(--cor-branco);
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* Ajustes de layout para empilhar conteúdo */
    .about-container,
    .project-item,
    .project-item.reverse-layout,
    .contact-wrapper,
    .footer-container {
        flex-direction: column;
    }

    /* Ajustes de fonte */
    .homepage .hero h1 { font-size: 2.5rem; }
    .about-content h2, .projects h2, .page-title h1, .page-title h2 { font-size: 2.2rem; }
}