div.p-dropdown-panel {
  width: auto;
}

#box-ricerca {
  width: 100%;
  max-width: 1260px;
  background-color: #a9c2ee;
  margin-top: 0;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
}

#box-ricerca-cnt,
#box-mappa-cnt {
  position: relative;
  width: calc(100% - 252px);
  margin: 0 126px;
  padding: 64px 0;
}

#box-mappa-cnt {
  padding: 0;
  height: 0;
}

#box-ricerca-mappa-cnt {
  width: 580px;
  position: relative;
  flex: none;
}

#box-ricerca-mappa,
#box-mappa {
  position: absolute;
  width: 580px;
  height: 602px;
  left: 0;
  bottom: 0;
}

#box-mappa {
  background-color: #d8e6fe;
  z-index: 1;
  transform: translateY(calc(100% - 62px));
}

.box-ricerca-titolo-grafico {
  font-size: 26px;
  font-weight: 800;
  line-height: 30px;
}

.box-ricerca-sommario {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.box-ricerca-intestazione {
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  padding-left: 8px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}
.box-ricerca-form-cnt {
  width: auto;
}
.box-ricerca-form {
  height: 50px;
}

.box-ricerca-button {
  border: none;
  background-color: black;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 19px;
  width: 176px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.box-ricerca-button:hover {
  background-color: #1d6eac;
}

.p-dropdown-label.p-inputtext {
  font-weight: 500;
  padding: 11px 8px;
}

/* TABELLA */
#box-ricerca-tabella {
  background: #ffffff;
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 32px;
  border-spacing: 0;
  max-width: 1070px;
  border-collapse: collapse;
}

.tabella {
  width: 100%;
}

.tabella a {
  color: black;
}

.tabella th {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
  cursor: pointer;

  background: white;
  position: sticky;
  position: -webkit-sticky;
  top: 50px; /* Don't forget this, required for the stickiness */
  /* z-index: 9999999; */
  /* box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); */
}

.tabella th.col-ordina-giu,
.tabella th.col-ordina-su {
  font-weight: 700;
}

.tabella td {
  font-size: 15px;
  font-weight: 400;
  line-height: 16px;
  height: 60px;
  padding: 0 16px;
}

.tabella th,
.tabella td {
  text-align: left;
  margin: 0;
  padding: 8px 12px 8px 8px;
}

.tabella tr th:nth-child(1),
.tabella tr td:nth-child(1) {
  width: 250px;
}
.tabella tr th:nth-child(2),
.tabella tr td:nth-child(2) {
  width: 120px;
}
.tabella tr th:nth-child(3),
.tabella tr td:nth-child(3) {
  width: 90px;
}
.tabella tr th:nth-child(4),
.tabella tr td:nth-child(4) {
  width: auto;
}
.tabella tr th:nth-child(5),
.tabella tr td:nth-child(5) {
  width: auto;
}
.tabella tr th:nth-child(6),
.tabella tr td:nth-child(6) {
  width: auto;
}
.tabella tr th:nth-child(7),
.tabella tr td:nth-child(7) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tabella th:first-of-type,
.tabella tr td:first-of-type,
.tabella th:first-of-type,
.tabella tr td:first-of-type {
  margin: 0;
  padding: 8px;
}

.tabella th.col-dx,
.tabella td.col-dx {
  text-align: right;
}
.tabella td {
  background: white;
}
.tabella .riga-colorata td {
  background: #f2f2f2;
}

.tabella tr td:nth-child(1) {
  font-weight: 700;
}

/* RICERCA */
.t-ricerca-box {
  border: 1px solid #000000;
  height: 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  display: flex;
  align-items: center;
}

.t-ricerca-testo {
  padding-left: 16px;
  padding-right: 40px;
  width: 202px;
}

.t-ricerca-testo input {
  border: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  padding: 0;
  margin: 0;
}

#t-ricercs-testo-icone {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#t-ticerca-testo-icone {
  width: 18px;
}

#t-ticerca-testo-cancella {
  cursor: pointer;
}

.t-ricerca-anno {
  opacity: 0.3;
  width: 96px;
  justify-content: center;
}

/* RICERCA */

