@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

:root {
    --overlay-bg: rgba(0, 0, 0, 0.8);
    /* altezza dell'area che appare */
    --transition-time: 350ms;
    --easing: cubic-bezier(.22, .9, .35, 1);
    --text-color: #fff;
    --lightblu: #66a6ff;
    --skyblu: #00f8ff;
}

body {
    font-family: 'Heebo', sans-serif !important;
    height: 100%;
    font-size: 17px;
}

.w-fit {
    width: fit-content;
}

p,
span {
    font-size: 17px;

}

.bgImage {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.fs-55 {
    font-size: 55px;
}

.fs-50 {
    font-size: 50px;
}

.fs-48 {
    font-size: 48px;
}

.fs-45 {
    font-size: 45px;
}

.fs-43 {
    font-size: 43px;
}
.fs-40 {
    font-size: 40px;
}

.fs-35 {
    font-size: 35px;
}

.fs-30 {
    font-size: 30px;
}

.fs-25 {
    font-size: 25px;
}

.fs-20 {
    font-size: 20px;
}

.fs-18 {
    font-size: 18px;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-12 {
    font-size: 12px;
}

.object-cover {
    object-fit: cover;
}

.newContainer {
    max-width: 1640px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.newContainer-sm {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.blu {
    color: #003c77;
}

.bg-blu {
    background-color: #003c77;
}

.lightblu {
    color: var(--lightblu);
}

.bg-lightblu {
    background-color: var(--lightblu) !important;
}

.skyblu {
    color: var(--skyblu);
}

.bg-skyblu {
    background-color: var(--skyblu) !important;
}

.custombutton {
    background-color: #127bb4;
    color: white;
    border-radius: 15px;
    font-size: 20px;
    border: 0;
    padding: 16px 30px;
}

.slidebutton {
    /* background-color: #003c77; */
    box-shadow: 0 0 4px 2px var(--lightblu);
}

.custombutton:hover {
    /* background-color: #003c77; */
    box-shadow: 0 0 8px 6px #00f3ff;
}

@media (max-width: 576px) {
    .fs-55 {
        font-size: 35px;
    }

    .fs-50 {
        font-size: 30px;
    }

    .fs-48 {
        font-size: 28px;
    }

    .fs-45 {
        font-size: 25px;
    }

    .fs-35 {
        font-size: 22px;
    }

    .fs-30 {
        font-size: 20px;
    }

    .fs-25 {
        font-size: 19px;
    }

    .triangleWrapper {
        padding-top: 20vw !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .showroom-wrapper {
        padding-bottom: 20vw !important;
    }

}

/* struttura base */
.post-inspiration {
    position: relative;
    display: block;
    overflow: hidden;
}

.post-inspiration .post-inspiration-img-wrap {
    position: relative;
    display: inline-block
}

.post-inspiration .post-inspiration-img-wrap,
.post-inspiration .post-inspiration-img-wrap img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: 0.3s all ease;
}

.post-inspiration .post-inspiration-img-wrap:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .75)
}

.post-inspiration .post-inspiration-body {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    -webkit-transform: translate(-50%, -52%);
    transform: translate(-50%, -52%);
    will-change: transform
}

.post-inspiration .post-inspiration-body {
    padding-left: 50px;
    padding-right: 50px
}

.post-inspiration .post-inspiration-body,
.post-inspiration .post-inspiration-img-wrap:before {
    opacity: 0;
    transition: .3s all ease
}

.post-inspiration .post-inspiration-img-wrap:before {
    -webkit-transform: scale(0);
    transform: scale(0);
    visibility: hidden
}

.post-inspiration:hover .post-inspiration-body,
.post-inspiration:hover .post-inspiration-img-wrap:before {
    opacity: 1
}

.post-inspiration:hover .post-inspiration-img-wrap img {
    transform: scale(1.3);
    z-index: 1;

}

.post-inspiration:hover .post-inspiration-body {
    z-index: 3;
}

.post-inspiration:hover .post-inspiration-img-wrap:before {
    z-index: 2;
    -webkit-transform: scale(1);
    transform: scale(1);
    visibility: visible
}

.valAdded {
    background-attachment: fixed;
    background-image: url('https://www.kemcomm.it/public/imagesNewSite/valore_aggiunto.webp');
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

.advantages {
    background-attachment: fixed;
    background-image: url('https://www.kemcomm.it/public/imagesNewSite/robots\ pudu\ kemcomm.webp');
    background-position: 65% center;
    background-size: cover;
    min-height: 100vh;
}

.showroom-wrapper {
    background: url('https://www.kemcomm.it/public/finder/web/home/BOX4/BG-3.jpg');
    background-size: cover;
    background-position: center;
    /* min-height: 100vh; */
}

.triangleWrapper {
    position: relative;
    margin-top: -5vw;
    padding-top: 9vw;
    color: white;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

/* Bordo bianco */
.triangleWrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    /* colore del bordo */
    clip-path: polygon(0 100%, 100% 100%, 100% 3vw, 53vw 3vw, 50% 0%, 46.5vw 3vw, 0 3vw);
    z-index: -2;
    /* dietro a tutto */
}

/* Sfondo immagine */
.triangleWrapper::after {
    content: "";
    position: absolute;
    inset: 5px 0 0 0;
    /* <-- qui crei lo "spessore" del bordo */
    background-image: linear-gradient(0deg, #003c77, #0065a0);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    clip-path: polygon(0 100%, 100% 100%, 100% 3vw, 52.9vw 3vw, 50% 0.5%, 46.6vw 3vw, 0 3vw);
    z-index: -1;
    /* sopra al bordo ma sotto al contenuto */
}

.triangleWrapper.triangleWrapperHome::after {
    background-image: url('https://www.kemcomm.it/public/imagesNewSite/offerta_kemcomm.webp') !important;
}

.addedValue {
    width: 250px;
}

.advantages .addedValue {
    width: 305px;
}


.addedValue img {
    position: relative;
    top: 0px;
    transition: 0.3s all;
}


.addedValue:hover img {
    top: -20px;
    transition: 0.3s all;
}

@media (min-width: 1200px) {
    .whyWrapper {
        position: absolute;
        margin-left: -7rem;
    }
}




ul.footer-menu {
    padding-left: 0;
    line-height: 1.7;
}

.footer-menu li {
    list-style: none;
    color: #003c77;
}

.footer-menu li a {
    font-size: 12px;
    color: #003c77 !important;
}

.footer-menu.footer-menu-sub li {
    font-size: 12px;
    border-left: solid 1px #003c77;
    margin-left: 5px;
    padding-left: 5px;
    line-height: 1;
}

.social-bar-top>.social-icons a {
    padding: 0 !important;
}



/* slide home */
.video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Contenitore slides */
.slider {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    perspective: 1000px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    color: #fff;
    opacity: 0;
    /* transform: translateX(100px); */
    transition: opacity 3s ease, transform 1s ease;
    padding-left: 20px;
    padding-right: 20px;
}

.slide.active {
    opacity: 1;
    /* transform: translateX(0); */
    z-index: 2;
}

.slide .text {
    max-width: 42%;
}

.slide .image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide .image img {
    transform: rotateY(360deg);
    opacity: 0;
    transition: transform 1.5s ease, opacity 1s ease !important;
    max-width: 58%;
    position: absolute;
    top: 0;
    /* right: 0; */
    height: auto;
    max-height: 133vh;
    object-fit: contain;
    text-align: end;
    /* backface-visibility: hidden; */
    /* evita che si veda il retro */
}

.slide.active .image img {
    transform: rotateY(0deg);
    opacity: 1;
}

@media (min-width: 991px) {

    .slide .text,
    .slide .image {
        flex: 1;
    }

    .slide .image img {

        position: absolute;
    }
}

@media (max-width: 991px) {
    .slide {
        flex-wrap: wrap;
    }

    .slide .text {
        width: 100%;
        max-width: 100%;
        padding-top: 50px;
        text-align: center;
    }

    .slide .image {
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .slide .image img {
        max-width: 100%;
        width: auto !important;
        position: relative !important;
    }
}


@media (min-width:991px) and (max-width:1600px) {
    .slide {

        padding-left: 80px;
        padding-right: 80px;
    }

    .slide .text {
        padding-top: 80px;
    }



}


/* Ombra per leggibilità testo */
.slide h1,
.slide h2,
.slide h2 {

    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.robotYoutubeVideo {
    width: 50vw;
    bottom: -95px;
    aspect-ratio: 16 / 9;
    position: relative;
}

@media (max-width: 991px) {
    .robotYoutubeVideo {
        width: 100%;
    }
}


