#contenitore{
    padding-top: 0 !important;
}


.STILE_head_chisiamo:not(:has(>article)), .STILE_head_chisiamo:has(>article) article{

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
    box-sizing: border-box;

    @media only screen and (max-width: 980px) {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    >.immagine {

			position: relative;
        	overflow: clip;
			display: block;
			width: 100%;
			margin: 0 auto;

            z-index: 2;

			&::before {
				content: '';
				display: block;
				padding-top: 75%;
			}

			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);*/
				}
			}
		}

    >.testo {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem 0;
        z-index: 1;

        @media only screen and (max-width: 980px) {
            padding: 4rem 0 0;
            order: -1;
        }
    }


    .deco{

        position: relative;

        &.sopra::before,
        &.sotto::after {
            content: "";
            display: block;
            width: 200svw;
            height: 400px;
            left: 0;
            position: absolute;

            background-image: url('/css/images/bgdeco03.svg');
            background-repeat: repeat-x;
            background-position: 50% 50%;
            background-size: contain;

            z-index: -1;
            opacity: 0.1;

            @media only screen and (max-width: 980px) {
                height: 250px;
            }
        }

        &.sopra::before {
            top: 0;
            transform: translate(-50%, -50%);
        }

        &.sotto::after {
            bottom: 0;
            transform: translate(-50%, 50%);
            background-position: 10% 50%;

            @media only screen and (max-width: 980px) {
                bottom: -3rem;
            }
        }
    }



}


.STILE_head_chisiamo:not(:has(>article)){

    >.testo {
        padding-right: calc(50svw - 800px) !important;

        @media only screen and (max-width: 1600px) {
            padding-right: 5svw !important;
            padding-left: 5svw !important;
        }

        @media only screen and (max-width: 980px) {
            padding: 4rem 5svw 0 !important;
            order: -1;
        }
        
    }
}



.STILE_home_w-bg{

    article{
        
        position: relative;

        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6rem;
        z-index: 1;
    }

    @media only screen and (max-width: 980px) {
        article{
            grid-template-columns: 1fr;
            gap: 3rem;
        }
    }
}


.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;
                    }




                    .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;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(34.4% 34.35% at 50% 85.29%, rgba(126, 105, 82, 0.7) 0%, rgba(126, 105, 82, 0) 100%), url(Soggiorno_1.png);
            background-blend-mode: darken, normal;
            opacity: .7;
            width: 100%;
            height: 100%;
        }

        &::after {
            content: '';
            position: absolute;
            overflow: clip;
            display: block;
            z-index: 3;
            border-radius: 50%;
            bottom: -200px;
            left: 50%;
            transform: translateX(-50%);
            background: #796854;
            mix-blend-mode: hard-light;
            width: 640px;
            height: 640px;
        } 

        #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;
                transition: opacity 0.5s ease;

                display: flex;
                align-items: flex-end;
                justify-content: flex-end;

                opacity: 0;
                z-index: 0;

                @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 !important;
                    z-index: 1 !important;
                }
            }

            
        }

    }

    /* //bigslide */

}



/* //header
*/



#mappa{
    min-height: 0;
    height: 92svh;

    position: sticky;
    top: 0px;

    @media only screen and (max-width: 980px) {
        height: 75svh;
        position: relative;
    }
}