/* SISTEMAZIONE TEMPLATE CASSIOPEIA - menu principale*/
div.grid-child.container-nav {
  margin-top: 15px;
  margin-left: 20px;
  margin-bottom: 35px;
}

.metismenu.mod-menu .metismenu-item:not(.level-2) > ul {
  background-color: #3a3636;
  border-top-left-radius: 0;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
}

.mm-collapse.mm-show > li > a {
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #999999;
}

h3.card-header {
  border-top-right-radius: 15px !important;
  border-bottom-left-radius: 15px !important;
  color: #3f3f3f;
}

ul.mm-collapse.mm-show > li:hover {
  background-color: #515151;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  a:link {color: #fff;}
}

/* PER SLIDESHOW */
.myslideshow img.imgz2 {
  position: absolute;
  width: 20%;
  right: 14%;
  top: 6%;
  z-index: 2;
}

.myslideshow .carousel-caption {
  background: rgba(0, 0, 0, 0.3);
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  position: absolute;
  bottom: 20px;
  z-index: 5;
  padding-top: 20px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.myslideshow .carousel-caption h2 {
  font-size: 2.5em;
}

@media screen and (max-width: 768px) {
  .myslideshow .carousel-caption h2 {
    font-size: 1.5em;
  }
  .myslideshow .carousel-caption h3 {
    font-size: 1em;
  }
}


/* PER FOTOGALLERY*/

.gallery {
	display: flex;
	padding: 2px;
	transition: .3s;
	}	
.gallery:hover .gallery__image {
		filter: grayscale(1);
	}
	
.gallery__column {
		display: flex;
		flex-direction: column;
		width: 25%;
		float: left;
	}	
.gallery__link {
		margin: 2px;
		overflow: hidden;
	}
.gallery__link:hover .gallery__image {
				filter: grayscale(0);
	}			
.gallery__link:hover .gallery__caption {
				opacity: 1;
	}
.gallery .gallery__thumb {
	/*	position: relative; */
	margin-bottom: 0px;
	}
.gallery__image {
		display: block;
		width: 100%;
		transition: .3s;
	}		
.gallery__image:hover {
		transform: scale(1.1);
	}
.gallery__caption {
		position: absolute;
		bottom: 0;
		left: 0;
		padding: 25px 15px 15px;
		width: 100%;
		font-family: 'Raleway', sans-serif;
		font-size: 16px;
		color: white;
		opacity: 0;
		background: linear-gradient(0deg, rgba(0, 0, 0, .5) 0%, rgba(255, 255 ,255 , 0) 100%);
		transition: .3s;
	}
	
.gallery .modal-content {
		border-top-right-radius: 15px; 
		border-bottom-left-radius: 15px
	}
	
.gallery .modal-body {
		padding: 40px; 
		background-color: #f9f9fb; 
		border-top-right-radius: 15px; 
		border-bottom-left-radius: 15px;
}	

.gallery .modal-body img {
	margin-left: auto; 
	margin-right: auto;
	}
	
/* PER scorrimento orizzontale immagine panoramica su schermi piccoli */

@media screen and (max-width: 800px) {
	.gallery .modal-dialog {
		overflow-x: scroll;
	}
}