/**
 * @file
 * Positioning for a responsive layout.
 *
 * Define CSS classes to create a fluid grid layout with optional sidebars
 * depending on whether blocks are placed in the left or right sidebars.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * For screen sizes larger than 1200px, prevent excessively long lines of text
 * by setting a max-width.
 */
#page, .region-bottom {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
}
/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header, #content, #navigation, .region-sidebar-first, .region-sidebar-second, #footer {
	/*padding-left: 10px;
  padding-right: 10px;*/
  -moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	word-wrap: break-word;
 *behavior: url("/path/to/boxsizing.htc");
	_display: inline;
	_overflow: hidden;
	_overflow-y: visible;
}
/* Containers for grid items and flow items. */
#header, #main, #footer {
 *position: relative;
 *zoom: 1;
}
#header:before, #header:after, #main:before, #main:after, #footer:before, #footer:after {
	content: "";
	display: table;
}
#header:after, #main:after, #footer:after {
	clear: both;
}
#main {
	/* Move all the children of #main down to make room. */
    padding-top: 3em;
	position: relative;
}

/* Navigation bar */
@media all and (min-width: 480px) {
#navigation {
	/* Move the navbar up inside #main's padding. */
    position: absolute;
	right: 25px;
	bottom: 15px;
	height: 3em;
}
}
@media all and (max-width: 479px) {
	.iniziativaHome {
	width:100% !important;
	float:none !important;
	max-width:none !important;
}
.view-staff .views-field-field-ritratto{
	width:60px;}
}
 @media all and (min-width: 651px) and (max-width: 767px) {
.iniziativaHome {
	width:100% !important;
	float:none !important;
	max-width:none !important;
}
.thumbnailIniziativa {
	max-width: 290px;
	margin: 20px auto;
}
}


@media all and (min-width: 1480px){
#label_panel{
	width: 100% !important;
	position: relative !important;
	}
#label_panel span{
	display:inline !important;}	
}
@media all and (max-width: 1080px){
	.region-panel-right{
		display:none;
}}

/**
 * Use 3 grid columns for smaller screens.
 */
@media all and (min-width: 480px) and (max-width: 959px) {
/**
   * The layout when there are two sidebars.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .two-sidebars #content {
	float: left;
	width: 66.66667%;
	margin-left: 33.33333%;
	margin-right: -100%;
	padding:0;
}
/* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
	float: left;
	width: 33.33333%;
	margin-left: 0%;
	margin-right: -33.33333%;
}
/* Start a new row and span all 3 columns. */
  .two-sidebars .region-sidebar-second {
	float: left;
	width: 100%;
	margin-left: 0%;
	margin-right: -100%;
	padding-left: 0;
	padding-right: 0;
	clear: left;
}
/* Apply the shared properties of grid items in a single, efficient ruleset. */
  .two-sidebars .region-sidebar-second .block {
	padding-left: 10px;
	padding-right: 10px;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	word-wrap: break-word;
 *behavior: url("/path/to/boxsizing.htc");
	_display: inline;
	_overflow: hidden;
	_overflow-y: visible;
}
/* Span 1 column, starting in the 1st column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
	float: left;
	width: 33.33333%;
	margin-left: 0%;
	margin-right: -33.33333%;
	clear: left;
}
/* Span 1 column, starting in the 2nd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
	float: left;
	width: 33.33333%;
	margin-left: 33.33333%;
	margin-right: -66.66667%;
}
/* Span 1 column, starting in the 3rd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
	float: left;
	width: 33.33333%;
	margin-left: 66.66667%;
	margin-right: -100%;
}
}

/* Navigation mobile */
 @media all and (max-width: 900px) {
.header__cont {
	height:auto !important;
	min-height:85px;
	background:#fff !important;
}
.not-logged-in #secondary-menu .menu-15, .logged-in #secondary-menu .menu-2{
	display:none !important;}
#navigation {
	position:relative;
	height:auto;
	margin-top:20px;
	right:0;
	bottom:0;
	font-size:0.875em !important;
}
#navigation .block-menu .block__title {
	clip:auto !important;
	height:40px !important;
	width:40px !important;
	text-indent:100px;
	overflow:hidden;
	background-color:#0A6227 !important;
	line-height: 60px;
	right:0;
	padding:0;
}
#navigation .block-menu .block__title:after {
	content:'';
	display:block;
	background:url(../../images/menu-bar.svg) center no-repeat;
	color: #fff;
	top: 0px;
	left: 0;
	position: absolute;
	width: 40px;
	height: 40px;
	z-index: 10;
	text-indent: 0;
}
.no-svg #navigation .block-menu .block__title:after {
	background:url(../../images/menu-bar.png) center no-repeat;
}
.header__secondary-menu{
	display:block;
	width:42px;
	height:42px;
	overflow:hidden;
	position: absolute;
top: 44px;
right: 70px;}
.header__secondary-menu li{
	margin:0 !important;
	display:block !important;
	float:none !important;
	width:auto !important;
	border:1px solid #0A6227 !important;
	padding:0 !important;}

