:root {
  --primary: #06c;
  --primaryhover: #0059B3;
  --menuFirst: #0057ad;
  --menuPopup: #214582;
  --topHeader: #0059B3;
  --topHeaderButton:#06c;
  --topHeaderButtonHover:#0059B3;
  --footer:#06c;
  --colorAltText: #fff;
}

.color-primary {
  color:var(--primary);
}

a {
  color:var(--primary);
  text-decoration: underline;
}

a:hover {
  text-decoration:underline;
  color:var(--primaryhover);
}

p > a {
  text-decoration:underline;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size:16px;
  font-weight: 500;
}

header .hamburger {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10rem;
}

header .hamburger button {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
}

header .hamburger button img {
  width: 3rem;
}

#intro-home {
  padding: 2rem 0;
  box-shadow: 0 4px 2rem rgba(0, 0, 0, 0.05);
}

#argomenti {
  padding: 2rem 0;
}

#banner-cards {
  padding: 4rem 0;
  background: #FBFBFB;
}

#banner-cards a {
  color: var(--colorAltText);
}

#banner-cards .wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

#banner-cards .box {
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  color: var(--colorAltText);
  background: var(--primary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#banner-cards .box .titolo {
  margin-bottom: 1rem;
}

#banner-cards .box .titolo .icona {
  color: var(--colorAltText);
}

#banner-cards .box .titolo h3 {
  display: inline;
  font-size: 1rem;
  text-transform: uppercase;
}

#banner-cards .box .contenuto {
  margin-bottom: 2rem;
}

footer {
  background: var(--footer);
  color: var(--colorAltText);
  padding: 2rem 0;
}

footer a {
  color: var(--colorAltText);
}

footer a:hover {
  color: var(--colorAltText);
}

footer .wrapper {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

footer .logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

footer .logo img {
  width: 2.5rem;
  margin-right: .5rem;
}

footer .logo h2 {
  font-size: 1.8rem;
}

footer .colonna h3 {
  text-transform: uppercase;
  padding: 0 0 .5rem 0;
  margin: 0 0 1rem 0;
  border-bottom: 1px solid #fff;
  font-size: 1.1rem;
}

footer .social {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
}

footer .social li {
  display: inline-block;
  margin-right: .2rem;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer .logo-it {
  width: 150px;
}

/* COMPONENTI */
.titolo-sm {
  font-size: 1rem;
}

.cards-correlate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.cards-correlate .cards-correlate-item {
  background: #fff;
  border: 1px solid #e9e6f2;
  border-radius: 4px;
  padding: 1.5rem;
}

.cards-correlate .cards-correlate-item.current {
  border: 1px solid var(--primary);
  font-weight: bold;
}

.cards-correlate .cards-correlate-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.lista-bullet {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.lista-bullet::after {
  content: '';
  width: 3px;
  height: 90%;
  background: #E7E7E7;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: .4rem;
}

.lista-bullet li {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.5rem;
  position: relative;
}

.lista-bullet li::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background: #E7E7E7;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.lista-bullet li:hover::before {
  background: var(--primary);
}

.lista-bullet .current {
  font-weight: bold;
}

.lista-bullet .current::before {
  background: var(--primary);
}

.lista-bullet-orizzontale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lista-bullet-orizzontale li::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: #E7E7E7;
  border-radius: 50%;
  margin-right: .5rem;
}

.lista-bullet-orizzontale li:hover::before {
  background: var(--primary);
}

.lista-bullet-orizzontale .current {
  font-weight: bold;
}

.lista-bullet-orizzontale .current::before {
  background: var(--primary);
}

.lista-argomenti {
  list-style: decimal;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.lista-argomenti a {
  color: #000;
}

.lista-argomenti li {
  margin: 0 0 0 1.5rem;
}

.lista-argomenti li::marker {
  font-weight: 500;
  color: var(--primary);
}

.lista-anchor {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0 0;
}

.lista-anchor a {
  color: var(--primary);
  text-decoration: none;
  display: block;
}

.lista-anchor li {
  padding: .5rem 0 .5rem 1rem;
}

.lista-anchor li:active {
  border-left: 4px solid var(--primary);
}

.lista-anchor li:hover {
  border-left: 4px solid var(--primary);
}

.lista-anchor .active {
  border-left: 4px solid var(--primary);
}

.sidebar-sticky {
  height: 100%;
}

.sidebar-sticky h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
}

.data-creazione {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}

.data-creazione .icona {
  color: var(--primary);
  margin-right: .3rem;
}

.pulsante-freccia {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .9rem;
}


.pulsante-freccia::after {
  content: '\f061';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  margin-left: .3rem;
}

.card-icona {
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  color: #555555;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position:relative;
}

.card-icona a {
  text-decoration: none;
}

.card-icona a:hover {
  text-decoration: underline;
}

.card-icona h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.card-icona .contenuto {
  margin-bottom: 2rem;
}

.card-icona .icona {
  font-size: 1.5rem;
  color: var(--primary);
}

.card-icona .contatti a {
  color: #000;
  margin-bottom: .3rem;
  font-weight: 560;
}

.card-icona .contatti a span {
  color: var(--primary);
  margin-right: .6rem;
}

.card-allegato, .card-richiamo {
  padding: 1.2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  color: #555555;
  font-weight: 600;
  background: #fff;
  word-break: break-word;
}

.card-allegato a, .card-richiamo a {
  color: var(--primary);
  font-size:1rem;
  white-space: normal !important;
}

/*.card-allegato span, .card-richiamo span {
  color: var(--primary);
}*/

/* label {
  font-weight: bold;
}

input[type="text"], input[type="date"] {
  background: #fff;
  border-radius: 2rem;
  border: 1px solid #CED4DA;
  font-weight: 400;
  padding: 0 1rem;
} */

.img-evidenza-personale {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testo-blu {
  color: var(--primary);
}

.box-risultato {
  margin-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.box-risultato .categoria {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: inline-block;
}

.box-risultato h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .box-risultato {
    border-bottom: 1px solid #d8d8d8;
  }
}

.pulsante-ricerca {
  border: none;
  background: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  margin-left: 1rem;
}

.pulsante-ricerca span {
  color: var(--primary);
}

#modalRicerca .modal-dialog {
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 100%;
}

#modalRicerca .modal-content {
  height: 100%;
  overflow-y: auto;
}

