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

#headindex {
    backface-visibility: hidden;
    animation: headindex 20s linear infinite 0s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    background: url("../img/slider/1.jpg");
    min-height: 99vh;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

@keyframes headindex {
    33% {
        background: url("../img/slider/2.jpg");
        background-position: top;
        background-size: cover;
    }

    66% {
        background: url("../img/slider/3.jpg");
        background-position: top;
        background-size: cover;
    }
}

body {
    font-family: "Baskerville Old Face";
}

/*----------------- Preloading slider image avoid loading during animation---------------- */
body:after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content:
        url(../img/slider/1.jpg) url(../img/slider/2.jpg) url(../img/slider/3.jpg);
}

/*----------------- Preloading slider image avoid loading during animation---------------- */
.bordered-top {
    border-top: 6px solid var(--btn-hover);
}

.img-index {
    border: 6px solid var(--btn-hover);
}

/* ------------------- START HEADER ------------------------------- */
.header-impagliatore {
    background-image: url("../img/head-pagine/impagliatore.jpg");
    background-size: cover;
    min-height: 85vh;
    background-repeat: no-repeat;
}

.header-impagliatore-tradizionale {
    background-image: url("../img/head-pagine/classico.jpg");
    background-size: cover;
    min-height: 75vh;
    background-position: center;
    background-repeat: no-repeat;
}

.header-architetture {
    background-image: url("../img/head-pagine/architetture.jpg");
    background-size: cover;
    min-height: 85vh;
    background-position: 20% 30%;
    background-repeat: no-repeat;
}

.header-classico {
    background-image: url("../img/head-pagine/impagliatore.jpg");
    background-size: cover;
    min-height: 75vh;
    background-position: 20% 30%;
    background-repeat: no-repeat;
}

.header-vision {
    background-image: url("../img/head-pagine/vision.jpg");
    background-size: cover;
    min-height: 85vh;
    background-position: 20% 30%;
    background-repeat: no-repeat;
}

/* ------------------- START Background ------------------------------- */
.back-header {
    background-image: url("../img/laboratorio.jpg");
    background-size: cover;
    min-height: 99vh;
}

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

.back-impagliatore-2 {
    background-image: url("../img/impagliatore.jpg");
    background-size: cover;
    background-position: right;
    min-height: 65vh;
}

.back-sedia {
    background-image: url("../img/sedia.jpg");
    background-size: cover;
    min-height: 85vh;
    background-position: 30% 50%;
}

.back-vision-1 {
    background-image: url("../img/vision/impagliatore.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: 30% 20%;
}

.back-vision-2 {
    background-image: url("../img/vision/attrezzi.jpg");
    background-size: cover;
    min-height: 55vh;
    background-position: 30% 20%;
}

.back-architettura-1 {
    background-image: url("../img/architettura/1.jpg");
    background-size: 34vw;
    background-repeat: no-repeat;
    min-height: 55vh;
    background-position: 50% 50%;
}

.back-architettura-2 {
    background-image: url("../img/architettura/2.jpg");
    background-size: cover;
    min-height: 65vh;
    background-repeat: no-repeat;
    background-size: 40vw;
    background-position: 30% 70%;
}

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

.back-tradizionali {
    background-image: url("../img/tradizionali.jpg");
    background-size: cover;
    min-height: 60vh;
    background-position: 30% 20%;
}

.back-tradizionali-2 {
    background-image: url("../img/tradizionali-2.jpg");
    background-size: cover;
    min-height: 60vh;
    background-position: 30% 20%;
}

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

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

.back-storia {
    background-image: url("../img/storia.jpg");
    background-size: cover;
    background-position: 30% 40%;
    min-height: 45vh;
    width: 30vw;
    border-radius: 25% 43% 38% 25% / 0% 45% 51% 0%;
}

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

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

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

/* ------------------- END Background ------------------------------- */

.img-hover {
    border-radius: 0% 26% 23% 0% / 25% 50% 50% 25%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1em;
}

/* ------------------- WHATSAPP ICON ------------------------------- */
.container-wa {
    background-color: var(--white);
    padding: 0.7em;
    border-radius: 10%;
    color: #5e2b20;
    z-index: 999999999;
    position: fixed;
    bottom: 25px;
    right: 25px;
}

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

/* ------------------- NAVBAR ------------------------------- */
.navbar {
    background-color: var(--navbar);
}


.nav-link {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.1rem;
}

.nav-link:hover {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--btn-hover);
    letter-spacing: 0.1rem;
}



