/* Remove link outline when clicking */
a:active, a:focus {
    outline: none !important;
}

/* Inner container width */
/* 4 sections: header, corso, relatore, osservatorio */
.container-inner {
  margin: 45px auto;
  width: 80%;
  max-width: 900px;  
}

/* Primary text attributes */
.text-primary {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 22px;
  color: #333;
  text-align: justify;
  text-justify: auto;
}

.lead {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 34px;
  font-weight: 800;
}


/* SECTION SPECIFIC STYLING */

/* --- header --- */
#header {
  color: white;
  padding: 25px 20px 120px 20px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url(../img/osservatorio.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}

/* Setting relative positioning for js parallax code to work */
#header .container-inner {
  position: relative;
  bottom: 0px;
  margin: 80px auto 30px auto;
  max-width: none;
}

#name-header {
  font-family: 'Alegreya Sans SC', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 10vw;
}

#descr-header {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 3.4vw;
}

#header-lower-bar {
  font-family: 'Source Sans Pro', sans-serif;
  position: relative;
  bottom: -118px;
}

#header-credits {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: white;
  position: absolute;
  bottom: 0;
}

#header-subscribe {
  position: absolute;
  right: 0;
  bottom: 0;
}

#header-subscribe > .btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #06210d;
  background-color: #fff;
  margin-right: 14vw;
  margin-bottom: 15px;
}


/* --- Corso --- */
#corso .lead {
  color: #334470;
}

.info-table p {
  text-align: center;
  margin-bottom: 7px;
}

.info-table {
  margin: 35px auto 35px auto;
}

/* Programma - attributes  */
.schede-programma .panel-heading {
  background: #fff;
}

.schede-programma .event-date {
  font-weight: 700;
  text-align: right;
}

.schede-programma .panel-collapse .text-primary {
  color: #888;
}


/* --- Relatore --- */
#relatore img{
  /*width: 95%;*/
  padding-left: 0;
  margin: 18px auto 18px auto; 
  filter: drop-shadow(5px 3px 5px black) contrast(100%) brightness(103%) saturate(105%);
}

#relatore .text-primary{
  color: white;
}

#relatore .lead{
  color: white;
}

#relatore {
  /*background-image: url(https://cdn.elegantthemes.com/blog/wp-content/uploads/2013/09/bg-5-full.jpg);*/
  /*background-image: linear-gradient(rgba(20, 0, 0, 0.4), rgba(20, 0, 0, 0.1)), url(../img/bg-8-full.jpg);*/
  background-image: linear-gradient(rgba(15, 15, 50, 0.4), rgba(15, 15, 50, 0.2)), url(../img/bg-8-full.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 75%;
}


/* --- Osservatorio --- */
#osservatorio .lead {
  color: #334470;
}

#osservatorio img {
  margin: 15px auto 15px auto;
}


/* --- Footbar --- */
#footbar {
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #aaa;
  padding: 5px 20px 5px 20px;
}

#footbar span {
  font-size: 18px;
  color: #777;
}


/*
.center-block {
  margin: auto;
}

.navbar-inv {
  color: black;
}

.navbar-brand i {
  font-size: 2.2em;
  height: .4em;
  line-height: .4em;
}


/* --- Navbar --- */
/* Navbar styling */
.navbar {
  border: none;
  background-color: rgba(34,34,34,0);
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  padding-bottom: 1px !important;
}

.navbar-brand {
  top: -5px;
}

.navbar-brand i {
  font-size: 30px;
  font-weight: 700;
}

/* Prevent navbar from collapsing */
.navbar-collapse {
  box-shadow: none;
}

.navbar-collapse.collapse{
  display: block !important;
}

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

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

.navbar-nav>li, .navbar-nav{
  float: left !important;
}

/* RESPONSIVE */
/* Adjusting for small devices (mobile)  */
@media screen and (max-width: 768px) {

  .container-inner {
    width: 95%;
    margin: 35px auto;
  }

  .text-primary {
    font-size: 20px;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
        -ms-hyphens: auto;
            hyphens: auto;
  }

  .lead {
    font-size: 30px;
  }

  /* increase info panels margins when they are vertically stacked*/
  .info-table .col-sm-6 {
    hyphens: none;
    margin-bottom: 35px;
    margin-top: 35px;
  }

  .info-table {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* simpler and smaller header */
  /* simpler and smaller header */
  #header {
   padding: 5px 5px 30px 5px;
  }

  #name-header {
    font-size: 14vw;
  }
  
  #descr-header {
    font-size: 5vw;
  }

  #header-lower-bar {
    bottom: -28px;
  }

  #header-credits {
    font-size: 14px;
  }

  #header-subscribe {
    display: none;
  }

  /* smaller navbar */
  .navbar {
    border: none;
    background-color: rgba(34,34,34,0);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    padding-bottom: 1px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  .nav > li > a {
    padding: 14px 8px;
  }
  
  .navbar-brand {
    top: -3px;
  }
  
  .navbar-brand i {
    font-size: 25px;
    font-weight: 700;
  }

  /* --- relatore --- */
  /* use a vertical image as background */ 
  #relatore {
    background-image: linear-gradient(rgba(15, 15, 50, 0.4), rgba(15, 15, 70, 0.2)), url(../img/bg-8-full-mobile.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    /*background-position: 50% 75%;*/
  }
}

