html,
body {
  scroll-behavior: smooth;
}

body {
  background-color: #e6e6e6;
}

:-webkit-any(article, aside, nav, section) h1 {
  margin-block-start: 0px;
  margin-block-end: 10px;
}

article,
header,
aside {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  margin: auto;
}

section {
  width: 100%;
  max-width: 100vw;
  margin: 20px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

h1 {
  display: inline;
  font-family: "sole_headline", Georgia, Times, "Times New Roman", serif;
  font-size: 120px;
  font-weight: 900;
  font-stretch: normal;
  font-style: normal;
  line-height: 0.83;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  text-align: center;
  padding: 0px 20px;
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

h5 {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  font-weight: 400;
  margin: 5vh 10px;
}

p {
  margin: 20px auto;
}

ul {
  list-style-image: url("../img/bullet.svg");
  margin-left: 20px;
}

li {
  padding-bottom: 20px;
}

/*---- NAV HEADER  ------*/

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
  -webkit-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
}

.swiper-container {
  margin: auto;
  width: 100%;
  height: 50px;
  margin-top: 64px;
  background-color: #f7f6f2;
}

.swiper-slide {
  width: auto;
  text-align: center;
  background: #f7f6f2;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: normal;
  color: #0f0f0f;
}

/* .swiper-slide:nth-child(2n) {
      width: 40%;
  } */

.swiper-slide a {
  text-decoration: none;
  color: #0f0f0f;
}

.swiper-slide a:hover,
.swiper-slide a:active {
  text-decoration: underline;
  color: #0f0f0f;
}

.swiper-slide a:visited {
  text-decoration: none;
  color: #0f0f0f;
}

#header_nav_first {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #0f0f0f;
  padding-right: 20px;
  border-right: 1px solid #c1bec1;
  cursor: pointer;
  text-decoration: none;
}

#header_nav_first:hover {
  text-decoration: underline;
}




/*--------- HEADER --------------------*/

.title_background {
  width: 100%;
  max-width: 100vw;
  margin-top: 2px;
  height: calc(100vh);
  background-color: #4f4f4f;
  color: #ffffff;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.6)
    ),
    url(../img/cover_desktop.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

/* .scroll_div {
  position: absolute;
  bottom: 50px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  overflow: hidden;
  height: 40px;
  width: 40px;
  cursor: pointer;
} */


.scroll_div {
  position: relative;
  bottom: 50px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  overflow: hidden;
  height: 40px;
  width: 40px;
  cursor: pointer;
  margin-top: 100px;
}

#scroll_img {
  cursor: pointer;
}
@keyframes animate {
  0% {
    opacity: 0;
    transform: translate(-0, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, 20px);
  }
}

.scroll_div:hover img {
  animation: animate 1.5s infinite;
}

#firma {
  padding-top: 30px;
  font-family: "sole_headline", Georgia, Times, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 900;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.17;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* SWITCH */

.switch_div {
  width: 100%;
  max-width: 100vw;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid #ffffff;
}

.switch_p,
.switch_p_checkbox,
.switch_p_note {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.38;
  letter-spacing: normal;
  text-align: center;
}

.switch_p_checkbox {
  font-weight: bold;
}

.switch_p_note {
  font-size: 13px;
  opacity: 0.6;
}

.img_switch {
  vertical-align: middle;
  cursor: pointer;
}

/* SECTIONS DIV CONTAINER */

.sections_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  margin: auto;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #ffffff;
  padding-bottom: 50px;
}

/*---- PROMO ------*/

#promo {
  width: 620px;
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  font-stretch: normal;
  font-style: italic;
  line-height: 1.56;
  letter-spacing: normal;
  margin: 40px 0px;
}

#promo_title {
  font-family: "sole_headline", Georgia, Times, "Times New Roman", serif;
  font-size: 28px;
  font-weight: normal;
  font-stretch: normal;
  font-style: italic;
  line-height: 1.29;
  letter-spacing: normal;
}

/*---------- INTRO ---------*/

#intro {
  max-width: 620px;
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.56;
  letter-spacing: normal;
}

/*--- TEXT BLOCKS ---*/

.box_container_img_top {
  width: 100%;
  max-width: 100vw;
  background-position: center center;
  position: relative;
  /* height: 100vh; */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  /* background-size: contain; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  -webkit-justify-content: start;
  justify-content: start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-height: fit-content;
  height: -moz-fit-content;
}

#cap_1_img {
  background-image: url(../img/chapter1-desktop.jpg);
}

#cap_2_img {
  background-image: url(../img/chapter2-desktop.jpg);
}

#cap_3_img {
  background-image: url(../img/chapter3-desktop.jpg);
}

#cap_4_img {
  background-image: url(../img/chapter4-desktop.jpg);
}

#cap_5_img {
  background-image: url(../img/chapter5-desktop.jpg);
}

.box_container_chapter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  -webkit-justify-content: start;
  justify-content: start;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  min-height: fit-content;
  height: -moz-fit-content;
}

.box_title {
  font-family: "sole_headline", Georgia, Times, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 900;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.13;
  letter-spacing: normal;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  margin-top: 290px;
  /* margin-top: 380px; */
  padding: 0px 20px 0px 20px;
  width: 620px;
}

