:root {
    --primary: #7d7270;
    --secondary: #5b0b0b;
    --red-section: #7d7270;
    --white: #ffffff;
    --brown: #494949c9;
    --black: #000000;
    --black-trasparent: #00000088;
}

.parent {
    border-radius: 50%;
    width: 100%;
    border: 1px solid var(--primary);
    overflow: hidden;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.flex-spaced {
    justify-content: space-evenly
}

.child {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all .5s;
}

.bg-lavaggio {
    background-image: url("../img/card/smacchiatura.jpg");
    aspect-ratio: 1/1;
}

.bg-restauro {
    background-image: url("../img/card/manutenzione-2.jpg");
    aspect-ratio: 1/1;
}

.bg-vendita {

    background-image: url("../img/card/vendita-tappeti.jpg");
    background-size: 300%;
    background-position: center;
    aspect-ratio: 1/1;
}

.link-card {

    font-size: 22px;
    color: #ffffff !important;

    text-align: center;
    margin: auto;
    position: absolute;
    top: 35%;
    left: 0;
    bottom: 0;
    right: 0;
    height: 50px;
    cursor: pointer;
    /*text-decoration: none;*/
}

.parent:hover .child,
.parent:focus .child {

    transform: scale(1.2);
}

.parent:hover .child:before,
.parent:focus .child:before {
    display: block;
}

.parent:hover a,
.parent:focus a {
    display: block;
}

.child:before {
    content: "";

    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #7d7270a4;
}

.box {
    border: 4px solid var(--primary);
    padding: 8em;
    margin-left: 1.3rem;

}

body {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.overlay-servizi {
    height: 100%;
    border-radius: 50%;
}

.image-container {
    overflow: hidden;
    position: relative;
}

.title-icon {
    padding: 1em;
    color: var(--primary);
}

.sfondo {
    background-color: #7d727074;
    border-radius: 50%;
}

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

.title-card {

    color: var(--white);
    font-weight: 600;



}

.spacing-top {
    padding-top: 4em;
}

.animated {
    animation-duration: 2s;
}

.card-lavaggio {
    transition: all 1s;
    background-image: url("../img/card/smacchiatura.jpg");
    background-size: cover;
    border-radius: 50%;
    background-size: contain;

    aspect-ratio: 1/1;
}

.card-lavaggio:hover {
    transform: scale(1.2);
}

.card-manutenzione {
    transition: all 1s;
    position: relative;
    z-index: -1;
    background-image: url("../img/card/manutenzione-2.jpg");
    border-radius: 50%;
    background-size: contain;
    aspect-ratio: 1/1;
}

.card-manutenzione:hover {
    transform: scale(1.2);
}

.card-vendita {
    transition: all 1s;
    position: relative;
    z-index: -1;
    background-image: url("../img/card/vendita-tappeti.jpg");
    background-size: 300%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.card-vendita:hover {
    transform: scale(1.2);
}

#map {
    height: 600px;
}

.back-white {
    background-color: #ffffff;
}

.title-hover-video {
    position: absolute;
    bottom: 0px;
    margin-right: auto;
    margin-left: auto;
    left: 0;
    right: 0;
    text-align: center;
}

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

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

.navbar-toggler {
    margin-right: 0.5rem;
}

.back-black-trasparent {
    background: var(--black-trasparent);
}

.head-lavaggio {
    background-image: url("../img/header-lavaggio.jpg");
    background-size: cover;
    min-height: 65vh;
    background-position: 50%;
    position: relative;
    z-index: -1;
}

.head-manutenzione {
    background-image: url("../img/header-manutenzione.jpg");
    background-size: cover;
    min-height: 65vh;
    background-position: 50%;
    position: relative;
    z-index: -1;
}

.title-footer {
    font-weight: 700;
    text-transform: uppercase;
}

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

.icon-wa {
    font-size: 3rem;
}

.container-wa {
    background-color: var(--white);
    padding: 0.9em;
    border-radius: 10%;
    color: #7d7270;
    border: 3px solid #7d7270;
    z-index: 999999999;
    position: fixed;
    bottom: 298px;
    right: 25px;
}

.subtitle-contatti {
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 1em;
    padding-bottom: 1em;
    font-size: calc(33px + (33 - 29) * ((100vw - 300px) / (1920 - 300)));
    color: var(--primary);
}

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

.container-servizi {
    background-color: var(--black);
    position: relative;
    z-index: -1;
    min-height: 35vh;
}

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

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

.back-arredamento {

    background-image: url("../img/arredamento.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: 23% 80%;
}

.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/header-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 {
    font-size: calc(32px + (40 - 32) * ((100vw - 300px) / (1920 - 300)));
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red-section);
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

.subtitle-h3-page-inverted {
    font-size: calc(32px + (40 - 32) * ((100vw - 300px) / (1920 - 300)));
    text-transform: uppercase;
    font-weight: 700;
    color: var(--white);
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

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

.back-tessuti {

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

.container-contatti {
    position: absolute;
    color: white;
}

.back-tappeti-contatti {
    background-image: url("../img/back-tappeti.jpg");
    background-size: cover;
    min-height: 55vh;
    background-attachment: fixed;
}

.back-contemporanei {
    background-image: url("../img/contemporanei.jpg");
    min-height: 45vh;
    background-size: cover;

}

.back-antichi {
    background-image: url("../img/assortimento.jpg");
    min-height: 45vh;
    background-size: cover;

}

.back-vendita {
    background-image: url("../img/vendita-tappeti.jpg");
    min-height: 45vh;
    background-size: cover;
}

.back-trattamenti-acari {
    background-image: url("../img/vendita-tappeti.jpg");
    min-height: 45vh;
    background-size: cover;
}

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

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

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

.back-recupero {
    background-image: url("../img/servizi/restauro.jpg");
    background-position: bottom;
    min-height: 45vh;
    background-size: cover;
}

.back-manutenzione {
    background-image: url("../img/manutenzione-2.jpg");
    min-height: 45vh;
    background-size: cover;
}

.back-battitura {
    background-image: url("../img/battitura.jpg");
    min-height: 45vh;
    background-size: cover;
}

.back-smacchiatura {
    background-image: url("../img/smacchiatura.jpg");
    min-height: 45vh;
    background-size: cover;
}

.overlay-header {
    position: relative;
    opacity: 55%;
}

.overlay {
    padding: 5em;
    position: relative;
}

.overlay-card {
    position: relative;
    background-color: #00000081;
}

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

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

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

.logo-nav {
    width: 18%;
}

.logo-footer {
    width: 20%;
}

.navbar {
    background-color: var(--primary);
}

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

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

.nav-link {

    font-size: calc(18px + (22 - 18) * ((100vw - 300px) / (1920 - 300)));
    padding-left: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

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

.nopadding {
    padding: 0px;
}

.img-hover-video {
    width: 85%;
}

.spacing {
    padding-top: 1em;
}

.hover-video {
    padding: 0;
    border-radius: 0% 19% 18% 0% / 25% 51% 49% 25%;
    padding-left: 1em;
    background: #ffffff;
    background-size: cover;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30vw;
}

#back-video {
    z-index: -1;
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 88vh;
}

.content {
    z-index: 1;
    min-height: 80vh;
}

.text-start {
    padding-bottom: 2em;
    font-size: calc(20px + (22 - 20) * ((100vw - 300px) / (1920 - 300)));
}

.text {
    padding-left: 1em;
    font-size: calc(20px + (22 - 20) * ((100vw - 300px) / (1920 - 300)));
}

.title-text-inverted {
    padding-top: 1em;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

.title-text {
    padding-top: 1em;
    color: var(--red-section);
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
}

.text-arredamento {
    box-shadow: -5.5px 1px 12px 1.5px #a3a3a3;
}

.title {
    margin-bottom: 0;
    padding-top: 1em;
    color: var(--red-section);
    text-transform: uppercase;
    font-size: calc(32px + (32 - 20) * ((100vw - 300px) / (1920 - 300)));
    padding-bottom: 1em;
    line-height: 0.5em;
    font-weight: 700;
}

.title-inverted {
    margin-bottom: 0;
    padding-top: 1em;
    color: var(--white);
    text-transform: uppercase;
    font-size: calc(32px + (32 - 20) * ((100vw - 300px) / (1920 - 300)));
    padding-bottom: 1em;
    line-height: 1em;
    font-weight: 700;
}

.subtitle {
    font-size: calc(11px + (12 - 11) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 600;
}

.provincia {

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

.footer {
    background-color: var(--red-section);
    padding: 2em;
    color: var(--white)
}

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

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

.bordered-top {
    border-top: 4px solid var(--red-section);
}

.bordered-top-inverted {
    border-top: 4px solid var(--white);
}

.navbar-brand {
    width: 60vw;
}

.logo-nav {
    width: 20vw;
}

.navbar-brand {
    width: 20vw;
}

@media only screen and (max-width:1920px) {
    .title-icon {
        padding: 0em;
        padding-top: 1em;
        padding-bottom: 1em;
        color: var(--primary);
    }

    .head-lavaggio {
        min-height: 70vh;
    }

    .head-vendita {
        min-height: 70vh;
    }

    .head-manutenzione {
        min-height: 70vh;
    }

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

    .title-card {
        color: var(--white);
        font-weight: 600;
        font-size: 1.4rem;
    }
}

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

    #back-video {
        padding-top: 6em;
        z-index: -1;
        object-fit: cover;
        position: unset
    }

    .content {
        min-height: unset
    }

    .nav-link {
        font-size: calc(18px + (17 - 15) * ((100vw - 300px) / (1920 - 300)));
    }

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

    .logo-footer {
        width: 40%;
    }

    .hover-video {
        bottom: 22%;
        width: 40vw;
        min-height: unset;

    }

    .img-hover-video {
        width: 80%;
    }
}

@media only screen and (max-width:1333px) {
    .hover-video {
        bottom: 30%;


    }

    .nav-item {
        font-size: calc(8px + (9 - 8) * ((100vw - 300px) / (1920 - 300)));
        padding-right: 0.5em;
    }

    .back-tessuti {
        min-height: 70vh;
    }
}

@media only screen and (max-width:1224px) {
    .hover-video {
        bottom: 30%;

    }

}

@media only screen and (max-width:1180px) {
    .hover-video {
        bottom: 35%;

    }

}

@media only screen and (max-width:1060px) {
    .box {
        border: 4px solid var(--primary);
        padding: 1em;
        margin-left: unset;
        margin: 1rem;
    }

    #map {
        height: 300px;
    }

    .hover-video {
        bottom: 43%;

    }

    .nav-link {
        font-size: calc(15px + (15 - 13) * ((100vw - 300px) / (1920 - 300)));
    }

    .nav-item {
        padding: 0;
        padding-right: 1em;
    }

    .hover-video {
        width: 60vw;
        min-height: unset;
    }

    .back-tappeti-contatti {
        min-height: 35vh;
    }

    .overlay {
        padding: 2em;
    }

    .logo-footer {
        width: 40%;
    }



}


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

    .logo-nav {
        width: 40vw;
    }

    .navbar-brand {
        width: 40vw;
    }

    .box {
        border: 4px solid var(--primary);
        padding: 1, 5em;
        margin-left: unset;
        margin: 1rem;
    }

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

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

    .subtitle-h3-page {

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

    .subtitle-h3-page-inverted {
        font-size: calc(32px + (32 - 22) * ((100vw - 300px) / (1920 - 300)));
    }

    .link-footer {
        font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
    }

    .back-tappeti-nain {
        min-height: 35vh;
    }

    .back-esperienza {
        min-height: 35vh;
    }

    .back-tappeto {
        min-height: 35vh;
    }

    .back-vendita {
        min-height: 35vh;
    }

    .back-antichi {
        min-height: 35vh;
    }

    .dati-aziendali {
        padding: 1em;
    }

    .nav-link {
        font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
    }

    .logo-nav {
        width: 40%;
    }

    .hover-video {
        padding-left: 0px;
        width: 60vw;
        bottom: 55%;
    }

    .img-hover-video {
        width: 100%;
    }

    .back-tessuti {
        min-height: 35vh;
    }

    .back-arredamento {
        min-height: 35vh;
    }

    .logo-footer {
        width: 80%;
    }

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

@media only screen and (max-width:620px) {
    .text {
        text-align: left;
        font-size: calc(18px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
        padding: 1em;
    }

    .icon-wa {
        font-size: 2rem;
    }

    .container-wa {
        right: 10px;
        bottom: 25vh;
    }

    .overlay {
        padding: 3em;
    }

    .spacing-footer {
        padding-top: 1em;
        padding-bottom: 1em;
    }

    .logo-footer {
        width: 100%;
    }

    .logo-nav {
        width: 60%;
    }

    .img-hover-video {
        width: 100%;
    }

    .title {
        line-height: 2rem;
    }

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

    .back-arredamento {
        min-height: 35vh;
    }

    .back-tessuti {
        min-height: 35vh;
    }

    .back-tappeto {
        min-height: 35vh;
    }

    .hover-video {
        padding: 0em;
        border-radius: unset;
        border-radius: 0% 14% 11% 0% / 25% 50% 50% 25%;
        background-color: var(--white);
        position: absolute;
        bottom: 62%;
        width: 60vw;

    }
}

@media only screen and (max-width:520px) {
    #back-video {
        padding-top: 6em;
        z-index: -1;
        object-fit: contain;
        position: unset;
        height: unset;
    }

    .hover-video {
        bottom: 72%;
    }

    #map {
        height: 300px;
    }

    .dati-aziendali {
        padding: 1.6em;
    }
}

@media only screen and (max-width:510px) {
    .hover-video {
        bottom: 68%;
    }

    .box {
        border: 4px solid var(--primary);
        padding: 0.3em;
        margin-left: unset;
        margin: 1rem;
    }

    .logo-nav {
        width: 40vw;
    }

    .navbar-brand {
        width: 40vw;
    }
}

@media only screen and (max-width:375px) {
    .hover-video {
        bottom: 50%;
    }
}

@media only screen and (max-width:356px) {
    .hover-video {
        bottom: 75%;
    }

}