/* === ESTILOS DA PÁGINA DE GALERIA === */

/* Filtros da Galeria */
.filtros-galeria {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 12px 28px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filtro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filtro-btn.ativo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Grid de Galeria com CSS Grid Avançado */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Item grande ocupa 2 colunas e 2 linhas */
.galeria-item-grande {
    grid-column: span 2;
    grid-row: span 2;
}

/* Items da Galeria */
.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* Overlay com Glassmorphism */
.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(5px);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.galeria-overlay p {
    font-size: 0.95em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-ver-mais {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-ver-mais:hover {
    background: white;
    color: #333;
    transform: translateX(5px);
}

/* Modal/Lightbox Moderno */
.modal-galeria {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-conteudo {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 70vh;
    margin-top: 5vh;
    border-radius: 10px;
    animation: zoomIn 0.3s;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 700px;
    margin: 20px auto;
}

.modal-caption h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.modal-caption p {
    font-size: 1.1em;
    opacity: 0.9;
}

.fechar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fechar-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navegação do Modal */
.modal-navegacao {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.nav-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Seção de Estatísticas com Contadores Animados */
.estatisticas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.estatisticas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.estatisticas h3 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: bold;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-numero {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade da Galeria */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .galeria-item-grande {
        grid-column: span 1;
        grid-row: span 1;
    }

    .modal-conteudo {
        max-width: 95%;
        max-height: 60vh;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-numero {
        font-size: 2em;
    }

    .filtros-galeria {
        padding: 0 10px;
    }

    .filtro-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-navegacao {
        flex-direction: column;
        gap: 10px;
    }

    .estatisticas {
        padding: 40px 15px;
    }
}