/* =============================================================================
   Header
   
  ========================================================================== */




.logged-in .navbar-fixed-top {
	top: 28px;
}

.navbar .navbar-inner {
	background: none;
	border: none;
	padding: 0;
}

.navbar-inner > .container {
	position: relative;
	margin-top: 40px;
	-webkit-transition: all 0.2s ease-out;  /* Chrome 1-25, Safari 3.2+ */
	-moz-transition: all 0.2s ease-out;  /* Firefox 4-15 */
	-o-transition: all 0.2s ease-out;  /* Opera 10.50–12.00 */
	transition: all 0.2s ease-out;  /* Chrome 26, Firefox 16+, IE 10+, Opera 12.10+ */
}

.banner {
	z-index: 100;
	width: 100%;
	border: none;
	background: transparent;
	position: fixed;
}

.navbar .brand {
	position: absolute;
	/*bottom: 15px;*/
	background: url(sc_logo.png) no-repeat;
	width:  64px;
	height: 64px;
	background-size: 100%;
	text-indent: -9999px;
	display: block;
	margin: 0;
	margin-top: 5px;
	padding: 0;
	position: absolute;
	-webkit-transition: opacity 0.1s ease-out;  /* Chrome 1-25, Safari 3.2+ */
	-moz-transition: opacity 0.1s ease-out;  /* Firefox 4-15 */
	-o-transition: opacity 0.1s ease-out;  /* Opera 10.50–12.00 */
	transition: opacity 0.1s ease-out;  /* Chrome 26, Firefox 16+, IE 10+, Opera 12.10+ */
}

.navbar .brand-piccolo {
	display: none;
	opacity: 0;
	filter: alpha(opacity=0);
	position: absolute;
	background: url(sc_logo_s.png) no-repeat;
/*	width: 40px;*/
	height: 40px;
	top: 6px;
	background-size: 100%;
	text-indent: -9999px;
	display: block;
	margin: 0;
	margin-top: 0;
	padding: 0;
	position: absolute;
}

.navbar-default .navbar-toggle {
	margin-right: 4px;
	border-color: #00437f;
	color: #00437f;
	margin-top: 8px;
	margin-bottom: 8px;
	padding: 5px 10px;
	font-size: 20px;
}

.navbar-default .navbar-toggle .icon-bar {
	background-color: #fff;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
	background-color: #fff;
}

.navbar-default .navbar-toggle:hover .icon-bar,
.navbar-default .navbar-toggle:focus .icon-bar {
	background-color: #363635;

}

.navbar-collapse {
	clear: both;
	border: none;
	padding: 0;
}

.navbar .nav li a {
	text-transform: uppercase;
	font-family: 'PT Sans Narrow', sans-serif;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 1px;
	/*opacity: 0.85;*/
	color: #000596;
	filter: alpha(opacity=65);
	display: block;
	background: rgba(255,255,255,0);
	padding-left: 10px; 
	padding-right: 10px;

}

.navbar .nav li a:hover {
	opacity: 0.85;
	filter: alpha(opacity=85);
}

.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
	opacity: 1;
	filter: alpha(opacity=100);
}

.navbar-default .navbar-collapse {
 overflow-x: hidden;
}



.single-portfolio .navbar .nav > .menu-portfolio > a {
	opacity: 1;
	filter: alpha(opacity=100);
}

.single-portfolio .navbar .nav > .menu-blog.active > a,
.post-type-archive-portfolio .navbar .nav > .menu-blog.active > a {
	opacity: 0.65;
	filter: alpha(opacity=65);
}

.single-portfolio .navbar .nav > .menu-blog.active > a:hover,
.post-type-archive-portfolio .navbar .nav > .menu-blog.active > a:hover {
	opacity: 0.85;
	filter: alpha(opacity=85);
}




/* pagine con logo nero */




.contatti .navbar .nav li a,
.contacts .navbar .nav li a,
.blog .navbar .nav li a,
.category .navbar .nav li a,
.single-post .navbar .nav li a {
	color: #424b51;
}

.contatti .navbar .brand,
.contacts .navbar .brand,
.blog .navbar .brand,
.category .navbar .brand,
.single-post .navbar .brand {
	background: url(../img/rd-logo-nero.png) no-repeat;
	background-size: 100%;
}

.contatti .navbar .nav > .active > a,
.contatti .navbar .nav > .active > a:hover,
.contatti .navbar .nav > .active > a:focus,
.contacts .navbar .nav > .active > a,
.contacts .navbar .nav > .active > a:hover,
.contacts .navbar .nav > .active > a:focus,
.blog .navbar .nav > .active > a,
.blog .navbar .nav > .active > a:hover,
.blog .navbar .nav > .active > a:focus,
.category .navbar .nav > .active > a,
.category .navbar .nav > .active > a:hover,
.category .navbar .nav > .active > a:focus,
.single-post .navbar .nav > .active > a,
.single-post .navbar .nav > .active > a:hover,
.single-post .navbar .nav > .active > a:focus {
	color: #424b51;
}

/* ==========================================================================
   navbar ridotta dopo scroll
   ========================================================================== */



