/* =========================================================
   HERO IMAGE — responsivo
   Proporção original: 1672 x 941
   ========================================================= */

.hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.visual-frame {
    position: relative;
    width: 100%;
    max-width: 780px;
    min-width: 0;
    aspect-ratio: 1672 / 941;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    background-color: #f1f5f9;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .visual-frame {
        max-width: 680px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
        min-width: 0;
    }

    .visual-frame {
        max-width: 100%;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);

        /* Faixa horizontal mais baixa */
        aspect-ratio: 16 / 9;
    }

    .hero-image {
        object-fit: cover;
        object-position: center;
    }
}

/* Telemóveis pequenos */
@media (max-width: 480px) {
    .visual-frame {
        /* Continua horizontal, mas um pouco mais alta */
        aspect-ratio: 3 / 2;
    }
}