/*************************************************
*
*   Triassica Stylesheet
*
*   1. Base
*   2. Header
*   3. Main
*      - Content
*      - Billboard
*      - Carousel
*   4. About
*   4.1 Comitato
*   5. Contribute
*   6. Contacts
*   7. Footer
*   ?! Media Queries
*
*
*************************************************/

/*-----------------------------------------------
   Base
----------------------------------------------*/

html {
  font-size: 16px;
  margin: 0;
  height: 100%;
  position: relative;
}

body {
  background-color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 100%;
  line-height: 1.5;
  margin: 0;
  min-height: 100%;
  padding-bottom: 6.250em; /* 100px */
  position: relative;
}

a {
  color: #5cb85c;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

a:active,
a:hover,
a:focus {
  color: #919191;
  text-decoration: inherit;
}

/*-----------------------------------------------
   Header
-----------------------------------------------*/

header {
  background-color: #fff;
  height: 5em; /* 80px */
	position: relative;
}

.logo { font-family: Georgia, serif; }

.navbar-brand {
  font-weight: 900;
  font-size: 1.975em; /* 30px */
	line-height: 1.5;
  text-transform: uppercase;
}

.navbar-text {
    float: left;
    margin-right: 0px;
    margin-left: 0px;
    padding-right: 0px;
    padding-left: 2px;
		margin-top: 5px;
    margin-bottom: 15px;
}

.brand_specification {
 		font-weight: 900;
}

.navbar {
  background-color: inherit;
  color: #fff;
}

.nav.navbar-nav li {
	position: relative;
}

.nav.navbar-nav li a {
	color: #666;
	font-weight: 400;
	padding: 2.30em 1.55em;
	text-transform: uppercase;
  -webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.dropdown-menu {
  padding: 0;
}

.dropdown-menu li a {
  font-size: 0.9em;
  font-weight: 400;
  padding: 1em;
}

.dropdown-menu li a {
  border-bottom: 0.125em solid #666;
}

.nav.navbar-nav li:hover a,
.nav.navbar-nav li.active a {
	color: #333;
}

/*-----------------------------------------------
   Main
-----------------------------------------------*/

.wrapper {
  max-width: 80%;
  margin:  0 auto;
}

/* __________ Content __________ */

.content {
  margin: 5em 0; /* 80px */
}

/* __________ Billboard __________ */

.billboard {
  background: url('../images/billboard.jpg') no-repeat center;
  height: 50em;
  position: relative;
  width: 100%;

  -moz-background-size: cover;
  -o-background-size: cover;
  -webkit-background-size: cover;
  background-size: cover;
}

.billboard .shadow {
  background: url('../images/shadow.png') repeat-x;
  bottom: 0;
  height: 5.5em; /* 88px */
  left: 0;
  margin-bottom: -0.0625em;
  position: absolute;
  width: 100%;
}

/* __________ Carousel __________ */

.carousel {
  height: 31.25em;  /* 500px */
  margin-bottom: 1.875em; /* 30px */
}

.carousel-caption {
  z-index: 10;
}

.carousel .item {
  background-color: #919191;
  height: 31.25em; /* 500px */
}

.carousel-inner > .item > img {
  height: 31.25em; /* 500px */
  left: 0;
  min-width: 100%;
  position: absolute;
  top: 0;
}

.alphabet-list { list-style-type: lower-alpha; }
/*-----------------------------------------------
   About
-----------------------------------------------*/

.about h3 {
  margin-bottom: 1em;
}
.about p {
  margin-bottom: 2em;
}

.about_images #cadelfrate {
  height: auto;
  margin-bottom: 1em;
  max-height: 400px;
  max-width: 400px;
  padding: 0 20px;
  width: auto;
}

.about_images #lariosaurus {
  height: auto;
  max-height: 300px;
  max-width: 300px;
  width: auto;
}


/*-----------------------------------------------
   Avvisi
-----------------------------------------------*/

p.media-body.testo-necrologio {
  padding: 0 7em 0 2em;
  vertical-align: middle;
}

figcaption {
  margin-top: 1em;
}

img.fossil-article {
  display: block;
  margin: 0 auto;
}

.to-the-top {
  background-color: #777;
  border-radius: 50%;
  color: #fff;
  height: 3.5em;
  width: 3.5em;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
}