#modalRicerca .modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

#modalRicerca .modal-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
}

#modalRicerca .modal-header h2 {
  margin-left: 2rem;
}

#modalRicerca form input[type="text"] {
  width: 100%;
  border-radius: 0;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 2rem;
  height: 60px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #CED4DA;
}

#modalRicerca form input[type="text"]::-webkit-input-placeholder {
  font-size: 2rem;
}

#modalRicerca form input[type="text"]:-ms-input-placeholder {
  font-size: 2rem;
}

#modalRicerca form input[type="text"]::-ms-input-placeholder {
  font-size: 2rem;
}

#modalRicerca form input[type="text"]::placeholder {
  font-size: 2rem;
}

#modalRicerca form button[type="submit"] {
  background: none;
  border: none;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}

#modalRicerca .icona-cerca {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
}

#modalRicerca .filtri button {
  margin: 0 .5rem .5rem 0;
}

#modalRicerca .pulsante-ricerca-form {
  background: none;
  border: none;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}

/* fine COMPONENTI */
/* OVERRIDE BOOSTRAP ITALIA */
.it-socials a {
  color: var(--colorAltText);
  margin-left: .3rem;
}

.it-brand-wrapper .logo {
  width: 4rem;
  margin-right: 1rem;
}
.it-header-slim-wrapper {
  background: var(--topHeader);
}

.header-slim-right-zone .btn-primary {
  background-color:var(--topHeaderButton);
}
.header-slim-right-zone .btn-primary:hover {
  background-color:var(--topHeaderButtonHover);
}

.it-header-center-wrapper {
  height: auto;
  padding: 2rem 0;
}

.search-link {
  text-decoration: none;
}

.search-link:hover {
  text-decoration: none;
}

.dropdown-toggle[aria-expanded="false"]::after {
  content: '\f078';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  margin-left: .3rem;
}

.dropdown-toggle[aria-expanded="true"]::after {
  content: '\f077';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  margin-left: .3rem;
}

@media (max-width: 992px) {
  .search-link {
    color: var(--colorAltText);
  }
  .search-link:hover {
    color: var(--colorAltText);
  }
}

label {
  font-size: .9rem;
}

.link-list-wrapper ul li a {
  line-height: 150%;
  display: block;
  padding: 0 1.5rem;
  position: relative;
  text-decoration: none;
  margin-bottom: 1rem;
}

/* fine OVERRIDE BOOTSTRAP ITALIA */
/* GRIGLIA */
.griglia {
  display: -ms-grid;
  display: grid;
  gap: 1rem;
}

.griglia-2 {
  grid-template-columns: repeat(2, 1fr);
}

.griglia-3 {
  grid-template-columns: repeat(3, 1fr);
}

.griglia-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* fine GRIGLIA */
/* Menu Popup */
.menu-popup {
  visibility: hidden;
}

.menu-popup .overlay {
  position: fixed;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.2s;
}

.menu-popup a {
  text-decoration: none;
}

.menu-popup a:hover {
  text-decoration: underline;
}

