/* ============================================= */
/* CSS - CORRIDA EQUATORIAL (VERSÃO MENU LATERAL) */
/* ============================================= */

/* --- 1. FONTES, VARIÁVEIS E ESTILOS GLOBAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Poppins:wght@400;500;700&display=swap');

:root {
    --primary-color: #FF6B00; /* Laranja Forte */
    --secondary-color: #375da8; /* Azul do layout de referência */
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
    --text-color: #555;
    --sidebar-width: 280px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    font-weight: 700;
}

/* --- 2. LAYOUT PRINCIPAL (SIDEBAR + CONTEÚDO) --- */
.site-container {
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 2rem;
}

/* --- 3. ESTILOS DO MENU LATERAL (SIDEBAR) --- */
.sidebar-logo {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}
.sidebar-logo img { max-width: 100%; height: auto; }

.sidebar-nav .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem; 
    font-weight: 500;
    color: var(--secondary-color);
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto; /* Empurra o rodapé para o final */
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.sidebar-footer a:hover { text-decoration: underline; }

/* --- 4. NAVBAR RESPONSIVA (PARA TELAS PEQUENAS) --- */
.responsive-navbar {
    display: none; /* Oculto em desktops */
    background-color: var(--secondary-color) !important;
}
.responsive-navbar .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    color: #fff !important;
    font-weight: 900;
}
.responsive-navbar .navbar-brand span { color: var(--primary-color); }

/* --- 5. ESTILOS DA PÁGINA HOME --- */
.home-banner {
    /* Cor de fundo azul (#375da8) com 85% de opacidade sobre a imagem */
    background-image: linear-gradient(rgba(55, 93, 168, 0.85), rgba(55, 93, 168, 0.85)), url('../img/foto1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 4rem 2rem 10rem 2rem; /* Aumenta o padding inferior para dar espaço */
    border-radius: 10px;
    text-align: center;
}
.home-banner .corrida-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.home-banner .equatorial-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}
.home-banner .equatorial-title img {
    max-width: 100%;
    height: auto;
}

.home-banner .event-icons i {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: var(--primary-color);
}
.home-banner .event-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.home-banner .info-block {
    background-color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Adiciona posicionamento para as imagens de fundo */
.home-banner {
    position: relative;
    overflow: hidden; 
}

/* Posiciona a imagem no canto superior direito */
.home-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;  /* Ajuste a largura conforme necessário */
    height: 300px; /* Ajuste a altura conforme necessário */
    background-image: url('../img/LINHAS\ LARANJA.png');
    background-size: cover;
    background-repeat: no-repeat;
    /* Gira a imagem para a posição correta */
    transform: rotate(180deg) translateX(0%); 
}

/* Posiciona a imagem no canto inferior esquerdo */
.home-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;  /* Ajuste a largura conforme necessário */
    height: 500px; /* Ajuste a altura conforme necessário */
    background-image: url('../img/LINHAS\ LARANJA.png');
    background-size: cover;
    background-repeat: no-repeat;
     /* Gira e posiciona a imagem no canto oposto */
    transform: rotate(360deg) translateX(-1%) translateY(10%);
}

/* Nova classe para a imagem "ELEMENTOS" */
.home-banner-elements {
    position: absolute;
    bottom: 0;
    left: 80%;
    transform: translateX(-50%); /* Centraliza o elemento */
    width: 120%; /* Faz o elemento ser mais largo que o banner */
    height: 50px; /* Altura do elemento gráfico */
    background-image: url('../img/ELEMENTOS.png');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: center;
    z-index: 1; /* Garante que fique atrás do texto mas acima do fundo */
}

/* --- ESTILOS DO NOVO LAYOUT DE INFORMAÇÕES DO EVENTO --- */

/* Modifica o container principal dos detalhes */
.home-banner .event-details {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 2rem;
    margin-top: -1rem;
    flex-wrap: wrap;
    position: relative; /* Garante que o texto fique sobre as imagens */
    z-index: 2;
}

/* Estilo para os textos "11 OUT" e "18h" */
.event-info-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

/* Container para empilhar os blocos de 5Km e 10Km */
.event-distances {
    display: flex;
    flex-direction: row; /* Coloca os itens lado a lado */
    gap: 1.5rem;
    margin-top: -2rem; /* Sobe os blocos de distância */
}

