/* --- SECÇÃO HERO COM SLIDER --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end; /* MUDANÇA: Alinha o conteúdo mais para baixo (fundo da secção) */
    overflow: hidden;
    padding-top: 35px; 
    padding-bottom: 40px; /* MUDANÇA: Dá um respiro elegante na parte inferior */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    color: white;
    /* Se quiser controlar a altura exata manualmente em píxeis a partir do fundo, 
       pode descomentar a linha abaixo: */
    /* transform: translateY(20px); */
}
/* Imagens de Fundo */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Overlay para escurecer a imagem e destacar o texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.2) 100%); 
    z-index: 2;
}

.hero-text-slider {
    position: relative;
    min-height: 220px;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;      /* NOVO — centra o texto dentro de cada caixa */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s ease-in-out;
}

.hero-text.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-tag {
    display: inline-block;
    background-color: #e31e24;
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 3px;
    margin: 0 auto 15px;      /* alterado — centra a caixa do tag também */
    text-transform: uppercase;
    visibility: hidden;
}

.hero-text h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 15px;       /* alterado — era só margin-bottom */
    max-width: 800px;
}

.hero-text p {
    font-size: 18px;
    font-weight: 300;
    color: #e0e0e0;
    margin: 0 auto;            /* NOVO — esta é a linha que faltava */
    max-width: 650px;
}

/* Indicadores de Progresso (inspirados na sua imagem de referência) */
.hero-indicators {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.indicator {
    width: 50px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Linha de progresso animada no indicador ativo */
.indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e31e24;
    animation: progressAnimation 6s linear infinite;
}

@keyframes progressAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* Responsividade da Hero para Telemóveis */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-text p {
        font-size: 15px;
    }
    .indicator {
        width: 35px;
    }

    .hero{
        margin-bottom: 0;
    }
}