main {
    margin-bottom: 4rem;
}


/* ==========================================================================
   1. ESTRUTURA EDITORIAL DA VITRINE
   ========================================================================== */

.container-trabalhos {
    width: 100%;
    margin: 0 auto;
    padding-left: 4rem;  
    padding-right: 4rem;
}

.secao-trabalhos-titulo {
    color: #1a1a1a !important;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important; 
}

.subtitulo-trabalhos {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    color: #5a5a5a;
    line-height: 1.65;
    max-width: 700px;
}

.secao-trabalho-bloco {
    padding-top: 8rem;    
    padding-bottom: 8rem;
    width: 100%;
    transition: background-color 0.4s ease;
}

.trabalho-item-conteudo {
    max-width: 100%;
    display: flex;
    flex-direction: column; 
    gap: 3.5rem; 
}

/* Distribuição Assimétrica */
@media screen and (min-width: 1024px) {
    .trabalho-item-conteudo {
        flex-direction: row; 
        align-items: center;  
        gap: 6rem;
    }

    .trabalho-link-wrapper {
        flex: 0 0 65%; 
        width: 65%;
    }

    .trabalho-info {
        flex: 1; 
        margin-top: 0 !important; 
    }
}

.trabalho-info h2 {
    color: #1a1a1a !important;
    font-weight: 600;
    margin-bottom: 1.2rem !important;
    font-size: 2rem; 
}

.trabalho-info p {
    font-family: 'Lora', Georgia, serif;
    text-align: justify;
    line-height: 1.8;
    color: #4a4a4a;
    font-size: 1.15rem; 
    text-indent: 0 !important; 
}

/* ==========================================================================
   2. ALTERNÂNCIA DE CORES E LADOS
   ========================================================================== */

.secao-trabalho-bloco:nth-of-type(odd) { background-color: rgb(235, 224, 212); }
.secao-trabalho-bloco:nth-of-type(even) { background-color: rgb(250, 247, 244); }

@media screen and (min-width: 1024px) {
    .secao-trabalho-bloco:nth-of-type(even) .trabalho-item-conteudo {
        flex-direction: row-reverse;
    }
}

/* ==========================================================================
   3. COMPONENTE DE IMAGEM E ESTADOS DE ANIMAÇÃO
   ========================================================================== */

.trabalho-link-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
}

.trabalho-imagem-box {
    position: relative;
    width: 100%;
    height: 560px; 
    overflow: hidden;
    background-color: #1a1a1a; 
}

.trabalho-img-blindada,
.container-marca-dagua {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0.95;
}

.trabalho-img-blindada img {
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.trabalho-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.35); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.trabalho-btn-texto {
    position: relative; 
    font-family: 'Inter', sans-serif;
    color: rgb(244, 236, 228);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding-bottom: 6px;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.trabalho-btn-texto::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px; 
    background-color: currentColor; 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* --- Estados de Ativação (Gerenciados via JS) --- */
.trabalho-link-wrapper.is-active .trabalho-img-blindada,
.trabalho-link-wrapper.is-active .container-marca-dagua {
    transform: scale(1.015);
    opacity: 0.85;
}

.trabalho-link-wrapper.is-active .trabalho-overlay { opacity: 1; }
.trabalho-link-wrapper.is-active .trabalho-btn-texto { transform: translateY(0); }
.trabalho-link-wrapper.is-active .trabalho-btn-texto::after { transform: scaleX(1); }

/* ==========================================================================
   4. RESPONSIVIDADE
   ========================================================================== */

@media screen and (min-width: 1408px) {
    .container-trabalhos { max-width: 1650px !important; }
}

@media screen and (max-width: 1023px) {
    .container-trabalhos { padding-left: 2rem; padding-right: 2rem; }
    .trabalho-imagem-box { height: 340px; }
    .secao-trabalho-bloco { padding-top: 5rem; padding-bottom: 5rem; }
}

@media screen and (max-width: 768px) {
    .container-trabalhos { padding-left: 1.5rem; padding-right: 1.5rem; }
    .trabalho-imagem-box { height: 280px; }
    .trabalho-btn-texto { font-size: 0.95rem; }
}