/* Ajuste fino no info-block para o novo layout */
.home-banner .info-block {
    font-size: 2.5rem; /* Aumenta o tamanho da fonte */
    padding: 0.8rem 2.5rem; /* Aumenta o preenchimento interno */
    margin: 0; 
    min-width: 150px; /* Define uma largura mínima */
    text-align: center;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .home-banner {
        padding: 3rem 1.5rem; /* Reduz o padding em telas menores */
    }
    .home-banner .equatorial-title {
        font-size: 2.5rem; /* Reduz o título principal */
    }
    .event-info-text {
        font-size: 2rem;
    }
    .home-banner .event-details {
        gap: 1rem;
        margin-top: 1rem; /* Restaura a margem */
    }
    .event-distances {
        margin-top: 0; /* Remove a margem negativa */
    }
    /* Oculta todos os elementos gráficos decorativos em telas pequenas */
    .home-banner::before, .home-banner::after, .home-banner-elements {
        display: none; 
    }
}

/* --- 6. ESTILOS GERAIS DE CONTEÚDO --- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.page-header.page-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- 7. RESPONSIVIDADE --- */
@media (max-width: 991.98px) {
    .sidebar {
        display: none; /* Oculta o menu lateral */
    }
    .responsive-navbar {
        display: flex; /* Mostra a navbar do topo */
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
    .home-banner .equatorial-title {
        font-size: 3rem;
    }
    .home-banner .info-block {
        font-size: 1.2rem;
    }
    .page-header.page-header-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* --- 8. ESTILOS DA PÁGINA KIT ATLETA --- */
.kit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.kit-gallery img {
    width: 100%;
    transition: transform 0.2s ease-in-out;
}
.kit-gallery img:hover {
    transform: scale(1.05);
}

.content-bg-lines-wrapper {
    position: relative;
    z-index: 1;
}

.content-bg-lines-wrapper::after {
    content: '';
    position: absolute;
    top: -150px; /* Começa um pouco acima do topo */
    right: -100px; /* Desloca para a direita */
    width: 500px;
    height: 120%; /* Garante que cubra toda a altura */
    background-image: url('../img/LINHAS LARANJA.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1; /* Coloca a imagem atrás do conteúdo */
    transform: rotate(180deg) translateX(10%); 
}

@media (max-width: 991.98px) {
    /* Ajusta o wrapper do conteúdo para não ter a imagem de fundo em telas menores */
    .content-bg-lines-wrapper {
        padding-top: 0;
    }
    .content-bg-lines-wrapper::after {
        display: none;
    }
}
/* --- 9. EFEITO DE LUPA (ZOOM) PARA IMAGEM --- */
.img-zoom-container {
    position: relative;
}

.img-zoom-loupe {
    position: absolute;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    /* Esconde a lupa por padrão */
    display: none;
    /* Garante que a lupa não capture eventos do mouse */
    pointer-events: none;
    z-index: 10; /* Garante que a lupa fique na frente da imagem */
}

/* --- 10. CLASSES UTILITÁRIAS --- */
.btn-brand {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-brand:hover {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
}

.btn-dark-solid {
    background-color: #333 !important;
    color: #fff !important;
}

.icon-brand {
    color: var(--primary-color);
}

.card-outline-brand {
    border: 3px solid var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.gallery-image-outline {
    border: 3px solid var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.card-transparent {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.kit-item-list .list-group-item {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    border: none; /* Remove as linhas divisórias */
}

/* --- 11. ESTILOS PÁGINA ENERGIA VOLUNTÁRIA --- */
.interlaced-circles-container {
    position: relative;
    width: 100%; 
    max-width: 480px; /* Aumentado para acomodar os círculos maiores */
    height: 400px; /* Altura ajustada para o novo layout */
    margin: 0 auto;
}

.circle-image {
    position: absolute;
    width: 220px; /* Círculos maiores */
    height: 220px; /* Círculos maiores */
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nova disposição triangular */
.circle-1 {
    top: 0;
    left: 0;
    z-index: 1;
}
.circle-2 { 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.circle-3 { 
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* Ajustes para os círculos em telas menores */
@media (max-width: 576px) {
    .interlaced-circles-container {
        height: 320px; /* Reduz a altura do container */
    }
    .circle-image {
        width: 160px; /* Reduz o tamanho dos círculos */
        height: 160px;
        border-width: 4px;
    }
    .circle-2 {
        /* Ajusta a posição do círculo central para não sobrepor tanto */
        top: 50%;
        left: 50%;
    }
}