:root {
    --primary: #7d7270;
    --secondary: #0d2123;
    --seconday-light: #3e4d4d;
    --red-section: #5b0b0bd8;
    --white: #ffffff;
    --brown: #494949c9;
    --black: #000000;
    --navbar: #0d2123;
    --white-opacity: #ffffff67;
    --border-color: #344647;
    --btn-back: #feddb8;
    --btn-hover: #b29b81;
}

body {
    font-family: 'Hedvig Letters Serif', serif;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.container-buttom {
    padding: 1em;
    padding-bottom: 2em;
}

.section-contatti {
    padding-top: 2em;
}

#map {
    height: 360px;
}

.link-contatti {
    text-decoration: none;
    color: var(--white);
    font-size: calc(16px + (16 - 12) * ((100vw - 300px) / (1920 - 300)));
}

.button {
    text-decoration: none;
    background-color: var(--btn-back);
    border: 1px solid var(--btn-back);
    color: var(--black);
    padding: 0.5em;
}

.button:hover {
    text-decoration: none;
    background-color: var(--btn-hover);
    border: 1px solid var(--btn-back);
    color: var(--black);
    padding: 0.5em;
}

/*flex-control*/
.flex-end {
    justify-content: end;
}

.flex-centered {
    justify-content: center;
}

.vertical-center {
    align-items: center;
}

.relative {
    position: relative;
}

.text-video {
    top: 0;
    right: 0;
    position: absolute;
    color: var(--black);
    font-size: calc(24px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
}

/*Navbar*/
.navbar {
    padding: 2em;
    background-color: var(--navbar);
}

/*home*/
#video-home {
    padding: 0;
    width: 100%;
    object-fit: cover;
    max-height: 90vh;
    display: block;
}

.content {
    min-height: 85vh;
}

.separator {
    justify-content: center;
    padding: 1em;
    padding-bottom: 0.3em;
    width: 90%;
    margin-left: 1rem;
    margin-right: 1rem;
}

.durata {
    padding-left: 1em;
}

/*title subtitle*/
.title-page {
    color: var(--white);
    line-height: 2rem;
    padding-top:3em;
}

.title {
    padding-top: 3em;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 2em;
    font-size: calc(52px + (52 - 30) * ((100vw - 300px) / (1920 - 300)));
    padding-bottom: 0px;
}

.subtitle-page {
    padding-top: 1em;
}

.sottotitolo {

    font-size: calc(12px + (14 - 12) * ((100vw - 300px) / (1920 - 300)));
}

.subtitle-h1 {
    padding: 5em;
    padding-bottom: 10em;
    font-size: calc(16px + (16 - 12) * ((100vw - 300px) / (1920 - 300)));
}

/*text*/
.text {
    padding: 2em;
    font-size: calc(18px + (18 - 14) * ((100vw - 300px) / (1920 - 300)));
}

.text-chi-sono {
    padding-left: 8em;
    font-size: calc(15px + (15 - 13) * ((100vw - 300px) / (1920 - 300)));
}

.subtitle {
    padding-left: 3em;
    padding-bottom: 0.5em;
    font-size: calc(35px + (35 - 24) * ((100vw - 300px) / (1920 - 300)));

}

.bordered {
    border: 1px solid var(--white);
}

.section-contatti {
    color: var(--white);
    background-color: var(--secondary);
    padding-top: 13em;
    padding: 5em;
}

.icon {
    color: var(--white);
    padding-top: 1em;
    font-size: 2rem;
    padding-right: 1em;
}

.link-privacy {
    text-decoration: none;
    color: var(--white);
}

