/* afacad-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Afacad';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/afacad-v1-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* afacad-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Afacad';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/afacad-v1-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
    --bg-dark: #222;
    /*--rosso: #781D31;*/
    --grigio-chiaro: #F8F8F8;
    --grigio-scuro: #CCCCCC;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

a{
    text-decoration: none;
}

html, body {
    height: 100%;
    font-family: 'Afacad', sans-serif;
    color:#222;
    scrollbar-width: thin;
    scrollbar-color: transparent;
    font-size: 110%;
}

/* Works on Chrome, Edge, and Safari */
body::-webkit-scrollbar {
    width: 3px;
    border-radius: 20px;
}

body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0);
}

body::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 20px;
    border: 0;
}

body{
    overflow-x: hidden;
}

h1{
    font-size: calc(32px + (46 - 32) * ((100vw - 360px) / (1700 - 360)));
    text-transform: uppercase;
    font-weight: normal;
}
h2{
    font-size: calc(22px + (32 - 22) * ((100vw - 360px) / (1700 - 360)));
    text-transform: uppercase;
}
h3{
    font-size: calc(18px + (26 - 18) * ((100vw - 360px) / (1700 - 360)));
    text-transform: uppercase;
}
h4{
    font-size: calc(18px + (24 - 18) * ((100vw - 360px) / (1700 - 360)));
}


input:focus, select:focus, button:focus, a:focus{
    outline: none;
}

.overlayed{
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,.5);
}

.slider-home-container{
    height: 80vh;
    margin-top: 20vh;
    overflow: hidden;
}



.slide-home{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 80vh;
}

@media(max-width: 1199px) and (orientation: portrait){
    .slider-home-container{
        height: 50vh;
        margin-top: 12vh;
    }
    .slide-home{
        height: 50vh;
    }
}

.navbar{
    padding: 1rem;
}

@media(max-width: 1199px){

    .navbar{
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 999;
    }
}

.menu_desktop > a, .menu_desktop .con-figli{
    color: #222;
    background-color: transparent;
    display: inline-block;
    text-decoration: none;
    font-size: 22px;
    position: relative;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
}

.menu_desktop .con-figli{
    background-color: transparent;
    color:#222 !important;
}

.menu_desktop > a:after, .menu_desktop .con-figli a:after{
    content: '';
    display: block;
    border-bottom: 1px solid #222;
    width: 0;
    position: absolute;
    left: 1.5rem;
    bottom: 0.6rem;
    -webkit-transition: 1s ease;
    transition: width 0.2s ease, opacity 0.3s ease;
    opacity: 0;
}

.menu_desktop > a:hover:after, .menu_desktop .con-figli a:hover:after{
    width: calc(100% - 3rem);
    opacity: 1;
}

.menu_desktop .con-figli a:after{
    bottom: 0.3rem;
}

header.trasparente .menu_desktop .con-figli a:after{
    border-bottom: 1px solid white;
}


a.lingua{
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background-color: white;
    border: 1px solid white;
    color: #222 !important;
    transition: all 0.3s;
}

a.lingua:hover{
    background-color: #222;
    color:white !important;
}


.con-figli > div{
    position: absolute;
    display: none;
    background-color: #222;
    visibility: hidden;
    opacity: 0;
    transition-property: opacity, visibility;
    transition-duration: .4s, 0s;
    transition-delay: 0s, .4s;
    z-index: 999;
    left: 0;
    width:100%;
    padding: 0.5rem 0;
}

header:not(.trasparente) .con-figli > div{
    background-color: rgba(255,255,255,0.95);
    border: 1px solid #222;
    text-align: center;
    padding: 14px 0;
}

.con-figli:hover > div{
    display: block;
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s, 0.2s;
}

.con-figli > div a{
    position: relative;
    display: block;
    white-space: nowrap;
    padding: 8px 0;
    color: white;
    text-align: center;
    font-size: 80%;
}

.ristretto{
    width:94vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1700px;
}

.strettissimo{
    width:94vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

main{
    background-color: white;
}

.resetmargin:before{
    content: "";
    display: block;
    width: auto;
    margin: 0.5vw;
    height: calc(6vw + 2rem);
    min-height: calc(40px + 2rem);
    max-height: calc(70px + 2rem);
}

.copertina{
    width: 100%;
    padding-bottom: 50%;
    background-size: cover;
    background-position: center;
}

@media (orientation: landscape){
    .copertina{
        padding-bottom: 25%;
    }
}


.btn-mio{
    color: white;
    outline: none;
    background-color:var(--bg-dark);
    border: 2px solid var(--bg-dark);
    padding: 5px 16px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all .2s ease;
    transform-style: preserve-3d;
    font-size: calc(14px + (18 - 14) * ((100vw - 360px) / (1920 - 360)));
}

.btn-mio:before{
    z-index: -2;
    transform: translate3D(0,0,0);
}

.btn-mio:before, .btn-mio:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: white; /* onhover background color */
    z-index: -1;
    transition: all .2s ease-in-out;
    transform-origin: center center;
    transform: scale(1,0);
}