.header__secondary-menu li a{
	width: 40px !important;
	height: 40px !important;
	display:block !important;
	position:relative;
	text-indent:100px;
	overflow:hidden;
	line-height: 60px;
	padding:0 !important;
}
.header__secondary-menu li.menu-2 a:after, .header__secondary-menu li.menu-15 a:after{
	font-family: FontAwesome;
	background-color:#fff;
	font-weight: normal;
	content:'\f090';
	top: 0px;
	left: 0;
	line-height:40px;
	position: absolute;
	width: 40px;
	height: 40px;
	color:#0A6227;
	font-size:30px;
	text-indent: 0;}
.header__secondary-menu li.menu-15 a:after{
	content:'\f08b';}	

#navigation .menu {
	display:none;
}
#navigation .menu .menu {
	display:none !important;
}
#navigation .menu li {
	display:block;
	width:100%;
	border-bottom:1px solid #808080;
	padding:0!important;
}
#navigation .menu__link {
	border:0 !important;
	display:block;
	padding:8px 3% 8px 3% !important;
}
#navigation #block-system-main-menu > .menu {
	padding-top: 10px;
	clear: both;
}
/*#navigation .menu .is-expanded .menu .menu__link {
	background-color:#CCC;
	padding-left:25px !important;
}
#navigation .menu .is-expanded .menu .is-expanded .menu .menu__link {
	background-color:#ededed;
	padding-left:50px !important;
}
#navigation .is-expanded > .menu__link.is-active-trail {
	background-color: #333 !important;
	color:#fff;
}*/
#navigation .menu__link.active, #navigation .menu__link.active-trail {
	background-color: #0A6227 !important;
	color:#fff;
}
#navigation .menu__link.active:after, #navigation .menu__link.active-trail:after{
	display:none !important;
	/*width:100% !important;
	display: block;
	bottom: 0 !important;
	left: 0 !important;
	margin-left: 0 !important;*/
}
/*#navigation .is-expanded > .menu__link.active:after {
	display:none !important;
}
*/
#btn_slider, #slider_homepage .descr {
	display:none !important;
}
#slider_homepage .wrap {
	padding:0 15px !important;
}
#slider_homepage .titolo {
	font-size:1.2em !important;
}
.section-accesso-negato article .field-item div.bloccoSx_403, .section-404 article .field-item div#bloccoSx,.section-grazie article .field-item div#bloccoSx, .nonAutorizzato article .field-item div.bloccoSx_403, .section-accesso-negato article .field-item, .nonAutorizzato article .field-item, .section-404 article .field-item > div, .section-grazie article .field-item > div, .section-accesso-negato article .field-item > div, .nonAutorizzato article .field-item > div {
	width:100% !important;
	display:block !important;
}
.section-accesso-negato article .field-item div.bloccoSx_403, .nonAutorizzato article .field-item div.bloccoSx_403, .section-404 article .field-item div#bloccoSx, .section-grazie article .field-item div#bloccoSx{
	padding-bottom:20px !important;}
