/*
 * Globals
 */
 
/* Links */
a,
a:focus,
a:hover {
  color: #000;
}
 
/*
 * Base structure
 */
 
html,
body {
  height: 100%;
  background-color: #fff;
  position: relative;
}
body {
  color: #000;
  text-align: center;
  text-shadow: 0 0.063em 0.25em rgba(255,255,255,.5);
  box-shadow: inset 0 0 6.25em rgba(255,255,255,.5);
}
h3 a:focus {
  text-decoration: none;
}
h3 a:hover {
  text-decoration: underline;
}
 
/* Extra markup and styles for table-esque vertical and horizontal centering */
.cover-wrapper {
  background: url(../immagini/cover-base.jpg) 50% 50% fixed;
  background-size: cover;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.cover-wrapper-inner {
  display: table-cell;
  vertical-align: top;
}
.cover-container {
  margin-right: auto;
  margin-left: auto;
}
 
/* Padding for spacing */
.inner {
  padding: 30px;
}

/*
 * Header
 */
.masthead-brand {
  margin-top: 10px;
  margin-bottom: 15px;
}
 
.masthead-nav > li {
  display: inline-block;
}
.masthead-nav > li + li {
  margin-left: 20px;
}
.masthead-nav > li > a {
  padding-right: 0;
  padding-left: 0;
  font-size: 16px;
  font-weight: bold;
  color: #000; /* IE8 proofing */
  color: rgba(0,0,0,.50);
  border-bottom: 2px solid transparent;
}
.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
  background-color: transparent;
  border-bottom-color: rgba(0,0,0,.50);
}
.masthead-nav > li > a.nav-active,
.masthead-nav > li > a.nav-active:hover,
.masthead-nav > li > a.nav-active:focus {
  color: #000;
  border-bottom-color: #000;
}
 
@media (min-width: 48em) {
  .masthead-brand {
    float: left;
  }
  .masthead-nav {
    float: right;
  }
}
 
 
/*
 * Cover
 */
 
.cover {
  padding: 0 20px;
}
.cover .btn-lg {
  padding: 10px 20px;
  font-weight: bold;
}

.panel-cover {
  background-color: rgba(255,255,255,.4);
  border-radius: 6px;
}
 
/*
 * Affix and center
 */
.nav-container.affix {
  position: static;
} 
 
.masthead {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

.masthead.affix {
  position: static;
}
 
@media (min-width: 48em) {
  /* Pull out the header and footer */
  .masthead.affix-top {
    position: absolute;
    top: 0;
  }
  
  .masthead.affix {
    position: fixed;
    z-index:1030;
    min-height: 50px;
    margin-bottom: 20px;
    color: #000;
  }
  
  .masthead.affix .inner {
    padding: 5px 30px 5px 30px;
  }

  /* Start the vertical centering */
  .cover-wrapper-inner {
    vertical-align: middle;
  }
  /* Handle the widths */
  .masthead,
  .cover-container {
    width: 100%; /* Must be percentage or pixels for horizontal alignment */
  }
  
  .inner.cover {
    margin-top: 90px;
  }
  
  .nav-container.affix {
    position: fixed;
    z-index: 1020;
    width: 100%;
    height: 58px;
    background-color: #e7e7e7;
    border-bottom: #bbb solid 1px;
  }
  
  .cover-wrapper {
	  background: url(../immagini/cover-s.jpg) 50% 50% fixed;
	  background-size: cover;
	  display: table;
	  width: 100%;
	  height: 100%; /* For at least Firefox */
	  min-height: 100%;
	}
}
 
@media (min-width: 64em) {
  .masthead,
  .cover-container {
    width: 70%;
  }
  .cover-wrapper {
    background: url(../immagini/cover-m.jpg) 50% 50% fixed;
    background-size: cover;
  }
}

@media (min-width: 85.375em) {
  .cover-wrapper {
    background: url(../immagini/cover-l.jpg) 50% 50% fixed;
    background-size: cover;
  }
}

@media (min-width: 120em) {
  .cover-wrapper {
    background: url(../immagini/cover-xl.jpg) 50% 50% fixed;
    background-size: cover;
  }
}

@media (min-width: 160em) {
  .cover-wrapper {
    background: url(../immagini/cover-xxl.jpg) 50% 50% fixed;
    background-size: cover;
  }
}

/*
 * Custom Sections 
 */

/* width < 768px / 48em */
.gap-left {
  margin-left: 10px;
}
.gap-right {
  margin-right: 10px;
}
#bio {  
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 10em 0;
}
#intramezzo1 {  
  background: url(../immagini/intramezzi/sacile-base.jpg) 50% 50%;
  background-size: cover; 
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 200px 0;
}
#direttore {  
  border-top: #bbb solid 1px;
  height: auto;
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 10em 0;
}
#intramezzo2 {  
  background: url(../immagini/intramezzi/sanquirico-base.jpg) 50% 50%;
  background-size: cover; 
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 200px 0;
}
#eventi {  
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 10em 0;
}
#intramezzo3 {  
  background: url(../immagini/intramezzi/cles-base.jpg) 50% 40%;
  background-size: cover;
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 200px 0;
}
#storia { 
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 10em 0;
}
#intramezzo4 {
  background: url(../immagini/intramezzi/garda-base.jpg) 50% 40%;
  background-size: cover;
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 200px 0;
}
#foto { 
  height: auto;  
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 10em 0;
}
#contatti { 
  background-color: #e7e7e7;
  border-top: #bbb solid 1px;
  height: auto;
  margin: 0 auto; 
    width: 100%; 
    position: relative; 
    padding: 5em 0;
}

