.primaryContainer {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    min-height: 100%;
    width: 100%;
	background-image:url(img/pattern.jpg);
}

#intestazione {
    float: left;
    height: auto;
    margin: 0px;
    clear: none;
    width: 100%;
	background-image:url(img/intestazione.jpg);
    -webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
    box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}

#menu_cerca_container {
    float: none;
    height: auto;
    margin: 0 auto;
    clear: both;
    width: 90%;
    min-width: 0px;
    border: 1px solid #ccc;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
    box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}

#menu {
    float: left;
    height: auto;
    margin: 10px 0px 0px 0px;
    clear: none;
    width: 60%;
	text-align:center;
}

#cerca {
	float: left;
	height: auto;
	margin: 10px 0px 0px 0px;
	clear: none;
	width: 40%;
}

#attivita_container {
	float: left;
	height: auto;
	margin-left: 5%;
	margin-top: 10px;
	clear: both;
	width: 90%;
	padding-top: 10px;
	background-color: transparent;
	-webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
	box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}
#navitabs {
	clear: both;
	text-align: left;
}
.navitab {
    float: left;
    width: 50px;
	background: #C8C8C8;
	color: #8C8C8C;
	border-bottom: 1px solid #FFFFFF;
	border-left: 1px solid #FFFFFF;
	font-size: 1em;
	margin: 0px 1px 0px 1px;
	padding: 4px 8px 5px;
	text-decoration: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px 10px 0px 0px;
}

.navitab:hover {
	background: #d0d0d0;
	color: #505050;
	text-decoration: none;
}

.navlink{
    color: #888888;
    text-decoration: none;
    
}

.navlink:hover{
    color: #404040;
    text-decoration: none;
}

.activenavitab {
    float: left;
    width: 50px;
	background: #505050;
	border-bottom: 1px #505050 solid;
	font-size: 1.1em;
	margin: 0px 1px 0px 1px;
	padding: 4px 8px 5px 8px;
	text-decoration: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px 10px 0px 0px;
	color: #dddddd;
}

.activenavitab:hover {
	color: #ECECEC;
	text-decoration: none;
}

.activenavlink{
    color: #dddddd;
    text-decoration: none;
    
}

.activenavlink:hover{
    color: #fff;
    text-decoration: none;
}

.activenavitabdow {
    float: left;
    width: 150px;
	background: #505050;
	border-bottom: 1px #505050 solid;
	font-size: 1.1em;
	margin: 0px 1px 0px 1px;
	padding: 4px 8px 5px 8px;
	text-decoration: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px 10px 0px 0px;
	color: #dddddd;
}

#activenavitabdow:hover {
	background: #d0d0d0;
	color: #505050;
	text-decoration: none;
}

.navitabdow {
    float: left;
    width: 140px;
	background: #C8C8C8;
	color: #8C8C8C;
	border-bottom: 1px solid #FFFFFF;
	border-left: 1px solid #FFFFFF;
	font-size: 1em;
	margin: 0px 1px 0px 1px;
	padding: 4px 8px 5px;
	text-decoration: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px 10px 0px 0px;
}

.navitabdow:hover {
	background: #d0d0d0;
	color: #505050;
	text-decoration: none;
}

#desc {
	background:#505050;
	clear:both;
	color:#fff; /* height:200px; */ 
	margin: 0px 1px 1px 1px; 
	padding: 10px 0px 0px 0px;
	-moz-border-radius:0px;
	-webkit-border-radius:0px;
	border-radius:0px 10px 0px 0px;
}
.desc_h2 {
	background: #505050;
	border-bottom: 1px #505050 solid;
	font-size: 1.1em;
	margin: 0px 1px 5px;
	padding: 4px 8px 5px 8px;
	text-decoration: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px 10px 0px 0px;
	color: #FFFFFF;
}
.desc_h2:hover {
	color: #ECECEC;
	text-decoration: none;
}

#slider_container {
	float: left;
	height: auto;
	margin-left: 5%;
	margin-top: 10px;
	clear: both;
	width: 90%;
	padding-top: 10px;
	padding-bottom: 10px;
	background-color: rgba(245,245,245,1.00);
	-webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
	box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}

#slider {
    float: left;
    height: auto;
    margin: 0px 0% 0px 10%;
    clear: both;
    width: 80%;
    min-width: 0px;
}
#slider_sidebar {
	/*
    float: left;
    height: auto;
    margin: 0px 0% 0px 10%;
    clear: both;
    width: 100%;
    min-width: 0px;
	*/
	float: none;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-top: 0px;
    clear: none;
    color: rgb(0, 0, 0);
    margin-right: auto;
}

/***** Slider *****/