.colonna-tabella span {
  position: relative;
}
.col-ordina-giu span:after {
  content: "";
  background-image: url("../img/ordina-giu.svg");
  height: 14px;
  width: 10px;
  position: absolute;
  margin-top: 1px;
  margin-left: 4px;
}

.col-ordina-neutro span:after {
  content: "";
  background-image: url("../img/ordina-neutro.svg");
  height: 14px;
  width: 10px;
  position: absolute;
  margin-top: 1px;
  margin-left: 4px;
}

.col-ordina-su span:after {
  content: "";
  background-image: url("../img/ordina-su.svg");
  height: 14px;
  width: 10px;
  position: absolute;
  margin-top: 1px;
  margin-left: 4px;
}

.col-numero-blu {
  color: #1d6eac;
  font-weight: 800 !important;
}

.col-numero-bluChiaro {
  font-weight: 500 !important;
  text-transform: uppercase;
  color: #a9c2ee;
}

.riga-testata td {
  background-color: var(--colore1);
  color: var(--colore1-testo);
  text-align: center;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  height: auto;
  border-top: 48px solid white;
}

tbody .riga-testata:first-of-type td,
.tabella-header + .riga-testata td {
  border-top: 16px solid white;
}

/* switch */
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8aabe5;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #1d6eac;
}

input:focus + .slider {
  box-shadow: 0 0 1px #1d6eac;
}

input:checked + .slider:before {
  -webkit-transform: translateX(14px);
  -ms-transform: translateX(14px);
  transform: translateX(14px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* switch */

/* TABELLA */

.bottone-svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: all 0.3s ease-in;
  background-color: #d8e6fe;
}

.bg-white {
  background-color: transparent;
}
/* .bottone-svg:not(.bottone-svg-disabilitato):hover {
  background-color: #a2acbe;
} */
.bottone-svg.bottone-svg-disabilitato {
  opacity: 0.4;
  cursor: default;
}

#box-mappa path {
  stroke: #d8e6fe;
}

.path-comune-1 {
  fill: #1d6eac;
}

.path-comune-2 {
  fill: #aac2ee;
}

#box-mappa-bottoni0 {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
}

#box-mappa-bottoni1 {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 2;
}

.tooltip-testo {
  font-family: Sole24Sans Number;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}

.tooltip-dida {
  font-family: Sole24Sans Number;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
  text-transform: uppercase;
}

.p-dropdown.p-dropdown-clearable .p-dropdown-label {
  font-weight: 500 !important;
}

#tabella-navigazione .p-dropdown {
  background-color: transparent;
  border-radius: 3px;
  border: 1px solid #0f0f0f;
}

#tabella-navigazione .p-dropdown-label.p-inputtext {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  padding: 7px;
  font-size: 12px;
  line-height: 16px;
  padding: 3px 6px;
  text-align: left;
  color: black;
  font-weight: 500;
  width: 40px;
  text-align: center;
}

#tabella-navigazione .p-dropdown .p-dropdown-trigger {
  background: transparent;
  color: #6c757d;
  width: 20px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-left: 1px solid #0f0f0f;
  background-image: url("../img/ico-dropdown-giu.svg");
  background-repeat: no-repeat;
  background-position: center center;
}

#tabella-navigazione .p-dropdown .p-dropdown-trigger[aria-expanded="true"] {
  background-image: url("../img/ico-dropdown-su.svg");
}

#tabella-navigazione .p-dropdown:not(.p-disabled).p-focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: none;
}

.p-dropdown-panel:has(.panel-pagina) {
  background: #c4d8fa;
  color: #495057;
  border: 0 none;
  border-radius: 3px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.p-dropdown-panel:has(.panel-pagina) .p-dropdown-item {
  cursor: pointer;
  font-weight: normal;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.p-dropdown-panel:has(.panel-pagina) .p-dropdown-items .p-dropdown-item {
  margin: 0;
  padding: 0.3rem 7px 0.3rem 4px;
  border: 0 none;
  color: #495057;
  background: transparent;
  transition: box-shadow 0.2s;
  border-radius: 0;
  transform: translateX(0px);
}

.p-dropdown-panel:has(.panel-pagina)
  .p-dropdown-items-wrapper::-webkit-scrollbar {
  width: 8px;
}

.p-dropdown-panel:has(.panel-pagina)
  .p-dropdown-items-wrapper::-webkit-scrollbar-track {
  border-radius: 4px;
  background: #b3c9ee;
}

.p-dropdown-panel:has(.panel-pagina)
  .p-dropdown-items-wrapper::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #1d6eac;
}

.p-dropdown-panel:has(.panel-pagina)
  .p-dropdown-items
  .p-dropdown-item.p-highlight {
  color: #495057;
  background: white;
}

.solo-mobile-block,
.solo-mobile-flex {
  display: none;
}

#box-ricerca-form {
  flex-direction: column;
}

