main {
  padding-top: 50px;
  min-height: 500px;
}

.subheading {
  background-color: #ba162f;
  font-size: 1em;
  line-height: 120%;
  padding: 0.3em 0;
}

.subheading a {
  color: #fff;
  font-weight: bold;
  margin-left: -0.8em;
}

.subheading a:hover {
  border-bottom: none;
  text-decoration: none;
}

.subheading .annomenu {
  position: relative;
  float: right;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.annocambia {
  line-height: 30px;
}

.annolista {
  display: none;
  position: absolute;
  top: 37px;
  right: 0;
  background-color: #ba162f;
  min-width: 150px;
  z-index: 1000;
}
.annolista a {
  display: block;
  background-color: #ba162f;
  color: #fff !important;
  line-height: 2em;
  padding: 0 2em 0 2em;
  margin: 0;
  text-align: right;
  border-bottom: 1px solid #fff;
}

.annolista a:hover {
  background-color: #840f21;
}

.faculties {
  display: flex;
  flex-wrap: nowrap;
}

.faculty {
  flex-grow: 1;
  background-color: rgba(102, 119, 136, 1);
  color: #fff;
  line-height: 120%;
  font-size: 0.8em;
  font-weight: bold;
  padding: 0.5em;
  margin: 0 0 2px 5px;
}

.faculty.active {
  background-color: #ba162f;
}

.faculties .teologia,
.faculties .filosofia {
  flex-shrink: 0;
}

.search:hover {
  cursor: pointer;
  background-color: #ba162f;
}

.search.active {
  background-color: #ba162f;
}

.titolofacolta {
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(102, 119, 136, 1);
  text-align: center;
  /*margin-top: 1.5em;*/
  margin-bottom: 0.5em;
}

#searchcorso {
  margin-top: 50px;
  margin-bottom: 50px;
}

#searchcorso .btn {
  background-color: rgba(102, 119, 136, 0.7);
  color: #fff;
}

#searchcorso .btn:hover {
  background-color: rgba(102, 119, 136, 1);
}

#searchinput {
  display: none;
}

#searchinput.active {
  display: block;
}

.corso {
  display: none;
  border-top: 1px solid #ccc;
  padding: 1em 0;
  font-size: 0.8em;
  line-height: 130%;
}

.corso.active {
  display: block;
}
.corso.active.hidden {
  display: none;
}

.titolocorso {
  font-size: 1.2em;
  line-height: 130%;
}

.docente {
  font-weight: 400;
  margin-left: 25px;
}

.carddocente {
  color: #000 !important;
}

.carddocente::after {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  margin-left: 0.5em;
  opacity: 0.2;
}

.carddocente:hover::after {
  opacity: 1;
  color: #ba162f;
}

::-webkit-input-placeholder {
  font-size: 80%;
}

:-ms-input-placeholder {
  font-size: 80%;
}

::placeholder {
  font-size: 80%;
}

@media screen and (max-width: 992px) {
  .faculties .faculty {
    font-size: 2vw;
  }
  #searchinput.active {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  header .link-social {
    top: 400px;
    right: 15px;
  }

  .faculties {
    flex-wrap: wrap;
  }

  .faculties .faculty {
    font-size: 2.5vw;
    margin: 0 0 5px 1vw;
    padding: 0.8em 0.5em;
  }

  .faculty.teologia,
  .faculty.filosofia {
    flex-basis: 23%;
  }

  .faculty.lettere,
  .faculty.educazione,
  .faculty.comunicazione {
    flex-basis: 48%;
  }

  #searchcorso {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #searchcorso input {
    width: 60%;
    padding: 5px 10px;
    font-size: 0.8em;
  }
  #searchcorso .btn {
    width: 100px;
    padding: 7px 10px;
    font-size: 0.8em;
  }
}

@media screen and (max-width: 400px) {
  .faculties .faculty {
    font-size: 3.5vw;
  }

  #searchcorso input {
    width: 50%;
  }
}
