body{
    background-color: var(--grigio02)
}

#contenitore{
    padding-top: 0 !important;
}


.STILE_head_chisiamo{

    .immagine {

			position: relative;
        	overflow: clip;
			display: block;
			width: 100%;
			margin: 0 auto;

			&::before {
				content: '';
				display: block;
				padding-top: 100%;
			}

			picture,
			#picture {
				position: absolute;
        		overflow: clip;
				top: 0%;
				left: 0%;
				width: 100%;
				height: 100%;

				img {
					position: absolute;
					margin: auto auto;
					left: -10000%;
					right: -10000%;
					top: -10000%;
					bottom: -10000%;
					/*queste caratteristiche sotto x effetto COVER*/
                    max-width: 10000% !important;
                    min-width: 1000%;
                    min-height: 1000%;
                    -webkit-transform: scale(0.1);
                    transform: scale(0.1);
                    object-fit: cover;
					/*queste caratteristiche sotto x effetto CONTAIN
					object-fit: contain;
					max-width: 100%;
					max-height: 100%;
					-webkit-transform: scale(1);
					transform: scale(1);*/
				}
			}
		}


    &.decor{
        &::before, &::after{
            content: "";
            position: absolute;
            display: block;
            width: 128px;
            height: 100%;
            background-image: url('/css/images/bgrighe.png');
            background-size: 128px 1px;
            z-index: -1;
        }

        >*{
            z-index: 1;
        }

        &::before{
            top: 0;
            left: calc(50% + 8px);
            transform: translateX(-50%);
            width: 146px;

            @media only screen and (max-width: 980px) {
                display: none;
            }
        }

        &::after{
            top: 0;
            right: 0;
            width: 64px;

            @media only screen and (max-width: 980px) {
                right: 5svw;
                transform: none;
                opacity: .5;
                width: 96px;
            }
        }
    }
    

}




