html {
  overflow-y: scroll;
}

img {
	display:block;
}


/* Pulsanti per Filtro */
#filters {
	margin-bottom:20px;
	padding:0;
	list-style:none;
}

	#filters li {
		float:left;
		color:#000;
		
	}
	
	#filters li span {
		display: block;
		padding:10px 10px;		
		text-decoration:none;
		color:#000;
		cursor: pointer;
		-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
	}
	
#filters li span:hover {
		color:#FF0099;
	}

	#filters li span.active {
		background-color: #000;
		color:#fff;
	}
 

 
#portfoliolist .portfolio {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	width:31.333%;
	margin:1%;
	display:none;
	float:left;
	overflow:hidden;
	/*padding:20px;*/
}

	.portfolio-wrapper {
		overflow:hidden;
		position: relative !important;
		background: #000;
		cursor:pointer;
	}

	.portfolio img {
		max-width:100%;
		position: relative;
		top:0;
    -webkit-transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);		
	}
	
	.portfolio .label {
		position: absolute;
		width: 100%;
		height:30%;
		bottom:-30%;
    -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
	}

		.portfolio .label-bg {
	background-color: #000; /* colore label sfondo*/
	width: 100%;
	height:100%;
	position: absolute;
	top:0;
	left:0;
		}
	
		.portfolio .label-text {
			color:#fff;
			position: relative;
			z-index:500;
			padding:10px 5px 10px 10px;
			font-size:18px;
			line-height:18px;
			font-family: "Ubuntu", sans-serif;
		}
			
			.portfolio .text-category {
				display:block;
				font-size:10px;
				text-transform: uppercase;
			}
	
	.portfolio:hover .label {
    bottom:0;
  }
	.portfolio:hover img {
    top:-30px;
  }  
  
.portfolio .label-Freccia {
			margin-top:-30px; 
	text-align:center; 
	font-size: 18pt; 
	display:block;
		}
 

/* SMARTPHONE PORTRAIT */
@media only screen and (min-width: 320px) and (max-width: 480px) {
	.container { 
		width: 95%; 
	}
	
	#portfoliolist .portfolio {
		width:100%;
		margin-bottom:20px;
	}		
	
	.portfolio .label {
		bottom:0%;
	}
	
	.portfolio .label-Freccia {
	display:none;
		}
	
	.portfolio .label-text {

			font-size:14px;
		}
	
}


/* SMARTPHONE LANDSCAPE */
@media only screen and (min-width: 481px) and (max-width: 768px) {
	.container {
		width: 70%;
	}
	
	#portfoliolist .portfolio {
		width:48%;
		margin:1%;
	}
	
	.portfolio .label {
		height:38%;
		bottom:0%;
	}
	
	.portfolio .label-Freccia {
	display:none;
		}
	.portfolio .label-text {
			font-size:14px;
		padding:10px 5px 10px 10px;

		}
	
}

/* #Tablet (Portrait) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
	.container {
		width: 768px; 
	}
	
	.portfolio .label {
		height:35%;
		bottom:-35%;
	}
	
	.portfolio .label-text {
			font-size:16px;
		}
}

/* #Clearing */

/* Self Clearing Goodness */
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }

.clearfix:before,
.clearfix:after,
.row:before,
.row:after {
  content: '\0020';
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0; }
.row:after,
.clearfix:after {
  clear: both; }
.row,
.clearfix {
  zoom: 1; }

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}
