*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --app-height: 100vh;
}

@font-face {
    font-family: 'MonumentExtended';
    src: url("../fonts/MonumentExtended-Ultrabold.otf") format("opentype");
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ========== MAIN LAYOUT ========== */
.page-wrapper {
    position: relative;
    width: 100vw;

    height: var(--app-height, 100svh);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    padding-bottom: env(safe-area-inset-bottom);
}

/* ─── TOP HALF: sandy warm ─── */
.half-top {
    position: relative;
    width: 100%;
    height: 50%;
    background-image:       linear-gradient(
            rgb(29 54 101 / 0.2),
            rgb(29 54 101 / 0.2)
    ), url('../images/azur-background-image.jpg');
    background-size: cover;
    background-position: center 58%;
}

/* ─── BOTTOM HALF: sea blue ─── */
.half-bottom {
    position: relative;
    width: 100%;
    height: 50%;


    background-image:       linear-gradient(
            rgb(220 107 5 / 0.2),
            rgb(220 107 5 / 0.2)
    ), url('../images/benthos-background-image.jpg');
    background-size: cover;
    background-position: center 20%;
}

/* ─── MOBILE BACKGROUND VIDEO (Vimeo) ─── */
.mobile-video-bg {
    display: none;
}

/* ========== CENTER COLUMN ========== */
.center-column {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    min-width: 320px;
    max-width: 610px;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 2.5rem 2rem;
}

/* ─── TOP BLOCK: Benthos ─── */
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brand-block.top {
    justify-content: center;
    padding-bottom: 1.8rem;
}

.brand-block.bottom {
    justify-content: center;
    padding-top: 1.8rem;
}

/* ─── LOGO CONTAINERS ─── */
.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.6rem;
}

.logo-wrap img {
    max-width: 320px;
    object-fit: contain;
}

.cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 370px;
    cursor: pointer;
    text-align: center;
    font-family: 'MonumentExtended', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.25s, transform 0.2s;
    position: relative;
    border: 3px solid #fff;
    color: #fff;
    border-radius: 12px;
    padding: 5px;
    background-color: rgb(0 0 0 / 0.15);
    letter-spacing: 0.1em;
    font-size: 1.2rem;
}

.cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


@media screen and (max-width: 1100px) {
    .cta-btn {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 768px) {
    .center-column {
        padding: 0;
    }
    .brand-block {
        max-height: 40vh;
    }

    .cta-btn,.logo-wrap img{
        max-width: 220px ;
    }

    /* le immagini restano sempre visibili come fallback statico dietro al video */
    .mobile-video-bg {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: var(--app-height, 100svh);
        overflow: hidden;
        z-index: 1;
        pointer-events: none;
    }

    .mobile-video-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgb(0 0 0 / 0.35);
        z-index: 1;
    }

    .mobile-video-bg iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* video 1080x1920 (9:16): sovradimensiona e ritaglia per un cover reale, evitando il letterbox del player Vimeo */
        width: max(100vw, calc(var(--app-height, 100svh) * 9 / 16));
        height: max(var(--app-height, 100svh), calc(100vw * 16 / 9));
        border: 0;
    }
}