/*! Flickity v2.2.0
https://flickity.metafizzy.co
---------------------------------------------- */
@import url("//fonts.googleapis.com/css?family=Didact+Gothic&subset=latin,latin-ext,cyrillic");
.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
          tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- flickity-button ---- */

.flickity-button {
  position: absolute;
  background: hsla(0, 0%, 100%, 0.75);
  border: none;
  color: #333;
}

.flickity-button:hover {
  background: white;
  cursor: pointer;
}

.flickity-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #19F;
}

.flickity-button:active {
  opacity: 0.6;
}

.flickity-button:disabled {
  opacity: 0.3;
  cursor: auto;
  /* prevent disabled button from capturing pointer up event. #716 */
  pointer-events: none;
}

.flickity-button-icon {
  fill: currentColor;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* vertically center */
  transform: translateY(-50%);
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

/* ---- page dots ---- */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;}
#HpFlickityCarousel {
	    z-index: 90;
	/*max-height: 580px;
	opacity:0;
	background-image: url(/personal-images/galleria-sfondo-1920x500.jpg);
    background-position: center;
    background-size: contain;
    background-size: cover;*/}	

#HpFlickityCarousel .flickity-slider a {
    display: inline-block;
    width: 100%;
}

.carousel-cell {
    width: 100%;
    height: auto;
    text-align: center;
/*
background-color: red;
  margin: 0;
  padding: 0;
  width: auto;
*/
  }

.BannerCaption{
    position: absolute;
    display: block;
    /* top: 2.5em; */
    top: 3%;
    /*left: 1em;*/
    margin-right: 1em;
    padding: 0.7em;
    /* color: #FFFFFF; */
    /* background: #000000; */
    background: transparent;
    color: #000000;
    z-index: 50;
    font-family: 'Didact Gothic',Arial,Helvetica,sans-serif;
   font-size: 2.4em;
   line-height:1.2em;
    border-radius: 0.6em;
    -moz-border-radius: 0.6em;
    -webkit-border-radius: 0.6em;
    opacity: 0.7;
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

.BannerCaption .BannerCaption1{opacity:0;}

.animated{
	animation-duration: 2s;
    -webkit-animation-duration: 2s;
    -moz-animation-duration: 2s;
    -o-animation-duration: 2s;
	
	-webkit-transition: opacity 2s ease-in-out;
	-moz-transition: opacity 2s ease-in-out;
	-ms-transition: opacity 2s ease-in-out;
	-o-transition: opacity 2s ease-in-out;
	transition: opacity 2s ease-in-out;	
}

@media only screen and (max-width:1024px){
	#HpFlickityCarousel img  {max-width: 100%; height:auto;}
}
@media only screen and (max-width:768px){
	#HpFlickityCarousel {height:600px;} 	
	#HpFlickityCarousel .flickity-slider .carousel-cell {
	height:100% !important;
	max-height: 100%;
	border-radius: 0px;
	min-height: 100%;
	width: auto !important;  
	border-radius: 0px;
	text-align: center;}
	#HpFlickityCarousel img  {max-width: none; height:100%; width:auto; max-height:100%;border-radius:0px;}
	
	.BannerCaption{	
    bottom: 16%;
    left: 0;
    right: 0;
    margin: 0;
	top:auto;}
	
	.flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100% !important;
	}
}

@media only screen and (max-width:500px){
	#HpFlickityCarousel {height:500px;}
	#HpFlickityCarousel {background-image: url(/personal-images/galleria-sfondo-mobile.jpg);} 
	#HpFlickityCarousel img  {max-width: 1200px;}
	.BannerCaption{position:relative;right: 0;left: 0;}
}