@import url(normalize.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,700|Playfair+Display:400,700");
header nav ul li a {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
  text-transform: uppercase;
  padding: 15px 30px;
  transition: all 0.2s ease-in-out; }
  header nav ul li a:hover {
    color: #617385; }

a {
  color: #333333;
  text-decoration: none;
  transition: all 0.2s ease-in-out; }
  a:hover {
    color: #73899d; }

h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #333333;
  margin-top: 0; }

.line {
  height: 1px;
  width: 50px;
  border-top: 1px solid #cccccc; }

p, ul {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300; }

#about p:last-of-type {
  padding-bottom: 25px; }
#about a {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #73899d;
  padding: 15px 30px;
  transition: all 0.3s ease-in-out; }
  #about a:hover {
    background-color: #617385; }

h2, h3 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #333333; }

h4 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  margin: 15px 0;
  line-height: 1.4; }

h5, time {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #787878;
  text-transform: uppercase;
  margin-bottom: 0; }
  h5 a, time a {
    color: #73899d;
    transition: all 0.2s ease-in-out; }
    h5 a:before, time a:before {
      content: "| "; }
    h5 a:hover, time a:hover {
      opacity: 0.7; }

#teaching .class {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin: 15px 0 5px 0;
  line-height: 1.4; }
  #teaching .class:hover {
    color: #617385; }
#teaching p {
  margin: 5px 0 15px 0; }
#teaching .btn-small {
  width: auto;
  margin-bottom: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  color: #73899d;
  border: 1px solid #73899d;
  text-decoration: none;
  text-transform: uppercase;
  padding: 5px 10px;
  transition: all 0.2s ease-in-out; }
  #teaching .btn-small:hover {
    color: #ffffff;
    background: #73899d; }

#work h4 {
  padding-bottom: 20px;
  border-bottom: 1px solid #cccccc; }
#work a {
  font-weight: 400; }
#work ul {
  padding-left: 15px; }
  #work ul li {
    list-style-type: square; }

#contact h3 {
  color: #ffffff; }
#contact p, #contact a {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 400;
  color: #ffffff; }
#contact a {
  font-weight: 700; }
  #contact a:hover {
    opacity: 0.5; }
#contact .line {
  margin: 0 auto;
  padding-bottom: 10px;
  height: 1px;
  width: 50px;
  border-top: 1px solid #cccccc; }

@media screen and (max-width: 450px) {
  #contact p, #contact a {
    font-size: 18px; } }
footer p, footer a {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff; }
footer a:hover {
  color: #ffffff;
  opacity: 0.5; }

#legal h4 {
  padding-top: 30px; }
  #legal h4:first-child {
    padding-top: 5px; }

@media screen and (max-width: 850px) {
  h1, h2, h3 {
    font-size: 32px; }

  h4 {
    font-size: 22px; }

  h5, time {
    font-size: 15px; } }
@media screen and (max-width: 450px) {
  #teaching .class {
    font-size: 18px; } }
body {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  min-width: 320px; }

header {
  top: 0;
  left: 0;
  position: fixed;
  height: 80px;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  z-index: 8888;
  opacity: 0.95;
  transition: all 0.3s ease-in-out; }

nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto; }
  nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around; }
    nav ul li {
      list-style: none; }

.scroll-hide {
  transform: translateY(-100%); }

.inactive {
  transform: translate(0); }

.toggle {
  padding: 10px;
  font-size: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: none; }
  .toggle:hover {
    opacity: 0.7; }

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

  header {
    height: auto;
    transform: translateY(calc(-100% + 55px)); }
    header ul {
      flex-direction: column;
      align-items: center;
      justify-content: space-between; }
      header ul li {
        padding: 12px; }
        header ul li:first-child {
          padding-top: 25px; } }
section {
  width: 100%; }

.shadow {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05); }

:focus {
  outline: none; }

#about {
  margin-top: 80px; }
  #about .portrait {
    width: 100%;
    height: 475px;
    background-image: url("../img/davide-porcellacchia.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; }

@media screen and (max-width: 700px) {
  #about {
    margin-top: 50px; } }
.wrapper-col-2 {
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  flex-direction: row;
  align-items: center; }

.col-1 {
  padding: 50px 30px;
  width: 50%; }

@media screen and (max-width: 850px) {
  .col-1:nth-child(1) {
    padding: 50px 15px 50px 30px; }
  .col-1:nth-child(2) {
    padding: 50px 30px 50px 15px; } }
@media screen and (max-width: 700px) {
  .wrapper-col-2 {
    margin: 0 auto;
    display: flex;
    flex-direction: column; }

  .col-1 {
    width: calc(100% - 60px); }
    .col-1:nth-child(1) {
      padding: 40px 30px 0 30px; }
    .col-1:nth-child(2) {
      padding: 30px 30px 70px 30px; }

  #about .portrait {
    height: 400px; } }
@media screen and (max-width: 700px) {
  #about .portrait {
    height: 325px; } }
#research {
  background-color: #ebf0f5;
  padding: 50px 0; }