.slider-container {
    margin: 0 auto;
    -moz-box-shadow: 0 5px 15px 0 rgba(0,0,0,.05) inset, 0 -5px 15px 0 rgba(0,0,0,.05) inset;
    -webkit-box-shadow: 0 5px 15px 0 rgba(0,0,0,.05) inset, 0 -5px 15px 0 rgba(0,0,0,.05) inset;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,.05) inset, 0 -5px 15px 0 rgba(0,0,0,.05) inset;
}

.slider {
	padding-left: 5px;
	padding-right: 5px;
}

.flexslider {
    margin-top: 45px;
    margin-bottom: 55px;
    border: 6px solid #fff;
    -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
    -moz-box-shadow: 0 5px 15px 0 rgba(0,0,0,.05), 0 -5px 15px 0 rgba(0,0,0,.05);
    -webkit-box-shadow: 0 5px 15px 0 rgba(0,0,0,.05), 0 -5px 15px 0 rgba(0,0,0,.05);
    box-shadow: 0 5px 15px 0 rgba(0,0,0,.05), 0 -5px 15px 0 rgba(0,0,0,.05);
}

.flexslider .slides > li {
	position: relative;
}

.flex-caption {
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    padding: 10px 20px;
    background: #303030; /* browsers that don't support rgba */
    background: rgba(0,0,0,0.50);
    font-size: 14px;
    line-height: 24px;
    color: #FFFFFF;
    text-align: left;
    font-style: italic;
}

#container {
    float: left;
    height: auto;
    margin-left: 4.998957%;
    margin-top: 10px;
    clear: both;
    width: 90%;
	background-color:rgba(255,255,255,1.00);
    -webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
    box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}

#main_content {
	float: left;
	height: auto;
	margin-left: 0%;
	margin-top: 0px;
	clear: none;
	width: 70%;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 10px;
}

.articolo {
	float: left;
	height: auto;
	margin-left: 0%;
	margin-top: 0px;
	clear: none;
	width: 100%;
	padding-top: 0px;
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom: 10px;
	text-align: justify;
	border-bottom: thin solid rgba(80,90,170,1.00);
}

.download {
	float: left;
	margin: 5px;
	padding-top: 20px;
	padding-left: 20px;
	text-align: center;
	border: 1px solid #dddddd;
	padding-right: 10px;
	width: auto;
	max-width: 100%;
}

#paginazione {
    float: left;
    margin: 0 auto;
    width: 100%;
	text-align:center;
    background-color: #fafafa;

}

.pagination a {
    color: black;
    background-color: #cccccc;
    border: 1px solid #acacac;
    border-radius: 4px;
    float: none;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}   
        
.pagination a.active{
    background-color: #0080ff;
    color: white;
}
.pagination a:hover:not(.active) {background-color: #55a9fc; color: white;}

#sidebar {
    float: left;
    height: auto;
    margin-left: 0%;
    margin-top: 0px;
    clear: none;
    width: 30%;
    border-left-style: inset;
    border-left-width: 1px;
    padding: 20px 10px;
	text-align:center;
	background-color:rgba(250,250,250,1.00);
}
#rivistavdp {
	float: left;
	height: auto;
	margin: 0px 0px 0px 0%;
	clear: both;
	width: 100%;
	min-width: 0px;
	padding: 0px;
	text-align:center;
	background-color:rgba(250,250,250,1.00);
}
#prossimi-eventi {
	float: left;
	height: auto;
	margin: 0px 0px 0px 0%;
	clear: both;
	width: 100%;
	min-width: 0px;
	padding: 0px;
	text-align:center;
	background-color:rgba(250,250,250,1.00);
}

#footer {
    float: left;
    height: auto;
    margin: 10px 0px 0px 0%;
    clear: both;
    width: 100%;
	color:rgba(200,200,200,1.00);
	background-image:url(img/sfondo_footer.jpg);
	background-repeat:repeat;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
    box-shadow: rgb(0, 0, 0) 0px 1px 3px 0px;
}

#footleft {
	float: left;
	height: auto;
	margin-left: 0%;
	margin-top: 0px;
	clear: none;
	width: 25%;
	padding: 20px 20px 20px 5%;
}

#footcenter {
	float: left;
	height: auto;
	margin-left: 0%;
	margin-top: 0px;
	clear: none;
	width: 50%;
	padding: 20px;
	border-right: thin inset rgba(30,30,30,1.00);
	border-left: thin inset rgba(30,30,30,1.00);
}

#footright {
	float: left;
	height: auto;
	margin-left: 0%;
	margin-top: 0px;
	clear: none;
	width: 25%;
	padding: 20px 5% 20px 20px;
}

#footdown {
	float: left;
	height: auto;
	margin: 0px 0px 0px 0%;
	clear: both;
	width: 100%;
	min-width: 0px;
	padding: 20px;
	text-align:center;
	color: rgba(30,30,30,1.00);
	border-top: thin inset rgba(30,30,30,1.00);
}

.image_intestazione {
    float: left;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: 0%;
    margin-top: 0px;
    clear: none;
    color: rgb(0, 0, 0);
	display:block;
}

