@media screen and (max-width: 1200px) {
	#headernavigation .nav > li > a {
		padding: 0 16px;
	}
	#servizihp .btn-group {
		margin-left: 0px;
	}
	#footer_contacts a div.boxmarginleft {
		width:75%;
	}
	#footer_contacts img.boxmarginleft {
		width:30%;
	}
	#servizihp .servizi-ritiro .btn {
		width: auto;
	}
	#newshp div.thumbnail.large {
		height: auto;
		max-height: 193px;
	}
	.side-navigation-container, .side-navigation { background: none; }
}

/* Large desktop */
@media screen and (min-width: 1200px) {

}

@media screen and (min-width: 1183px) {
	.li1social.visible-desktop { display: none!important; }
	.li1social.hidden-desktop { display: inherit!important; }	
}


@media screen and (min-width: 979px) and (max-width: 1199px) {
	#headernavigation .nav li a { font-size:13px; }
	#headernavigation .nav > li > a { padding: 0 6px; }
	.li1social.visible-desktop { display: none!important; }
	.li1social.hidden-desktop { display: inherit!important; }	

}

@media screen and (min-width: 979px) and (max-width: 1200px) {
	.mappa .boxdx .wrapper p { font-size: 12px; }
	.cmscontent #colcontatti .boxdx h3 { font-size: 18px; }
	.mappa .boxdx .wrapper .amsapoint { padding: 0 0 0 53px; }
	
	#elenco_comuni_target div.btn-group { width: 100%; }
	#elenco_comuni_target .input-medium { width: 130px;  overflow: hidden; }
	#header_languages_menu a {
		margin-left: 5px;
	}
	.boxtarget .span9 h3 { font-size: 15px; margin-left: 15px; }
}

@media screen and (max-width: 979px) {
	.mappa .boxdx .wrapper .amsapoint { float: left; }
	.mappa .boxdx .wrapper h3 { float: left; }
	.mappa .boxdx .wrapper p { clear: both; margin: 0 0 5px; }
	.mappa .boxdx .wrapper .icon-phonealt { background-image: none; }
	.mappa .boxdx .wrapper .caepoint { padding-left: 50px; }
	
	#target-list-carousel .carousel-indicators {
		background: none repeat scroll 0 0 #666666;
		border-radius: 15px 15px 15px 15px;
		display: inline-table;
		left: 45%;
		padding: 3px;
		top: 95%;
	}
	#target-list-carousel .carousel-indicators li:first-child { margin-left: 0px; }
	
	#header_banner .title { font-family: 'open_sanssemibold'; font-size:20px; color: #333333; }
	#header_banner .subtitle { font-family: 'open_sanssemibold'; font-size:16px; color: #00a1e0; }
	#header_banner .btn { min-height: 77px; padding:15px; }
	#header_banner i { margin-top: 16px; }
	
	#header_functional_menu .navbar .nav > li > a { padding-top:15px; }
	#header_functional_menu .navbar .nav > li:last-child > a { padding-top:11px; }
	#body-wrapper, #homepage-servizi-news { margin-top: 26px; }
}
 
