/* 
sobre====================================================================================================================================================================================
*/
/* ============================= */
/* HOME - SOBRE */
/* ============================= */
.home-sobre {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url('../img/team/4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Overlay escurecido */
.home-sobre .overlay {
    background: rgba(0, 0, 0, 0.45);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-sobre h2 {
    color: #fff;
    font-size: 4rem;
    letter-spacing: 6px;
    font-weight: 600;
    padding-top: 5%;
    text-transform: uppercase;
}

/* Parallax apenas em desktop */
@media (min-width: 992px) {
    .home-sobre {
        background-attachment: fixed;
    }
}

/* Corrige o bug em iPhone e Android */
@media (max-width: 991px) {
    .home-sobre {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Ajuste de tamanho de texto em mobile */
@media (max-width: 700px) {
    .home-sobre h2 {
        font-size: 2rem;
    }
}

.galeria {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 10px;
}

/* Masonry layout real */
.galeria-grid {
    column-count: 4;
    column-gap: 10px;
}

.galeria-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item img {
    width: 100%;
    height: auto;
    /* mantém proporção real */
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

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

.galeria-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Responsivo */
@media (max-width: 1024px) {
    .galeria-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        column-count: 1;
    }
}