.btn-mio:hover:after{
    transform: translate3D(0,0,0);
    transition: all .2s ease-in-out;
}

.btn-mio:hover{
    color: #222;
}

.btn-mio:hover:before,
.btn-mio:hover:after{
    transform: scale(1);
}

.lightGallery a{
    max-width: 500px;
    color: #222;
    font-size: 18px;
    cursor: pointer;
}

.lightGallery .immagine{
    padding-bottom: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.3s;
}


.lightGallery{
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr) ) ;
}

.lightGallery-small{
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr) ) ;
}


@media(max-width: 1199px){

    .lightGallery{
        display: grid;
        grid-gap: 0.5rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr) ) ;
    }

    .lightGallery.a4{
        white-space: nowrap;
        display: block;
        overflow-x: scroll;
    }

    .lightGallery.a4 .immagine{
        width: 280px;
        display: inline-block;
    }
}

.lightGallery a .video{
    cursor: pointer;
}

.flex-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

.bg-cover{
    width: 100%;
    padding-bottom: 56%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.bg-cover-70{
    width: 100%;
    padding-bottom: 70%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.bg-cover.bg-cover-quadrato{
    padding-bottom: 100%;
}

.bg-contain{
    width: 100%;
    padding-bottom: 75%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.social-container a{
    font-size: 52px;
    transition: all 0.2s;
    color: #222;
}

.social-container a:hover{
    color: #666 !important;
}
.breadcrumb{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    padding-left: 0!important;
}

.breadcrumb a{
    color: #666;
}

.breadcrumb li.active{
    color:#222;
}
.breadcrumb-item+.breadcrumb-item:before{
    padding-left: 4px;
    padding-right: 4px;
}

@media (max-width: 700px) {
    .breadcrumb-item{
        font-size: 12px !important;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.testo a{
    color: #666;
    transition: all 0.2s;
}

.testo a:hover{
    color: #222;
}

.spinner{
    position: relative;
}

.spinner:before{
    display:block;
    content: " ";
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right: 0;
    background-color: rgba(255,255,255, 0.7);
    z-index:998;
}

.spinner:after{
    display:block;
    content: "";
    z-index:999;
    position: absolute;
    left: 50%;
    top: 50%;
    height:60px;
    width:60px;
    margin:-30px  auto auto -30px;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
    border-left:6px solid rgba(34, 34, 34, 0.25);
    border-right:6px solid rgba(34, 34, 34, 0.25);
    border-bottom:6px solid rgba(34, 34, 34, 0.25);
    border-top:6px solid rgba(34, 34, 34, 0.8);
    border-radius:100%;
}

@media (max-width: 960px){
    .spinner:after{
        position: fixed;
    }
}

@-webkit-keyframes rotation {
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(359deg);}
}
@-moz-keyframes rotation {
    from {-moz-transform: rotate(0deg);}
    to {-moz-transform: rotate(359deg);}
}
@-o-keyframes rotation {
    from {-o-transform: rotate(0deg);}
    to {-o-transform: rotate(359deg);}
}
@keyframes rotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(359deg);}
}

.my-menu-container{
    position: fixed;
    top: 0;
    left:0;
    min-height: 100vh;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    color:white;
    z-index: 10;
    display:none;
}

a.mburger:hover{
    color: white;
    text-decoration: none;
}

#my-menu ul{
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 0;
    margin-top: 250px;
}

#my-menu a{
    padding-top: calc(6px + (12 - 6) * ((100vw - 360px) / (1920 - 360))) !important;
    padding-bottom: calc(6px + (12 - 6) * ((100vw - 360px) / (1920 - 360))) !important;
    font-size: calc(26px + (38 - 26) * ((100vw - 360px) / (1920 - 360))) !important;
    color:white;
    text-decoration: none;
    display: block;
}

.bg-grigio{
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

a.lingua{
    cursor: pointer;
}
.lingue-container{
    padding: 50px 10px 10px 10px;
    left: -10px;
    background-color: white;
    position: absolute;
    top: -15px;
    border: 1px solid #ccc;
}

.lingue-container a{
    margin-top: 8px;
    display: inline-block;
}

header{
    transition: all 0.2s ease !important;
    z-index: 9999;
    background-color: transparent;
}

header{
    background-color: rgba(255,255,255,1);
    box-shadow: 0 -3px 3px 3px rgba(0,0,0,0.5);
}

header:not(.trasparente) a, header:not(.trasparente) div{
    color: #222 !important;
    text-shadow: none;
}


header a.lingua{
    background-color: #222 !important;
    color: white !important;
    border-radius: 4px;
}

a.logo{
    position: relative;
    padding: 0.5rem 0;
}

header a.logo div{
    height: calc(7vh);
    min-height: 30px;
    max-height: 90px;
    margin: 0 auto;
    width: auto;
    opacity: 1;
    background-image: url('../img/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s;
}

@media (min-width: 1199px) {
    header.trasparente a.logo div{
        height: calc(14vh);
        min-height: 40px;
        max-height: 120px;
        transition: all 0.3s;
        background-image: url('../img/logo.png');
    }

}

.marginato{
    width: 100%;
}

@media(min-width: 992px){
    .marginato{
        width: 96vw;
        margin: 0 auto;
    }
}

.logo-home{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:white;
    font-size: calc(16px + (24 - 16) * ((100vw - 360px) / (1700 - 360)));
    text-align: left;
}

.logo-home img{
    width: 80% !important;
    max-width: 260px !important;
    height: auto !important;
}

.logo-home .riga{
    width: 80%;
    margin: 0.5rem 0;
    height: 2px;
    background-color: white;
}

.overflow-y {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0,0,0,0);
}
/* Works on Chrome, Edge, and Safari */
.overflow-y::-webkit-scrollbar {
    width: 3px;
}

.overflow-y::-webkit-scrollbar-track {
    background: rgba(0,0,0,0);
}

.overflow-y::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 0;
}