.pannello-affix {
	width: 100%;
	-webkit-transition: all 0.1s ease-out;  /* Chrome 1-25, Safari 3.2+ */
	-moz-transition: all 0.1s ease-out;  /* Firefox 4-15 */
	-o-transition: all 0.1s ease-out;  /* Opera 10.50–12.00 */
	transition: all 0.1s ease-out;  /* Chrome 26, Firefox 16+, IE 10+, Opera 12.10+ */
		-webkit-transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.pannello-affix #menu-primary-navigation {
	-webkit-transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.pannello-affix.affix-top,
.pannello-affix.affix {
	background-color: #E5E5E5;

}

.pannello-affix.affix {
	z-index: 999;
	opacity: 1;
	filter: alpha(opacity=100);
	width: 100%;
	background-color: #E5E5E5;
	-webkit-box-shadow: none; /* Android 2.3+, iOS 4.0.2-4.2, Safari 3-4 */
	box-shadow: none; /* Chrome 6+, Firefox 4+, IE 9+, iOS 5+, Opera 10.50+ */
}

.pannello-affix.affix .navbar-inner {
	margin-top: 0;
}

.navbar .pannello-affix.affix .brand-piccolo {
	display: block;
	opacity: 1;
	filter: alpha(opacity=100);
}

.navbar .pannello-affix.affix .brand {
	display: none;
	opacity: 0;
	filter: alpha(opacity=0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* fix per header su mobile, mostra sempre come fixed  */
@media (max-width: 767px) {

.pannello-affix.affix-top,
.pannello-affix.affix {
	z-index: 999;
	opacity: 1;
	width: 100%;
	background-color: #E5E5E5;
	-webkit-box-shadow: none;
	box-shadow: none;
	position: fixed;
}

.pannello-affix.affix-top .navbar-inner,
.pannello-affix.affix .navbar-inner {
	margin-top: 0;
}

.navbar .brand-piccolo {
	display: block;
	opacity: 1;
}

.navbar .brand {
	display: none;
}

.navbar .nav {
	margin-top: 0;
}

.navbar-nav>li>a {
	padding: 10px 0 10px;
	text-align: center;
	/*color: #fff !important;*/
}

.navbar-collapse {
	box-shadow: none;
}
}

@media (min-width: 768px) {

/* ==========================================================================
STILI GENERICI @ 768
========================================================================== */


h1 {
	font-size: 40px;
}

h2 {
	font-size: 32px;
}

h3 {
	font-size: 26px;
}

h4 {
	font-size: 19px;
}

h5 {
	font-size: 16px;
}

h6 {
	font-size: 13px;
}

p {
	margin-bottom: 1em;
}


.header-titolo {
margin-left: 20%;
margin-right: 20%;
}

.header-titolo h1 {
	font-size: 48px;
}

section {
	padding: 60px 0;
}

section.pagina-testo-header {
	padding-top: 170px;
	padding-bottom: 30px;
}

.lead-link {
	position: absolute;
	bottom: 0;
	left: 50%;
	margin-left: -85px;
	padding: 5px 0;
	width: 170px;
	background: white;
	color: #424b51;
}

.lead-link:hover {
	color: #5e696f;
}

.lead-link .icona-freccia-giu,
.lead-link .icona-freccia-giu:hover {
	color: #424b51;
	font-size: 14px;
	text-shadow: none;
}

/* slider per cambiare risoluzioni responsive */



.slider.slider-vertical {
	margin-top: 170px;
}

.res-slider-img {
	width: 100%;
	margin-bottom: -60px;
	margin-top: 80px;
}

.res-slider-img img {
	width: 475px;
	height: auto;
}

.res-lista {
	margin-top: 140px;
}

.home #full-width-slider h2 {
	font-size: 48px;
}

/* ==========================================================================
   NAVBAR @ 768
   ========================================================================== */
	
		


.banner {
	position: absolute;
}

.navbar .navbar-inner {
	margin-top: 20px;
}

.navbar .nav {
	float: right;
	margin-right: 0;
}

.navbar .nav li {
	display: inline-block;
	/*float: none;*/
	zoom: 1;
}

.navbar-nav>li>a {
	padding-top: 13px;
	padding-bottom: 7px;
}

.navbar .nav li:last-child a {
	padding-right: 0;
}

.lt-ie8 .navbar .nav li {
	display: block;
	float: left;
}

.roll {
	display: inline-block;
	overflow: hidden;
	z-index: 200;
	position: relative;
	vertical-align: top;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-webkit-perspective: 400px;
	-moz-perspective: 400px;
	-webkit-perspective-origin: 50% 50%;
	-moz-perspective-origin: 50% 50%;
}

.roll span {
	display: block;
	position: relative;
	padding: 0 2px;
	-webkit-transition: all 400ms ease;
	-moz-transition: all 400ms ease;
	pointer-events: none;
	-webkit-pointer-events: none;
	-webkit-transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	overflow: hidden;
}

a.roll:hover span {
	overflow: visible;
	-webkit-transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
	-moz-transform: translate3d( 0px, 0px, -30px ) rotateX( 90deg );
}

.roll span:after {
	content: attr(data-title);
	display: block;
	position: absolute;
	left: 0;
	top: 1px;
	padding: 0 2px;
	color: #424b51;
	background: #fff;
	-webkit-transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	-webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
	-moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
}
}




/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 120px;
  background-color: #E5E5E5;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 94px 2px 60px;
}
.container .text-muted {
  margin: 20px 0;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}


.panel-primary>.panel-heading {

  background-color: #00437f;
  border-color: #00437f;
}