.image_main_content {
	display: block;
	float: left;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0px 10px 0px 0px;
	clear: none;
	color: rgb(0, 0, 0);
	background: #fff;
	border: 4px solid #fff;
	position: relative;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2);
	-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2);
	-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
	zoom: 1;
	background-color: #f4f5f5;
	opacity: 1;
}

.image_main_content:hover, .image_main_content a:hover{opacity:0.80
}

.image_sidebar {
	display:block;
	float: none;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-top: 0px;
	clear: none;
	margin-right: auto;
	background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); -o-box-shadow: 0 1px 4px rgba(0,0,0,.2); box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1; background-color: #f4f5f5; opacity:1;
}

.image_sidebar:hover, .image_sidebar a:hover{opacity:0.80}

.p_sidebar {
	margin-top: 10px;
	background-color: rgba(255,255,255,1.00);
	
}

.p_sidebar_giust {
	padding-top: 10px;
	padding-right: 20px;
	padding-left: 20px;
	padding-bottom: 10px;
	text-align: justify;
	margin-top: 10px;
	background-color: rgba(255,255,255,1.00);
}

#p_downloads {
	margin-top: 10px;
	margin-bottom: 10px;
	display: inline-block;
}

.audio_sidebar {
	display:block;
	float: none;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-top: 20px;
	clear: none;
	margin-right: auto;
}

.image_footcenter {
	display:block;
    float: left;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0px;
    clear: none;
    color: rgb(0, 0, 0);
}


.coll {
    color: dodgerblue;
    text-align:left;
}

.coll:hover {
    color: rgb(1, 86, 128);
}

.coll_footer {
    color: rgb(255, 255, 255);
}

.coll_footer:hover {
    color: rgb(200, 200, 200);
}

#newsletter {
	float: left;
	margin: 0px;
	clear: none;
}
.txt2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size:smaller;
	}
	
.txtbox {
	background-color: #FFFFFF;
	border: 1px solid #000000;
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	width: 100%;
}

.txtbox1 {
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 1px;
}

.responsive {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}
	
.animated {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

@-webkit-keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.fadeIn {
  -webkit-animation-name: fadeIn;
          animation-name: fadeIn;
}
@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -10%, 0);
            transform: translate3d(0, -10%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
  
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -10%, 0);
            transform: translate3d(0, -10%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

.fadeInDown {
  -webkit-animation-name: fadeInDown;
          animation-name: fadeInDown;
}

@-webkit-keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 10%, 0);
            transform: translate3d(0, 10%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 10%, 0);
            transform: translate3d(0, 10%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
          animation-name: fadeInUp;
}

@media only screen and (max-width: 960px) {
#menu {
     width: 100%;
    }
    #cerca {
        float: right;
        width:40%;
    }

}

@media only screen and (max-width: 990px) {
    
    .activenavitab {
	width: 100%;
    }
    .navitab {
	width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    
    .activenavitabdow {
	width: 100%;
    }
    .navitabdow {
	width: 100%;
    }
    
    #cerca {
    width: 60%;
	margin: 0px;
    }

    #sidebar {
        width: 100%;
		border-left-style: none;
		border-left-width: 0px;
    }

    #main_content {
        width: 100%;
    }

    #slider {
        width: 100%;
        margin-left: 0%;
    }
    
    #desc {
        display: none;
    }

    #footleft {
	width: 100%;
	padding-right: 5%;
	background-image:url(img/pattern1.jpg);
	border-top: thin inset rgba(30,30,30,1.00);
    }

    #footcenter {
	width: 100%;
	padding-left: 5%;
	padding-right: 5%;
	background-image:url(img/pattern2.jpg);
	border-top: thin inset rgba(30,30,30,1.00);
    }

    #footright {
	width: 100%;
	padding-left: 5%;
	background-image:url(img/pattern3.jpg);
	border-top: thin inset rgba(30,30,30,1.00);
    }
	#footdown {
		background-image:url(img/pattern4.jpg);
		color:rgba(0,0,0,1.00);
    }
    .image_sidebar {
	
	margin-top: 20px;
	
}

}


@media only screen and (max-width: 570px) {
    
    
    #cerca {
    width:100%;
    }
    
    #menu_cerca_container {
    width: 100%;

    }
    
	#menu {
        width: 100%;
    }
	
	#attivita_container {
		margin-left: 0%;
   		width: 100%;
	}
	
	
	#slider_container {
		margin-left: 0%;
   		width: 100%;
	}
	
	#slider {
        width: 100%;
        margin-left: 0%;
    }
	
	#container {
    	margin-left: 0%;
    	width: 100%;
}
    .pagination a {
        font-size: 10px;
        padding: 6px 12px;

}
    #footleft {
        width: 100%;
    }

    #footcenter {
        width: 100%;
    }

    #footright {
        width: 100%;
    }
    
    .responsive {
    width: 100%;
}
}