:root {
    --bg-dark-core: #090b14;
    --bg-sidebar: #0f1222;
    --bg-card: #15192d;
    --cyan-neon: #00f0ff;
    --blue-neon: #0072ff;
    --purple-neon: #8a2be2;
    --magenta-neon: #ff007f;
    --yellow-warning: #ffd700;
    --text-primary: #f0f4f8;
    --text-muted: #a0aec0;
    --text-dim: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-scale: 1rem;
}

/* ALTO CONTRASTE */
body.high-contrast {
    --bg-dark-core: #000000 !important;
    --bg-sidebar: #050505 !important;
    --bg-card: #111111 !important;
    --cyan-neon: #00ffff !important;
    --blue-neon: #3388ff !important;
    --purple-neon: #d000ff !important;
    --magenta-neon: #ff0055 !important;
    --yellow-warning: #ffff00 !important;
    --text-primary: #ffffff !important;
    --text-muted: #e0e0e0 !important;
    --border-subtle: #ffffff !important;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    font-size: var(--font-scale); 
}

body.cyber-theme {
    background-color: var(--bg-dark-core);
    color: var(--text-primary);
    font-family: var(--font-body);
    display: flex;
    min-height: 100vh;
}

/* FIXAR O TITULO DA PÁGINA / BANNER NO TOPO */
.banner-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background-color: var(--bg-dark-core);
    backdrop-filter: blur(10px);
}

/* Evita que o conteúdo da página passe por cima dos botões de acessibilidade */
.accessibility-bar {
    z-index: 1000;
}

/* BARRA DE ACESSIBILIDADE */
.accessibility-bar {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    background: rgba(15, 18, 34, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.accessibility-bar button {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.accessibility-bar button:hover {
    border-color: var(--cyan-neon);
    color: var(--cyan-neon);
}

/* SIDEBAR E CABEÇALHO FIXO */
.sidebar-navigation {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}

.sidebar-header { 
    padding: 1.8rem 1.5rem; 
    border-bottom: 1px solid var(--border-subtle); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo { 
    font-family: var(--font-heading); 
    font-size: 1.3rem; 
    font-weight: 900; 
    color: #fff; 
    text-decoration: none; 
}

.brand-edition { 
    color: var(--cyan-neon); 
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.nav-menu { 
    flex: 1; 
    padding: 1.5rem 0; 
    overflow-y: auto;
}

 .nav-list { 
    list-style: none;
}

.nav-link, .dropdown-btn {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 0.85rem 1.5rem;
    color: var(--text-muted); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem;
    border-left: 3px solid transparent; 
    background: transparent; 
    border: none; 
    width: 100%; 
    cursor: pointer; 
    text-align: left;
}

.nav-link:hover, .nav-link.active { 
    color: #fff; 
    background: rgba(0, 240, 255, 0.06); 
    border-left-color: var(--cyan-neon); 
}

.dropdown-menu { 
    list-style: none; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
    background: rgba(0, 0, 0, 0.2); 
}

.dropdown.open .dropdown-menu {
     max-height: 200px; 
}

.dropdown-menu .nav-link { 
    padding-left: 3.2rem; 
    font-size: 0.88rem; 
}

.sidebar-footer { 
    padding: 1.2rem 1.5rem; 
    border-top: 1px solid var(--border-subtle); 
    font-size: 0.75rem; 
    color: var(--text-dim); 
    text-align: center; 
}

.main-content { 
    margin-left: 280px; 
    flex: 1; 
    min-height: 100vh; 
}

.page-section { 
    display: none; 
}

.page-section.active { 
    display: block; 
    animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* DIFERENCIAÇÃO DE SEÇÕES E BANNERS */

.banner-header {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-height: 260px; /* Mantém um limite máximo para não ocupar a tela toda */
    overflow: hidden;
    border-bottom: 2px solid var(--cyan-neon);
    background: #0d111d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain; /* Exibe a imagem inteira sem cortar texto ou arte */
    object-position: center;
}

.banner-placeholder { 
    display: none !important; 
}

.banner-fallback-title { 
    display: none; 
    padding: 3rem 2rem; 
    text-align: center; 
    background: linear-gradient(135deg, #150030 0%, #00122e 100%); 
}

.banner-img.banner-placeholder + .banner-fallback-title { 
    display: block; 
}

.banner-fallback-title h1 { 
    font-family: var(--font-heading); 
    color: var(--cyan-neon); 
}


/* Variações Sutis de Cores por Seção */
#home { 
    background: linear-gradient(180deg, rgba(0,240,255,0.02) 0%, transparent 100%); 
}

#regulamento-robotica { 
    background: linear-gradient(180deg, rgba(138,43,226,0.04) 0%, transparent 100%); 
}

#regulamento-robotica .banner-header { 
    border-bottom-color: var(--purple-neon); 
}

#regulamento-programacao { 
    background: linear-gradient(180deg, rgba(0,114,255,0.04) 0%, transparent 100%); 
}

#regulamento-programacao .banner-header { 
    border-bottom-color: var(--blue-neon); 
}

#inscricoes { 
    background: linear-gradient(180deg, rgba(255,0,127,0.03) 0%, transparent 100%); 
}

#inscricoes .banner-header { 
    border-bottom-color: var(--magenta-neon); 
}

