h1,
h2 {
  color: #1d3c6a !important;
  font-weight: 600 !important;
  font-size: 2.2rem !important;
}

p {
  line-height: 1.6;
  font-size: 1.8rem;
  text-align: left;
}

#block-deputati-theme-content {
  p {
    margin-bottom: 2rem;
  }
}

.titolo-e-legislatura {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  align-items: center;

  h2 {
    color: #1d3c6a;
    font-weight: 600;
    font-size: 2.2rem;
  }
}

#cambia-legistratura {
  flex-direction: column;
}

.categoria {
  padding: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.titolo-categoria {
  color: #1d3c6a;
  font-weight: 600;
  text-transform: uppercase;
}

.body-categoria a {
  display: inline-flex;
  align-items: center;
}

.body-categoria ul {
  padding-left: 0;
  list-style: none;

  li {
    h4 {
      color: #1d3c6a;
      font-size: 2rem;
      font-weight: 600;
    }
  }
}

.bi.bi-arrow-bar-right {
  font-size: 3rem;
  scale: 1.5;
  margin-right: 1.5rem;
}

.bi.bi-people-fill {
  font-size: 3rem;
  scale: 1.5;
  margin-right: 1.5rem;
}

#elenco_proclamati {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#elenco_proclamati table {
  min-width: 600px;
}

.stats_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75em;
}

.stats_table.csv {
  max-width: 90%;
}

.stats_table th,
.stats_table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  vertical-align: middle;
  font-size: medium;
  width: 6rem;
  height: 6rem;
}

.stats_table th {
  font-weight: bold;
  color: #333;
}

.stats_table thead tr:first-child th {
  background-color: white;
  font-weight: bold;
}

.stats_table tr:nth-child(2) th:nth-child(1),
.stats_table tr:nth-child(2) td:nth-child(1) {
  width: 30rem;
}

.stats_table.csv tr:nth-child(2) th:nth-child(1),
.stats_table.csv tr:nth-child(2) td:nth-child(1) {
  width: 80rem;
}

.stats_table.csv tr th:nth-child(2),
.stats_table.csv tr td:nth-child(2) {
  text-align: center;
}

.stats_table.csv tr th:nth-child(3),
.stats_table.csv tr td:nth-child(3) {
  text-align: center;
}

.stats_table tbody tr:hover {
  background-color: #f5f5f5;
}

.stats_table tbody tr:nth-child(even) {
  background-color: #e9f2ff;
}

.stats_table tbody tr:nth-child(even):hover {
  background-color: #f5f5f5;
}

#block-deputati-theme-content {
  width: 100%;
  overflow-x: auto;
}

#block-deputati-theme-content table {
  min-width: 465px;
}

caption {
  color: #1d3c6a !important;
  font-size: 1.8rem !important;
  font-weight: 600 !important;
}

.tabellaXHTML {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75em;
}

.tabellaXHTML th,
.tabellaXHTML td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  vertical-align: middle;
  font-size: medium;
  width: 6rem;
  height: 3rem;
}

.tabellaXHTML th {
  font-weight: bold;
  color: #333;
}

.tabellaXHTML tbody tr:hover {
  background-color: #f5f5f5;
}

.tabellaXHTML tbody tr:nth-child(even) {
  background-color: #e9f2ff;
}

.tabellaXHTML tbody tr:nth-child(even):hover {
  background-color: #f5f5f5;
}

.riassuntivi {
  margin-right: 10rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.riassuntivi table {
  min-width: 600px;
}

.menu {
  border: 1px solid #ddd;
  padding: 0.5rem;
  width: fit-content;
  float: right;
}

.menu h3 {
  padding: 0.1rem;
}

.menu ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  padding: 0.1rem;
}

.menu li {
  padding: 0.1rem;
}

.menu br {
  display: none;
}

.menu form {
  display: flex;
  flex-direction: column;
}

.stats_table a.btn {
  padding: 4px 12px;
  color: white;
  font-weight: bold;
  border: none;
  font-size: 1.5rem;
}

.stats_table a.btn:hover {
  opacity: 60%;
}

.stats_table a.btn:nth-of-type(2) {
  background-color: green;
  color: white;
}

.stats_table tr td:nth-child(2) a.btn {
  background-color: #ffe303;
  color: black;
}

.stats_table tr td:nth-child(3) a.btn {
  background-color: green;
  color: white;
}

.pdf-categoria a {
  padding: 1rem;
  padding-left: 0;
}

@media(max-width: 576px) {
  p {
    font-size: 1.5rem;
  }

  .body-categoria a {
    font-size: 1.25rem;
  }

  .bi.bi-arrow-bar-right {
    margin-right: 0.5rem;
  }

  .bi.bi-people-fill {
    scale: 1.2;
    margin-right: 0.5rem;
  }
}