/* iPads  */
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : landscape) {
	.list-opere {  display: grid; grid-template-columns: 1fr 1fr 1fr; }	
}
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : portrait) {
	.list-opere {  display: grid; grid-template-columns: 1fr 1fr 1fr;  }
}
/* iPads  mini */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
	.list-opere {  display: grid; grid-template-columns: 1fr 1fr 1fr; }	
	.list-opere li {  margin-bottom:40px; }
	.list-opere img {  align-self: flex-end; }
	.list-opere li figure { height:200px; }
	}
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
	.list-opere {  display: grid; grid-template-columns: 1fr 1fr 1fr; }
	.list-opere li {  margin-bottom:40px; }
	.list-opere img {  align-self: flex-end; }
	.list-opere li figure { height:200px; }
}

/* mobile */
@media only screen and (max-width: 1366px){

	.phone_show { display:block; }
	.phone_hide { display:none; }
	body { font-size:14px; }

	form .row { margin-bottom:0px; }
	form input { margin-bottom:10px; }
	input, select, textarea { text-align: left; line-height:normal; padding: 5px 10px; border-radius: 5px; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
	input, select  { height:45px; }
	::-webkit-input-placeholder { line-height:normal; font-size:12px; }
	input[type='submit'], input[type='reset'] { text-align:center; }
	label { text-align:left; }
	
	.wrapper { min-width:0px; width:auto; }
	.content { padding:0 20px; }
	.mb40 { margin-bottom:20px; }
	
	.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%; }
	.span_50 { width: 100%; float:none; }
	
	
	.mt40 { margin-top:20px; }
	.pt40 { padding-top:20px; }
	.pb40 { padding-bottom:20px; }
	p.preview { font-size:15px; line-height:20px; }
	.tabs .span_1_of_3 { width: 32.2%; }
	.tabs .col { margin-left: 1.6%; }
	.tabs .col:first-child{ margin-left: 0; }
	.tabs a { padding: 10px; line-height:20px; }
	.tabcontent { padding: 10px; }
	.title_accordion { padding: 10px; }
	.size { text-align: left; font-weight:bold; }
	.page-break { margin-top:20px }
	
	h1 { font-size: 30px; margin-bottom:20px; line-height:40px; font-weight:300; }
	h2 { font-size: 30px; font-weight:300; }
	h3 { font-size: 30px; line-height: 44px; font-weight:300; }

	.header { height:0px; position:relative; }
	.header .logo { top:20px; left:50px; right:50px; text-align:center; position:absolute; }
	.header .logo img { width:150px; height:auto;  }
	.header .logo2 { display:none;  }
	.header .menu { left:60px; right:0; top:20px; }
	.header .menu li a { margin:0px; padding:10px; }
	
	.maps iframe { height: 400px; }
	.item-row { text-align:center; }
	.item-row .text { padding: 0 20px; }

	.flex { display: block; align-items: inherit;  justify-content: inherit; }
	.text { padding:20px; }
	.slider li { background-origin: border-box; background-position: center center; background-size: 100% auto; }

	.cover { background:#000; background-attachment:inherit; height:400px; background-size: cover; }
	
	.grid .col { display: block; float:left; margin: 0 0 5% 5%; }
	.grid .col:first-child { margin-left: 0; }
	.grid .span_1_of_3:nth-child(n) { margin-left:5%; }
	.grid .span_1_of_6:nth-child(2n+1) { margin-left:0px; }
	.grid .span_1_of_5:nth-child(2n+1) { margin-left:0px; }
	.grid .span_1_of_4:nth-child(2n+1) { margin-left:0px; }
	.grid .span_1_of_3:nth-child(2n+1) { margin-left:0px; }
	.grid .span_1_of_2:nth-child(2n+1) { margin-left:0px; }
	.grid .span_1_of_3 { width: 47.5%; }
	.grid .span_1_of_2 { width: 47.5%; }
	.grid .span_1_of_4 { width: 47.5%; }
	.grid .span_1_of_5 { width: 47.5%; }
	.grid .span_1_of_6 { width: 47.5%; }

	div.top { right:20px; bottom:90px; z-index:200;}
	
	.map { height:300px; }

	.nav .divider { border-right:0px; margin-right:0px; padding-right:0px; }
	.nav-mobile { display:none; position:fixed; top:20px; left:15px; z-index:2222; color:#FFF; }
	.nav { width:100%; padding:0px; margin:0; background:#000; }
	.nav-list { display:none; position:absolute; z-index:2; top:0px; right:0px; left:0px; }
	.nav-item { width:50%; float:left; position:relative; text-align:center; background:#000; }
	.nav-item:last-child { width:100%; }
	.nav-item > a { display:block; padding:0 10px; }
	.nav-click { display:block; }
	.nav-item:hover .nav-submenu { display:none; }
	.nav-submenu { position:static; width:100%; background:#FFF; }
	.nav-item { border-right:0px; padding-right:0px; margin-right:0px; }
	.nav-submenu { padding:0; margin:0px; text-align:center;  }
	.nav-submenu-item a { border:0; margin:0px; background:#EEE; border-bottom:1px solid #FFF; }
}