.subtitle-servizi-h2 {
    padding: 0.5em;
    padding-top: 4em;
    padding-bottom: 2em;
    font-size: calc(24px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.subtitle-servizi {
    padding: 0.5em;
    font-size: calc(24px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.section.contatti {
    padding: 2em;
}

.subtitle-contatti {
    padding: 1em;
    padding-bottom: 0.2em;
}

.text-contatti {
    padding: 2em;
}

/*Color*/
.white {
    color: var(--white);
}

.back-darkblue {
    color: var(--white);
    background-color: var(--secondary);
}

.back-lightblue {
    color: var(--white);
    background-color: var(--seconday-light);
}

.back-white-trasparent {
    background-color: var(--white-opacity);
}

.servizi {
    margin: 1rem;
    border: 2px solid var(--border-color);
}

/*Chi sono*/
.container-chi-siamo {
    padding: 4em;
}

.title-servizi {
    position: absolute;
    background-color: none;
    color: var(--white);
    top: 30%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;

}

.back-red {
    background-color: var(--red-section);
}

.container-servizi {
    background-color: var(--black);
    position: relative;
    z-index: -1;
    height: 25%;
    width: 33vw;
}

.back-arredamento {
    background-image: url("../img/arredamento.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: bottom;
}

.back-tessuti {
    position: relative;
    z-index: -1;
    background-image: url("../img/tessuti.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: center;
}

.back-tappeto {
    background-image: url("../img/tappeti.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: center;
}

.sfumato {
    background: #ffffff;
    background: -webkit-linear-gradient(107deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(107deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);


}

.head-vendita {
    position: relative;
    z-index: -1;
    background-image: url("../img/head-vendita.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: center;
}

.back-tappeti-nain {
    position: relative;
    z-index: -1;

    background-image: url("../img/head-vendita.jpg");
    background-size: cover;
    min-height: 43vh;
}

.subtitle-h3-page {
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

.back-esperienza {
    position: relative;
    z-index: -1;
    clip-path: polygon(63.5% 0%, 0% 0%, 0% 100%, 90.3% 100%);
    background-image: url("../img/tessuti.jpg");
    background-size: cover;
    min-height: 43vh;
}

.back-tessuti {
    position: relative;
    z-index: -1;
    clip-path: polygon(34% 0%, 100% 0%, 100% 100%, 10% 100%);
    background-image: url("../img/tessuti.jpg");
    background-size: cover;
    min-height: 43vh;
}

.back-black {
    background-color: var(--black);

}

.overlay {

    opacity: 40%;
    position: relative;

}

.img-servizi {
    position: relative;
    z-index: -1;
}

.red-section {
    color: var(--white);
    background-color: var(--red-section);
}

.logo-nav {
    width: 10%;
}

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

.nav-item {
    padding-right: 2em;
}

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

.nopadding {
    padding: 0px;
}



.text-start {
    padding-bottom: 2em;
}

.text-intro {
    padding-left: 1em;
    box-shadow: -1.5px -4.5px 12px -3.5px #4d4d4d;
}

.text {
    padding-left: 1em;
}


.title-text {
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

.text-arredamento {

    box-shadow: -5.5px 1px 12px 1.5px #a3a3a3;
}



.provincia {

    font-size: calc(12px + (14 - 12) * ((100vw - 300px) / (1920 - 300)));
}

.footer {
    background-color: var(--secondary);
    padding: 1em;
    padding-bottom: 0em;
    color: var(--white)
}

.link-footer {
    text-decoration: none;
    color: var(--white);
}

.dati-aziendali {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1em;
    margin-bottom: 0px;
}

@media only screen and (max-width:1630px) {
    .title {
        padding-top: 2em;
        padding-bottom: 0em;
        font-size: calc(42px + (42 - 20) * ((100vw - 300px) / (1920 - 300)));

    }
}
@media only screen and (max-width:1440px) {
    .subtitle-h1 {
        padding: 3em;
        padding-bottom: 0em;
        
    }
}
@media only screen and (max-width:1333px) {
    

    .text-chi-sono {
        font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    }



    .content {
        min-height: fit-content;
    }

    .subtitle-h1 {
        padding-bottom: 8em;
    }
}

@media only screen and (max-width:768px) {
    .parent {
        display: grid;
        grid-template-columns: repeat(1, 1fr);

    }

    .title {
        padding: 0;
    }

    .subtitle-h1 {
        padding: 0;
    }

    .text-chi-sono {
        padding-left: 1em;
    }

    .section-contatti {
        padding: 1em;
    }

    #video-home {
        object-fit: cover;

        aspect-ratio: 9/16;

    }
}

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

    .row-cards {
        justify-content: center;
    }

    .servizi {
        margin: 0.3rem;

    }

    #map {
        height: 200px;
    }

    .title {
        padding: 0;
    }

    .content {
        min-height: 85vh;
    }

    .subtitle-h1 {
        padding: 0;
    }

    .container-chi-siamo {
        padding: 1em;
    }

    .text-chi-sono {
        padding-left: 1em;
    }

    .section-contatti {
        padding: 0px;
    }

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

    .dati-aziendali {
        font-size: calc(12px + (13 - 12) * ((100vw - 300px) / (1920 - 300)));
    }

}