/* Portrait tablet to landscape and desktop */
@media screen and (min-width: 768px) and (max-width: 979px) {
	#navigation li div.collapsed a { width: 80%; }
	#navigation li div a { width: 80%; }
	
	#footer_contacts .boxmarginleft { width:100%; text-align:center; }
	#footer_contacts a div.boxmarginleft { width:100%; text-align:center; }
	#footer_contacts img.boxmarginleft { width:30%; }
	#footer_contacts .container { width:90%; }
	#footer_contacts i.ui-icon { margin-left:40%; }
	#footer_contacts { height: 160px; }
	
	#footer_social { height: auto; }
	#footer_social .container { width:90%; }
	#footer_service_links .container { width:90%; }
	#footer_service_links .span2 { width:25%; margin-top: 8px; }
	#footer_service_links .span8 { width:44%; }
	#footer_social label.control-label { width:70%; white-space: normal; text-align: left; font-size: 14px; }
	#footer_social form { width: 65%; }
	#footer_social form input { margin-top: 10px; }
	#footer_social form button { margin-top: 10px; }
	#fSocialMail { width: 125px; }
	#footer_social label.control-label.li1social { width: auto; }
	#footer_social .pull-right { margin-top: 10px; }
	
	#servizihp .span2.servizi-icona { width:20%; float:left; }
	#servizihp .span5.servizi-label { width:80%; float:left; margin:0px; }
	#servizihp .span6.servizi-label { width:80%; float:left; margin:0px; }
	#servizihp .nav-stacked > li > a { background: #ffffff; color: #333; }
	#servizihp .icon-chevron-right { margin-top: 24px; }

	#target-list-carousel .thumbnail .span3 { width: auto; }  
	#target-list-carousel .thumbnail .span9 { margin-left: 10px; }  
	#target-list-carousel .thumbnail a.btn { margin-top: 20px; }  
	
	#newshp .span9 { width:100%; }
	#newshp div.thumbnail { height: 60px; margin-bottom: 6px; }
	#newshp div.thumbnail:last-child { height: 100px; }
	
	#body-wrapper, #homepage-servizi-news { min-height: 100px; }
	#body-wrapper .container { width:90%; }
	#headernavigation .container { width:90%; }
	/* #headernavigation .nav li a { border-right: 0px; } */
	#headernavigation .navbar-form { text-align: center; }
	#header_wrapper .container { width:90%; }
	#header_functional_menu .navbar-inner .container { width: 100%; }
	#header_functional_menu button { margin-left:0px; }
	#header_functional_menu a { line-height: 20px; }   
	/* #header_functional_menu a img { margin-left: -2px; } */
	#header_functional_menu .dropdown-menu { left: -95px; }
	#header_functional_menu .dropdown-menu a { color: #333333; }
	#header_functional_menu .navbar .container .nav > li > a { padding-left: 5px; font-size: 12px; }
	
	#elenco_comuni_target div.btn-group { width: 100%; }
	#elenco_comuni_target .input-medium { width: 75%; overflow: hidden; }
	
	/* #nav-header-top { margin-top: 50px; background: none repeat scroll 0 0 rgba(45, 58, 71, 0.6); }
	#nav-header-top li img { display: none; }
	#nav-header-top li a { padding-right: 15px; } */
	
	#header_banner .carousel .item .container { top: 50%; }
	#headernavigation .nav > li > a { padding: 0 5px; font-size: 14px; }
	
	#appendedInput { width: 53px; }
	#headernavigation input::-webkit-input-placeholder { background: #f5f5f5; background: url(../images/search-bg.png) -8px -4px no-repeat; }
	#headernavigation input::-moz-placeholder { background: #f5f5f5; background: url(../images/search-bg.png) -8px -4px no-repeat; } /* firefox 19+ */
	#headernavigation input:-ms-input-placeholder { background: #f5f5f5; background: url(../images/search-bg.png) -8px -4px no-repeat; } /* ie */
	
	#ricerca-risultatiricerca label.checkbox { margin-left: 20px; }
	#news-list .span5 { width:100%; }
	#news-list .span7 { width:100%; }
	
	#modalContatto, #modalSegnalazioni, #modalContattoDiretto { width: 97%; margin-left: -50%; }
	#form-contatti { height: 530px; }
}

@media screen and (max-width: 1216px) {
	#newshp div.thumbnail { height: auto; margin-bottom: 6px; }
	#newshp div.thumbnail:last-child { height: 170px; }

	#map-canvas .map-canvas-btn { right: 0; }
}
@media screen and (min-width: 997px) and (max-width: 1216px) {
	#form-contatti { height: 530px; }
}