.pagina-home{
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
    border-top: 1px solid var(--grigio-scuro);
}

.pagina-home{
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    border-top: 1px solid var(--grigio-scuro);
}

@media(max-width: 1199px){
    .pagina-home{
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    header a.logo div{
        background-position: center center;
    }
}

.pagina-home:nth-of-type(1){
    background-color: var(--grigio-chiaro);
}

.pagina-home:nth-of-type(2){
    background-color: #222;
}

.bg-grigio-chiaro{
    background-color: var(--grigio-chiaro);
}

footer{
    border-top: 1px solid var(--grigio-scuro);
}

.riga-dark{
    margin: 1rem auto;
    height: 2px;
    width: 100px;
    background-color: var(--bg-dark);
}

.menu-footer-container{
    text-align: center;
    margin: 1rem 0 !important;
}

.menu-footer-container a {
    color: #222 !important;
    display: inline-block;
    border-bottom: 1px solid white;
    border-top: 1px solid white;
    padding: 4px 8px;
    transition: all 0.2s;
    font-size: calc(14px + (16 - 14) * ((100vw - 360px) / (1700 - 360)));
    position: relative;
}


.menu-footer-container a:after{
    content: '';
    display: block;
    border-bottom: 1px solid #222;
    width: 0;
    position: absolute;
    left: 8px;
    bottom: 0.2rem;
    -webkit-transition: 1s ease;
    transition: width 0.2s ease, opacity 0.3s ease;
    opacity: 0;
}

.menu-footer-container a:hover{
    color: #222;
}

.menu-footer-container a:hover:after{
    width: calc(100% - 16px);
    opacity: 1;
}


.p-6{
    justify-content: center;
    min-height: 56vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
}
.animation-appear:not(.slick-slide){
    animation: animateAppear linear 0.4s;
    animation-iteration-count: 1;
    animation-fill-mode: backwards;
    overflow: hidden;
}

@keyframes animateAppear {
    0% {
        opacity: 0;
        transform: scale(0.98);
        transition: transform 0.1s, opacity 0.2s;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        transition-delay: 0s;
    }
}

.mw-1200{
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

@media (min-width: 1200px) {
    .reset-margin-desktop{
        margin-left: -1rem !important; margin-right: -1rem !important;
    }
}
.arrow{
    position: relative;
}

.arrow:after {
    transition: all 0.2s ease-in-out;
    content:"\f078 ";
    font-family: FontAwesome;
    color: #222;
    position: absolute;
    right: 10px;
    top: 20%;
    z-index: 1;
    pointer-events: none;
}


.arrow.attivo:after{
    transform: rotate(180deg);
}

.h-100-pagina{
    height: 100%;
    min-height: 300px;
}

.logo_footer img{
    width: 100%;
    height: auto;
    max-width: 250px;
}

.servizio{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding-bottom: 40%;
    transition: all 0.2s;
}

.servizio:hover{
    filter: saturate(0);
}

@media (min-width: 1200px) {
    .g-xl-6 {
        --bs-gutter-x: 5rem !important;
    }
    .py-xl-6 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

.btn-mio-servizi{
    width: 150px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    text-align: center;
}

.generic_form input, .generic_form textarea{
    background: none;
    border: 1px solid #ccc;
    padding: 6px;
    width: 100%;
}

.generic_form textarea{
    min-height: 300px;
}

.pagina-testo-container a{
    color: #222;
    transition: all 0.2s;
}

.pagina-testo-container a:hover{
    color: #666;
}

.didascalia-nera{
    text-align: center;
    position: absolute;
    top:80%;
    transform: translateY(-50%) scale(1, 0);
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color:white;
    padding: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.thumb:hover .didascalia-nera{
    opacity: 1;
    transform: translateY(-50%) scale(1, 1);
}

.didascalia-nera h3{
    font-size: calc(16px + (22 - 16) * ((100vw - 360px) / (1700 - 360)));
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: bold;
}

.dati-footer a{
    color: #222 !important;
}

.mburger{
    color: #222;
}

.border-ccc{
    border-color: #ccc;
}