html {
    height: 100%;
}

/* Mobile-first background */
body.body-home {
    background-image: image-set(
        url("../img/home_img_mobile.366071697a74.webp") type("image/webp"),
        url("../img/home_img_mobile.33caff0af601.png") type("image/png")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Desktop override */
@media (min-width: 992px) {
    body.body-home {
        background-image: image-set(
            url("../img/home_img_desktop.0a156e8329af.webp") type("image/webp"),
            url("../img/home_img_desktop.65d01d22f855.png") type("image/png")
        );
    }
}

/* ── Mobile: pin logo centred in the full viewport ── */
body.body-home #fade-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* above background, below nav (z-index: 999) */
    pointer-events: none;
}

/* ── Desktop: hide mobile logo overlay ──
   Must match specificity of the rule above so the media query wins. */
@media (min-width: 992px) {
    body.body-home #fade-div {
        display: none;
    }
}

body.body-home #centro {
    max-width: 68vw;
    height: auto;
    animation: fadein 2s;
    -moz-animation: fadein 2s;
    -webkit-animation: fadein 2s;
    -o-animation: fadein 2s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-moz-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-o-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