.box_title_no_img {
  font-family: "sole_headline", Georgia, Times, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 900;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.13;
  letter-spacing: normal;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  margin-top: 40px;
  padding: 10px 0px 0px 0px;
  width: 620px;
}

.box_title_italic {
  font-size: 28px;
  line-height: 1.29;
  font-style: italic;
}

.occhiello {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: normal;
}

.box_text {
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.56;
  letter-spacing: normal;
  width: 620px;
}

.box_text a {
  color: #0067ff;
  text-decoration: underline;
}

.box_text a :visited {
  color: #0067ff;
  text-decoration: underline;
}

.box_text a:hover {
  cursor: pointer;
  color: #3183ff;
  text-decoration: underline;
}

.box_text a:active {
  color: #3183ff;
  text-decoration: underline;
}

.short_list li {
  padding-bottom: 5px;
}

.fonte {
  font-style: italic;
  margin-top: 10px;
}

.quote {
  margin: 0px;
  padding: 0px;
  margin-left: 20px;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.quote_p {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  padding: 0px;
  padding-left: 15px;
  opacity: 0.6;
}

/* .img_mappa_square {
  float: left;
  padding-right: 15px;
  padding-top: 25px;
  width: 100%;
  max-width: 220px;
  height: auto;
} */

.img_mappa_square {
  position: relative;
  left: -80px;
  float: left;
  padding-top: 7px;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-right: -50px;
}

.p_titolo_grafico {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: normal;
  margin-top: 70px;
}

.sommario_grafico {
  font-size: 14px;
  color: #808080;
}

/* BACK TO TOP BUTTON */

.backtoptop_container {
  width: 620px;
}

.backtotop {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  align-self: baseline;
  border: 1px solid #ffffff;
  width: 150px;
  height: 26px;
  cursor: pointer;
}

.backtotop_svg {
  width: 26px;
}

.backtotop_svg img {
  vertical-align: sub;
}

.backtotop_text {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: normal;
  padding-left: 10px;
  border-left: 1px solid #ffffff;
  width: 124px;
  height: 28px;
}

.backtotop_text div {
  margin: 7px auto;
}


#chart_credits {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  font-stretch: normal;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: normal;
  padding-left: 10px;
}


/*--- TIMELINE ---*/

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 1px;
  background-color: #0067ff;
  top: 0;
  bottom: 0;
  left: 0%;
  margin-left: -3px;
}

.timeline_container {
  padding: 0px 0px 0px 15px;
  position: relative;
  background-color: inherit;
  width: 100%;
}

.timeline_container::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -17px;
  background-color: #242424;
  border: 2px solid #0067ff;
  top: 0px;
  border-radius: 50%;
  z-index: 1;
}

.timeline_right {
  left: 0%;
}

.timeline_right::after {
  left: -7px;
}

.timeline_content {
  padding: 0px;
  position: relative;
}

.timeline_title {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 0.6;
  letter-spacing: normal;
}

.timeline_text {
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.56;
  letter-spacing: normal;
}

.img_molecola {
  width: 100%;
  max-width: 100vw;
  margin: 5px auto;
}

/*--- BIOGRAFIA ---*/
.bio {
  width: 100%;
  max-width: 100vw;
  margin: 0px;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #ffffff;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  font-weight: 400;
}

.minibio {
  margin: auto;
  padding-top: 20px;
  width: 100%;
  max-width: 660px;
  border-top: 1px solid #ffffff;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #ffffff;
}

.minibio-img {
  display: block;
  width: 71px;
  height: 71px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
  float: right;
  margin: 0px 10px 0px 10px;
}

.minibio-name {
  font-size: 18px;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  font-weight: 500;
  margin: 0px 10px 10px 10px;
}

.minibio-role {
  font-size: 18px;
  font-weight: 400;
}

.minibio-info {
  margin: 0px 10px 10px 10px;
}

/*--- FOOTER ----*/

.credits_container {
  width: 100%;
  max-width: 100vw;
  margin: 0px;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #ffffff;
}

.crediti_finali {
  margin: auto;
  margin-top: 60px;
  width: 660px;
  border-top: 1px solid #ffffff;
  background-color: #242424;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #ffffff;
}



/*----- RESPONSIVE DESKTOP EXCEPTION--------*/
@media screen and (min-width: 481px) {
  .swiper-wrapper {
    justify-content: center;
  }
}

