/*----------------  SOPRA I 700 px:--------------------------*/

body {
  margin: 0;
  font-family: 'Noto Sans Display', sans-serif;
  background-color: rgb(187, 193, 187);
  min-width: 20em;
}

:not(.title, .card-title)::selection {
  background-color: rgb(147, 9, 25);
  color: rgb(210, 128, 51);
}

pre {
  font-size: 1em;
}

a {
    color: blue;
}

a:hover {
    color: #ac5e60;
}

h1, h2, h3, h4 {
    color: #620c1b;
    margin: 0;
}

p {
  margin-top: 0.4em; 
  margin-bottom: 0;
}

sup {
  font-size: 0.6em;
  font-family: monospace;
}

sup::before {
  content: "[";
}

sup::after {
  content: "]";
}

.copyright {
  margin: 0 0 0 14px;
  font-size: 0.6em;
  border-top: 1px solid rgb(238, 238, 238);
  box-shadow: 0 -1px 0 rgb(154, 154, 154);
}

.title {
  color: #620c1b;
  text-align: center;
  font-weight: 900;
  font-size: 1em;
}

.subtitle {
  color: #620c1b;
  text-align: left;
  font-weight: 900;
  font-size: 0.8em;
}

a.link-icon {
  color: black;
  vertical-align: middle;
  text-decoration: none;
}

a.link-icon i {
  font-size: 20px;
}

a.link-icon:hover {
  color: rgb(210, 128, 51);
}

main {
  display: flex;
  padding: 1em 1.25em 0 0;
}

aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  width: 11.25em;
  min-width: 11.25em;
  background-color: rgb(187, 193, 187);
  overflow: hidden;
}

aside #nuxmv-logo {
  display: block;
  width: 100%;
  padding: 0 0.7em;
  box-sizing: border-box;
}

aside #nuxmv-logo img {
  width: 100%;
}

aside ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

aside ul li {

}

aside ul li a {
  padding: 0.375em 14px 0.375em 1em;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  color: black;
  display: block;
}

aside ul li a.active { /*colore costante quando sono su una pagina*/
  background-color: rgb(147, 9, 25);
  color:  rgb(210, 128, 51);
}

aside ul li a:hover:not(.active) { /*colore che si vede quando ci passi sopra con il mouse*/
  background-color: rgb(210, 128, 51);
  color: rgb(147, 9, 25);
}

aside ul li.highlight a {
  color: rgb(147, 9, 25);
}

aside ul li.highlight a:hover {
  color: rgb(210, 128, 51);
  background-color: rgb(147, 9, 25);
}

#site-content {
  width: 100%;
  position: relative;
}

#site-content > article {
  border: solid black 4px;
  background-color: white;
  text-align: left;
  font-size: 1em; 
  padding: 1.25em;
}

#site-content > article + article {
  margin-top: 2em;
}

#site-content #fbk-logo {
  position: absolute;
  top: 1.25em;
  right: 1.25em;
  width: 100px;
  opacity: 0.65;
  transition: opacity 0.2s ease-in-out;
}

#site-content #fbk-logo:hover {
  opacity: 1;
}

#site-content > article .block-title {
  text-align: center;
  margin-bottom: 2.5em;
}

#site-content > article .block-title.secondary {
  text-align: left;
  margin-bottom: 1em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid #620c1b;
}

.last-phrase {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.1em solid black;
}

#mobile-navigation {
  display: none;
}

#modal {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,.5);
}

#modal .modal-box {
  position: absolute;
  min-width: 400px;
  max-width: 60vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
}

#modal .modal-content {
  padding: 16px;
}

#modal .modal-close {
  color: black;
  font-size: 24px;
  padding: 8px 0;
  background-color: #eee;
  border-top: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  text-align: center;
}

/*----------------- SOTTO AI 1024px -------------------*/

@media screen and (max-width: 968px) {
  body {
    background: white;
  }

  main {
    padding: 1em 0 0 0;
  }

  #site-content {
    margin-top: 32px;
  }

  #site-content article {
    border: none;
  }

  aside {
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9;
    position: fixed;
    border-right: 2px solid #000;
  }

  #mobile-navigation {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 8;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 0; /* fix whitespaces */
  }

  #mobile-navigation label.hamburger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 8px;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    transition: transform .3s ease;
  }

  #mobile-navigation label.hamburger span {
    width: 100%;
    height: 2px;
    background: #000000;
    display: block;
    transition: opacity .3s ease, transform .3s ease-in-out;
    transform-origin: center;
  }

  #mobile-navigation input:checked + label.hamburger {
    font-size: initial;
    transform: translateX(calc(11.25em + 8px));
  }

  #mobile-navigation input:checked + label.hamburger span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  #mobile-navigation input:checked + label.hamburger span:nth-child(2) {
    opacity: 0;
  }

  #mobile-navigation input:checked + label.hamburger span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  #mobile-navigation #fbk-logo-mobile {
    display: none;
  }

  #mobile-navigation #fbk-logo-mobile a {
    display: block;
  }

  #mobile-navigation #fbk-logo-mobile img {
    height: 32px;
    width: auto;
  }

  aside {
    transform: translateX(-100%);
    transition: transform .3s ease;
  }

  aside.open {
    transform: translateX(0);
  }

  #site-content {
    transition: transform .3s ease;
  }

  aside.open + #site-content {
    transform: translateX(11.25em);
  }
}

@media screen and (max-width: 720px) {
  #site-content table:not(.highlighttable) td, #site-content table th {
    min-width: 0 !important;
  }

  /* FBK logo needs to be moved under this width */
  #site-content #fbk-logo {
    display: none;
  }

  #mobile-navigation #fbk-logo-mobile {
    display: block;
  }

  #modal .modal-box {
    min-width: 80vw;
  }
}