:root {
  --graficoColore1: #ff928b;
  --graficoColore2: #a1bbe6;
}

.modal_scheda_comune {
  display: block;
  z-index: 9997;
  position: fixed;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 43, 76, 0.9);
}

.modal_scheda_comune_content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 70%;
  max-width: 800px;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@-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;
  }
}

.modal_scheda_comune_close_btn {
  position: absolute;
  top: -20px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: 400;
  z-index: 99999;
}

.modal_scheda_comune_close_btn:hover,
.modal_scheda_comune_close_btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal_scheda_comune_header {
  max-width: 660px;
  background: #a9c2ee;
  border-radius: 10px;
  position: absolute;
  top: 0;
  z-index: 9999;
}

.modal_scheda_comune_occhiello {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #000000;
  text-align: center;
  padding-top: 20px;
  position: relative;
}

.modal_scheda_comune_regione::before {
  content: url("../img/pin-scheda.svg");
  position: relative;
  left: -5px;
  top: 5px;
}

.modal_scheda_comune_nome {
  padding: 10px 40px 10px;
  font-style: normal;
  font-weight: 800;
  font-size: 42px;
  line-height: 42px;
  text-align: center;
  color: #000000;
}

.modal_scheda_comune_pop {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
  color: #000000;
  text-transform: uppercase;
  padding-bottom: 20px;
}

.modal_scheda_comune_pop span {
  font-size: 16px;
  line-height: 19px;
}

.modal_scheda_comune_body {
  background: #ffffff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
  height: 930px;
  padding-top: 150px;
}

.modal_scheda_comune_footer {
  max-width: 660px;
  background: #1d6eac;
  border-radius: 10px;
  padding: 30px;
  position: absolute;
  top: 880px;
  z-index: 9999;
}

.modal_scheda_comune_euro_legenda {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #ffffff;
}

.modal_scheda_comune_euro_importo {
  font-style: normal;
  font-weight: 800;
  font-size: 24px;
  line-height: 29px;
  text-align: right;
  color: #ffffff;
}

.modal_scheda_comune_euro_testo {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #ffffff;
  padding-top: 20px;
}

.modal_scheda_comune_footer_vuoto {
  text-align: center;
  padding: 30px 0 40px;
  top: 910px;
}

.modal_scheda_comune_footer_vuoto .modal_scheda_comune_euro_testo {
  font-size: 18px;
}

.modal_scheda_comune_monithon_swiper {
  max-width: 660px;
  margin-top: 120px;
}

.modal_scheda_comune_monithon_swiper .swiper-wrapper {
  padding-bottom: 50px;
}

.slide_monithon {
  background: #ffffff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 30px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide_monithon_euro_legenda_testo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.slide_monithon_euro_legenda {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #000000;
}

.slide_monithon_euro_importo {
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  text-align: right;
  color: #000000;
}

.slide_monithon_tipologia_intervento {
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #000000;
  padding-top: 20px;
}

.slide_monithon_sintesi_intervento {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: #616161;
  padding-top: 15px;
  font-style: italic;
}

.slide_monithon_tipologia_intervento_nota {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: #000000;
  margin: 10px 0;
}

.slide_monithon_lancio {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.slide_monithon_lancio_img_testo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.slide_monithon_lancio_img {
  width: 50px;
}

.slide_monithon_lancio_img img {
  width: 100%;
  height: auto;
}

.slide_monithon_lancio_testo {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: #000000;
  padding: 0 20px 0 10px;
}

.slide_monithon_lancio_link {
  width: 180px;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  text-align: right;
  text-transform: uppercase;
  color: #000000;
}

.slide_monithon_lancio_link img {
  width: 25px;
  height: auto;
  float: right;
  margin-left: 5px;
}

.slide_monithon_lancio_link a:link {
  color: #000000;
  text-decoration: none;
}

.slide_monithon_lancio_link a:visited {
  color: #000000;
  text-decoration: none;
}

.slide_monithon_lancio_link a:hover {
  color: #000000;
  text-decoration: none;
}

.slide_monithon_lancio_link a:active {
  color: #000000;
  text-decoration: none;
}

.slide_monithon_lancio_link:hover {
  opacity: 0.5;
}

.modal_scheda_comune_monithon_swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #1d6eac;
  opacity: 1;
}

