:root {
    --bs-modal-width: 1000px;
}

body,
h1,
h2,
h3,
h4,
h5,
p {
    font-family: "Zain", sans-serif;
}

.red {
    color: #924133;
}

.back-modal {
    background-color: #e3e3e3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-dialog {
    width: 40%;
    max-width: 100%;
}



.wa {
    position: fixed;
    max-width: 80px;
    right: 1rem;
    bottom: 1rem;
    z-index: 100000;
}

.zain-extralight {
    font-family: "Zain", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.zain-light {
    font-family: "Zain", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.zain-regular {
    font-family: "Zain", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.zain-bold {
    font-family: "Zain", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.zain-extrabold {
    font-family: "Zain", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.zain-black {
    font-family: "Zain", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.navbar {
    background-color: #fff;
    border-radius: 0.3rem;
}

.navbar .megamenu {
    padding: 4rem;
    background-color: #fff;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-image: url(../img/back-menu.jpg);
    background-position: right;
    background-size: cover;
}

.navbar-collapse {
    flex-grow: unset;
    justify-content: center;
}

/* ============ desktop view ============ */
@media all and (min-width: 992px) {

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 70%;
        margin-top: 4px;
    }

}

/* ============ desktop view .end// ============ */

/* ============ mobile view ============ */
@media(max-width: 991px) {

    .navbar.fixed-top .navbar-collapse,
    .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }
}

.nav-link {
    display: block;
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 500;
    color: #212121;
    margin-left: 4rem;
}

.nav-cont {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: 0.4rem;
}

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

.navbar-toggler {
    padding: 0px;

    background-color: transparent;
    border: 0px;
    border-radius: 0px;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 transparent;
}

.portam {
    color: #178057 !important;
    font-weight: 700;
}

.logo-portam {
    max-width: 40%;
    padding-top: 10%;
}

.sp-nav {
    padding: 0.5rem;
}

.tit-menu {
    display: block;
    font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0px;
    margin-top: 0.5rem;
}

.link-menu {
    display: block;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 500;
    color: #212121;
    margin-bottom: 0.3rem;
}

.sp-1txt {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.title-h1 {
    font-size: calc(18px + (64 - 18) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(18px + (54 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    padding-left: 2rem;
    color: #1A1A1A;
}

.sp-h1 {
    font-weight: 800;
    font-family: lora;
}

.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;
}

.txt-h2 {
    font-size: calc(16px + (34 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    text-transform: uppercase;
    padding-left: 2rem;
}

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

.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;

}

.title {
    font-size: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #151515;
}

.title-form {
    font-size: calc(16px + (34 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #151515;
    padding-bottom: 1rem;
}

.txt, .num {
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (30 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
}

.num {
    padding-top: 1rem;
    font-size: calc(30px + (40 - 30) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 700;
}

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

.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: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

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

/*----------------divisione-hover-----------------------------------*/
.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;

}

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

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

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


.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/back/serramenti1.jpg);
    transition: all .5s ease;
}

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

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


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


/*--------------------------------------fine-divisione-hover---------------------------*/
/*----------------------------------form-----------------------------------------------*/
.form-control {
    color: #151515;
    background-color: transparent;
    border: 1px solid #151515;
    border-radius: 0rem;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.form-control:focus {
    color: #fff;
    background-color: #151515;
    border-color: #151515;
    outline: 0;
    box-shadow: 0 0 0 0;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.form-control::placeholder {
    color: #777777;
    font-weight: 300;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.sp-form {
    padding-top: 1rem
}

/*--------------------------------------fine-form--------------------------------------*/
.btn {
    padding: 0.7rem 2rem 0.4rem 2rem;
    border: 1px solid #151515;
    border-radius: 0px;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    color: #151515;
    margin-top: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
}
.red{
    background-color: #c53f2b;
    color: #fff;
    border: 0;
}

.btn:hover {
    padding: 0.7rem 2rem 0.4rem 2rem;
    border: 1px solid #151515;
    border-radius: 0px;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    color: #fff;
    margin-bottom: 0px;
    font-weight: 400;
    text-transform: uppercase;
    background-color: #151515;
}



.back-progettare {
    background-image: url(../img/progettare.jpg);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-porte {
    background-image: url(../img/porte.jpg);
    background-size: 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.back-form {
    background-image: url(../img/back-form.svg);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.box-eco {
    background-color: #E5E5E5;
    padding: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

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

.sp-title-pag {
    padding: 2rem;
}

.pos-pag {
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (20 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    color: #1A1A1A;
}

.title-h1-pag {
    font-size: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    color: #1A1A1A;
}

.sp-h1-pag {
    font-weight: 800;
    font-family: lora;
    font-size: calc(16px + (54 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.sp-txt-pag {
    padding: 2rem;
}

.txt-pag {
    font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(18px + (30 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    text-align: justify;
}

.title-h3 {
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #1A1A1A;
}

.back-foto-dx {
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-foto-sx {
    background-size: 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.img-head-pag {
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    height: 80vh;
}

.logo-foot {
    max-width: 300px;
    min-width: 300px;
}

.tit-foot {
    font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 600;
    padding-top: 2rem;
}

.txt-foot {
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 400;
}

.dati {
    font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 400;
}

.mappa {
    height: 60vh;
    margin-bottom: 2rem;
    margin-top: 4rem;
    filter: grayscale(100%);
}

.underline>span {
    display: block;
    position: relative;
    padding: 0.1em 0;
}

/* Fade in */
.underline>span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 0.1em;
    background-color: #178057;
    opacity: 0;
    transition: opacity 300ms, transform 300ms;
}

.underline>span:hover::after,
.underline>span:focus::after {
    opacity: 1;
    transform: translate3d(0, 0.2em, 0);
}

/* Slide in */
.underline>span {
    overflow: hidden;
}

.underline>span::after {
    opacity 1;
    transform: translate3d(-100%, 0, 0);
}

.underline>span:hover::after,
.underline>span:focus::after {
    transform: translate3d(0, 0, 0);
}

.img-gallery {
    padding: 1rem;
    padding-top: 4rem;
}
.box-count{
    padding: 0.5em;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-color: #178057;
    border: 2px solid #d8d6d8;
}
.box-sconti{
    padding:0.5em;
    text-align: center;
    color:rgb(0, 0, 0);
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-color: #e5e5e5;
    border: 2px solid #d8d6d8;
}

.title-portamazione{
    line-height: 2.5rem;
    text-transform: uppercase;
}
.mini{
    font-size: 1.5rem;
}
.box-form-sez{
    padding-left:2vh;
    padding-right:2vh;
}
strong {
    font-weight: 800;
}

a {
    color: #212121;
    text-decoration: none;
}

a:hover {
    color: #212121;
    text-decoration: none;
}

.black {
    color: #151515;
}

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

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

@media only screen and (max-width: 840px) {
    .modal-dialog {
        width: 96%;
        max-width: 100%;
    }

    .wa {
        right: 0.2rem;
        bottom: 0.2rem;
        max-width: 60px;
    }

    .title-h1 {
        padding-left: 0rem;
    }

    .txt-h2 {
        padding-left: 0rem;
    }

    .box-eco {
        background-color: #E5E5E5;
        padding: 1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .box-hov {
        margin-top: -1rem;
    }

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

    .back-progettare {
        background-image: none;
        background-size: cover;
        background-position: right;
        background-repeat: no-repeat;
    }

    .back-porte {
        background-image: none;
        background-size: cover;
        background-position: left;
        background-repeat: no-repeat;
    }

    .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;

    }

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

    .sp-1txt {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding: 1.5rem;
    }


    .img-head-pag {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 50vh;
    }

    .sp-title-pag {
        padding: 0rem;
        padding-top: 2rem;
    }

    .sp-txt-pag {
        padding: 2rem;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .back-foto-dx {
        background-image: none;
        background-size: 0%;
        background-position: right;
        background-repeat: no-repeat;
    }

    .back-foto-sx {
        background-image: none;
        background-size: 0%;
        background-position: left;
        background-repeat: no-repeat;
    }

    .form-control {
        margin-bottom: 0.5rem;
    }

    .sp-form {
        padding-top: 0rem;
    }

    .nav-link {
        margin-left: 1rem;
    }

    .navbar .megamenu {
        padding: 2rem;
        background-color: #fff;
        box-shadow: 0px 0px 2px 0px #1a1a1a3b;
        background-image: none;
        background-position: right;
        background-size: cover;
    }

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

    .head-pm {
        background-position: right;
    }


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



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

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

    .logo-portam {
        max-width: 80%;
        padding-top: 30%;
    }
}