.to-the-top span {
  color: #fff;
  font-size: 1.5em;
  position: relative;
  left: 15px;
  top: 15px;
}

.to-the-top span.sr-only {
  display: none;
}

/*-----------------------------------------------
*   Comitato
-----------------------------------------------*/

.panel-body.comitato {
  position: relative;
}

.personal-bio {
  display: block;
  margin-left: 350px;
  overflow: hidden;
}

.personal-bio.bio-tintori {
  margin-left: 500px;
}

.personal-bio.bio-motani {
  margin-left: 380px;
}

.personal-photo {
  float: left;
  height: 100%;
  position: absolute;
  top: 0;
}

.helper {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.personal-photo img {
  display: inline-block;
  height: auto;
  max-height: 450px;
  max-width: 450px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}


.personal-photo .bio-berra {
  max-height: 350px;
  width: auto;
}

/*-----------------------------------------------
*   Contribute
-----------------------------------------------*/

.contribute h3 {
  margin-bottom: 1em;
}
.contribute p {
  margin-bottom: 2em;
}
.contribute p:last-of-type {
  margin-bottom: 1em;
}

/* ______ Panels  ______ */

.panel .panel-title {
  padding: 0.55em 0;
}

.panel h3, h4 { display: inline; }

.panel h4 {
  font-size: 1.125em; /* 18px */
  text-transform: uppercase;
}

.panel-title a:active, a:hover, a:focus {
  color: inherit;
  transition: none;
}

.expand {
  display: inline;
  padding-top: 0.25em;
}

/*-----------------------------------------------
   Contacts
-----------------------------------------------*/
.contacts span {
  margin-left: 10px;
}


/*-----------------------------------------------
   Footer
-----------------------------------------------*/

.bottom {
  background: #fff;
  bottom: 0;
  padding-bottom: 0.65em;
  padding-top: 1.25em;
  position: absolute;
  text-align: center;
  width: 100%;
}

.bottom a {
  color: #595959;
}

.footer_info {
  color: #919191;
  font-size: 0.8125em; /* 13px */

}

.footer_menu ul {
  padding: 0;
}

.footer_menu ul li {
  display: inline;
  padding: 0 0.625em;
}

.footer_menu ul li a {
  color: #494949;
  display: inline;
}

.footer_menu ul li a:hover {
  color: #000;
}

/*-----------------------------------------------
   Media Queries
-----------------------------------------------*/

.navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
  max-height: 500px;
}

/* __________ Navbar Breakpoint__________ */

@media (max-width: 1158px) {
    .navbar-header {
        float: none;
    }
    .navbar-left, .navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
        margin: 30px 15px;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }
    .navbar-nav > li {
        float: none;
    }
    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in {
        display: block !important;
    }
   .navbar-nav .open .dropdown-menu {
       background-color: transparent;
       border: 0;
       float: none;
       margin-top: 0;
       position: static;
       width: auto;
       -webkit-box-shadow: none;
       box-shadow: none;
    }

    .navbar-nav .open .dropdown-menu li a {
      border: 0;
    }

    .nav.navbar-nav li a {
      padding: 1.20em;
    }

    .wrapper {
      max-width: inherit;
    }

}


@media screen and (max-width: 992px) {
  .personal-bio {
    margin-left: 0;
  }

  .personal-photo {
    position: static;
    float: none;
    margin-bottom: 1.5em;
  }

  .personal-bio.bio-tintori {
    margin-left: 0;
  }

  .personal-bio.bio-motani {
    margin-left: 0;
  }
}

@media screen and (max-width: 700px){
    figure.media-left {
      display: block;
    }

  figure.media-left img {
      display: block;
      margin: 0 auto;
    }

  figure figcaption {
    text-align: center;
  }

}

@media screen and (max-width: 768px){
  /* Fix padding logo */
  .logo {
    padding-left: 15px;
  }
  /* Fix footer shadow */
  .billboard .shadow {
    height: 6.5em;
  }
}

@media (min-width: 768px) {
  .navbar-right .dropdown-menu {
    left: 0;
  }
}


@media screen and (max-width: 372px){
  /* Fix footer shadow */
  .billboard .shadow {
    height: 7.5em;
  }
}
