/* ================= PAGINA PROJETOS ================= */

body.pagina-projetos {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

body.pagina-projetos main {
    margin-top: 0;
}

/* Header */
body.pagina-projetos .header {
    background: #14286a;
}

/* ================= SEÇÃO PROJETO ================= */

.projeto-section {
    position: relative;
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
}

.projeto-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,40,106,0.55);
    z-index: 1;
}

/* Conteúdo */
.projeto-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}

/* ================= MEDIA (IMAGEM / VIDEO) ================= */

.media-box {
    width: 320px;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0,0,0,0.35);
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VIDEO */
.media-box video {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #000;
}
/* ================= CARD ================= */

.projeto-card {
    background: rgba(255,255,255,0.95);
    padding: 45px;
    border-radius: 22px;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.projeto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 80px rgba(37,99,235,0.25);
}

.projeto-card h3 {
    font-size: 26px;
    font-weight: 600;
    color: #14286a;
    margin-bottom: 20px;
}

.projeto-card p {
    font-size: 16px;
    line-height: 1.7;
}

/* ================= ANIMAÇÃO SUTIL ================= */

.fade-up {
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVO ================= */

@media (max-width: 992px) {
    .projeto-content {
        flex-direction: column;
        text-align: center;
    }

    .media-box {
        width: 100%;
        max-width: 360px;
        height: 420px;
    }

    .projeto-card {
        padding: 35px;
    }
}

@media (max-width: 576px) {
    .projeto-card h3 {
        font-size: 22px;
    }

    .projeto-card p {
        font-size: 15px;
    }
}

/* ================= VIDEO BOX ================= */

/* FUNDO GERAL */
.pagina-projetos main {
   background: #0b0f19;
    padding: 120px 0;
}

/* SECTION */
.projeto-moderno {
    max-width: 1100px;
    margin: 0 auto 160px auto;
    padding: 0 20px;
}

/* IMAGEM GRANDE */
.projeto-imagem img {
    width: 100%;
    height: 380px; /* menor */
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* TEXTO */
.projeto-info {
    max-width: 750px;
    margin-bottom: 40px;
}

.projeto-info h2 {
    font-size: 42px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
}

.projeto-info p {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 18px;
}

/* VIDEO */
.projeto-video video {
    width: 30%;
    max-width: 400px;
    margin: 0;
    border-radius: 16px;
    display: block;
    border-radius: 16px;
    display: block;
}

@media (max-width: 768px) {

    .projeto-video video {
        width: 100%;
        max-width: none;
    }

    .projeto-imagem img {
        height: 320px;
    }

    .projeto-info h2 {
        font-size: 30px;
    }

    .projeto-info p {
        font-size: 16px;
    }

}

/* ================= DIVISÃO ENTRE PROJETOS ================= */

.projeto-moderno:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 120px;
    margin-bottom: 120px;
}