.content-wrapper { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 3rem 2rem; 
}

.callout-content {
    width: 100%;
}

.map-container {
    margin-top: 1.2rem;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

.badge-neon { 
    display: inline-block; 
    padding: 4px 14px; 
    background: rgba(0, 240, 255, 0.12); 
    border: 1px solid var(--cyan-neon); 
    color: var(--cyan-neon); 
    border-radius: 20px; 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 0.8rem; 
}

.section-title-group h2 { 
    font-family: var(--font-heading); 
    font-size: 2rem; 
    color: #fff; 
    margin-bottom: 0.8rem; 
}

.lead-text { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    line-height: 1.7; 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.5rem; 
    margin: 2.5rem 0; 
}

.info-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-subtle); 
    border-radius: 12px; 
    padding: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1.2rem; 
}

.info-icon { 
    font-size: 2.2rem; 
}

.info-body h3 { 
    font-size: 0.85rem; 
    color: var(--text-dim); 
    text-transform: uppercase; 
}

.info-body p { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #fff; 
}

.callout-box { 
    background: var(--bg-card); 
    border-radius: 12px; 
    padding: 2rem; 
    display: flex;
    gap: 1.5rem; 
    margin-top: 2.5rem; 
    border-left: 4px solid var(--cyan-neon); 
}

.callout-box.alert-border { 
    border-left-color: var(--yellow-warning); 
}

.callout-box.alert-border-maior { 
    border-left-color: var(--magenta-neon); 
}

.callout-icon { 
    font-size: 2.5rem; 
}

.btn-primary { 
    display: inline-block; 
    padding: 0.85rem 1.8rem; 
    background: linear-gradient(90deg, var(--blue-neon), var(--purple-neon)); 
    color: #fff; 
    font-weight: 700; 
    text-decoration: none; 
    border-radius: 8px; 
    margin-top: 1rem; 
}

.btn-secondary { 
    display: inline-block; 
    padding: 0.75rem 1.4rem; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border-subtle); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 6px; 
    margin-top: 0.8rem; 
}

.btn-download-pdf { 
    display: inline-flex; 
    padding: 1rem 1.8rem; 
    background: rgba(255, 0, 127, 0.1); 
    border: 1px solid var(--magenta-neon); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 700; 
}


.warning-alert { 
    background: rgba(255, 215, 0, 0.06); 
    border: 1px solid var(--yellow-warning); 
    border-radius: 10px; 
    padding: 1.5rem; 
    margin: 2rem 0; 
}

.alert-header h3 { 
    color: var(--yellow-warning); 
    font-family: var(--font-heading); 
}

.ganhadores-alert { 
    background: rgba(255, 215, 0, 0.06); 
    border: 1px solid var(--magenta-neon); 
    border-radius: 10px; 
    padding: 1.5rem; 
    margin: 2rem 0; 
}


.categories-grid, .awards-grid, .contacts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 2.5rem; 
}

.category-card, .award-card, .contact-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-subtle); 
    border-radius: 14px; 
    padding: 2rem; 
}