/* ------------------- TEXT - SUBTITLE -TITLE ------------------------------- */
.title-page {
    padding-left: 0.5em;
    padding: 1em;
    line-height: 1.4rem;
    color: var(--white);
    font-size: calc(55px + (55 - 35) * ((100vw - 300px) / (1920 - 300)));
    text-transform: uppercase;
    font-weight: 600;
}

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

.text-pages {
    font-family: 'Roboto', sans-serif;
    padding: 4em;
    font-size: calc(18px + (18 - 14) * ((100vw - 300px) / (1920 - 300)));
}

.title-header-index {
    padding: 0.8em;
    line-height: 2.4rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--secondary);
    font-size: 9rem;
    font-weight: 700;
}

.subtitle-header-index {

    margin-bottom: 0;
    line-height: 0.3rem;
    text-transform: uppercase;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 700;
}

.title-index {
    margin-bottom: 0;
    padding-top: 1em;
    padding-bottom: 1em;
    text-transform: uppercase;
    color: var(--secondary);
    font-size: calc(52px + (52 - 30) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 700;

}

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

.subtitle-section {
    font-size: calc(32px + (32 - 28) * ((100vw - 300px) / (1920 - 300)));
    text-align: left;
    padding-left: 1em;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.subtitle-section-inverted {
    font-size: calc(32px + (32 - 28) * ((100vw - 300px) / (1920 - 300)));
    text-align: left;
    padding-left: 1em;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
}

.subtitle-index {
    font-size: calc(53px + (53 - 22) * ((100vw - 300px) / (1920 - 300)));
    text-align: left;
    padding-left: 1em;
    padding-bottom: 1em;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
}

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

.container-subtitle {
    position: relative;
    z-index: -1;
    padding: 3em;
    padding-left: 0;
}

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

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

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

}

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

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

/* ------------------- BUTTON ------------------------------- */
.button {
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-back);
    border: 1px solid var(--btn-back);
    color: var(--white);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.button-inverted {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-nav-back);
    border: 1px solid var(--btn-back);
    color: var(--white);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.button-inverted:hover {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-back);
    border: 1px solid var(--btn-back);
    color: var(--white);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.button:hover {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-hover);
    border: 1px solid var(--btn-back);
    color: var(--black);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(20px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.btn-nav {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-nav-back);
    border: 1px solid var(--btn-back);
    color: var(--white);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(16px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    white-space: nowrap;

}

.btn-nav:hover {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    background-color: var(--btn-hover);
    border: 1px solid var(--btn-back);
    color: var(--black);
    padding: 0.5em;
    border-radius: 10px;
    font-size: calc(16px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
}

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

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

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

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

/* ------------------- FOOTER ------------------------------- */
.footer {
    background-color: var(--secondary);
    padding: 3em;
    padding-bottom: 0em;
    color: var(--white)
}

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

.dati-aziendali {
    font-family: 'Roboto', sans-serif;
    background-color: #262626;
    color: var(--white);
    padding: 0.5em;
    margin-bottom: 0px;
}

.logo-footer {
    width: 45%;
}

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

.subtitle-footer {
    font-family: 'Roboto', sans-serif;
    font-size: calc(35px + (35 - 22) * ((100vw - 300px) / (1920 - 300)));
}

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

.spacing {
    padding-top: 3em;
}

.bordered {
    border: 1px solid white;
}

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

#map {
    height: 360px;
}

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

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

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

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

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

.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: 30%;
}

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

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

.nopadding {
    padding: 0px;
}

#videohead {
    position: relative;
    z-index: -1;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

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

.dati-aziendali a {
    color: #fff;
    text-decoration: none;
}

.img-gallery {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    object-position: top center;
    object-fit: cover;
}

@media only screen and (max-width:1333px) {
    .text-chi-sono {
        font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    }

    #video-home {
        bottom: 35vh;
    }

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

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

    .nav-link {
        font-size: .5em;
    }

    .title-page {
        line-height: normal;
    }

    .header-architetture,
    .header-impagliatore,
    .header-classico,
    .header-vision {
        min-height: 35vh;
    }

    .back-storia {
        display: none;
    }
}