/* Landscape phone to portrait tablet */
@media screen and (max-width: 767px) {	
	.news-page .dettagli .span7 { float:left; width:55%; }
	.news-page .dettagli .span1 { float:left; width:5%; }
	.news-page .dettagli .span4 { float:left; width:40%; }
	#carousel h2 { font-size:40px; }
	.arfotografico h3 { font-size:18px; }
	.arfotografico h3 img { width: 36px; }
	#newshp .news-pagination { line-height: 20px; }
	#newshp h4 { font-size:20px; margin-bottom:0px; }
	#newshp h4 img { width: 36px; }
	.btn-pagination { margin-top:0; }
	.arfotografico { padding: 0px 15px; }
	.arfotografico .thumbnail { padding: 0px; margin-bottom:15px; }
	.arfotografico .caption { top: 0; left: 0; width: 100%; height: 100%; }
	.arfotografico .img-polaroid { padding:0px; width:100%; height:auto;margin-left: -1px; min-height: 170px; }	
	.arfotografico .thumbnail .backarchivio { border: 1px solid rgba(0,0,0,0.2); background: #fff; overflow:hidden; padding:4px; }
	
	#homepage-banners0 li { padding: 0px 15px; }
	.news_back { padding-right: 20px; }
	
	#modalContattoDirettoMobile {
		padding: 10px;
		width: 800px;
		margin-left: -390px;
		background: #f9f9f9;
	}
	
	#modalContattoDirettoMobile iframe {
		height: 1060px;
		margin: 0px;
	}
	
	body { padding: 0px; }
	#homepage-banners li { display: none; }
	#homepage-banners li:first-child { display: block; }
	
	#headernavigation { display: none; }
	
	#header_functional_menu { background: #ffffff; /* background-opacity: 1; */ }
	#header_functional_menu img { margin-left: 20px; max-height: 100%; height: 50px; max-width: 100%; width: 71px; }
	#header_functional_menu button { margin-right: 20px; }
	
	#footer_contacts { height: auto; }
	#footer_contacts .container { padding-top: 0px; }
	#footer_contacts .span4 { padding-left: 10px; padding-bottom: 10px; padding-top: 10px; border-bottom: 1px solid #dddddd; }
	#footer_contacts .contacts-line { display: none; }
	#footer_contacts .contacts-heading { padding-top: 20px; }
	#footer_contacts img { display: none; }
	
	#footer_social { height: auto; text-align: center; }
	#footer_social .pull-left { float: none; }
	#footer_social .pull-right { float: none; }
	#footer_social form { margin-bottom:15px; }
	#footer_social .form-horizontal .control-label {  white-space: normal; float: none; text-align: center; }
	
	#footer_service_links { height: auto; text-align: center; }
	#footer_service_links .pull-left { float: none; }
	#footer_service_links .pull-right { float: none; }
	#footer_service_links a { line-height: 20px; }
	
	#servizihp { padding-left: 20px; padding-right: 20px; }
	#servizihp .span5.servizi-comuni, .span4.servizi-ritiro { display:none; }
	#servizihp .span2.servizi-icona { width:30%; float:left; }
	#servizihp .span5.servizi-label { width:70%; float:left; }
	#servizihp .span6.servizi-label { width:70%; float:left; }
	#servizihp .servizi-label h3 { font-size: 16px; color: #333; cursor: pointer; }
	#servizihp .icon-info-sign { display:none; }
	#servizihp .nav-stacked > li > a { background: #ffffff; }
	
	/*
	#newshp { padding-left: 20px; padding-right: 20px; }	
	*/
	
	#homepage-banners .span4 { padding-left: 20px; padding-right: 20px; background: #F9F9F9; }
	#homepage-banners .span6 { padding-left: 20px; padding-right: 20px; background: #F9F9F9; }
	#homepage-banners .thumbnail { background: #ffffff; }
	
	#back-to-top { display:none; }
	.side-navigation { background: none; }
	.side-navigation > div { width: 100%; margin-left: 0px; margin-right: 0px; }
	.cmscontent { padding-left: 20px; padding-right: 20px; }
	.boxtarget .span3 { float: left; width:25%; }
	.boxtarget .span9 { float: left; width:75%; }
	#contatto_diretto { margin-left: 20px; margin-right: 20px; }
	#target-list-carousel { padding-left: 20px; padding-right: 20px; }
	
	#header_banner .container { padding-left: 20px; padding-right: 20px; }
	#header_banner .btn { margin-bottom:5px; }
	#header_banner .carousel .item .container { top: 27%; }
	
	#ricerca-risultatiricerca label { margin-left: 0px; }
	#ricerca-risultatiricerca label.checkbox { margin-left: 0px; }
	#ricerca-risultatiricerca fieldset { padding: 0px 20px 0px 20px; }
	#modalContatto, #modalSegnalazioni, #modalContattoDiretto, #modalContattoDirettoMobile { width: 80%; margin: auto; position: absolute; max-height: none; }
	#modalSegnalazioni iframe, #modalContatto iframe { height: 1060px; }
	#form-contatti { height:610px; }
	.mappa .span3 { margin-bottom:10px; }
	#privacy { margin-left: 20px; margin-bottom: 10px; }
	
	#header_banner_fixed { height: 45px; }
	#elenco_comuni_target { border-radius: 0px; margin-bottom: 0px; }
	#navigation > li:first-child > div, #navigation > li:last-child > div, #navigation .tooltipped div.last { border-radius: 0px; }
	
	#navigation-menu-collapse-toggler {
		background: none repeat scroll 0 0 #34373E;
		border: 0px;
		border-radius: 0 0 0 0;
		color: #FFFFFF;
		padding: 13px 0px 9px 0px;
	}
	#navigation-menu-collapse-toggler a {
		color: #FFFFFF;
		display: inline-block;
		text-transform: uppercase;
		width: 96%;
		margin-left: 15px;
		margin-right: 15px;
	}
	#navigation-menu-collapse-toggler a:hover { text-decoration: none; }
	#navigation-menu-collapse-toggler span { width: 16px; text-align: center; }
	#navigation-menu-collapse { margin-top: 0px; }
	
	#comune-alert {
		left: 12%;
		right: 12%;
		top: 100px;
		color: #ffffff;
		border: 1px solid #ffffff;
		text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
		background: rgb(96,108,136); /* Old browsers */
		background: -moz-linear-gradient(top, rgba(96,108,136,1) 5%, rgba(63,76,107,1) 24%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,rgba(96,108,136,1)), color-stop(24%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top, rgba(96,108,136,1) 5%,rgba(63,76,107,1) 24%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top, rgba(96,108,136,1) 5%,rgba(63,76,107,1) 24%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top, rgba(96,108,136,1) 5%,rgba(63,76,107,1) 24%); /* IE10+ */
		background: linear-gradient(to bottom, rgba(96,108,136,1) 5%,rgba(63,76,107,1) 24%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
	}
	#comune-alert h4 { font-family: 'open_sanssemibold'; }
	#homebackneweventi { margin-top:0px; }
	.side-navigation > div { margin-top:0px; }
}
 
