@font-face {
    font-family: 'Abril Fatface';
    src: url('assets/font/AbrilFatface-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Jost';
    src: url('assets/font/Jost-VariableFont_wght.ttf') format('truetype');
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Abril Fatface', serif;
    background: #fff;
    overflow: hidden;
    height: 100vh;
}


.scroll-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Left side image */
.main-image {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg/main-bg.png');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.98);
    transition:
        opacity 1.5s ease,
        transform 1.5s ease,
        width 1.2s ease;
}

/* fade cover to prevent flash */
.main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #000;
    z-index: 3;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.main-image.image-ready {
    opacity: 1;
    transform: scale(1);
}

.main-image.image-ready::after {
    opacity: 0;
}

.left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
}

.uk-text {
    font-size: 3rem;
    color: white;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s ease;
}

.map-pin {
    width: 40px;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.6s ease;
}

.main-image.shrunk {
    width: 50vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Right side scroll area */
.right-content {
    width: 50vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 50vw;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Each content step */
.section {
    position: absolute;
    width: 80%;
    padding: 40px;
    text-align: right;
    opacity: 0;
    pointer-events: none;
    /* transform: translateX(100px); */
    /* transition: all 0.6s ease; */
}

.section:not(.visible) {
    display: none;
}

#step-0 {
    top: 0%;
    opacity: 0;
    transform: translateX(100px);
    display: none;
    /* transition: all 0.6s ease; */
}

#step-1 {
    bottom: 0%;
    transform: translateX(100px);
    /* transition: all 0.6s ease; */
}

#step-4 {
    align-self: flex-end;
    text-align: right;
}

.special-text,
.text-top {
    font-weight: 400;
    font-size: clamp(2.8rem, 2.5vw, 2.8rem);
    line-height: 1;
    letter-spacing: -2%;
    color: #013C40;
}

.desc,
.text-bottom {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.1;
    letter-spacing: -2%;
    text-align: right;
    color: #1D1D1B;
}

.desc {
    font-weight: 700;
}

.section.visible {
    pointer-events: auto;
}

.logos {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.logos-top,
.logos-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    justify-items: center;
    align-items: center;
}

.logos img {
    width: clamp(100px, 10vw, 250px);
    height: auto;
    max-height: 150px;
    transition: transform 0.3s ease;
    object-fit: contain;
}



.fiat-img {
    width: 95%;
}

.elementor-element.elementor-element-4477f02 { display: none; }
body .elementor-element.elementor-element-bb1d2e3 { padding: 0 !important; }
body .elementor-element.elementor-element-bb1d2e3 .e-con-inner { width: 100%; max-width: 100%; padding: 0 !important; }
.section.firstboxdata { padding-top: 110px; }
.section.specialstep.visible { margin-top: 100px; padding-top: 0; }


@media (max-width: 1200px) {
.special-text, .text-top { font-size: clamp(2rem, 2vw, 2rem); }

}


@media (max-width: 991px) {
.special-text, .text-top { font-size: 24px; }

}


@media (max-width: 768px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }

    .scroll-wrapper {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .main-image {
        width: 100vw;
        height: 100vh;
        position: relative;

        transition:
            opacity 1.5s ease,
            transform 1.5s ease,
            width 1.2s ease,
            height 1.2s ease;
    }

    .main-image.shrunk {
        height: 28vh;
        width: 100vw;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .right-content {
        width: 100%;
        height: auto;
        position: relative;
        margin-top: 0px;
        left: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .section {
        position: relative;
        will-change: transform, opacity;
        /* transform: none; */
        /* transform: translateX(0); */
        pointer-events: auto;
        padding: 20px;
    }


    .special-text,
    .text-top {
        font-size: 1.6rem;
        margin: 0px;
    }

    .text-bottom {
        font-size: 1rem;
    }

    .logos img {
        max-width: 70%;
        max-height: 65px;
    }

    .fiat-img {
        width: 100%;
    }

    #step-4 {
        align-self: auto;
        padding-bottom: 20px;
    }
    body.page-id-1812 { height: 100vh; overflow: hidden; }
    .main-image { z-index:9; }
    .section.firstboxdata { padding-top: 20px; }
    .section.specialstep.visible { margin-top: 0; padding-top: 20px; }
    .right-content .section { width: 100%; }
    .firstboxdata .text-top { font-size: 22px; line-height: 26px; }
    .specialstep .special-text { font-size: 22px; }
    .right-content .secondatacol, .right-content .fiatmaincol { padding-top: 0; }
    .elementor-location-footer .elementor-element-c393e0f > .e-con-inner { padding-top: 10px; padding-bottom: 10px;}
    .elementor-location-footer .e-con-inner p { margin: 0; }
    .page-id-1812 .elementor.elementor-102.elementor-location-footer { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; z-index: 2; }
    .left-overlay, .left-overlay .uk-text, .left-overlay .map-pin { opacity: 1; transform: inherit; }
    
}

@media (max-width: 767px) {
.headernav .elementor-widget-container { position: relative; top: 12px; }

}