.category-badge, .contact-tag { 
    font-size: 0.95rem; 
    color: var(--cyan-neon); 
    text-transform: uppercase; 
}

.category-icon, .award-trophy { 
    font-size: 3rem; 
    margin: 0.8rem 0; 
}

.btn-action { 
    display: block; 
    text-align: center; 
    padding: 0.85rem; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border-subtle); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 8px; 
    margin-top: 1rem; 
}

/* 1. LARGURA DO CARROSSEL */

.gallery-slider-container { 
    position: relative; 
    max-width: 1000px; 
    margin: 2rem auto; 
    border-radius: 14px; 
    overflow: hidden; 
    background: #000; 
}

.slider-wrapper { 
    height: 600px; 
    position: relative; 
}

.slide-item { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 0.5s; 
}

.slide-item.active { 
    opacity: 1; 
}

.slide-item img { width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.slide-item figcaption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: rgba(0,0,0,0.8); 
    padding: 1rem; 
    text-align: center; 
    color: #fff; 
}

.slider-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.7); 
    color: var(--cyan-neon); 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
}

.slider-btn.prev { 
    left: 10px; 
}

.slider-btn.next { 
    right: 10px; 
}

@media (max-width: 900px) {
    .slider-wrapper { 
        height: 300px; /* Altura confortável para a tela do celular */
    }
}

.contact-card-header { 
    background: rgba(255,255,255,0.03); 
    padding: 1rem; 
    margin: -2rem -2rem 1.5rem -2rem; 
    border-bottom: 1px solid var(--border-subtle); 
}

.person-name { 
    font-size: 1.2rem; 
    font-weight: bold; 
    margin-bottom: 1rem; 
}

.contact-details-list { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 0.6rem; 
}

.contact-details-list a { 
    color: var(--text-primary); 
    text-decoration: none; 
}

/* RODAPÉ DE PATROCINADORES */
.sponsors-footer {
    width: 100%;
    background: rgba(15, 18, 34, 0.6);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

.sponsors-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sponsors-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 600;
}

.sponsors-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.sponsor-logo {
    max-height: 90px;
    width: auto;
    opacity: 0.9;
    filter: gray    scale(25%);
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse para dar destaque discreto */
.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    max-height: 99px;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .sponsors-logos {
        gap: 1.2rem;
    }
    
    .sponsor-logo {
        max-height: 28px;
    }
}


/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 900px) {
    .sidebar-navigation {
        width: 100%;
        height: auto;
        bottom: auto;
        position: fixed;
        top: 0;
    }

    .mobile-toggle { display: flex; }

    .nav-menu {
        display: none;
        max-height: 70vh;
    }

    .sidebar-navigation.mobile-open .nav-menu {
        display: block;
    }

    .sidebar-footer { display: none; }

    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .accessibility-bar {
        top: 80px;
        right: 10px;
    }

    .content-wrapper { padding: 1.5rem 1rem; }
    .slider-wrapper { height: 260px; }
}

/* CARD DO PLAYER DE ÁUDIO */
.audio-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--purple-neon);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-icon {
    font-size: 1.8rem;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid var(--purple-neon);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-details {
    display: flex;
    flex-direction: column;
}

.audio-tag {
    font-size: 1.0rem;
    text-transform: uppercase;
    color: var(--cyan-neon);
    letter-spacing: 1px;
    font-weight: 700;
}

.audio-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-top: 2px;
}

/* ESTILIZAÇÃO DO CONTROLE NATIVO DE ÁUDIO */
.custom-audio-element {
    height: 40px;
    outline: none;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

/* Suporte visual para navegadores baseados em WebKit (Chrome, Edge, Brave, Opera) */
.custom-audio-element::-webkit-media-controls-panel {
    background-color: rgba(15, 18, 34, 0.9);
    border: 1px solid var(--border-subtle);
}

.custom-audio-element::-webkit-media-controls-current-time-display,
.custom-audio-element::-webkit-media-controls-time-remaining-display {
    color: var(--text-muted);
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .audio-player-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-audio-element {
        width: 100%;
        max-width: 100%;
    }
}