@font-face {
  font-family: "Libre Baskerville";
  src: url(../fonts/LibreBaskerville-VariableFont_wght.ttf);
  style: normal;
}

@font-face {
  font-family: "Libre Baskerville Italic";
  src: url(../fonts/LibreBaskerville-Italic-VariableFont_wght.ttf);
  style: italic;
}

body {
  font-size: 17px;
  margin: 0;
  font-family: "Libre Baskerville", serif;
  color: #ccc;
  line-height: 1.5rem;
  background-color: #10002b;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 7px 5%;
  border-bottom: 2px solid #757bc8;
  align-items: center;
}

nav h1 {
  font-size: 1.2rem;
}
.giardino-punk {
  font-size: 1rem;
  color: #999;
  font-weight: 500;
}

/*#zulianis-logo {
  width: 30px;
  height: 30px;
}*/

main {
  max-width: 800px;
  margin: 0px auto;
  padding: 20px 20px;
  z-index: index;
  line-height: 1.5em;
}

blockquote{
  font-family: "Libre Baskerville Italic", serif;
  font-style: italic;
}

.big-quote {
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 700;
  font-style: italic;
}

main a {
  color: #95d9da;
  transition: color 0.5s;
}
main a:hover {
  color: lavender;
}

#incipit {
  margin-bottom: 50px;
}

@media only screen and (max-width: 970px) {
  /*.media-img {
    display: block;
    width: 100%;
  }*/

  blockquote {
    color: #ccc;
    font-size: 0.9em;
    margin-inline-end: 20px;
    margin-inline-start: 20px;
  }

  blockquote .big-quote {
    text-align: center;
  }

  #prospettiva {
    display: none;
  }
  #sidebar {
    display: none;
  }
}

@media only screen and (min-width: 970px) {
  /*.media-img {
    float: left;
    shape-outside: circle(50%);
    object-fit: scale-down;
    height: 450px;
    width: 450px;
    padding: 20px 30px 20px 0px;
  }
  .media-img.right {
    float: right;
    padding: 20px 0px 20px 30px;
  }*/

  blockquote {
    border-left: 3px solid #757bc8;
    color: #ccc;
    font-size: 1.25em;
    font-style: italic;
    line-height: 1.8em;
    margin: 1.1em -4em;
    padding: 1em 2em;
    position: relative;
    transition: 0.2s border ease-in-out;
    z-index: 0;
  }
  blockquote:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    height: 2em;
    background-color: #10002b;
    width: 5px;
    margin-top: -1em;
  }
  blockquote:after {
    content: "«";
    position: absolute;
    top: 50%;
    left: -0.5em;
    color: #757bc8;
    font-size: 2rem;
    font-style: normal;
    line-height: 1em;
    text-align: center;
    text-indent: -2px;
    width: 1em;
    margin-top: -0.5em;
    transition: 0.2s all ease-in-out, 0.4s transform ease-in-out;
  }

  blockquote:active:after {
    transform: rotateY(360deg);
  }

  main p {
    transition: 2s;
    margin: 3px 0px;
    padding: 7px 7px;
  }
  main p:hover {
    background-color: #431594;
  }

  /*
  .commented {
    border-right: 3px solid #431594;
  }

  #sidebar {
    color: whitesmoke;
  }
  .side-shown {
    position: fixed;
    height: 100vh;
    width: 40%;
    right: 0;
    top: 0vh;
    background-color: #757bc8;
    z-index: 10;
    padding: 50px 70px;
    overflow-y: scroll;
  }

  .side-hidden {
    display: none;
  }

  #sidebar #mention {
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 0.9em;
  }
  .side-shown h2,
  .side-shown h3,
  .side-shown h4 {
    font-family: Montserrat;
    font-weight: 800;
  }
  #close {
    font-size: 30px;
    background-color: transparent;
    border: none;
    color: #431594;
    float: right;
  }
  #sidebar #close:hover {
    cursor: pointer;
    color: #10002b;
  }
  #sidebar a {
    color: #95d9da;
  }
  .list {
    display: block;
    font-size: xx-large;
    width: 100%;
    height: 100px;
    background-color: #95d9da;
  }

  .comment {
    background-color: #b6dbdb;
    font-family: Montserrat;
    font-size: 0.8em;
    color: #10002b;
    padding: 7px 25px 10px 25px;
    margin-bottom: 5px;
  }
  .comment h4 {
    font-size: xx-large;
    background-color: whitesmoke;
  }
  #comment-form input,
  #comment-form button {
    line-height: 2em;
    margin-bottom: 10px;
    padding: 3px 5px;
    font-family: Montserrat;
    font-size: 0.8em;
    color: #10002b;
    background-color: whitesmoke;
    border: 1px solid #10002b;
    border-radius: .5em;
  }
  #comment-form input:nth-of-type(1) {
    width: 50%;
  }
  #comment-form input:nth-of-type(2) {
    width: 100%;
  }
  #comment-form button {
    padding: 5px 15px;
    background-color: #95d9da;
    font-size: .8em;
    font-weight: 800;
    margin-bottom: 100px;
  }*/
}

/*.flag {
  font-size: 3rem;
  float: left;
  shape-outside: circle(50%);
  object-fit: scale-down;
  height: 4rem;
  width: 4rem;
  padding: 10px 15px 10px 10px;
  margin-left: -3rem;
}*/

footer {
  font-size: 0.8rem;
  line-height: 1.1rem;
  text-align: center;
  /*max-width: 800px;*/
  margin: 100px auto 0px auto;
  border-top: 2px solid #757bc8;
  padding: 30px 10px;
}
footer p {
  /*padding: 0px 50px;*/
  max-width: 600px;
  margin: auto;
}
footer a {
  color: whitesmoke;
}

main h2 {
  margin-top: 5rem;
  line-height: 1.3em;
}

hr {
  margin: 40px 0px;
  border-color: #757bc8;
}

#prospettiva {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.9rem;
  line-height: 1.3em;
  text-align: right;
}

/* bibliografia */

.divtoshow {
  position: fixed;
  display: none;
  background-color: #ccc;
  border-radius: 10px;
  box-shadow: 0px 0px 5px #10002b;
  padding: 15px 20px;
  font-weight: 500;
  font-size: 0.75em;
  line-height: 1.5em;
  color: #333;
  max-width: 500px;
}

.reference a {
  text-decoration: none;
}


/* ---------- Sillabazione del testo lungo ---------- */
#main p,
#main blockquote {
  -webkit-hyphens: auto;          /* Safari */
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;   /* sillaba solo parole da 7 lettere in su, lasciando almeno 3 lettere per riga */
  text-wrap: pretty;              /* evita una parola sola sull'ultima riga */
}