.modal_scheda_comune_monithon_swiper .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* GRAFICO PILA */

.modal_scheda_titolo_grafico_pila {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  text-align: left;
  color: #000000;
  padding: 0 0 10px;
}

.modal_scheda_sommario_grafico_pila {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  text-align: left;
  color: #000000;
  padding: 0 0 20px;
}

.modal_scheda_numeroni_container {
  display: flex;
  flex-direction: row;
  padding: 10px 0 30px;
}

.modal_scheda_numeroni_box {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.modal_scheda_numeroni_box:first-of-type {
  border-right: 1px solid #000;
}
.modal_scheda_numeroni_titolino {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  padding: 0 0 10px;
}

.modal_scheda_numeroni {
  display: flex;
  flex-direction: row;
}

.modal_scheda_numeroni_num_leg {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 10px;
  color: #000000;
}

.salmone {
  background: #ff928b;
  border-radius: 10px;
  color: #fff;
}

.modal_scheda_numeroni_leg {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 5px;
}

.modal_scheda_numeroni_num {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
}

.bold {
  font-weight: 600;
}

#graficoPila-dida {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  line-height: 13px;
  position: relative;
  padding-top: 8px;
  text-transform: uppercase;
}

#graficoPila {
  position: relative;
  width: 100%;
  height: 80px;
  background-color: #e6e8ea;
}

.graficoPila-barra {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
}

#graficoPila-livello1 {
  width: 27%;
  background-image: url(../img/graficoPila-texture.svg);
}

#graficoPila-livello3 {
  width: 27%;
  border-right: 2px solid white;
}

.graficoPila-colore1 {
  background-color: var(--graficoColore1);
}
.graficoPila-colore2 {
  background-color: var(--graficoColore1);
}

.graficoPila-dida-div {
  position: absolute;
  padding-top: 8px;
  top: 0;
}
.graficoPila-didaCopertura {
  left: 0;
  padding-left: 12px;
}
.graficoPila-didaTarget {
  left: 27%;
  border-left: 2px solid black;
  padding-left: 12px;
  padding-bottom: 4px;
}

/* GRAFICO EMICICLO */

.modal_scheda_titolo_grafico_emi {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  text-align: left;
  color: #000000;
  padding: 50px 0 10px;
}

.modal_scheda_sommario_grafico_emi {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  text-align: left;
  color: #000000;
  padding: 0 0 10px;
}

.modal_scheda_grafico_emi {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.modal_scheda_grafico_emi_legenda_sx {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-transform: uppercase;
  text-align: left;
  color: #000000;
}

.grafico_emi_legenda_sx_punto_tratteggiato,
.grafico_emi_legenda_sx_punto_bordo {
  padding-top: 10px;
}

.grafico_emi_legenda_sx_punto_pieno::before {
  content: url("../img/punto-pieno.svg");
  position: relative;
  left: -5px;
  top: 4px;
}

.grafico_emi_legenda_sx_punto_tratteggiato::before {
  content: url("../img/punto-tratteggiato.svg");
  position: relative;
  left: -5px;
  top: 4px;
}

.grafico_emi_legenda_sx_punto_bordo::before {
  content: url("../img/punto-bordo.svg");
  position: relative;
  left: -5px;
  top: 4px;
}

.modal_scheda_grafico_emi_legenda_dx {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
}

.grafico_emi_legenda_dx_num {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
  color: #000;
  padding: 10px 0;
}

.bluette {
  color: #ff928b;
  font-weight: 600;
}

#graficoMascherato-cnt {
  position: relative;
  aspect-ratio: 2 / 1;
  width: 360px;
}