@media (min-width: 48em) {
  #intramezzo1 {  
    background: url(../immagini/intramezzi/sacile-s.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo2 {  
    background: url(../immagini/intramezzi/sanquirico-s.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo3 {  
    background: url(../immagini/intramezzi/cles-s.jpg) 50% 40%;
    background-size: cover; 
  }
  #intramezzo4 {
    background: url(../immagini/intramezzi/garda-s.jpg) 50% 40%;
    background-size: cover; 
  }
}

@media (min-width: 64em) {
  #intramezzo1 {  
    background: url(../immagini/intramezzi/sacile-m.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo2 {  
    background: url(../immagini/intramezzi/sanquirico-m.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo3 {  
    background: url(../immagini/intramezzi/cles-m.jpg) 50% 40%;
    background-size: cover; 
  }
  #intramezzo4 {
    background: url(../immagini/intramezzi/garda-m.jpg) 50% 40%;
    background-size: cover; 
  }
}

@media (min-width: 85.375em) {
  #intramezzo1 {  
    background: url(../immagini/intramezzi/sacile-l.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo2 {  
    background: url(../immagini/intramezzi/sanquirico-l.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo3 {  
    background: url(../immagini/intramezzi/cles-l.jpg) 50% 40%;
    background-size: cover; 
  }
  #intramezzo4 {
    background: url(../immagini/intramezzi/garda-l.jpg) 50% 40%;
    background-size: cover; 
  }
}

@media (min-width: 120em) {
  #intramezzo1 {  
    background: url(../immagini/intramezzi/sacile-xl.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo2 {  
    background: url(../immagini/intramezzi/sanquirico-xl.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo3 {  
    background: url(../immagini/intramezzi/cles-xl.jpg) 50% 40%;
    background-size: cover; 
  }
  #intramezzo4 {
    background: url(../immagini/intramezzi/garda-xl.jpg) 50% 40%;
    background-size: cover; 
  }
}

@media (min-width: 160em) {
  #intramezzo1 {  
    background: url(../immagini/intramezzi/sacile-xxl.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo2 {  
    background: url(../immagini/intramezzi/sanquirico-xxl.jpg) 50% 50%;
    background-size: cover; 
  }
  #intramezzo3 {  
    background: url(../immagini/intramezzi/cles-xxl.jpg) 50% 40%;
    background-size: cover; 
  }
  #intramezzo4 {
    background: url(../immagini/intramezzi/garda-xxl.jpg) 50% 50%;
    background-size: cover; 
  }
}
