/* Estilos para cabeçalho com fundo parallax */

/* Aplicação do parallax para a seção page-hero */
.page-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin-top: 80px;
    overflow: hidden; /* Importante para conter o background */
    background-image: none; /* Remover background existente */
    background-color: rgba(20, 33, 61, 0.4); /* Fundo semi-transparente */
}

/* Estilo do fundo parallax */
.page-hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/cabecalhos/titles.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Isso cria o efeito parallax */
    z-index: -1; /* Posicionar atrás do conteúdo */
}

/* Camada de overlay para escurecer a imagem */
.page-hero:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 33, 61, 0.65); /* Azul escuro semi-transparente */
    z-index: -1; /* Posicionar atrás do conteúdo, mas na frente da imagem */
}

.page-hero-content {
    position: relative;
    z-index: 2; /* Garantir que o conteúdo fique acima das camadas de fundo */
    max-width: 800px;
    color: var(--light-text);
    padding: 0 20px;
}

.page-hero-content h1 {
    color: var(--light-text);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra suave no texto */
}

.page-hero-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Sombra suave no texto */
}

/* Ajustes para dispositivos móveis onde parallax pode não funcionar bem */
@media (max-width: 768px) {
    .page-hero:before {
        background-attachment: scroll; /* Voltar para scroll normal em dispositivos móveis */
    }
} 