:root {
    --focusin: 0.2s;
    --focusout: 0.1s;
}
#sticky-hp-top-slider {
    height: calc(100 * var(--vh));
    top: 0px;
    /* Da tenere traspi altrimenti non va il cross fade */
    background-color: transparent;
}
#hp-top-slider-cont {
    width: 100%;
    height: calc(100 * var(--vh));
    overflow: hidden;
    position: relative;
}
#hp-top-slider {
    height: calc(100 * var(--vh));
}
#hp-top-slider-cont .tns-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    width: auto;
    display: flex;
    gap: 10px;
}
#hp-top-slider-cont .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    box-sizing: border-box;
    border: 0.5px solid var(--nero);
    display: block;
    float: left;
}
#hp-top-slider-cont .tns-nav .tns-nav-active {
    background-color: var(--nero);
}
.hp-top-slide {
    height: calc(100 * var(--vh));
    position: relative;
    overflow: hidden;
}
.hp-top-slide picture {
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    height: 100%;
    width: 100%;
}
@keyframes zoom-in {
    0% {
        transform: scale(1);
    }
    3% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    55% {
        transform: scale(1.05);
    }
    97% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}
.hp-top-slide-zoomin img {
    animation-name: zoom-in ;
    animation-duration: 25s;
    animation-fill-mode: forwards;
    animation-delay: 0.1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes zoom-out {
    0% {
        transform: scale(1.05);
    }
    3% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
    55% {
        transform: scale(1);
    }
    97% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.05);
    }
}
.hp-top-slide-zoomout img {
    animation-name: zoom-out ;
    animation-duration: 25s;
    animation-fill-mode: forwards;
    animation-delay: 0.1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes pan-sx {
    0% {
        transform: scale(1.2) translate(calc(-5 * var(--vw)), 0px);
    }
    3% {
        transform: scale(1.2) translate(calc(-5 * var(--vw)), 0px);
    }
    50% {
        transform: scale(1.2) translate(0px, 0px);
    }
    55% {
        transform: scale(1.2) translate(0px, 0px);
    }
    97% {
        transform: scale(1.2) translate(calc(-5 * var(--vw)), 0px);
    }
    100% {
        transform: scale(1.2) translate(calc(-5 * var(--vw)), 0px);
    }
}
.hp-top-slide-pansx img {
    animation-name: pan-sx;
    animation-duration: 25s;
    animation-fill-mode: forwards;
    animation-delay: 0.1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes pan-dx {
    0% {
        transform: scale(1.2) translate(calc(5 * var(--vw)), 0px);
    }
    3% {
        transform: scale(1.2) translate(calc(5 * var(--vw)), 0px);
    }
    50% {
        transform: scale(1.2) translate(0px, 0px);
    }
    55% {
        transform: scale(1.2) translate(0px, 0px);
    }
    97% {
        transform: scale(1.2) translate(calc(5 * var(--vw)), 0px);
    }
    100% {
        transform: scale(1.2) translate(calc(5 * var(--vw)), 0px);
    }
}
.hp-top-slide-pandx img {
    animation-name: pan-dx;
    animation-duration: 25s;
    animation-fill-mode: forwards;
    animation-delay: 0.1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.hp-top-slide-text {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: auto;
    padding: 20px 20px 20px 40px;
    z-index: 15;
    display: block;
    float: left;
    box-sizing: border-box;
}
.hp-top-slide-text-el {
    display: block;
    float: left;
    clear: both;
    color: var(--bianco);
    padding-left: 40px;
    box-sizing: border-box;
}
.hp-top-slide-sovratitolo,
.hp-top-slide-sottotitolo {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}
.hp-top-slide-titolo {
    font-size: 45px;
    line-height: 51px;
    font-style: normal;
    font-weight: 300;
    margin: 5px 0px;
    position: relative;
}
.hp-top-slide-titolo .plus-svg {
    height: 30px;
    width: 30px;
    display: block;
    position: absolute;
    left: 0px;
    top: 10px;
}
.hp-top-slide-caption {
    margin-top: 60px;
}

#hp-velata-top,
.hp-slider-velata-bottom {
    background: var(--nero);
    position: absolute;
    height: calc(26 * var(--vh));
    left: 0px;
    z-index: 10;
}
#hp-velata-top {
    top: 0px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}
.hp-slider-velata-bottom {
    bottom: 0px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}
/* Video */
#hp-top-video-cont {
    width: 100%;
    height: calc(100 * var(--vh));
    overflow: hidden;
    position: relative;
}
#hp-top-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Gruppo */
#hp-gruppo {
    min-height: 100vh;
    max-height: 100vh;
    padding: 120px 0px 50px 0px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
#hp-gruppo-int {
    display: flex;
    position: relative;
    align-items: center;
    height: 100%;
}
#hp-gruppo-loghi,
#hp-gruppo-testo-cont {
    width: 50%;
    box-sizing: border-box;
    max-height: 100%;
    padding: 0px clamp(40px, calc(8.69 * var(--vw)), 160px);
}
#hp-gruppo-testo-cont p {
    margin-bottom: clamp(20px, calc(4.34 * var(--vw)), 80px);
}
#hp-gruppo-loghi img {
    width: 100%;
}
#hp-gruppo .video-html5 {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
}
#hp-gruppo-filetto {
    width: 0.5px;
    height: calc(100% + 40px);
    position: absolute;
    background-color: var(--bianco);
    left: 50%;
    top: -20px;
}
#hp-gruppo
/* Works */
#hp-works {
    min-height: 100vh;
    border-top: 70px solid var(--nero); /* E' lo spazio del menu */
    padding: 0px;
    box-sizing: border-box;
    position: relative;
}
#hp-works-top {
    position: relative;
}
#hp-works-bottom {
    min-height: calc(100vh - 110px - 70px); /* Bordo per il menu + la fascia */
    overflow: hidden;
    position: relative;
}
.hp-work-el {
    width: calc(100% / 3);
    height: 100%;
    position: absolute;
    top: 0px;
    z-index: 10;
}
#hp-work-el1 {
    left: 0px;
}
#hp-work-el2 {
    left: calc(100% / 3);
}
#hp-work-el3 {
    right: 0px;
}
.hp-work-img {
    position: absolute;
    width: calc(100% / 3 * 1);
    height: 100%;
    top: 0px;
    transition: all 0.4s;
    z-index: 1;
    overflow: hidden;
    filter: grayscale(1);
}
#hp-work-img1 {
    left: 0px;
}
#hp-work-img2 {
    left: calc(100% / 3);
}
#hp-work-img3 {
    right: 0px;
}