/*----- RESPONSIVE MOBILE --------*/

@media screen and (max-width: 480px) {
  h1 {
    font-size: 60px;
    line-height: 1;
    white-space: normal;
  }

  p {
    margin: 20px 10px 20px 10px;
  }

  ul {
    width: 100%;
    max-width: 90vw;
    margin: 10px 30px;
  }

  li {
    padding-right: 20px;
  }

 .grafico_flourish {
    width: 95% !important;
    max-width: 95vw !important;
    padding-left: 10px;
  }

  .sticky {
    max-width: 100vw;
  }

  .swiper-container {
    height: 50px;
  }

  .swiper-slide:nth-child(4n) {
    margin-right: 20px;
  }

  .title_background {
    width: 100%;
    max-width: 100vw;
    background-color: #f7f6f2;
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.6)
      ),
      url(../img/cover_mobile.jpg);
  }

  #promo {
    width: 100%;
    max-width: 100vw;
    font-size: 18px;
    margin: 10px 0px;
  }

  #firma,
  #intro {
    font-size: 18px;
  }

  .scroll_div {
    margin-top: 100px;
  }


  .box_container_img_top {
    background-size: contain;
    background-attachment: scroll;
  }

  #cap_1_img {
    background-image: url(../img/chapter1-mobile.jpg);
  }

  #cap_2_img {
    background-image: url(../img/chapter2-mobile.jpg);
  }

  #cap_3_img {
    background-image: url(../img/chapter3-mobile.jpg);
  }

  #cap_4_img {
    background-image: url(../img/chapter4-mobile.jpg);
  }

  #cap_5_img {
    background-image: url(../img/chapter5-mobile.jpg);
  }

  .box_title {
    width: auto;
    font-size: 32px;
    line-height: 1.2;
    margin-right: 15px;
    padding: 0px 10px 0px 10px;
  }

  .box_title_no_img {
    width: auto;
    font-size: 28px;
    line-height: 1.2;
    padding: 10px 5px 0px 10px;
  }

  .box_text {
    width: 100%;
    max-width: 100vw;
    font-size: 20px;
  }

  .img_mappa_square {
    max-width: 162px;
    left: 0px;
    margin-right: 7px;
  }

  .backtoptop_container {
    width: 100%;
    max-width: 100vw;
  }



  .backtotop {
    align-self: baseline;
    margin-left: 10px;
  }

  .timeline_title {
    line-height: 1.2;
    margin: 20px 0px 0px 0px;
  }

  .timeline_text {
    margin: 20px 0px;
  }

  .quote {
    margin-left: 20px;
  }

  .quote_p {
    margin-left: 0px;
    font-size: 18px;
  }

  .back_to_top {
    padding-top: 3px;
    padding-bottom: 6px;
  }

  .minibio {
    width: 100%;
    max-width: 100vw;
  }

  /* TIMELINE MOBILE */

  .timeline {
    width: 100%;
    max-width: 100vw;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline_container {
    width: 85%;
  }

  .timeline_right::after {
    left: -6px;
    top: 6px;
  }

  .timeline_right {
    left: 30px;
  }
  /* END TIMELINE MOBILE */
}

/*----- RESPONSIVE TABLET --------*/

@media screen and (min-width: 481px) and (max-width: 800px) {
  h1 {
    font-size: 62px;
    line-height: 1.4;
    white-space: normal;
  }

  p {
    margin: 20px 10px;
  }

  .swiper-container {
    height: 50px;
  }

  .title_background {
    width: 100%;
    max-width: 100vw;
    background-color: #f7f6f2;
    background-image: url(../img/cover_mobile.jpg);
  }

  #intro,
  .box_title,
  .box_title_no_img,
  .box_text,
  .crediti_finali {
    width: 100%;
    max-width: 100vw;
  }

  .quote_p {
    font-size: 18px;
  }

  .box_title,
  .box_title_no_img {
    box-sizing: border-box!important;
  }

  .box_title_no_img {
    padding: 10px 5px 0px 20px;
  }

  .img_mappa_square {
    left: -60px;
    margin-right: -30px;
  }
}

/* LIGHT MODE */

.light-mode {
  background-color: #f7f6f2;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
  color: #000000;
}

.opacity {
  opacity: 0.6;
  -webkit-transition: opacity 500ms linear;
  -ms-transition: opacity 500ms linear;
  transition: opacity 500ms linear;
}

.border-light-shadow {
  border-top: 1px solid #000000;
  -webkit-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.border-light {
  border: 1px solid #000000;
}


.border-top-light {
  border-top: 1px solid #000000;
}

.border-left-light {
  border-left: 1px solid #000000;
}

.quote_light {
  border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.timeline_container_light::after {
  background-color: #f7f6f2;
}

.grafico-light-mode {
  background-color: #f7f6f2;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
}
