/**
 * Estilos específicos para a galeria
 * Integrados ao sistema de design principal
 */

/* Seção de galeria */
.gallery-section {
    position: relative;
    overflow: hidden;
}

/* Filtros */
.gallery-filters {
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-filters .btn {
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active {
    background-color: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

/* Grid da galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards da galeria */
.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Mantém a proporção quadrada */
}

.gallery-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--text-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gallery-zoom:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

/* CTA Box */
.cta-section {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    margin-top: 3rem;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Animações */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .gallery-filters .btn {
        margin: 0.15rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-filters .btn {
        margin: 0.1rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .gallery-content h4 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

