@media only screen and (max-width: 2000px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 9.68%;  }
	.list-works .span_1_of_10:nth-child(9n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 1800px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 11.1%; }
	.list-works .span_1_of_10:nth-child(8n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 1500px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 12.91%; }
	.list-works .span_1_of_10:nth-child(7n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 1350px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 15.33%; }
	.list-works .span_1_of_10:nth-child(6n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 1200px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 18.72%; }
	.list-works .span_1_of_10:nth-child(5n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 1100px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 23.8%; }
	.list-works .span_1_of_10:nth-child(4n+1) { margin-left:0px; }	
}

@media only screen and (max-width: 900px) {
	.list-works .span_1_of_10:nth-child(n) { margin-left:1.6%; }
	.list-works .item { width: 32.2%; }
	.list-works .span_1_of_10:nth-child(3n+1) { margin-left:0px; }	
}




/* iPads (landscape) orizzontale ----------- */
@media only screen and (min-device-width : 421px) and (max-device-width : 768px) and (orientation : landscape) {
	
}

/* iPads (portrait) verticale ----------- */
@media only screen and (min-device-width : 421px) and (max-device-width : 768px) and (orientation : portrait) {
	
	
}


@media only screen and (orientation : portrait) {
	body.login { background: url(../images/bg_portrait.jpg) no-repeat center center fixed;  -webkit-background-size: cover; -moz-background-size: cover;  -o-background-size: cover; background-size: cover; }
}