@media only screen and (max-width:768px) {
    .title {
        padding: 0;
    }

    .subtitle-h1 {
        padding: 0;
    }

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

    .section-contatti {
        padding: 1em;
    }

    #video-home {
        bottom: 15vh;
    }
}

@media only screen and (max-width:580px) {
    .nav-link {
        font-size: .8em;
    }

    .btn-nav {
        margin-left: 2rem;
    }

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

    .header-vision {
        min-height: 45vh;
    }

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

    .title-page {
        line-height: 2rem;
        font-size: calc(18px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    }

    .back-vision-1 {
        min-height: 35vh;
    }

    .back-vision-2 {
        min-height: 35vh;
    }

    .back-architettura-1 {
        background-size: cover;
        min-height: 35vh;
    }

    .back-architettura-2 {
        background-size: cover;
        min-height: 35vh;
    }

    .button {
        margin-bottom: 1em;
    }

    .footer {
        padding: 1em;
    }

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

    .container-logo-footer {
        text-align: center;
    }

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

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

    .subtitle-section-inverted {
        padding: 1;
        padding-top: 2em;
        font-size: calc(28px + (28 - 22) * ((100vw - 300px) / (1920 - 300)));
    }

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

    .text {
        text-align: center;
        padding: 2em;
    }

    .container-subtitle {
        padding: 0em;
    }

    .back-storia {
        width: 100vw;
    }

    .title-header-index {
        font-size: 6rem;
        padding: 0.6em;
        padding-left: 0;
    }

    .subtitle-header-index {
        font-size: 1.4rem;
    }

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

    .back-sedia {
        background-image: url("../img/sedia.jpg");
        background-size: cover;
        min-height: 85vh;
        background-position: 30% 20%;
    }

    .title-page {
        font-size: calc(35px + (35 - 15) * ((100vw - 300px) / (1920 - 300)));
    }

    .text-pages {
        padding: 1em;
        padding-left: 2em;
    }

    .header-impagliatore {
        background-image: url("../img/head-pagine/impagliatore.jpg");
        background-size: cover;
        min-height: 35vh;
        background-repeat: no-repeat;
    }

    .header-architetture {
        background-image: url("../img/head-pagine/architetture.jpg");
        background-size: cover;
        min-height: 35vh;
        background-position: center;
        background-repeat: no-repeat;
    }

    .header-classico {
        background-image: url("../img/head-pagine/impagliatore.jpg");
        background-size: cover;
        min-height: 35vh;
        background-position: 80% 30%;
        background-repeat: no-repeat;
    }

    .header-vision {
        background-image: url("../img/head-pagine/vision.jpg");
        background-size: cover;
        min-height: 35vh;
        background-position: 20% 30%;
        background-repeat: no-repeat;
    }

    .container-wa {
        border: 2px solid var(--btn-hover);
        bottom: 15vh;
        right: 10px;
    }

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

    .logo-nav {

        width: 30%;
    }

    #map {
        height: 250px;
    }

    .title {
        padding: 0;
    }

    .content {
        min-height: 65vh;
    }

    .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(13px + (15 - 13) * ((100vw - 300px) / (1920 - 300)));
    }
}