.hero {
    position: relative;
    background: url('../../images/hero/luisdeputado1.jpeg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    /* Ajusta a altura para considerar o header */
    height: calc(100vh - var(--header-height, 0px));
    margin-top: var(--header-height, 0px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.7)
    );
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ajustes responsivos */
@media (max-width: 991.98px) {
    .hero {
        min-height: calc(100vh - 76px); /* Ajuste para header menor em tablets */
        margin-top: 76px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: calc(100vh - 60px); /* Ajuste para header ainda menor em mobile */
        margin-top: 60px;
    }
    
    .hero .display-3 {
        font-size: 2.5rem; /* Texto menor em mobile */
    }
    
    .hero .display-6 {
        font-size: 1.5rem;
    }
}

/* Ajuste para telas muito baixas (landscape em celulares) */
@media (max-height: 600px) {
    .hero {
        min-height: calc(100vh - 60px);
        padding: 4rem 0;
    }
}