/* mobile */
@media only screen and (max-width: 720px){
	
	.phone_hide { display:none; }
	.iphone_show { display:block; }
	
	h1 { font-size: 22px; }
	
	form .row { margin-bottom:0px; }
	input, select, textarea { margin-bottom:10px; font-size:14px; }
	input.antispam { width:150px; }
	.antispam_img { margin-bottom:20px; }
	.mt40 { margin-top:20px; }
	.mb40 { margin-bottom:20px; }
	.column_2 {  -moz-column-count: 1; -webkit-column-count: 1; column-count: 1; -moz-column-gap: 0em; -webkit-column-gap: 0em; column-gap: 0em; }
	.cover { height:300px; background-position:center center; background-size: cover; background-attachment: inherit; margin: 40px 0; }
	
	
	
	.wrapper { min-width:0px; width:auto; }
	
	.col { margin:0px; }
	.span_1_of_2 { width: 100%; }
	
	.span_1_of_3 { width: 100%; }
	.span_2_of_3 { width: 100%; }
	.span_3_of_3 { width: 100%; }
	
	.span_1_of_4 { width: 100%; }
	.span_2_of_4 { width: 100%; }
	.span_3_of_4 { width: 100%; }
	
	.span_1_of_5 { width: 100%; }
	.span_2_of_5 { width: 100%; }
	.span_3_of_5 { width: 100%; }
	.span_4_of_5 { width: 100%; }
	.span_5_of_5 { width: 100%; }

	.span_1_of_6 { width: 100%; }
	.span_2_of_6 { width: 100%; }
	.span_3_of_6 { width: 100%; }
	.span_4_of_6 { width: 100%; }
	.span_5_of_6 { width: 100%; }
	.span_6_of_6 { width: 100%; }
	
	.span_1_of_8 { width: 100%; }
	.span_2_of_8 { width: 100%; }
	.span_3_of_8 { width: 100%; }
	.span_4_of_8 { width: 100%; }
	.span_5_of_8 { width: 100%; }
	.span_6_of_8 { width: 100%; }
	.span_7_of_8 { width: 100%; }
	.span_8_of_8 { width: 100%; }
	
	.span_1_of_10 { width: 100%; }
	.span_2_of_10 { width: 100%; }
	.span_3_of_10 { width: 100%; }
	.span_4_of_10 { width: 100%; }
	.span_5_of_10 { width: 100%; }
	.span_6_of_10 { width: 100%; }
	.span_7_of_10 { width: 100%; }
	.span_8_of_10 { width: 100%; }
	.span_9_of_10 { width: 100%; }
	.span_10_of_10 { width: 100%; }
	
	
	.content { padding:0 20px; }
	.content-small { max-width:300px; margin:0 auto; }
	
	#header { position:relative; padding:20px 0; width:100%; min-height:100px; background:#FFF; }
	#header .logo h1 { font-size: 22px; margin-bottom: 10px; }
    #header a:hover, #header li a.selected { color: #000; }
	#header .logo { margin:0px; }
	#header .menu li { margin:0px; text-align:left; padding-left:10px; }
	 
	#footer {  padding: 20px 0; position:relative; }
	#footer .social { text-align:left; margin-top:20px; }
	
	#main { padding:0px; }
	.main-header { margin:20px 0; padding:0; height:auto; }
	.login .content-small { position:relative; top:0px; left:0px; width:100%; }
	.login .footer { position:fixed; bottom:20px; left:0px; }
	.boxsearch { width:100%; margin:0 0 20px 0px; }
	.boxsearch .span_3_of_4 { width:90%; }
	.boxsearch .span_1_of_4 { width:10%; text-align:center; }
	
	.list-works .item img { border:1px solid #EEE; }
	.list-works .span_1_of_10:nth-child(n) { margin-left:0px; }
	.list-works .item { width: 100%; height:190px; border-bottom:1px solid #EEE; padding:20px 0; overflow: hidden; }
	.list-works .item h2.code { font-size:11px; margin:0 0 5px 0; padding:0px; }
	.list-works .col { margin:0px; }
	.list-works .span_1_of_10 { width: 100%; }
	.list-works .span_1_of_10 .image { width: 50%; float:left; padding-right:20px; }
	.list-works .span_1_of_10 .text { width: 50%; float:left; padding:0px;}
	
	.list .item h2 { padding: 10px 0; font-size:14px; }
	.list .item .tot { right:0px;  }
	
	.scheda .text { padding-left:0px; }
	.scheda .image { margin-left:0px; }
	.scheda .text .span_1_of_3 { position:relative; }
	.scheda .text .details .label { color:#AAA; left:0px; position:absolute; width:100px; text-align:right; padding-right:20px; }
	.scheda .text .details li { padding-left:100px; }
	.scheda .thumbnail .item { width:100%; margin:0 0 10px 0; }
	
	.pagination-works .span_1_of_2 { width:50%; }
	body.login #header { background:none; }
	
	.contact iframe { height:300px; }
	
	.page-break { margin-top:60px; }
	div.top { right:20px; bottom:20px; color:#FFF; }
	div.top a { color:#FFF; }
	
	.nav-mobile { display:block; z-index:1000; float:right; }
	.nav-list { display:none; position:absolute; top:140px; left:0px; right:0px; bottom:0px; padding-bottom:100px; background: #FFF; min-height:1000px; z-index:2000;  }
	#header.smaller .nav-list { top:50px; }
	
	.nav-item { width:100%; float:none; position:relative; }
	.nav-item > a { padding:20px 10px; color:#000; margin:0px; font-size:16px; display:block; }
	.nav-click { display:block; }
	.nav-item:hover .nav-submenu { display:none; }
	.nav-submenu { position:static; width:100%; padding:0px; background: #000;  }
	.nav-item { border-right:0px; padding-right:0px; margin-right:0px; background: #FFF; }
	.nav-submenu { padding-top:0; }
	.nav-submenu-item { float:none; }
	.nav-submenu-item a { padding: 10px 10px 10px 30px; width:auto;  margin-left:0px; background: #FFF; }
	.nav-submenu-item a:hover { color:#444;  }
	.nav-submenu-item:last-child a { border-bottom:0px; }
	
}

@media only screen and (max-width: 400px){
	.iphone_hide { display:none; }
}