#contenitore{
    padding-top: 0 !important;
}

.STILE_location-ico-list{

    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    gap: 2rem;
    justify-content: center;
    align-items: center;

    filter: saturate(0) brightness(3);

    img{
        height: 72px;
    }
}


.STILE_loc_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;
    }
}

header {
        position: relative;
        overflow: visible;
        overflow: visible;
        width: 100%;
        height: calc(70svh);
        margin: 0;
        z-index: 2;

        @media only screen and (max-width: 980px) {
            min-height: calc(70svh);
            height: min-content;
        }

        .cont-slide {
            position: relative;
        overflow: visible;
            display: block;
            width: 100%;
        }

        #slidepreview,
        #slidepreview1 {
            position: relative;
        overflow: visible;
            display: block;
            z-index: 1 !important;
            width: 100% !important;
            height: calc(70svh);
            margin: 0;
            padding: 0;
            transform: none !important;
            background-color: var(--grigio01);

            @media only screen and (max-width: 980px) {
                min-height: calc(70svh);
                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(70svh);
                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: 70svh;
                    height: min-content;
                }

                &::before {
                    content: '';
                    position: absolute;
                    overflow: clip;
                    display: block;
                    z-index: 2;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(180deg, rgba(30, 30, 30, 0.32) 35%, rgba(30, 30, 30, 0.8) 100%);
                    opacity: .8;
                }

                /* @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);
                    }
                }
            }

            .intro {
                    
                    position: relative;
                    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;
                        font-size: clamp(3rem, 5svw, 4.5rem);
                        font-weight: 900;
                        line-height: 1.3;
                        color: var(--bianco);
                        text-transform: uppercase;

                        b, strong {
                            font-weight: 800;
                        }
                    }

                    .intro-txt{
                        font-size: clamp(1.2rem, 3svw, 1.5rem);
                        color: var(--bianco);
                        text-transform: uppercase;
                        letter-spacing: .25em;
                        margin: 0;
                    }

                    .tit, .intro-txt, .quote{
                        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

                    } */


                    .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;
                    }
                    
                }
        }


}




/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.style-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--grigio04);

  @media only screen and (max-width: 850px){
    padding-bottom: 1.5rem;
  }
}

.style-tab-btn {
  background: transparent;
  border: none;
  color: var(--grigio01);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  text-transform: uppercase;
  letter-spacing: .2em;

  @media only screen and (max-width: 850px){
    border-radius: 6px;
  }

}

.style-tab-btn:hover {
  background-color: var(--colore01) !important;
}

.style-tab-btn.active {
  background-color: var(--colore01chiaro);
}

.style-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  height: 3px;
  background-color: var(--colore01);
  border-radius: 1.5px;
  transition: width 1s ease-in-out;

  @media only screen and (max-width: 850px){
    bottom: -.6rem;
  }
}

.style-tab-btn.active::after {
  width: 48px;
}

.style-tabs-content {
  position: relative;
  min-height: 300px;
}

.style-tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.style-tab-content.active {
  display: block;
}



 /* 
  ===============================
      GALLERY
  ===============================
/* Gallery: 3x2 grid with first image full-height (left) and others 2x2 on the right */

.gallery{
    width: 100%;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    /* keeps each cell at 4:3 (3 columns x 2 rows -> overall 2:1) */
    aspect-ratio: 2 / 1;
    align-items: stretch;
}

.gallery-grid .gallery-item{
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--grigio01);
}

.gallery-grid .gallery-item img,
.gallery-grid .gallery-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* first image: occupy left column and both rows */
.gallery-grid .gallery-item:first-child{
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* responsive: on narrow screens stack items and keep 4:3 aspect ratio per item */
@media (max-width: 800px){
    .gallery-grid{
        grid-template-columns: 1fr;
        grid-template-rows: none;
        aspect-ratio: unset;
        gap: .75rem;
    }

    .gallery-grid .gallery-item:first-child{
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-grid .gallery-item{
        aspect-ratio: 4 / 3;
    }
}


.stretto {
    width: var(--larghezzamin);
    margin-inline: auto;
}

.stretto-doppio{
    position: relative;
    display: grid;
    grid-template-columns: 30% auto;
    gap: 4rem;
    z-index: 1;
    width: var(--larghezzamin);
    margin-inline: auto;

    h2{
        text-wrap: balance;
    }
}    

@media (max-width: 800px){
    .stretto-doppio{
    grid-template-columns: auto;
    gap: 2rem;
    }
}
