BODY {
  font-size: 15px;
  font-family: 'Josefin Slab', serif;
}

@media (min-height: 600px) {
  BODY {
    font-size: 16px;
  }
}

@media (min-height: 800px) {
  BODY {
    font-size: 20px;
  }
}

@media (min-width: 800px) {
  BODY {
    font-size: 22px;
  }
}

H1, H2, H3 {
  font-weight: normal;
  margin: 0;
}
h6 {
  font-size: 11px;
  margin: 0px;
}
P {
  margin: 0;
}

.center {
  text-align: center;
}

A {
  text-decoration: none;
}

STRONG, STRONG A {
  color: red;
}

.tooltiptext {
  display: none;
}

SUP {
  font-size: 0.5em;
  margin: 0 2px;
  padding: 2px 4px 0;
  position: relative;
  top: -8px;
  font-family: sans-serif, arial;
  background-color: rgba(0,0,0,0.3);
  color: #FFF;
  border-radius: 10px;
}

/* SECTION, GENERAL */

@media (max-width: 1024px) and (orientation: landscape){ /* tablet and smaller */
  body:after{
    position: absolute;
    z-index: 9999;
    width: 100%;
    top: 0;
    bottom: 0;
    content: "";
    background: #212121 url(http://i.stack.imgur.com/sValK.png) 0 0 no-repeat; /* replace with an image that tells the visitor to rotate the device to landscape mode */
    background-size: 100% auto;
    opacity: 0.95;
  }
}




SECTION {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

SECTION .left-side {
  display: none;
}

SECTION .inner, SECTION .content {
  padding: 20px 20px 40px 20px;
}

/* SECTION IMAGE, GENERAL */

SECTION.section-image .image {
  display: flex;
  align-items: self-end;
  flex-direction: column;
}

SECTION.section-image .image IMG {
  max-height: 70%;
  margin: 0 auto;
  display: block;
  align-self: self-end;
}

SECTION.section-image .content {
  height: 30%;
  display: flex;
  flex-direction: column;
  font-size: 1.2em;
  padding-top: 0;
}

SECTION .cit {
  margin-top: 20px;
  font-size: 0.8em;
}

/* SECTION TEXT, GENERAL */

SECTION.section-text .inner {
  overflow: hidden;
  font-size: 1.1em;
}

SECTION.section-text .citation {
  display: none;
}

/* INTRO */

SECTION#intro .logo {
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

SECTION#intro H1 {
  font-size: 2.5em;
  margin-top: 30px;
  margin-bottom: 20px;
}

SECTION#intro H2, SECTION#intro H3 {
  font-size: 1.4em;
}

/* CONTATTI */

SECTION#contatti {
  font-size: 1.5em;
  padding: 0 30px;
}

SECTION#contatti IMG {
  max-width: 130px;
  display: block;
  margin: 0 auto 20px;
}

SECTION#contatti A {
  color: #000;
  text-decoration: underline;
}

/* BIO */

SECTION#bio .image {
  margin: 20px 20px 0;
}

SECTION#bio .image IMG {
  max-width: 80%;
  margin: 0 auto;
}

SECTION#bio .content {
  font-size: 1.2em;
}

/* PAGINATION */

.pagination {
  background-color: #FFFFFF;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1.4em;
  z-index: 10;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.pagination LI {
  display: inline-block;
  width: 20px;
}

.pagination a {
  display:block;
  height:20px;
  margin-bottom:5px;
  color:#333;
  position:relative;
  padding:4px;
  text-indent:-99999px;
}
.pagination a.active:after {
  box-shadow:inset 0 0 0 5px;
}

.pagination a:after {
  -webkit-transition:box-shadow 0.5s ease;
  transition:box-shadow 0.5s ease;
  width:10px;
  height:10px;
  display: block;
  border:1px solid;
  border-radius:50%;
  content:'';
  position: absolute;
  margin:auto;
  top:0;
  right:4px;
  bottom:0;
}

@media (min-width: 800px) and (orientation: landscape) {
  .section-image {
    display: none;
  }

  SECTION .inner, SECTION .content {
    padding: 20px 80px 20px 20px;
  }

  SECTION.section-text .inner {
    display: flex;
  }

  SECTION.section-text .left-side {
    text-align: right;
    display: block;
    width: 40%;
  }

  SECTION.section-text .left-side IMG {
    max-width: 100%;
  }

  SECTION.section-text .right-side {
    width: 60%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
  }

  SECTION.section-text .citation {
    font-weight: bold;
    width: 100%;
    display: block;
    font-size: 1.2em;
  }

  SECTION.section-text .citation .cit {
    font-weight: normal;
    margin-bottom: 40px;
    font-size: 0.6em;
  }

  .pagination {
    top:0;
    bottom: 0;
    left: auto;
    right: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 40px;
  }
}
