/*** Stili per elementi comuni a tutte le pagine ***/
@import url(http://fonts.googleapis.com/css?family=Roboto:400,700,300);
@font-face {
    font-family: 'egmocursive';
    src: url(../fonts/Egmocursive-Regular.otf);
}
.clearfix {
  *zoom: 1;
}
.clearfix:before, .clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}
.clearfix:after {
  clear: both;
}
.hide-text {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}
.center {
  text-align: center;
}
.input-block-level {
  display: block;
  width: 100%;
  min-height: 30px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  position: relative; /* importante per sticky-footer */
  min-height: 100%;   /* importante per sticky-footer */
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  padding-top: 50px;
  color: #34495e;
  background: #f5f5f5;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  margin-bottom: 188px; /* deve essere uguale all'altezza del footer */
  background-image: url(../images/TILE.jpg);
  background-repeat: repeat;
  background-size: 400px;
  background-attachment: fixed;
  background-color: rgba(225,225,225,1);
}
@media (max-width: 767px) {
    body {
        margin-bottom: 266px; /* deve essere uguale all'altezza del footer */
    }
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
a {
  color: #34495e;
  -webkit-transition: 300ms;
  -moz-transition: 300ms;
  -o-transition: 300ms;
  transition: 300ms;
}
a:hover, a:focus {
  color: #d9534f;
  text-decoration: none;
  outline: none;
}

/* Standard background per contenuti */
.default-box {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #fff;
}
.default-box > h1:first-child,
.default-box > h2:first-child,
.default-box > h3:first-child {
    margin-top: 0;
}

/* Icone */
.icon-lg {
  font-size: 48px;
  height: 108px;
  width: 108px;
  line-height: 108px;
  color: #fff;
  margin: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
  display: inline-block !important;
  border-radius: 100%;
}
.icon-md {
  font-size: 36px;
  height: 68px;
  width: 68px;
  line-height: 68px;
  color: #fff;
  text-align: center;
  display: block;
  border-radius: 50%;
  -webkit-transition: 500ms;
  -moz-transition: 500ms;
  -o-transition: 500ms;
  transition: 500ms;
}
.icon-md-transparent {
  background-color: rgba(0, 0, 0, 0.4);
  margin-right: 10px;
}
.icon-md.animate-border:hover {
  border-radius: 10px;
}
.icon-md-transparent.animate-border:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.icon-flickr {
  background-color: rgba(217,83,79,1);
}
.icon-flickr:hover {
  background-color: rgba(217,83,79,0.6);
}
.icon-facebook {
  background-color: rgba(60,88,153,1);
}
.icon-facebook:hover {
  background-color: rgba(60,88,153,0.6);
}
.icon-twitter {
  background-color: rgba(0, 172, 237,1);
}
.icon-twitter:hover {
  background-color: rgba(0, 172, 237,0.6);
}

/* Temi */
.emerald, .wet-asphalt, .midnight-blue {
  color: #fff;
}
.emerald h1, .wet-asphalt h1, .midnight-blue h1,
.emerald h2, .wet-asphalt h2, .midnight-blue h2,
.emerald h3, .wet-asphalt h3, .midnight-blue h3,
.emerald h4, .wet-asphalt h4, .midnight-blue h4,
.emerald h5, .wet-asphalt h5, .midnight-blue h5,
.emerald h6, .wet-asphalt h6, .midnight-blue h6 {
  color: #fff;
}
.emerald small, .wet-asphalt small, .midnight-blue small {
  color: rgba(255, 255, 255, 0.8);
}
.emerald {
  background-color: #2ecc71;
}
.wet-asphalt {
  background-color: #34495e;
}
.wet-asphalt a:not(.btn) {
  color: #bdc3c7;
}
.wet-asphalt a:not(.btn):hover {
 /* ALE color: #d9534f; */
}
.midnight-blue {
  background-color: #2c3e50;
}

/* Breadcrumb */
ul.breadcrumb {
  margin: 8.5px 0 0;
  padding-bottom: 0px;
  background: transparent;
}
ul.breadcrumb > li {
  text-shadow: none;
}
ul.breadcrumb > li > a,
ul.breadcrumb > li .divider {
  color: #fff;
}
ul.breadcrumb > li.active {
  color: rgba(255, 255, 255, 0.7);
}
ul.tag-cloud {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.tag-cloud li {
  display: inline-block;
  margin: 0 0 2px 0;
}

/* Barra di navigazione */
.navbar-logo {
    float: left;
    padding: 6px 10px 3px 0;
}
.navbar-logo img {
    height: 36px;
}
.navbar-text {
    font-style: normal;
}
.navbar-brand {
    font-family:'egmocursive';
    font-size:40px!important;
    padding-top:19px;
    padding-left:20px;
}
.dropdown-menu {
  margin-top: -1px;
  min-width: 180px;
}
.navbar-inverse {
  border: none;
}
.navbar-inverse .navbar-brand {
  font-size: 30px;
  /* line-height: 50px; Sirion è stato qui */
  color: #fff;
}
.navbar-inverse .navbar-nav {
  margin-top: 10px; /* 20px; Sirion è stato qui */
}
.navbar-inverse .navbar-nav > li > a {
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 4px;
  color: #bdc3c7;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  background-color: #2c3e50;
}
.navbar-inverse .navbar-nav .dropdown-menu {
  background-color: #2c3e50;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin-top: -3px;
}
.navbar-inverse .navbar-nav .dropdown-menu > li > a {
  padding: 8px 15px;
  color: #bdc3c7;
}
.navbar-inverse .navbar-nav .dropdown-menu > li:hover > a,
.navbar-inverse .navbar-nav .dropdown-menu > li:focus > a,
.navbar-inverse .navbar-nav .dropdown-menu > li.active > a {
  background-color: rgba(0, 0, 0, 0.3);
}
.navbar-inverse .navbar-nav .dropdown-menu > li:last-child > a {
  border-radius: 0 0 3px 3px;
}
.navbar-inverse .navbar-nav .dropdown-menu > li.divider {
  background-color: rgba(0, 0, 0, 0.1);
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
  border-top: 0;
}

/* Countdown nella navbar */
ul.navbar-countdown {
    margin-right: 10px !important;
}
ul.navbar-countdown span.date-number {
    font-size: 150%;
    font-weight: bold;
    padding-left: 10px;
}
ul.navbar-countdown span.finished {
    font-size: 150%;
    font-weight: bold;
}
/*** Fine: Stili per elementi comuni a tutte le pagine ***/

/*** Stili per pagine specifiche ***/
/** Homepage **/
/* Carosello - dimensioni e contenuto */
#main-carousel .carousel-inner .item {
    height: 100%;
    background-size: cover;
    color: #fff;
	text-shadow: 0 0 5px #000000, 0 0 3px #000000, 0 0 3px #000000;
}
#main-carousel .carousel-inner .item h1 {
    margin-bottom: 25px;
}
#main-carousel .carousel-inner .item p {
    font-size: 20px;
    line-height: 1.4;
    margin: 20px 0 10px;
}
@media (max-width: 767px) {
    #main-carousel .carousel-inner {
        height: 600px;
    }
    #main-carousel p {
        margin: 0 0 20px;
    }
}
@media (min-width: 768px) {
    #main-carousel .carousel-inner {
        height: 450px;
    }
    #main-carousel p {
        font-size: 22px;
    }
}
@media (min-width: 992px) {
    #main-carousel .carousel-inner {
        height: 470px;
    }
}
@media (min-width: 1200px) {
    #main-carousel .carousel-inner {
        height: 550px;
    }
}