.wrapper-col-1 {
  margin: 0 auto;
  max-width: 1100px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0 75px 0; }
  .wrapper-col-1 article {
    padding: 30px;
    max-width: 700px;
    position: relative;
    margin-bottom: 30px;
    height: auto;
    transition: all 3s ease-in-out; }
    .wrapper-col-1 article img {
      position: absolute;
      padding: 40px;
      width: 30px;
      height: auto;
      bottom: -50px;
      left: 50%;
      transform: translate(-50%, 0);
      cursor: pointer;
      transition: all 0.5s ease-in-out; }
      .wrapper-col-1 article img:hover {
        opacity: 0.8; }
    .wrapper-col-1 article .layer {
      content: "";
      position: absolute;
      bottom: 40px;
      left: 0;
      opacity: 1;
      width: 100%;
      height: 40%;
      background: linear-gradient(to top, white 0%, rgba(255, 255, 255, 0) 100%); }

@media screen and (max-width: 450px) {
  .wrapper-col-1 {
    padding: 20px 0 50px 0; } }
.hidden {
  max-height: 100px;
  overflow: hidden;
  transition: all 0.75s cubic-bezier(0, 1, 0, 1); }

.show {
  max-height: 9999px;
  transition: all 2.5s ease-in-out; }

.visible {
  opacity: 0; }

.rotate {
  transform: translate(-50%, 0) rotate(180deg) !important; }

#teaching {
  padding-bottom: 90px; }

.teaching-wrapper {
  margin: 0 auto;
  max-width: 1100px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0; }
  .teaching-wrapper:before {
    background-color: #cccccc;
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    position: absolute;
    z-index: -1;
    top: 0;
    left: calc(50% - 1px); }
  .teaching-wrapper .period {
    margin: 10px 0;
    max-width: 380px;
    text-align: left;
    transform: translate(calc(50% + 30px), 0);
    display: flex;
    flex-direction: column;
    align-items: flex-start; }
    .teaching-wrapper .period:nth-child(2n+1) {
      text-align: right;
      align-items: flex-end;
      transform: translate(calc(-50% - 30px), 0); }

@media screen and (max-width: 850px) {
  #teaching {
    padding-bottom: 90px; }

  .teaching-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 0;
    padding: 30px; }
    .teaching-wrapper:before {
      background-color: #cccccc;
      content: "";
      display: block;
      width: 1px;
      height: 100%;
      position: absolute;
      z-index: -1;
      top: 0;
      left: calc(50% - 1px); }
    .teaching-wrapper .period {
      background-color: #ffffff;
      padding: 30px 0 10px 0;
      margin: 20px 0;
      max-width: 790px;
      text-align: center;
      align-items: center;
      transform: translate(0, 0); }
      .teaching-wrapper .period:before {
        content: "";
        background: #cccccc;
        position: absolute;
        top: 0;
        left: 50%;
        border-radius: 50%;
        transform: translate(-50%, 0);
        height: 6px;
        width: 6px; }
      .teaching-wrapper .period:nth-child(2n+1) {
        text-align: center;
        align-items: center;
        transform: translate(0, 0); } }
@media screen and (max-width: 450px) {
  .teaching-wrapper {
    padding: 20px; } }
#work {
  background-color: #e1e6e1;
  padding: 30px 0; }

@media screen and (max-width: 700px) {
  #work {
    padding: 0; } }
.wrapper-col-1-trans {
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0 60px 0; }

.card-wrapper {
  padding: 30px 30px 0 30px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around; }

.card {
  background-color: #ffffff;
  width: calc(45% - 50px);
  padding: 30px 20px;
  margin: 20px 0; }

@media screen and (max-width: 900px) {
  .card-wrapper {
    flex-flow: column nowrap;
    align-items: center; }

  .card {
    min-width: 220px;
    max-width: 600px;
    width: auto; } }
#contact {
  margin: 0;
  background-color: #73899d;
  text-align: center;
  padding: 50px 0 65px 0; }

@media screen and (max-width: 850px) {
  #contact {
    padding: 20px 0 40px 0; } }
.to-top {
  background-image: url("../img/up.png");
  background-position: center;
  background-repeat: no-repeat;
  background-color: #617385;
  position: fixed;
  right: 50px;
  bottom: 50px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  text-align: center;
  opacity: 0;
  transform: translate(0px, 50px);
  transition: all 0.3s ease-in-out;
  pointer-events: none; }
  .to-top:hover {
    opacity: 0.7; }

.fade-in {
  display: block;
  opacity: 0.4;
  transform: translate(0px, 0px);
  pointer-events: auto; }

@media screen and (max-width: 850px) {
  .to-top {
    display: none;
    pointer-events: none; } }
footer {
  background-color: #617385; }

.wrapper-footer {
  padding: 5px 30px;
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between; }

@media screen and (max-width: 500px) {
  .wrapper-footer {
    padding: 15px 30px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; }
    .wrapper-footer p {
      margin: 5px 0; } }
#legal {
  background-color: #ebf0f5;
  padding: 110px 0 50px 0; }
  #legal article {
    transition: all 0s ease-in-out; }
  #legal img {
    padding-left: 100px;
    transform: translate(-50%, 0) rotate(90deg); }

@media screen and (max-width: 700px) {
  #legal {
    padding-top: 70px; } }
