#gallery { margin-bottom: 60px; }
.home #gallery { margin-bottom: 0px; }

#gallery, #gallery .slick-slider, #gallery .slide { width: 100%; max-height: calc( 100vh - 60px ); position: relative; overflow:hidden; transition: max-height 1s;  }
.home #gallery, .home #gallery .slick-slider, .home #gallery .slide { height: 100vh; max-height:100vh; }
#gallery.wait, #gallery.wait .slick-slider, #gallery.wait .slide { max-height: 550px;  }
#gallery.wait #testo { top:50%; }


#gallery img { height: 100%; width: 100%; object-fit: cover; }
#gallery #testo { position: absolute; left: 0px; width:100%; color: #fff;  top:62.5%; transition: top 1.3s;}
.home #gallery #testo { bottom: calc( 25% - 70px); top: auto; text-align: center;  }
#gallery #testo h1 {color: #fff; letter-spacing: -0.025em;}

@media (max-width: 820px){
.home #gallery #testo { bottom:100px; }
#gallery.wait #testo, #gallery #testo { top:40%; }
#gallery.wait, #gallery.wait .slick-slider, #gallery.wait .slide,
#gallery, #gallery .slick-slider, #gallery .slide { max-height: 400px;  }
#wrapper #testo p { font-size: 15px; line-height: 22px; }

#gallery { margin-bottom: 31px; }

}
@media (max-width: 500px){
	#gallery, #gallery .slick-slider, #gallery .slide { height: 100vh;  }
	.home #gallery #testo { bottom: calc( 50% - 70px); }
	
	#gallery #testo br { display:none; }
#gallery.wait #testo, #gallery #testo { top: auto; bottom: 10%;}
}

/* Landscape iPhone */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

#gallery.wait, #gallery.wait .slick-slider, #gallery.wait .slide, #gallery, #gallery .slick-slider, #gallery .slide {
max-height: 90vh !important; overflow: hidden; }
#gallery.wait #testo, #gallery #testo { bottom: 10%; }

}