/* Landscape phones and down */
@media screen and (max-width: 480px) {
	td {
		padding: 0;
		background: green;
	}
	#logo-img { margin:0px; }
}

/* Portrait phones and down */
@media screen and (max-device-width: 320px) {
	.cmscontent table.amsa-tablegallery  {
		padding: 0;
		margin: 2% 0;
		width: 100%; 
	}
	.cmscontent table.amsa-tablegallery td {
		padding: 0;
	}
	.cmscontent {
		padding: 0;
		margin: 2%;
		width: 96%; 
	}

	.cmscontent #pageh.page-header h2 { line-height: 22px; }
	
	#servizihp h4 { margin-top: 8px; }
	#footer_service_links img { margin-top: 20px; }
	#header_functional_menu, #amsa-logo-home, #header_functional_menu h1 { height: 50px; }
	#header_functional_menu #logo-img img{ margin-top: 2px; height: 66px; }
	.nav-tabs>li>a { padding-top: 4px; padding-bottom: 4px; }
	#form-contatti { height:640px; }

}

@media screen and (max-width: 850px) {
	#header_functional_menu .navbar .nav > li > a { padding-left: 5px; }
}

/* Override icone */
@media screen and (max-width: 979px) {
	.icon-home {
		background: url('../images/icon-home.png');
	}
	.icon-trash {
		background: url('../images/icon-trash.png');
	}
	.icon-shipping {
		background: url('../images/icon-truck.png');
	}
	.icon-flag {
		background: url('../images/icon-flag.png');
	}
	.icon-emailalt {
		background: url('../images/icon-mail.png');
	}
	.icon-phonealt {
		background: url('../images/icon-phone.png');
	}
	.icon-groups-friends {
		background: url('../images/icon-groups-friends.png');
	}
	.icon-groups-friends.small.inverse {
		background: url('../images/icon-groups-friends-inverse.png');
	}
	#social-twitter {
		background: url('../images/icon-twitter-inverse.png');
	}
	#social-facebook {
		background: url('../images/icon-facebook-inverse.png');
	}
	#social-linkedin {
		background: url('../images/icon-linkedin-inverse.png');
	}
	#social-youtube {
		background: url('../images/icon-youtube-inverse.png');
	}
	#social-twitter:hover {
		background: url('../images/icon-twitter-inverse-hover.png');
	}
	#social-facebook:hover {
		background: url('../images/icon-facebook-inverse-hover.png');
	}
	#social-linkedin:hover {
		background: url('../images/icon-linkedin-inverse-hover.png');
	}
	#social-youtube:hover {
		background: url('../images/icon-youtube-inverse-hover.png');
	}
	.icon-tv {
		background: url('../images/icon-tv.png');
	}
	.icon-volume-up {
		background: url('../images/icon-volume-up.png');
	}
	#news-list .span7 { margin-left:0px; }
}

@media screen and (max-width: 1200px) {
	#body-wrapper div.carousel-content div.item { height: auto; }
}

#modalContatto, #modalSegnalazioni, #modalContattoDiretto { position: absolute; }