* {
  box-sizing: border-box;
  transition: 0.3s all ease-out;
}

*:focus {
  outline: none;
}

html,
body {
  scroll-behavior: smooth;
}

/* 
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-family: "sole_headline", Georgia, Times, "Times New Roman", Serif;
  font-family: "sole_display", Georgia, Times, "Times New Roman", serif;
*/

body {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  background-color: #feeeda;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  color: #000;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

body:not(.backgroundAdv) #adv-MaxTicker {
  margin-top: 50px;
}

.backgroundAdv {
  background-attachment: fixed;
}

.box_crediti h5 {
  margin-block-start: 1.67em;
  margin-block-end: 1.67em;
}

div {
  width: 100%;
}

p {
  font-family: "sole_text", Georgia, Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  color: #0f0f0f;
  text-align: left;
  margin-block-start: 10px;
  margin-block-end: 10px;
}

.bg_color {
  background-color: #feeeda;
}

.red .num {
  color: #c70039;
}

.green .num {
  color: #07a89e;
}

/* TOP BAR */

.top-bar {
  height: 50px !important;
}

.faN {
  width: 30px !important;
  height: 30px !important;
}

/* ADV */

#adv-MaxTicker {
  margin: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  width: 100%;
  background-color: #f1e2cf;
}

#ad-Mpu_Top {
  display: flex;
  justify-content: center;
  width: 320px;
}

#bordo_adv {
  padding: 10px 0;
}

#Mpu_Top {
  text-align: center;
  width: fit-content;
}

#ad-Mpu_Top div,
#adv-MaxTicker div {
  width: inherit !important;
}

.container_over_skin {
  width: 100%;
  z-index: 5;
  background-color: #feeeda;
}

.container_over_skin > * {
  z-index: 5;
  background-color: #feeeda;
}

.shrinkable,
.backgroundAdv {
  background-color: #feeeda !important;
}

.pubblicita {
  display: flex;
  justify-content: center;
}

header {
  width: 100%;
  padding: 50px 30px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
}

.title {
  max-width: 800px;
  margin: auto;
}

h1 {
  display: inline;
  font-family: "sole_display", Georgia, Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 800;
  font-size: 80px;
  line-height: 94px;
  text-align: center;
  margin: auto;
}

.data {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  max-width: 800px;
  padding: 10px 0;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  margin: auto;
  padding: 20px 0;
}

.data strong {
  text-transform: uppercase;
}

/* NUMERONI */

#two_columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: 800px;
  overflow-x: hidden;
  padding: 0;
  margin: auto;
  position: relative;
  margin-bottom: 30px;
}

#column_left {
  width: 100%;
  max-width: 800px;
  padding-left: 0;
  padding-right: 20px;
}

/* #column_right {
  padding-left: 30px;
  padding-right: 0;
  align-self: baseline;
  max-width: 340px;
} */

#column_right {
  padding-right: 0;
  max-width: 320px;
  background-color: #f1e2cf;
}

.numeroni_container {
  /* display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 32px 32px;
  margin-bottom: 10px;
  margin-left: 2px;
}

.numerone-grid {
  display: flex;
  flex-direction: column;
  background: #feeeda;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  padding: 16px;
}

.numerone-titolo {
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.num_legend {
  height: 54px;
}

.numerone {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  padding: 30px 0;
}

.freccina-no,
.freccina-su,
.freccina-giu {
  width: 32px;
  height: 32px;
  background-size: cover;
  margin-left: 8px;
}

.green .freccina-su {
  background-image: url(../img/freccina-su-verde.svg);
}
.red .freccina-su {
  background-image: url(../img/freccina-su-rossa.svg);
}
.green .freccina-giu {
  background-image: url(../img/freccina-giu-verde.svg);
}
.red .freccina-giu {
  background-image: url(../img/freccina-giu-rossa.svg);
}

.num_title {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  width: calc(100% - 40px);
}

.num {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 50px;
  line-height: 90px;
}

.num_legend {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
}

/* MODAL */

.filetto {
  width: 100%;
  max-width: 800px;
  height: 0.5px;
  background-color: rgba(0, 0, 0, 0.5);
  margin: auto;
  margin-bottom: 50px;
}

.modal_btn_container {
  width: fit-content;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -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;
  text-align: center;
  margin: 0 auto 20px;
  background: #571845;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  cursor: pointer;
  padding: 5px 10px;
}

.modal_btn {
  width: 100%;
  outline: none;
  border: none;
  white-space: nowrap;
  padding-right: 10px;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  color: #fff;
}

.modal_btn_container:hover {
  background: #5718459d;
  color: #000;
}

.small_modal_btn_container {
  height: 32px;
  position: fixed;
  left: calc(50vw + 450px);
  top: 90px;
  z-index: 10;
  text-align: right;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  margin: auto;
}

body:not(.backgroundAdv) .small_modal_btn_container {
  right: 10px;
}

/* .modal_btn_container:hover .modal_btn {
  color: #000;
} */

.modal_hamburger div {
  width: 16px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
  border-radius: 3px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 30;
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 10px 30px;
  border: 1px solid #888;
  width: 550px;
  height: 510px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.modal-header {
  padding: 20px 16px 20px 0;
}

.modal_title {
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  color: #571845;
  text-transform: uppercase;
  text-align: left;
  position: relative;
}

.modal-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
}

.modal_body_item {
  position: relative;
  border-radius: 3px;
}

.modal_body_item:hover {
  font-weight: 600;
  background-color: rgba(87, 24, 69, 0.2);
}

.modal_body_item p {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  text-align: left;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  padding-block-start: 0;
  padding-block-end: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding: 6px 0 6px 30px;
  cursor: pointer;
}

.modal_body_item p::before {
  content: "";
  border-color: transparent #000;
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: 10px;
  top: 10px;
  position: absolute;
}

.modal-footer {
  padding: 2px 16px;
}

@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  position: absolute;
  right: -15px;
  top: -5px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* GRAFICI */

section {
  width: 100%;
  text-align: center;
  margin: 50px auto;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
}

h2 {
  width: 100%;
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  line-height: 30px;
  text-align: center;
  margin-block-end: 0.5em;
  margin-block-start: 30px;
}

.box_paragraph {
  max-width: 800px;
  margin: auto;
  padding: 10px 0;
}

.box_paragraph:first-of-type {
  padding-top: 0px;
}

.box_paragraph:first-of-type p {
  margin-block-start: 0;
}

.box_chart {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin: auto;
}

.chart_regular {
  max-width: 800px;
  margin: auto;
}

.chart_large {
  max-width: 1200px;
  padding: 10px;
  margin: auto;
}

.chart_title {
  max-width: 800px;
  font-style: normal;
  font-weight: 800;
  font-size: 26px;
  line-height: 30px;
  text-align: center;
}

.chart_subtitle {
  max-width: 800px;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #0f0f0f;
  padding: 0 0 20px;
}

.chart_source {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: rgba(15, 15, 15, 0.6);
  padding-top: 20px;
}

.box_chart_left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -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;
  margin: auto;
}

