:root {
    --primary: #0094e6;
    --secondary: #0000;
    --black: #000000;
    --white: white;
    --primary-10: #0083cf9d;
    --primary-20: #0066a1b7;
    --primary-30: #0066a178;
}

body {
    font-family: "Poppins", serif;
}

.hoverlay {
    position: relative;

    background-color: #01010192;
}

.img-header {
    position: relative;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    height: 90vh
}

.icon-wa {
    filter: drop-shadow(10px 10px 4px #00000034);
    width: 8vh;
}

.container-wha {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 99999;
}

.list-contatti {
    font-size: 1.4rem;
    list-style: none;
    padding-left: 0;
}

.list-contatti li {
    margin-top: 1rem;
}

.link-contatti {

    text-decoration: none;
    color: #010101;
}

.box-header {
    padding-left: 22vh;
    padding-right: 12vh;
    padding-top: 8vh;
    padding-bottom: 8vh
}

.header-content {
    top: 45%;
    margin: auto;
    left: 0;
    right: 0;
    color: var(--white);
    text-align: center;
    position: absolute;
}

.intro-anno {
    font-size: calc(12px + (23 - 12) * ((100vw - 300px) / (1920 - 300)));
}

.subtitle-anno {
    font-size: calc(40px + (100 - 40) * ((100vw - 300px) / (1920 - 300)));
}

.title-storia {
    color: #2F2E2C;
    font-size: calc(40px + (100 - 40) * ((100vw - 300px) / (1920 - 300)));

    font-weight: 600;

    padding-bottom: 3rem;
    text-transform: uppercase;
}

.back-story-red {
    background-color: #dd5e5e;
}

.back-story-green {
    background-color: #34aa42;
}

.back-story-blu {
    background-color: #3b57c6;
}

.spacing-story {
    border-radius: 22px;
    padding-left: 2vh;
    padding-right: 2vh;
    padding-top: 12vh;
    padding-bottom: 12vh;
    box-shadow: -36px 36px 0px #605f5d;
}

.anno {
    color: #2F2E2C;
    font-size: calc(30px + (64 - 30) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(20px + (70 - 20) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 900;
    text-transform: uppercase;
}

.txt-anno {
    color: #2F2E2C;
    font-size: calc(20px + (22 - 20) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(20px + (28 - 20) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 400;

}

.timeline {

    border-bottom: 4px solid #2F2E2C;

}

.point {
    position: absolute;
    bottom: -1rem;
    max-width: 2rem;
    left: 1rem;
}

.box-storia {
    padding-top: 2rem;
}

.relative {
    position: relative;
}

.link-privacy {
    text-decoration: none;
}

.text-legno {
    bottom: 12%;
    padding: 2em;
    position: absolute;
}

.text-tappezzerie {
    padding: 2em;
    bottom: 12%;
    position: absolute;
}

.back-pennello {
    background-image: url(../img/pennello.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.marchi {

    filter: brightness(0) saturate(80%) invert(37%) sepia(41%) saturate(1369%) hue-rotate(166deg) brightness(88%) contrast(98%) opacity(100%) drop-shadow(1px 1px 4px #ffffff42);
    padding: 1em;

}

.no-filter {


    padding: 1em;
    max-width: 250px;

}

.video-bg {
    display: block;
    width: 100%;
    height: 90vh;
    object-fit: cover;
}

.box-footer {
    padding-top: 5em;
    padding-left: 22vh;
    padding-right: 22vh;

}

.sez1:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez1>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez1:hover>h2 {
    color: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

.sez1>h2 {
    color: #fff;
    text-shadow: 0px 0px 10px #000;
    transition-duration: 1s;
}

.sez2:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez2>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez2:hover>h2 {
    color: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

.sez2>h2 {
    color: #fff;
    text-shadow: 0px 0px 10px #000;
    transition-duration: 1s;
}

.sez3:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez3>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez3:hover>h2 {
    color: #000000;
    text-shadow: 0px 2px 23px #ffffffc1;
    transition-duration: 1s;
}

.sez3>h2 {
    color: #fff;

    text-shadow: 0px 0px 10px #000;
    transition-duration: 1s;
}

.rosso {
    color: rgb(192, 12, 12);
}

.sez1,
.sez2,
.sez3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    border: 1px solid #fff;
    /*filter: grayscale(70%);*/
    z-index: 100;
    transition: all .5s ease;
    position: relative;

}


.sfondoverdura {
    background-image: url(../img/sfondoverdura.jpg);
    background-position: center;
    background-size: cover;

    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #e9ad35;
}

.sfondomiele {
    background-image: url(../img/sfondomiele.jpg);
    background-position: center;

    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #ea8016;
}

.sfondomela {
    background-image: url(../img/sfondomela.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #fff;
}

.sfondocesti {
    background-image: url(../img/sfondocesti2.jpg);
    background-position: left;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #fff;
}

.box-white {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-right: 6rem;
    padding-left: 6rem;
    background-color: #fff;
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-tappezzeria {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-image: url(../img/tappezzeria.jpg);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-legno {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-image: url(../img/legno.jpg);
    background-size: 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.sez1 {
    background-image: url(../img/colori.jpg);
}

.sez2 {
    background-image: url(../img/hobbistica.jpg);
}

.sez3 {
    background-image: url(../img/cornici.jpg);
}

.title-h2 {
    font-size: calc(17px + (44 - 17) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 400;
    text-transform: uppercase;
    padding: 2rem;
    color: #fff;
}

.box-servizi {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

.box-hov {
    margin-top: -8rem;
    background-color: #fff;
    border: 16px solid #fff;
}

.nome-servizio a {
    text-decoration: none;
}

.nome-servizio {

    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: #fff;
    text-transform: uppercase;
    transition-duration: 1s;

}

.sez1-tot,
.sez2-tot,
.sez3-tot {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1000;

}

.sez1-tot {
    background-image: url(../img/colori.jpg);
    transition: all .5s ease;
}

.sez2-tot {
    background-image: url(../img/hobbistica.jpg);
    transition: all .5s ease;
}

.sez3-tot {
    background-image: url(../img/cornici.jpg);
    transition: all .5s ease;
}

.remove-background {
    background-image: none;
    transition: all .5s ease;
}

.list-footer {
    list-style: none;
    padding-left: 0;
}

.list-button {
    list-style: none;
    padding-left: 0;
    display: inline-flex;
    flex-direction: row;
}

.blu {
    color: var(--primary);
}

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

.list-button-nav {
    right: 1rem;
    position: absolute;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.list-button-nav li a {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    will-change: transform;
}

.back-sezione {
    background-image: url(../img/template-sez.svg);
    background-size: 100vw;
    background-position: center;
    padding: 23em 4em 20em 4em;
}

.list-button li a {
    box-shadow: none;
    transform: translateY(0);
}

.list-button-nav li a:hover {
    color: #fff;
    background-color: var(--primary);
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    border: 2px solid var(--primary);
}

.title-h1 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 4rem;
    font-family: lora;
}

.navbar {
    background-color: var(--white);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.nav-link {
    font-size: 1.2rem;
    border-bottom: 2px solid transparent
}

.nav-link:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary)
}

.navbar-nav {
    gap: 3rem;
}

.logo-nav {
    max-width: 230px;
    min-width: 230px;
}

/* CSS */
.button-red {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    will-change: transform;
}

.button-red:hover {
    color: #fff;
    background-color: #e35c02;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    border: 2px solid #e35c02;
}

.spacing-anno-sezione {
    padding-top: 12vh;
    padding-bottom: 12vh
}

.link-timeline {
    border-bottom: 2px solid transparent;
    color: var(--black);
    text-decoration: none;
}

.link-timeline:hover {
    border-bottom: 2px solid black;
    color: var(--black);

    text-decoration: none;
}

.button-orange {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    will-change: transform;
}

.button-orange:hover {
    color: #fff;
    background-color: #ea8016;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    border: 2px solid #ea8016;
}

.button-giallo {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    will-change: transform;
}

.button-giallo:hover {
    color: #fff;
    background-color: #ccb83b;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    border: 2px solid #ccb83b;
}

.button {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    will-change: transform;
}

.button:disabled {
    pointer-events: none;
}

.button:hover {
    color: #fff;
    background-color: var(--primary);
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    border: 2px solid var(--primary);
}

.button:active {
    box-shadow: none;
    transform: translateY(0);
}

.button-white {
    color: var(--white);
    border: 2px solid var(--white);
}

.nav-link {
    text-decoration: none;
    color: var(--black);
}

.nav-link:hover {
    text-decoration: none;
}

.link-footer {
    text-decoration: none;
    color: var(--black);
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.title-footer {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.4rem;
}

.link-footer:hover {
    text-decoration: none;
}

.link-footer:hover {
    transition: 0.5s;
    border-bottom: 2px solid var(--black);
    color: var(--black);
}

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

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

#map {
    filter: grayscale(1);
    height: 45vh;
}

.box {
    padding-left: 18vh;
    padding-right: 12vh;
    padding-top: 21vh;
    padding-bottom: 0;
}

.txt {
    font-size: 1.4rem;
}

.title-footer {
    font-family: lora;
}

.title-h2-sezione {
    font-family: lora;

    font-weight: 700;
    font-size: 2.3rem;
    color: var(--white);
}

.list-button {
    margin-top: 2rem;
    display: inline-flex;
    flex-direction: row;
    gap: 2rem;
}

.scopri {
    color: var(--primary);
    text-decoration: none;
}

.black {
    color: #141414;
}

@media only screen and (max-width:1800px) {

    .img-sez {
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .back-tappezzerie {

        top: 35%;
        left: 4%
    }

    .back-legno {
        right: 4%;
        top: 35%;

    }

    .back-pennello {
        background-position: 42% 100%;
    }

    .back-sezione {
        padding-top: 18em;
        background-position: 100% 55%;
        padding-bottom: 2em;
    }

    .txt {
        font-size: 1.3rem;
    }

    .title-h1 {

        font-size: 3rem;

    }

    .list-button {
        flex-direction: column;
    }
}

@media only screen and (max-width:1490px) {
    .txt {
        font-size: 1.1rem;
    }

    .sez1,
    .sez2,
    .sez3 {
        height: 50vh;
        animation-duration: 1s;

    }

    .back-tappezzerie {

        top: 29%;
        left: 4%
    }

    .back-legno {
        right: 4%;
        top: 29%;

    }

    .box {
        padding: 2vh
    }

    .back-pennello {

        background-position: 42% 100%;

    }

    .back-sezione {
        padding-top: 16em;
        background-position: 100% 55%;
        padding-bottom: 2em;
    }

    .box-footer {
        padding-left: 3vh;
        padding-right: 4vh;
    }
}

@media only screen and (max-width:1024px) {
    .box-header {
        padding: 2vh;
    }

    .timeline {
        transform: rotate(0deg) !important;
        border-bottom: 3px solid #2F2E2C;
        margin-right: 0rem;
    }

    .box-txt {
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .brd-anni {
        padding-left: 5rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        padding-top: 2rem;
    }

    .foto-storia {

        padding-bottom: 1rem;
    }

    .spacing-anno-sezione {
        padding-top: 2vh;
        padding-bottom: 2vh;
    }

    .back-tappezzerie {

        position: unset;
    }

    .back-legno {
        position: unset;

    }

    .img-sez {
        aspect-ratio: 16/9;

    }

    .back-sezione {
        padding-top: 3em;
        padding-left: 0;
        padding-right: 0;
        background-image: unset;
    }

    .back-pennello {
        background-image: unset;

    }

    .box {
        padding-bottom: 0;
        padding-left: 2vh;
        padding-right: 2vh;
    }

    .box-footer {
        padding-top: 0;
        padding-left: 2vh;
        padding-right: 2vh;
    }

    .back-tappezzeria {
        padding: 4em;
        background-size: cover;
        background-position: center left;
        background-image: url(../img/tappezzeria.jpg);
    }

    .back-legno {
        padding: 4em;
        background-size: cover;
        background-position: center left;
        background-image: url(../img/back-legno.svg);
    }

}

@media only screen and (max-width:820px) {

    .text-tappezzerie {
        bottom: 0rem;

    }

    .text-legno {
        bottom: 0;
    }

    .sez1>div>div>p>a>span {
        background-color: var(--black);
        color: white;
        transition-duration: 1s;
    }

    .sez1>h2,
    .sez2>h2,
    .sez3>h2 {
        font-size: 2rem;
    }

    .sez2>div>div>p>a>span {
        background-color: var(--black);
        color: white;
        transition-duration: 1s;
    }

    .sez3>div>div>p>a>span {
        background-color: var(--black);
        color: white;
        transition-duration: 1s;
    }

    .title-h2-sezione {
        font-size: 1.8rem;
    }

    .button-green {
        min-height: unset;
        font-size: 0.7rem;
        padding: 10px 24px;
    }

    .button-giallo {
        min-height: unset;
        font-size: 0.7rem;
        padding: 10px 24px;
    }

    .button-red {
        min-height: unset;
        font-size: 0.7rem;
        padding: 10px 24px;
    }

    .box-footer {
        padding: 2em;
    }

    .list-button {
        gap: 1rem;
    }

    .navbar-nav {

        gap: 1rem;
    }

    .button {
        font-size: 14px;
    }

    .img-scritta {
        max-width: 60%;
    }

    .box-servizi {
        position: absolute;
        bottom: 2rem;
        left: 0rem;
    }


    .link-chiama-mobile a {
        padding: 0.5em;
        color: var(--white);
        background-color: var(--primary);
    }

    .link-chiama-mobile a:hover {
        padding: 0.5em;
        color: var(--black);
        background-color: transparent;
        border: 2px solid var(--black);
    }



    .sp-img-sez {
        margin-top: 1rem;
    }

    .img-gallery {
        padding: 1rem;
    }

    .sez1 {
        height: 50vh;
        animation-duration: 1s;

    }

    .sez2 {
        height: 50vh;
        animation-duration: 1s;
    }

    .sez3 {
        height: 50vh;
        animation-duration: 1s;
    }

    .title-h2 {
        padding: 2rem;
        padding-left: 1rem;

    }

    .video-bg {
        max-height: 60vh;
    }

    .box {
        padding-left: 2vh;
        padding-right: 2vh;
        padding-top: 12vh;
        padding-bottom: 2vh;
    }

    .title-h1 {
        font-size: 2.3rem;
    }

    .list-button {
        flex-direction: column;
    }

    .txt {
        font-size: 1rem;
    }

    .back-sezione {
        background-image: unset;
        background-size: 100vw;
        background-position: center;
        padding: unset;
    }

    @media only screen and (max-width:780px) {

        .text-tappezzerie {
            bottom: 3rem;

        }

        .logo-nav {
            max-width: 150px;
            min-width: 150px;
        }

        .line-mobile {
            border-bottom: 3px solid #2F2E2C;
        }

        .text-legno {
            bottom: 3rem;
        }

        .list-contatti {
            font-size: 1.1rem;
        }

        .container-wha {
            bottom: 8rem;
        }
    }
}