/* ========================= */
/* HERO */
/* ========================= */

.hero-projetos {
    padding: 8rem 0 6rem;
    text-align: center;
    color: #fff;
    top: -20px;
    margin-bottom: -20px;
}

.page-wrapper .section-proj{
    background: var(--slt-light);
    margin-bottom:70px;
}

.background-bg{
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.background-bg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-projetos h1 {
    font-size: 44px;
    font-weight: 800;
    color: #000;
}

.hero-projetos p {
    font-size: 20px;
    opacity: 0.75;
    margin-top: 10px;
    color: #000;
}

.container .hero-subtext{
    margin-left:0 !important;
}

.container-proj{
    width: min(1000px, 100%);
    margin: 0 auto;
    text-align:justify;
}

/* ========================= */
/* SEÇÕES */
/* ========================= */

.section-proj {
    margin-top: -80px;
    padding: 1rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slt-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.section-subtitle {
    color: var(--slt-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================= */
/* GRUPOS DE PROJETOS */
/* ========================= */

.project-group {
    margin-top: -70px;
    margin-bottom: 6rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--slt-dark);
    text-align: center;
}

/* ========================= */
/* GRID DE PROJETOS */
/* ========================= */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.project-card img {
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    object-fit: cover;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

/* ZOOM SUAVE */
.project-card:hover img {
    transform: scale(1.08);
}

/* ========================= */
/* CTA FINAL */
/* ========================= */

.cta-projetos {
    background: var(--slt-light);
    text-align: center;
    padding: 6rem 0;
}

.cta-projetos .btn-primary {
    margin-top: 1rem;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1rem;
    }
    .section-proj {
    top: 20px;
}

.project-description{
    text-align: center;
    font-size: 15px;
}

.container-proj p{
    margin-left: 20px;
    margin-right: 20px;
    text-align:justify;
    margin-top:-30px;
}

}

.project-slider{
    position:relative;
    margin-top:20px;
    margin-bottom:50px;
    overflow:hidden;
}

.project-slide{
    display:none;
}

.project-slide.active{
    display:block;
}

.project-slide img{
    width:100%;
    height:500px;
    object-fit:contain;
    border-radius:15px;
}

.project-prev,
.project-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.5);
    color:#fff;
    border:none;
    width:50px;
    height:50px;
    cursor:pointer;
}

.project-prev{ left:15px; }
.project-next{ right:15px; }