/* Carosello - Parallax effect */
#main-carousel .item {
	background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	background-color: rgba(255,255,255,1);
}

/* Carosello - frecce laterali */
#main-carousel .carousel-left-arrow,
#main-carousel .carousel-right-arrow {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: inline-block;
  margin-top: -25px;
  font-size: 24px;
  height: 50px;
  width: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 4px;
  z-index: 5;
}
#main-carousel .carousel-left-arrow:hover,
#main-carousel .carousel-right-arrow:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
#main-carousel .carousel-left-arrow {
  left: 10px;
}
#main-carousel .carousel-right-arrow {
  right: 10px;
}

/* Carosello - fade slide */
.carousel-fade .carousel-inner .item{
  -webkit-transition-property: opacity;
  transition-property: opacity;
}
.carousel-fade .carousel-inner .item,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  opacity: 0;
}
.carousel-fade .carousel-inner .active,
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}
.carousel-fade .carousel-inner .next,
.carousel-fade .carousel-inner .prev,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.carousel-fade .carousel-inner .next.left .animation,
.carousel-fade .carousel-inner .prev.right .animation {
    opacity: 0; /* evita la visualizzazione prima che l'animazione inizi */
}
.carousel-fade .carousel-control {
  z-index: 2;
}

/* Carosello - animazioni contenuto */
#main-carousel .active .animation.animated-item-1 {
  -webkit-animation: fadeInDown 300ms linear 300ms both;
  -moz-animation: fadeInDown 300ms linear 300ms both;
  -o-animation: fadeInDown 300ms linear 300ms both;
  -ms-animation: fadeInDown 300ms linear 300ms both;
  animation: fadeInDown 300ms linear 300ms both;
}
#main-carousel .active .animation.animated-item-2 {
  -webkit-animation: fadeInUp 300ms linear 600ms both;
  -moz-animation: fadeInUp 300ms linear 600ms both;
  -o-animation: fadeInUp 300ms linear 600ms both;
  -ms-animation: fadeInUp 300ms linear 600ms both;
  animation: fadeInUp 300ms linear 600ms both;
}
#main-carousel .active .animation.animated-item-3 {
  -webkit-animation: fadeInRight 300ms linear 900ms both;
  -moz-animation: fadeInRight 300ms linear 900ms both;
  -o-animation: fadeInRight 300ms linear 900ms both;
  -ms-animation: fadeInRight 300ms linear 900ms both;
  animation: fadeInRight 300ms linear 900ms both;
}
#main-carousel .active .animation.animated-item-4 {
  -webkit-animation: fadeInUp 300ms linear 1200ms both;
  -moz-animation: fadeInUp 300ms linear 1200ms both;
  -o-animation: fadeInUp 300ms linear 1200ms both;
  -ms-animation: fadeInUp 300ms linear 1200ms both;
  animation: fadeInUp 300ms linear 1200ms both;
}