.box_chart_right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: auto;
}

.box_chart_left .chart_text {
  text-align: left;
  padding-left: 30px;
}

.box_chart_right .chart_text {
  text-align: left;
  padding-right: 30px;
}

.chart_text_number {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 56px;
  line-height: 68px;
}

/*--- FOOTER ----*/

#backtop {
  position: fixed;
  left: calc(50vw + 450px);
  bottom: 0;
  width: 50px;
  z-index: 10;
  text-align: right;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: transparent;
}

body:not(.backgroundAdv) #backtop {
  right: 10px;
}

#backtop img {
  cursor: pointer;
  width: 30px;
  max-width: 30px;
  height: auto;
  margin-right: 10px;
  padding-bottom: 10px;
}

.box_crediti {
  padding-top: 0;
  width: 680px;
  border-top: 1px solid #1a1818;
  margin: auto;
}

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;
  color: #1a1818;
  font-weight: 400;
  padding: 5vh 10px;
}

footer {
  z-index: 20;
}

#footer_div {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  line-height: 1.3;
  background-color: #19171a;
  color: #a19e9e;
  font-size: 14px;
  text-transform: none;
  padding: 30px 100px;
  text-align: center;
}

.mobile {
  display: none;
}

/* MOBILE */

@media only screen and (max-width: 820px) {
  #adv-MaxTicker {
    padding: 70px 0 20px;
  }

  #mpu_top_mobile {
    display: flex;
    justify-content: center;
  }

  #adv_middle {
    margin: 40px auto;
    text-align: center;
  }

  header {
    padding: 20px 15px 0;
  }

  section {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    max-width: 100%;
    font-size: 46px;
    line-height: 56px;
    line-height: 1;
    padding-left: 0;
    padding-right: 0;
  }

  .title {
    max-width: 100%;
  }

  #two_columns {
    max-width: 100%;
    flex-direction: column;
    padding: 0 15px 0 15px;
  }

  #column_left {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0;
  }

  #column_right {
    max-width: 0;
    display: none;
  }

  .modal-content {
    width: 100%;
    height: 100%;
  }

  .modal_body_item p {
    font-size: 16px;
  }
  .num_title {
    text-align: center;
  }

  .num {
    text-align: center;
    font-size: 50px;
    line-height: 90px;
  }

  .num_legend {
    text-align: center;
  }

  .chart_title,
  .chart_subtitle,
  .box_paragraph,
  .chart_regular,
  .chart_large {
    max-width: 100%;
  }

  .chart_large {
    padding: 10px 0;
  }

  .box_chart_left,
  .box_chart_right {
    flex-direction: column;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
  }

  .box_chart_left .chart_text {
    text-align: center;
    padding-left: 0;
  }

  .box_chart_right .chart_text {
    text-align: center;
    padding-right: 0;
  }

  .scroll_container {
    width: 100%;
    overflow-x: scroll;
    position: relative;
  }

  #div_iframe_macro {
    width: 1200px;
  }

  .box_crediti {
    width: 100%;
  }

  #footer_div {
    padding: 30px 10px;
  }
}

@media only screen and (min-width: 821px) {
  /* .adv_fixed {
    position: fixed;
    margin: 20px;
  } */

  .mpu_top_mobile {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .numeroni_container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .numerone-titolo {
    height: auto;
  }

  .num_title,
  .num_legend {
    text-align: left;
    height: auto;
  }

  .num {
    font-size: 36px;
    line-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .num_legend,
  .num {
    margin-top: 8px;
  }

  .mobile {
    display: initial;
  }
  .desktop {
    display: none;
  }
}