#graficoMascherato {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-clip-path: url(#maskRect1);
  overflow: hidden;
}
.graficoMascherato-cerchio {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.graficoMascherato-sfondo {
  background-color: #e6e8ea;
  mix-blend-mode: multiply;
}

.graficoMascherato-tratteggiata {
  background-color: transparent;
  border: 2px dashed black;
}

.graficoMascherato-continua {
  background-color: transparent;
  border: 2px solid black;
}

.graficoMascherato-colore1 {
  background-color: var(--graficoColore1);
}

.graficoMascherato-colore2 {
  background-color: var(--graficoColore1);
}

.graficoMascherato-tassello {
  width: 18%;
  background-color: white;
}

.modal_scheda_titolo_generico {
  font-style: normal;
  font-weight: 800;
  font-size: 26px;
  line-height: 31px;
  text-align: center;
  color: #000000;
  padding: 40px 0 0;
}

/* RESPONSIVE MOBILE */

@media screen and (max-width: 480px) {
  .modal_scheda_comune {
    padding-top: 50px;
  }

  .modal_scheda_comune_content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .modal_scheda_comune_close_btn {
    position: fixed;
    top: 30px;
    right: 5px;
  }

  .modal_scheda_comune_header {
    max-width: 90%;
  }

  .modal_scheda_comune_nome {
    font-size: 28px;
    line-height: 30px;
  }

  .modal_scheda_comune_body {
    padding-top: 110px;
    height: 1200px;
    border-radius: 0;
  }

  .modal_scheda_numeroni_container {
    flex-direction: column;
  }
  .modal_scheda_numeroni_box {
    width: 100%;
  }

  .modal_scheda_numeroni_box:first-of-type {
    border-right: none;
    padding-bottom: 20px;
  }

  .modal_scheda_grafico_emi {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .modal_scheda_grafico_emi_legenda_sx {
    flex-wrap: wrap;
  }

  .modal_scheda_grafico_emi_legenda_sx div {
    width: 130px;
    padding-top: 0;
  }

  .grafico_emi_legenda_sx_punto_tratteggiato {
    margin-left: 20px;
  }

  .graficoPila-didaCopertura {
    display: none;
  }

  .modal_scheda_titolo_grafico_emi {
    padding-bottom: 10px;
  }

  .modal_scheda_grafico_emi_legenda_dx {
    flex-direction: row;
    padding-top: 20px;
  }

  .modal_scheda_titolo_generico {
    max-width: 250px;
    margin: auto;
  }

  .modal_scheda_comune_footer {
    width: 90%;
    max-width: 100%;
    top: 1130px;
  }

  .modal_scheda_comune_footer_vuoto {
    top: 1180px;
  }

  .modal_scheda_comune_monithon_swiper {
    width: 90%;
    max-width: 100%;
    margin-top: 180px;
  }

  .slide_monithon {
    height: 600px;
  }

  .slide_monithon_euro_legenda {
    flex-direction: column;
    justify-content: center;
  }

  .slide_monithon_euro_importo {
    padding-top: 10px;
    text-align: center;
  }

  .slide_monithon_lancio {
    flex-direction: column;
    justify-content: center;
  }

  .slide_monithon_lancio_img_testo {
    align-items: flex-start;
  }

  .slide_monithon_lancio_testo {
    width: 100%;
    font-size: 13px;
    line-height: 17px;
    padding-right: 0;
  }

  .slide_monithon_lancio_link {
    width: 55%;
    font-size: 13px;
    align-self: flex-end;
    padding-top: 10px;
  }
}

@media screen and (min-width: 481px) and (max-width: 820px) {
  .modal_scheda_comune_content {
    width: 85%;
    overflow: hidden;
  }

  .modal_scheda_comune_close_btn {
    position: fixed;
    top: 30px;
    right: 30px;
  }
}

@media screen and (min-width: 481px) {
  .modal_scheda_grafico_emi_legenda_sx {
    flex-direction: column;
  }
}
