
.desktop {
    display: block;
}

.mobile {
    display: none !important;
}

.gallery, .gallery2 {
    display: flex; /* Utilizza flexbox per allineare le immagini */
    transition: transform 0.5s ease; /* Aggiunge una transizione per uno scorrimento fluido */
}

.gallery {
    width: 100%;
    height: 100%;
}

.gallery2 {
    height: 100%;
}


.gallery-item-wrp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}


#gallery-2 .desktop.gallery-item-wrp  {
    height: 100%;
    width: 48%;
    margin: 0 1%;
}


.gallery-item-wrp img.desktop {
    height: auto !important;
    width: 100vw !important;
}

@media screen and (max-width: 992px) {
.desktop {
    display: none !important;
}

.mobile {
    display: block !important;
}

.gallery-item-wrp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.gallery-item-wrp img {
    min-height: 100%;
    min-width: 100%;
}

}







.gallery-item-wrp .label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
   
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
}


#gallery-2 .gallery-item-wrp .label {
    justify-content: flex-end;
    align-items: flex-start;
}


.gallery-item-wrp .label .label-wrp {
    height: max-content;
    padding: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    margin: 10% 5%;
    width: max-content;
    background-color: rgba(255,255,255,.7);
    flex-shrink: 0;
}

.gallery-item-wrp .label .label-wrp h1 {
    line-height: 2.5rem;
    margin-bottom: 15px;
    color: var(--verde-scuro);
    text-align: right;
}

.gallery-item-wrp .label .label-wrp h2 {
    line-height: 1.8rem;
    margin-bottom: 15px;
    color: var(--verde-scuro);
    text-align: right;
}

@media screen and (max-width: 992px) {

    .gallery-item-wrp .label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
       
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        width: 100%;
    }

.gallery-item-wrp .label .label-wrp {
    height: auto;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 15%;
    width: 90%;
    background-color: transparent;
    
    flex-shrink: 0;
}

.gallery-item-wrp .label .label-wrp h1 {
    line-height: 1.8rem;
    margin-bottom: 15px;
    color: var(--bianco);
    text-align: left;
    font-weight: 400;
}

.gallery-item-wrp .label .label-wrp h2 {
    font-weight: 400;
    color: var(--bianco);
    line-height: 1.3rem;
   display: flex;
   justify-content: flex-start;
   text-align: left;
}

}

.gallery-item-wrp .label.masked {
    background-color: rgba(0,0,0,.3);
} 



.gallery img {
    width: 0;
    height: 100%;
    flex: 0 0 auto;
}



.gallery-item-wrp .mobile img {
    min-width: 100%;
    height: 100%;
    flex: 0 0 auto;
}
.mini-gallery {
    display: flex; 
    transition: transform 0.5s ease;
    height: 400px;
    flex-shrink: 1;
    align-items: center;
    position: relative;
}

.minigallerycontainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
   
    overflow-x: scroll;
    width: auto;
    flex-shrink: 0;
    
}


.bubble-gallery-dot  {
    width: 100vw;
    height: 300px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
  
   
}

.bubble-gallery-dot  div {
    height: 250px;
    width: 250px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,.9);
    flex-shrink: 0;
}


.vertical-scroll {
    width: 50px;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    z-index: 100;
   

}


.vertical-scroll img {
    width: 40px;
    height: auto;
    min-height: 20px;
    max-height: 40px;
}

.vertical-scroll.right {
    right: 0;
}

.vertical-scroll.left {
    left: 0;
}
/*
.bubble-gallery-dot {
    width: 300px;
    height: 300px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 150px 150px;
    padding: 10px 10px;
    text-align: center;
    background-color: rgba(255,255,255,1);
}
*/
#tre{
    background-image: url("../img/Mobile_esigenze.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}


.gallery-img-wrp {
    height: 100%;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}


.desktop.preview-gallery {
    height: 140px;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    top: 0px;
    left: 0px;
    position: absolute;
}

.desktop.preview-gallery .square-preview {
    height: 65px;
    width: 65px;
    border: 1px solid var(--colore-testo-home-chiarissimo);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.desktop.preview-gallery .square-preview img {
    height: 100%;
}


.desktop.preview-gallery .square-preview.active {
    border: 2px solid var(--colore-testo-home);
}

@media screen and (min-width: 992px) {
    #gallery-2-footer {
        display: none;
    }

    #quattro-desktop {
        overflow: hidden;
        display: flex;
        justify-content: space-around;
    }

#quattro-desktop .desktop.gallery-item-wrp {
    width: 48%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}





#quattro-desktop .desktop.gallery-item-wrp .label {
    width: 100% !important;
    height: 100% !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
}


#quattro-desktop .desktop.gallery-item-wrp .label h1{
    font-size: 1.6rem;
    line-height: 1.8rem;
    margin:  0 0;
    padding: 0 0;
 }


#quattro-desktop .desktop.gallery-item-wrp .label h2{
    text-align: center;
    margin:  0 0;
    padding: 0 0;
    color: white
 }

 #quattro-desktop .desktop.gallery-item-wrp .label .read-more {
    display: block;
 }

#gallery-2 .desktop.gallery-item-wrp .label h1{
    font-size: 1.6rem;
    line-height: 1.8rem;
    margin:  0 0;
    padding: 0 0;
 }
 
 #gallery-2 .desktop.gallery-item-wrp .label h2 {
     margin: 0 0;
     padding: 0 0;
     text-align: center;
 }


#gallery-2 .desktop.gallery-item-wrp .label h2 {
    color: white;
}

#gallery-2 .desktop.gallery-item-wrp .label h2 {
    color: white;
}



.gallery-item-wrp .label .label-wrp {
    height: auto;
}
#gallery-2 .label-wrp .read-more {
    margin: 0 0;
}

#gallery-2 .gallery-item-wrp .label .label-wrp h1 {
    margin-bottom: 0;
}

#gallery-2 .read-more.left {
    justify-content: flex-start;
    margin: 10px 0;
}

#gallery-2 .gallery-item-wrp .label .label-wrp h1 {
    margin-bottom: 0;
}

.desktop #tre #bubble-gallery .bubble-gallery.inactive {
    background-color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop #tre #bubble-gallery .bubble-gallery  {
 
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;   
}



}

@media screen and (max-width: 992px) {
    #gallery-2 {
        width: 100%;
        height: 100%;
    }

    .contact-block.mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
  
    .contact-block.mobile img {
        height: auto !important;
        width: 100% !important;
        min-height: auto !important;
        min-width: auto !important;
    }

    #sette {
        width: auto;
        overflow: hidden;
        
    }

}

/* IPAD LANDSCAPE */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
 {

    #uno {
        height: 100vh;
    }

    .gallery-item-wrp {
        justify-content: center !important;
    }

    .gallery-item-wrp img.desktop {
        height: 100% !important;
        width: auto !important;
    }

    .desktop #tre #bubble-gallery .bubble-gallery {
        height: 210px;
        width: 210px;
    }

    .desktop #tre #bubble-gallery .bubble-gallery.inactive {
        height: 180px;
        width: 180px;
    }

    .desktop #dieci .contact-block h1 {
        font-size: 1.8rem;
    }
    .desktop #dieci .contact-block {
        gap: 10px;
    }

 }