.section-accesso-negato article .field-item div.bloccoSx_403 h1, .section-404 article h1, .section-grazie article h1, .nonAutorizzato article .field-item div.bloccoSx_403 h1 {
	margin-top:0 !important;
	padding-top:20px !important;
}
/*.section-404 #content, .section-404 .content-box, .section-404 article {
	height:auto !important;
}*/
#footer{
	padding:0 10px;}
}
 @media all and (min-width: 651px) {
/**
   * The layout when there is only one sidebar, the left one.
   */
  
  .sidebar-first #content {
	margin-left:-320px;
	padding:0;
	float:right;
	width:100%;
}
.sidebar-first #content .content-box {
	margin-left: 320px;
}
/* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
	width: 320px;
	padding-left: 25px;
	padding-right: 25px;
	float:right;
	margin-top: 50px;
}
/**
   * The layout when there is only one sidebar, the right one.
   */

  /* Span 4 columns, starting in 1st column from left. */
  
  
  .sidebar-second #content {
	width:100%;
	margin-right:-295px;
	padding:0;
	float:left;
}
.sidebar-second #content .content-box {
	margin-right:295px;
}
.sidebar-second .region-sidebar-second {
	float:left;
	width: 295px;
	padding-right:25px;
}
}

/**
 * Use 5 grid columns for larger screens.
 */
 
@media all and (min-width: 960px) {
/**
   * The layout when there are two sidebars.
   */

  /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
	float: left;
	width: 60%;
	margin-left: 20%;
	margin-right: -80%;
}
/* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
	float: left;
	width: 20%;
	margin-left: 0%;
	margin-right: -20%;
}
/* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
	float: left;
	width: 20%;
	margin-left: 80%;
	margin-right: -100%;
}
}

/* sviluppo del tema su una sola colonna*/

 @media all and (max-width: 650px) {
#main{
	padding-top:0px;}	 
article.node-page .field, .attach_file, .view-organi-direttivi, .view-staff, .one-sidebar #content .content-box article.node-webform, .one-sidebar.section-user #content .content-box, .one-sidebar.section-users #content .content-box, .attach_file, .view-organi-direttivi, .view-staff, .node-type-pagine-extra-iniziativa article, .vocabulary-iniziative .content, .sidebar-first.section-news #content .content-box, article.node-page .field, article #slider, .sidebar-first.page-iniziative #content .content-box, .sidebar-first.page-archivio #content .content-box  {
	padding-right: 0 !important
}
.yt_video, .vimeo_video, #mappa {
	margin-right:0 !important;
}
.sidebars {
	padding:20px 25px 0;
}
article.node-page .field.field-name-field-primo-paragrafo {
	font-size:0.9em;
	padding:10px !important;
}
.sidebar .block-menu .menu__link, .view-verbali-menu .annoVerbale a, .view-verbali-menu .meseVerbale a, .view-collane a, #menu_iniziativa a {
	width:auto !important;
}
.sidebar-second.page-iniziative #content .content-box, .sidebar-second.page-archivio #content .content-box{
	padding-left:0 !important;
	padding-right:0 !important;}
.region-contenthome{
	margin-left:0 !important;
	margin-right:0 !important;}	
#footer .block{
	float:none !important;
	text-align:left !important;}	
}
 @media all and (max-width: 479px) {
.header__cont {
	min-height:0px !important;
}
.header__logo {
	display:block;
	width:50%;
	/*margin:0 !important;*/
}
/*#navigation {
	clear:both;
	margin:0 auto !important;
}
*/#navigation .block-menu .block__title {
	position:relative !important;
	text-align:center !important;
	/*width:100% !important;*/
	float: right;
}

.region-contenthome {
	margin:0 !important;
}
#slider_homepage {
	padding:0 !important;
}
#slider_homepage .bx-wrapper {
	position:relative !important;
	top:auto !important;
	left: auto !important;
	margin-bottom:0 !important;
}
#slider_homepage .box_sx {
	float:none !important;
	width:100% !important;
	padding: 10px 0 !important;
}
#slider_homepage .wrap {
	position:relative !important;
	padding:10px !important;
	top:auto !important;
	margin-top: auto !important;
	left: auto !important;
}
#slider_homepage .titolo {
	margin-bottom:8px !important;
}
#slider_homepage img {
	width:100% !important;
}
}
