/* --- Contraste e Tipografia --- */
.page-home h1, .page-home h2 {
    color: #1a1a1a !important;
}

.page-home h2 {
    font-size: 2rem !important;
}

.hero-subtitle {
    color: #4a4a4a !important;
}

/* --- Hero Section --- */
.section-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
}

.cta-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.btn-main {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.btn-main:hover {
    opacity: 0.8;
    color: #fff;
}

/* --- Manifesto Section --- */
.section-manifesto {
    padding: 6rem 1.5rem;
    background-color: #f7f2ed;
}

.container-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.link-interno {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* --- Projetos em Destaque --- */
.section-destaques {
    padding: 5rem 0;
}

.destaque-titulo {
    text-align: center;
    margin-bottom: 3rem !important;
}

.projeto-card {
    max-width: 1000px; /* Aumentamos a largura máxima do container do projeto */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%; /* Ocupa 90% da largura da tela em dispositivos menores */
}

.projeto-info {
    margin-top: 2rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Motor de Animação (Integrado ao trabalho-link-wrapper) --- */
.trabalho-imagem-box {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.trabalho-img-blindada {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0.95;
}

.trabalho-img-blindada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.trabalho-btn-texto {
    position: relative;
    font-family: 'Inter', sans-serif;
    color: #f4ece4;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    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);
}

.trabalho-link-wrapper {
    width: 100%;
    max-width: 1000px; /* Ou o tamanho exato que você desejar */
}

/* Força o container de trabalhos na Home a ter a mesma largura da página de trabalhos */
.section-destaques .container-trabalhos {
    width: 100%;
    margin: 0 auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

/* Se você quiser que o card ocupe o mesmo espaço que os cards de "Trabalhos" */
.projeto-card {
    max-width: 100% !important; 
    display: block !important; /* Remove o flex centralizador antigo */
    /* text-align: center; */
}

/* Em telas grandes, ajustamos para ficar amplo como em trabalhos */
@media screen and (min-width: 1024px) {
    .projeto-card {
        padding: 0 10%; /* Ajuste fino para não colar nas bordas, se desejar */
    }
}

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

/* --- Estados ATIVOS (O JavaScript aplica a classe .is-active e o CSS reage) --- */
.trabalho-link-wrapper.is-active .trabalho-img-blindada {
    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);
}

/* Opcional: Se quiser que ela fique gigante mesmo em monitores muito largos */
@media screen and (min-width: 1024px) {
    .trabalho-link-wrapper {
        width: 100%; /* Removemos o limite de 65% */
    }
}

@media screen and (max-width: 768px) {
    .btn-main {
        width: 100%;
        text-align: center;
        padding: 1.2rem 1rem !important;
    }
    .trabalho-imagem-box {
        height: 340px;
    }
}