#pagina-projetos {
    background: white;
    min-height: 60vh;
}
body {
    background: white;
}
#titulo-projetos {
    font-family: 'Cunia', sans-serif;
    color: #2c688b;
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
}

/* GRADE */
.grade-projetos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projeto-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    border: 1px solid #d0e4f0;  /* borda azul suave */
}

.projeto-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(44, 104, 139, 0.25);
}

.projeto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.projeto-card:hover img {
    transform: scale(1.06);
}

.projeto-nome {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #2c688b;
    font-family: 'Trebuchet MS', sans-serif;
}

/* CARROSSEL */
#carrossel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
}

#carrossel-overlay.ativo {
    display: flex;
}

#carrossel-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
}

#carrossel-img {
    max-height: 75vh;
    max-width: 80vw;
    border-radius: 8px;
    object-fit: contain;
}

#carrossel-nome {
    color: white;
    margin-top: 16px;
    font-size: 18px;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
}

.carrossel-seta {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 36px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    line-height: 1;
}

.carrossel-seta:hover {
    background: rgba(255,255,255,0.3);
}

.carrossel-fechar {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s;
}

.carrossel-fechar:hover {
    opacity: 0.7;
}

/* NAVBAR ATIVO */
#navbar a.ativo {
    border-bottom: 2px solid #2c688b;
    color: #1a4a6b;
}

/* MOBILE */
@media (max-width: 768px) {
    .grade-projetos {
        grid-template-columns: repeat(2, 1fr);
    }

    #titulo-projetos {
        font-size: 28px;
    }

    .carrossel-seta {
        font-size: 24px;
        padding: 10px 14px;
    }

    #carrossel-img {
        max-width: 90vw;
    }
}