.menu-popup .menu {
  position: fixed;
  width: 450px;
  background: var(--menuFirst);
  height: 100%;
  overflow-y: scroll;
  overflow: auto;
  z-index: 99999;
  top: 0;
  left: -450px;
  transition: 0.5s;
}

.menu-popup[aria-expanded="true"] .menu {
  left:0;
}

.menu-popup .menu .header-menu {
  padding: 0.5rem 1rem 0 1rem;
  margin-bottom: 3rem;
}

.menu-popup .menu .header-menu .chiudi {
  color: var(--colorAltText);
  font-size: 2rem;
  float: right;
  border: none;
  background:none;
}

.menu-popup .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-popup .menu .primo-livello {
  width: 100%;
  text-align: left;
  color: var(--colorAltText);
  border: none;
  padding: 1.5rem 1rem;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid #fff;
}

.menu-popup .menu .primo-livello + ul {
  padding:1rem 0 1rem 2rem;
  color:var(--colorAltText);
  background:var(--menuPopup);
}

.menu-popup .menu .primo-livello + ul li {
  margin-bottom:.5rem;
}
.menu-popup .menu .primo-livello + ul a {
  color:var(--colorAltText);
}

.menu-popup .menu .primo-livello a {
  color: var(--colorAltText);
  display: inline-block;
}

.menu-popup .menu .primo-livello:hover {
  background: #fff;
  color: var(--menuFirst);
}

.menu-popup .menu .primo-livello:hover a {
  color: var(--menuFirst);
}


.menu-popup details > .primo-livello:after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  float: right;
  text-decoration: none;
}

.menu-popup details[open] > .primo-livello:after {
  content: "\f077";
  font-family: "Font Awesome 5 Free";
  float: right;
  text-decoration: none;
}

.menu-popup .menu .primo-livello li {
  color: var(--colorAltText);
}

.menu-popup .menu .secondo-livello + ul {
  padding: 0 0 0 1rem;
}
.menu-popup .menu .secondo-livello + ul li {
  margin-bottom:.5rem;
}

.menu-popup .menu .secondo-livello {
  color:var(--colorAltText);
  font-weight: 600;
  margin:1rem 0;
  font-size:1.1rem;
}

.menu-popup .menu details:not(:first-child) {
  padding-left:1rem;
}

.menu-popup.active {
  visibility: visible;
}

.menu-popup.active .overlay {
  opacity: 1;
}

.menu-popup.active .menu {
  transform: translateX(0);
  left:0;
}

@media (max-width: 992px) {
  .menu-popup .menu {
    min-width: 60%;
  }
}

@media (max-width: 768px) {
  .menu-popup .menu {
    min-width: 80%;
  }
}

@media (max-width: 576px) {
  .menu-popup .menu {
    width: 90%;
  }
}
/* fine Menu Popup */


.page-title {
  font-size:2rem;
  line-height: 120%;
}

.page-subtitle {
  font-size:1.2rem;
}

.paragraph {
  box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
  padding: 1rem;
  border: 1px solid #e1e1e1;
}

.paragraph > h3 {
  padding-bottom: .5rem;
  border-bottom: 1px solid #e1e1e1;
}

.paragraph a {
  white-space: break-spaces;
}

.table-dark th{
  background-color: var(--primary);
}

.attributi .attributo {
  padding:.5rem 0;
  border-bottom:1px solid #eaeaea;
}
.attributi .attributo .titolo {
  font-weight: 600;
  color:#000;
}

.textarea-control.is-invalid {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f73e5a' viewBox='0 0 384 512'%3E%3Cpath d='M231.6 256l130.1-130.1c4.7-4.7 4.7-12.3 0-17l-22.6-22.6c-4.7-4.7-12.3-4.7-17 0L192 216.4 61.9 86.3c-4.7-4.7-12.3-4.7-17 0l-22.6 22.6c-4.7 4.7-4.7 12.3 0 17L152.4 256 22.3 386.1c-4.7 4.7-4.7 12.3 0 17l22.6 22.6c4.7 4.7 12.3 4.7 17 0L192 295.6l130.1 130.1c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17L231.6 256z'/%3E%3C/svg%3E");
}

.textarea-control.is-invalid {
  border-color: #cc334d;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='hsl%28350deg, 60%, 50%%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='hsl%28350deg, 60%, 50%%29' stroke='none'/%3e%3c/svg%3e);
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.textarea-control {
  background-position: right 0.2rem !important;
  background-repeat: no-repeat !important;
  background-size: 28px 16px !important;
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #fff;
  background-clip: padding-box;
  appearance: none;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-primary.dropdown-toggle:focus {
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125), 0 0 0 .25rem var(--primary);
}
.btn-primary:focus,
.btn-primary.focus {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075), 0 0 0 .25rem var(--primary);
}

.bg-primary {
  background-color: var(--primary) !important;
}