/* Welcome video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}
#welcome-video-container {
	padding-top: 110px;
}

/* Hack per aggiungere bordino al video nel carosello della homepage */
#welcome-video span iframe {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}

/* Sezione highlights */
section#highlights {
    padding: 30px 0;
}
@media (max-width: 767px) {
    section#highlights .row div:not(:last-child) {
        margin-bottom: 10px;
    }
}

/* Sezione latests */
section#latests {
    padding: 20px 0;
}
@media (max-width: 767px) {
    section#latests div.fb-page-container {
        margin-bottom: 20px;
    }
}
section#latests .fb-page {
	border-radius: 5px;
	overflow: hidden;
}

/** Pagine generiche **/
/* Sezione titolo */
section#title {
    padding: 30px 0;
}
section#title h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 300;
}

/* Sezione contunuti */
section#richtextpage-content, section#blog {
    padding: 20px 0;
}
section#bottom {
    padding: 20px 0;
}

/* Sezione bottom */
section#bottom #social-networks .media-body {
    text-align: right;
    vertical-align: bottom;
}
section#bottom #social-networks .media-body h4.media-heading {
    font-family: 'egmocursive';
    font-size: 30px;
    padding-right: 20px;
}
@media (max-width: 767px) {
    /* Stravolgo completamente il layout per adattarmi a schermi piccoli */
    section#bottom #social-networks .media-body {
        width: 100%;
        display: block;
        text-align: center;
    }
    section#bottom #social-networks .media-right {
        display: block;
        margin: auto;
        width: 234px;
        padding: 0;
    }
}

/** Footer per TUTTE le pagine **/
.sticky-footer { /* dipende anche dagli stili di <html> e <body> !!! */
  position: absolute;
  bottom: 0;
  width: 100%;
  /* height: xxx; <body> deve avere lo stesso margin-bottom: xxx */
}
section#footer {
  padding-top: 30px;
  padding-bottom: 30px;
  color: #bdc3c7;
}
section#footer a {
  color: #bdc3c7;
}
section#footer a:hover {
  color: #d9534f;
}
section#footer ul.gototop {
  list-style: none;
  padding: 0;
  margin: 0;
}
section#footer ul.gototop > li {
  display: inline-block;
  margin-left: 15px;
}
@media (max-width: 767px) {
    section#footer {
        text-align: center;
   }
}
@media (max-width: 767px) {
    section#blog aside {
        margin-top: 20px;
   }
}