.STILE_home_w-bg{

    article{
        
        position: relative;
        color: var(--bianco);

        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4rem;
        z-index: 1;
    }

    @media only screen and (max-width: 980px) {
        article{
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

    &::before{
        content: "";
        position: absolute;
        display: block;
        top: 0;
        left: calc(50svw - 490px);
        transform: translateX(-50%);
        width: 240px;
        height: 100%;
        background-image: url('/css/images/bgrighe.png');
        background-size: 128px 1px;
        z-index: 0;

        @media only screen and (max-width: 980px) {
            left: 5svw;
            transform: none;
            opacity: .5;
        }
    }
}


.STILE_home_cta{

    >*{
        z-index: 1;
    }

    &::before, &::after{
        content: "";
        position: absolute;
        display: block;
        width: 224px;
        height: 100%;
        background-image: url('/css/images/bgrighe.png');
        background-size: 128px 1px;
        z-index: 0;

        filter: brightness(1.3);
    }

    &::before{
        top: 0;
        left: -1px;
        transform: scaleX(-1);
    }

    &::after{
        top: 0;
        right: -1px;
    }
}


.STILE_home_grid{

    position: relative;
    overflow: clip;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;

    >*{
        margin: -1.5px;
    }

    @media only screen and (max-width: 680px) {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    @media only screen and (max-width: 480px) {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

.STILE_home_list{

    position: relative;
    overflow: visible;

    display: grid;
    grid-template-columns: 1fr;
    gap: 0;


}



.homegallery{
    width: 100svw !important;
    max-width: 100svw !important;

    .cella {

        	overflow: clip;
			display: block;
			width: 380px;
            max-width: 70svw;
			margin: 0 .5rem;

			&::before {
				content: '';
				display: block;
				padding-top: 100%;
			}

			picture,
			#picture {
				position: absolute;
        		overflow: clip;
				top: 0%;
				left: 0%;
				width: 100%;
				height: 100%;

				img {
					position: absolute;
					margin: auto auto;
					left: -10000%;
					right: -10000%;
					top: -10000%;
					bottom: -10000%;
					/*queste caratteristiche sotto x effetto COVER*/
                    max-width: 10000% !important;
                    min-width: 1000%;
                    min-height: 1000%;
                    -webkit-transform: scale(0.1);
                    transform: scale(0.1);
                    object-fit: cover;
					/*queste caratteristiche sotto x effetto CONTAIN
					object-fit: contain;
					max-width: 100%;
					max-height: 100%;
					-webkit-transform: scale(1);
					transform: scale(1);*/
				}
			}
		}
}


header {

    &.bigslide {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: calc(100svh);
        margin: 0;
        z-index: 2;

        @media only screen and (max-width: 980px) {
            min-height: 100svh;
            height: min-content;
        }

        .cont-slide {
            position: relative;
        overflow: visible;
            display: block;
            width: 100%;
        }



        .intro {
                    
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    width: var(--larghezzamin);
                    max-width: 94vw;
                    overflow: clip;
                    display: block;
                    z-index: 5;
                    margin: 0 auto;
                    padding: 5rem 0;
                    transition: all 0.56s cubic-bezier(0.52, 0.16, 0.24, 1);
                    
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    align-items: center;

                    text-align: center;

                    @media only screen and (max-width: 1440px) {
                        padding: 4rem 0;
                    }

                    @media only screen and (max-width: 980px) {
                        padding: 4rem 0;
                    }


                    /* .tit {
                        margin: 0 0 1rem;
                        font-size: clamp(3rem, 5svw, 4.5rem);
                        font-weight: 900;
                        line-height: 1;
                        color: var(--bianco);
                        text-transform: uppercase;

                        b, strong {
                            font-weight: 800;
                        }
                    }


                    .intro-txt{
                        font-size: clamp(1rem, 3svw, 1.3rem);
                        color: var(--bianco);
                        text-transform: uppercase;
                        letter-spacing: .25em;
                        margin: 0;
                    }

                    .tit, .intro-txt, .quote{

                    } */


                    .head_ico {
                        position: relative;
                        overflow: clip;
                        display: block;
                        flex-shrink: 0;
                        width: auto;
                        height: 4.4rem;
                        margin: 0 1rem 0 0;
                        padding: 0;

                        @media only screen and (max-width: 1600px) {
                            margin: 0 0 2rem 0;
                            align-self: center;
                        }
                    }

                    .cont_btn {
                        display: flex;
                        justify-content: flex-end;
                        gap: 1rem;
                    }
                    
                }

        &::before {
            content: '';
            position: absolute;
            overflow: clip;
            display: block;
            z-index: 2;
            left: 0;
            right: 0;
            bottom: -10rem;
            background: var(--nero);
            opacity: .6;
            width: 100%;
            height: 50svh;
            transform: skewY(5deg);
        }

        &::after {
            content: '';
            position: absolute;
            overflow: clip;
            display: block;
            z-index: 2;
            bottom: 0;
            left: -15rem;
            background: var(--nero);
            opacity: .6;          
            width: 50svh;
            height: 100%;
            transform: skewX(-5deg);
        }

        #slidepreview,
        #slidepreview1 {
            position: relative;
            overflow: visible;
            display: block;
            z-index: 1 !important;
            width: 100% !important;
            height: calc(90svh);
            margin: 0;
            padding: 0;
            transform: none !important;
            background-color: var(--grigio01);

            @media only screen and (max-width: 980px) {
                min-height: 100svh;
                height: min-content;
            }

            .flickity-slider {
                transform: none !important;
            }

            .flickity-page-dots {
                bottom: 3rem;
            }

            .cella {
                position: relative;
                overflow: visible;
                z-index: 1 !important;
                left: 0 !important;
                /*float:left;*/
                list-style: none;
                width: 100vw;
                height: calc(100svh);
                margin: 0;
                padding: 0;

                background-position: 50% 50%;
                background-repeat: no-repeat;
                background-size: cover;
                transition: none;

                display: flex;
                align-items: flex-end;
                justify-content: flex-end;

                @media only screen and (max-width: 980px) {
                    min-height: 100svh;
                    height: min-content;
                }

                &::before {
                    content: '';
                    position: absolute;
                    overflow: clip;
                    display: block;
                    z-index: 2;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: none;
                }

                /* @media only screen and (max-width: 1440px) {
					width: 100vw;
					height: 100vh;
					height: calc(var(--vh, 1vh) * 100 - 96px);

				} */

                picture,
                #picture {
                    position: absolute;
                    overflow: clip;
                    display: block;
                    z-index: 1 !important;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;

                    img {
                        position: absolute;
                        margin: auto auto;
                        left: -10000%;
                        right: -10000%;
                        top: -10000%;
                        bottom: -10000%;
                        /*queste caratteristiche sotto x effetto COVER*/
                        max-width: 10000% !important;
                        min-width: 1000%;
                        min-height: 1000%;
                        -webkit-transform: scale(0.1);
                        transform: scale(0.1);
                        object-fit: cover;
                    }
                }

                video,
                #video {
                    position: absolute;
                    overflow: clip;
                    z-index: 1;
                    margin: auto auto;
                    left: -10000%;
                    right: -10000%;
                    top: -10000%;
                    bottom: -10000%;
                    /*queste caratteristiche sotto x effetto COVER*/
                    min-width: 1000%;
                    min-height: 1000%;
                    -webkit-transform: scale(0.1);
                    transform: scale(0.1);
                    object-fit: cover;
                }

                


                &.is-selected {
                    opacity: 1;

                    .intro {
                        opacity: 1;
                        transform: translateY(0px);
                    }
                }
            }

            
        }

    }

    /* //bigslide */

}

/* //header
*/



#mappa{
    min-height: 0;
    height: 100svh;

    position: sticky;
    top: 0px;
}