@keyframes picture1_focusin {
    0% {
        z-index: 1;
        left: 0%;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    1% {
        z-index: 14;
        left: 0%;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    100% {
        left: 0%;
        width: 50%;
        z-index: 14;
        filter: grayscale(0);
    }
}
@keyframes picture1_focusout {
    0% {
        z-index: 14;
        left: 0%;
        width: 50%;
        filter: grayscale(0);
    }
    99% {
        z-index: 14;
        left: 0%;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    100% {
        z-index: 1;
        left: 0%;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
}


@keyframes picture2_focusin {
    0% {
        z-index: 1;
        left: calc(100% / 3);
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    1% {
        z-index: 14;
        left: calc(100% / 3);
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    100% {
        left: 25%;
        width: 50%;
        z-index: 14;
        filter: grayscale(0);
    }
}
@keyframes picture2_focusout {
    0% {
        z-index: 14;
        left: 25%;
        width: 50%;
        filter: grayscale(0);
    }
    99% {
        z-index: 14;
        left: calc(100% / 3);
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    100% {
        z-index: 1;
        left: calc(100% / 3);
        width: calc(100% / 3);
        filter: grayscale(1);
    }
}

@keyframes picture3_focusin {
    0% {
        z-index: 1;
        right: 0px;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    1% {
        right: 0px;
        width: calc(100% / 3);
        z-index: 14;
        filter: grayscale(1);
    }
    100% {
        right: 0px;
        width: 50%;
        z-index: 14;
        filter: grayscale(0);
    }
}
@keyframes picture3_focusout {
    0% {
        z-index: 14;
        right: 0px;
        width: 50%;
        filter: grayscale(0);
    }
    99% {
        z-index: 14;
        right: 0px;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
    100% {
        z-index: 1;
        right: 0px;
        width: calc(100% / 3);
        filter: grayscale(1);
    }
}
#hp-work-img1.focusin {
    animation-name: picture1_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;

}
#hp-work-img1.focusout {
    animation-name: picture1_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
#hp-work-img2.focusin {
    animation-name: picture2_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-img2.focusout {
    animation-name: picture2_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
#hp-work-img3.focusin {
    animation-name: picture3_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-img3.focusout {
    animation-name: picture3_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

@keyframes element1_focusin {
    0% {
        z-index: 10;
        left: 0%;
        width: calc(100% / 3);
    }
    1% {
        z-index: 24;
        left: 0%;
        width: calc(100% / 3);
    }
    100% {
        z-index: 24;
        left: 0%;
        width: 50%;
    }
}
@keyframes element1_focusout {
    0% {
        z-index: 24;
        left: 0%;
        width: 50%;
    }
    99% {
        z-index: 24;
        left: 0%;
        width: calc(100% / 3);
    }
    100% {
        z-index: 10;
        left: 0%;
        width: calc(100% / 3);
    }
}
@keyframes element_reveal_focusin {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes element_reveal_focusout {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
#hp-work-el1.focusin {
    animation-name: element1_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el1.focusin .hp-work-reveal {
    animation-name: element_reveal_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el1.focusout {
    animation-name: element1_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
#hp-work-el1.focusout .hp-work-reveal {
    animation-name: element_reveal_focusout ;
    animation-duration:var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

@keyframes element2_focusin {
    0% {
        z-index: 10;
        left: calc(100% / 3);
        width: calc(100% / 3);
    }
    1% {
        z-index: 14;
        left: calc(100% / 3);
        width: calc(100% / 3);
    }
    100% {
        left: 25%;
        width: 50%;
        z-index: 14;
    }
}
@keyframes element2_focusout {
    0% {
        z-index: 24;
        left: 25%;
        width: 50%;
    }
    99% {
        z-index: 24;
        left: calc(100% / 3);
        width: calc(100% / 3);
    }
    100% {
        z-index: 10;
        left: calc(100% / 3);
        width: calc(100% / 3);
    }
}
#hp-work-el2.focusin {
    animation-name: element2_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el2.focusin .hp-work-reveal {
    animation-name: element_reveal_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el2.focusout {
    animation-name: element2_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
#hp-work-el2.focusout .hp-work-reveal {
    animation-name: element_reveal_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

@keyframes element3_focusin {
    0% {
        z-index: 10;
        right: 0px;
        width: calc(100% / 3);
    }
    1% {
        z-index: 14;
        right: 0px;
        width: calc(100% / 3);
    }
    100% {
        right: 0px;
        width: 50%;
        z-index: 14;
    }
}
@keyframes element3_focusout {
    0% {
        z-index: 24;
        right: 0px;
        width: 50%;
    }
    99% {
        z-index: 24;
        right: 0px;
        width: calc(100% / 3);
    }
    100% {
        z-index: 10;
        right: 0px;
        width: calc(100% / 3);
    }
}
#hp-work-el3.focusin {
    animation-name: element3_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el3.focusin .hp-work-reveal {
    animation-name: element_reveal_focusin ;
    animation-duration: var(--focusin);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
}
#hp-work-el3.focusout {
    animation-name: element3_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
#hp-work-el3.focusout .hp-work-reveal {
    animation-name: element_reveal_focusout ;
    animation-duration: var(--focusout);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}
.hp-work-reveal {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    z-index: 10;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.hp-work-text {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 20px 0px 20px 20px;
    z-index: 15;
    display: block;
    float: left;
    box-sizing: border-box;
}
.hp-work-text-el {
    display: block;
    float: left;
    clear: both;
    color: var(--bianco);
    padding-left: 20px;
    box-sizing: border-box;
    transition: color 0.4s;
}
.hp-work-el.focusin .hp-work-text-el {
    color: var(--bianco);
    transition: color 0.4s;
}
.hp-work-workcategory,
.hp-work-dove-quando {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}
.hp-work-titolo {
    font-size: 30px;
    line-height: 36px;
    font-style: normal;
    font-weight: 300;
    margin: 5px 0px;
    position: relative;
    width: 100%;
}
.hp-work-titolo .plus-svg {
    height: 20px;
    width: 20px;
    display: block;
    position: absolute;
    left: -2px;
    top: 10px;
}
.hp-work-el .plus-svg .cls-1 {
    stroke: var(--bianco);
    stroke-width: 1px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}
.hp-work-el.focusin .plus-svg .cls-1 {
    stroke: var(--nero);
    stroke-width: 1px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}
#hp-update {
    position: relative;
}
#hp-update .page {
    display: flex;
}
#hp-update-int {
    display: flex;
    align-items: center;
    position: relative;
    min-height: calc(100vh - 70px);
    padding-top: 80px;
    padding-bottom: 80px;
    box-sizing: border-box;
}
#hp-update-text {
    width: 40%;
    padding-right: 80px;
    box-sizing: border-box;
}
#hp-update-image-cont {
    width: 60%;
    padding-left: 80px;
    box-sizing: border-box;
    height: auto;
}
#hp-update-image-cont picture {
    aspect-ratio: 16/9;
}
#hp-update-image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#hp-update-filetto {
    position: absolute;
    left: 40%;
    top: 40px;
    width: 0.5px;
    height: calc(100% - 80px);
    background-color: var(--bianco);
}
.sticky-el {
    top: 0px;
}
#footer-careers {
    margin-top: 70px;
}
footer {
    box-sizing: border-box;
    min-height: 100vh;
}
#footer-ext {
    padding-bottom: 200px;
}
@media (pointer: coarse) and (hover: none) {
    .hp-work-reveal {
        backdrop-filter: unset;
        background-color: rgba(255,255,255,0);
    }

    #hp-work-img1.focusout,
    #hp-work-img2.focusout,
    #hp-work-img3.focusout,
    #hp-work-img1.focusin,
    #hp-work-img2.focusin,
    #hp-work-img3.focusin,
    #hp-work-el1.focusin,
    #hp-work-el1.focusin .hp-work-reveal,
    #hp-work-el1.focusout,
    #hp-work-el1.focusout .hp-work-reveal,
    #hp-work-el2.focusin,
    #hp-work-el2.focusin .hp-work-reveal,
    #hp-work-el2.focusout,
    #hp-work-el2.focusout .hp-work-reveal,
    #hp-work-el3.focusin,
    #hp-work-el3.focusin .hp-work-reveal,
    #hp-work-el3.focusout,
    #hp-work-el3.focusout .hp-work-reveal {
        animation: unset;
        filter: grayscale(0) !important;
    }
    .hp-work-img {
        filter: grayscale(0) !important;
    }
    .hp-work-text-el {
        color: var(--bianco);
    }
    .hp-work-el .plus-svg .cls-1 {
        stroke: var(--bianco);
        stroke-width: 1px;
        transition: all 0.4s;
        -webkit-transition: all 0.4s;
    }
}
@media only screen and (min-width:768px) and (max-width:1279px) {
    .hp-top-slide-titolo {
        font-size: 30px;
        line-height: 36px;
    }
    .hp-work-titolo {
        font-size: 25px;
        line-height: 36px;
    }
    .hp-work-workcategory, .hp-work-dove-quando {
        font-size: 12px;
    }
}
@media only screen and (min-width:220px) and (max-width:1279px) {
    .hp-top-slide-titolo {
        font-size: 30px;
        line-height: 36px;
    }
    .hp-work-titolo {
        font-size: 25px;
        line-height: 36px;
    }
    .hp-work-workcategory, .hp-work-dove-quando {
        font-size: 12px;
    }
    .hp-work-img,
    .hp-work-el {
        width: 100%;
        height: calc(100% / 3);
    }
    #hp-work-img1,
    #hp-work-el1 {
        top: 0px;
        left: 0px;
        right: unset;
    }
    #hp-work-img2,
    #hp-work-el2 {
        top: calc(100% / 3);
        left: 0px;
        right: unset;
    }
    #hp-work-img3,
    #hp-work-el3 {
        top: calc(100% * 2 / 3);
        left: 0px;
        right: unset;
    }
    #hp-update-filetto {
        display: none;
    }
    #hp-update-int {
        display: block;
    }
    #hp-update-image-cont,
    #hp-update-text {
        width: 100%;
        padding: 0px;
    }
    #hp-update-image-cont {
        padding-top: 40px;
    }
}
@media only screen and (min-width:220px) and (max-width:767px) {
    #hp-gruppo-filetto {
        display: none;
    }
    #hp-gruppo {
        display: block;
        float: left;
        margin: 0px 0px;
        padding: 0px;
        max-height: unset;
    }
    #hp-gruppo-int {
        height: auto;
        width: 100%;
        display: block;
        float: left;
        padding: 80px 0px;
        box-sizing: border-box;
    }

    #hp-gruppo-loghi, #hp-gruppo-testo-cont {
        height: auto;
        width: 100%;
    }
    #hp-gruppo-testo-cont {
        margin-top: 40px;
    }
    #hp-gruppo-loghi, #hp-gruppo-testo-cont {
        padding: 0px 20px;
    }
    #hp-gruppo-testo-cont a {
        margin-top: 40px;
    }
    #hp-works-bottom {
        height: calc(100vh - 40px);
    }


    .hp-top-slide-text {
        width: 100%;
        padding: 20px 20px 80px 20px;
    }
    .hp-top-slide-text-el {
        padding-left: 20px;
        box-sizing: border-box;
    }
    .hp-top-slide-sovratitolo,
    .hp-top-slide-sottotitolo {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }
    .hp-top-slide-titolo {
        font-size: 30px;
        line-height: 36px;
    }
    .hp-top-slide-titolo .plus-svg {
        height: 20px;
        width: 20px;
        left: -5px;
        top: 8px;
    }
    .hp-top-slide-caption {
        margin-top: 60px;
        width: 100%;
        box-sizing: border-box;
    }
    .hp-work-text {
        color: var(--bianco);
    }
}