/** Blog **/
.blog .blog-item {
  background-color: #fff;
  border-radius: 5px;
}
.blog .blog-post-content a {
  color: rgb(40, 96, 144);
  text-decoration: underline;
}
.blog .blog-post-content a:hover, .blog .blog-post-content a:focus {
    color: #d9534f;
}
.blog .blog-item:not(:last-child) {
  margin-bottom: 20px;
}
.blog .blog-item .img-blog {
  width: 100%;
  border-radius: 5px 5px 0 0;
}
.blog .blog-item .blog-content {
  padding: 20px;
}
.blog .blog-item h3 {
  margin-top: 0;
}
.blog .blog-item .entry-meta {
  margin-bottom: 20px;
}
.blog .blog-item .entry-meta > span {
  display: inline-block;
  color: #999;
  margin-right: 10px;
  font-size: 12px;
}
.blog .blog-item .entry-meta > span a {
  color: #999;
}
.biography {
    margin-top: 20px;
}
ul.pagination > li > a {
  border: 0;
}
ul.pagination > li.active > a,
ul.pagination > li:hover > a {
  background-color: #34495e;
  color: #fff;
}
textarea#message {
  padding: 10px 15px;
  height: 219px;
}
.widget {
  margin-bottom: 30px;
}

/** Gallery **/
.portfolio-items,
.portfolio-filter {
  list-style: none;
  padding: 0;
  margin: 0 -20px 20px 0;
}
.portfolio-filter > li {
  display: inline-block;
}
.portfolio-items > li {
  float: left;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.portfolio-items.col-2 > li {
  width: 50%;
}
.portfolio-items.col-3 > li {
  width: 33%;
}
.portfolio-items.col-4 > li {
  width: 25%;
}
.portfolio-items.col-5 > li {
  width: 20%;
}
.portfolio-items.col-6 > li {
  width: 16%;
}
.portfolio-item {
  padding: 0;
  margin: 0;
}
.portfolio-item .item-inner {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 10px 0;
  margin: 0 20px 20px 0;
  position: relative;
}
.portfolio-item img {
  width: 100%;
}
.portfolio-item h5 {
  background: #fff;
  margin: 0;
  padding: 10px 0;
  font-weight: 700;
  font-size: 14px;
  color: #2c3e50;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  vertical-align: middle;
  -webkit-transition: opacity 300ms;
  -moz-transition: opacity 300ms;
  -o-transition: opacity 300ms;
  transition: opacity 300ms;
}
.portfolio-item .overlay .preview {
  position: relative;
  top: 50%;
  display: inline-block;
  margin-top: -20px;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}
ul.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.gallery li {
  display: block;
  width: 60px;
  padding: 0;
  margin: 0 4px 4px 0;
  float: left;
}

/* Start: Recommended Isotope styles */
/**** Isotope Filtering ****/
.isotope-item {
  z-index: 2;
}
.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}
/**** Isotope CSS3 transitions ****/
.isotope,
.isotope .isotope-item {
  -webkit-transition-duration: 0.8s;
  -moz-transition-duration: 0.8s;
  -ms-transition-duration: 0.8s;
  -o-transition-duration: 0.8s;
  transition-duration: 0.8s;
}
.isotope {
  -webkit-transition-property: height, width;
  -moz-transition-property: height, width;
  -ms-transition-property: height, width;
  -o-transition-property: height, width;
  transition-property: height, width;
}
.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
  -moz-transition-property: -moz-transform, opacity;
  -ms-transition-property: -ms-transform, opacity;
  -o-transition-property: -o-transform, opacity;
  transition-property: transform, opacity;
}
/**** disabling Isotope CSS3 transitions ****/
.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
  -webkit-transition-duration: 0s;
  -moz-transition-duration: 0s;
  -ms-transition-duration: 0s;
  -o-transition-duration: 0s;
  transition-duration: 0s;
}
/* End: Recommended Isotope styles */
/* disable CSS transitions for containers with infinite scrolling*/
.isotope.infinite-scrolling {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
  transition: none;
}

/** Faq **/
ul.faq {
  list-style: none;
  margin: 0;
}
ul.faq li {
  margin-top: 30px;
}
ul.faq li:first-child {
  margin-top: 0;
}
ul.faq li span.number {
  display: block;
  float: left;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #34495e;
  color: #fff;
  font-size: 24px;
}
ul.faq li > div {
  margin-left: 70px;
}
ul.faq li > div h3 {
  margin-top: 0;
}
#error {
  text-align: center;
  margin-top: 150px;
  margin-bottom: 150px;
}

/** Team **/
.contributor-heading {
    background-color: #ecc !important;
    color: rgb(52, 73, 94) !important;
}

.contributor-body {
    margin-bottom: -10px;
}

.biography hr {
	border: 1px dashed rgba(0,0,0,0.1); 
	margin:0 -20px 0 -20px;
}

.contributor-name {
	font-weight:bold;
}
/*** Fine: Stili per pagine specifiche ***/