/* NUOVI */

.p-dropdown:hover .pi {
  color: black;
}

.p-dropdown-label.p-inputtext {
  padding: 7px;
  font-size: 20px;
  line-height: 20px;
  padding: 11px 10px;
}

.p-dropdown {
  border-color: #fff;
  background-color: #fff;
}

.p-dropdown-label.p-inputtext,
.p-dropdown .pi {
  color: black;
}

.p-dropdown-label.p-inputtext {
  width: 100%;
}

.p-dropdown-label.p-inputtext {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  padding: 7px;
  font-size: 16px;
  line-height: 20px;
  padding: 11px 10px;
  text-align: left;
  color: black;
  font-weight: 800;
}

.p-placeholder {
  font-weight: 400 !important;
}

.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {
  color: #495057;
  background: #eeeeee;
}

#tabella-navigazione .pi-chevron-down:before,
#tabella-navigazione .pi-chevron-up:before {
  content: "";
}
@media only screen and (max-width: 1540px) {
  .backgroundAdv #box-ricerca-cnt,
  .backgroundAdv #box-mappa-cnt {
    margin: 0 auto;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 1260px;
  }

  .backgroundAdv #box-mappa-cnt {
    margin-left: 30px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1260px) {
  #box-ricerca-cnt,
  #box-mappa-cnt {
    width: 1000px;
    margin: auto;
  }
}

@media only screen and (max-width: 1023px) {
  #box-ricerca-cnt,
  #box-mappa-cnt,
  #box-titolo-ricerca {
    width: 650px;
    margin: auto;
  }

  #box-titolo-ricerca {
    padding-top: 64px;
  }

  #box-mappa-cnt {
    position: relative;
    height: auto;
  }

  #box-mappa {
    position: relative;
    transform: none;
    width: 100%;
  }

  #box-mappa svg {
    width: 100%;
  }

  .solo-desktop {
    display: none;
  }
  .solo-mobile-block {
    display: block;
  }
  .solo-mobile-flex {
    display: flex;
  }

  #box-ricerca-strumenti {
    flex-direction: column;
    align-items: center;
  }

  #box-ricerca-mappa {
    position: relative;
  }

  #box-ricerca-form {
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
  }

  .box-ricerca-form-cnt {
    width: 100%;
  }
  .box-ricerca-intestazione {
    margin-top: 0 !important;
  }

  .centra-mobile {
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 710px) {
  #box-ricerca-cnt,
  #box-mappa-cnt,
  #box-titolo-ricerca {
    width: calc(100% - 20px);
    margin: auto 10px;
  }
}

@media only screen and (max-width: 710px) {
  #box-ricerca-cnt,
  #box-mappa-cnt,
  #box-titolo-ricerca {
    width: calc(100% - 20px);
    margin: auto 10px;
  }

  #box-titolo-ricerca {
    padding-top: 32px;
  }

  #box-ricerca-cnt,
  #box-mappa-cnt {
    padding: 32px 0;
  }

  #box-mappa-cnt {
    padding: 0;
  }

  #box-ricerca-form {
    flex-direction: column;
  }

  #box-mappa {
    aspect-ratio: 1 / 1.1;
    height: auto;
  }

  #box-mappa svg {
    height: 100%;
  }

  #box-ricerca-tabella-cnt {
    overflow-x: auto;
  }

  #box-ricerca-tabella .tabella th {
    position: initial;
  }

  #box-ricerca-tabella .tabella tr td:nth-child(1),
  #box-ricerca-tabella .tabella tr th:nth-child(1) {
    position: sticky;
    left: 0px;
    top: 0;
    width: 110px;
    z-index: 1;
  }
}

@media only screen and (max-width: 480px) {
  #box-ricerca {
    margin-top: 50px;
  }
}
