/* Lettura Notizia */
.notizia-lettura {
    padding: 0 0 2rem 0;
}
.notizia-lettura .cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}
.notizia-lettura .tags {
    list-style: none;
    margin: 0;
    padding: 0;
    padding: 0.5rem 0;
}
.notizia-lettura .tags li {
    display: inline-block;
    margin-right: 0.3rem;
}
.notizia-lettura .tags .tag {
    background: #0066cc;
    padding: 0.2rem 0.65rem;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: inline-block;
}
.notizia-lettura .allegati ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notizia-lettura .allegati ul li a {
    text-decoration: none;
}
.notizia-lettura .allegati ul li a:hover {
    text-decoration: underline;
}
/* fine Lettura Notizia */

/* Lettura Servizio */
.lettura-servizio {
    padding: 2rem 0;
}
/* fine Lettura Servizio */

/* Breadcrumbs */
.breadcrumbs {
    padding: 0.5rem 0;
}
#breadcrumbs {
    background: #f7f7f7;
    padding: 0.5rem 0;
}
#breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#breadcrumbs ul li a {
    text-decoration: none;
}
#breadcrumbs ul li a:hover {
    text-decoration: underline;
}

/* Aree tematiche */
.aree-tematiche-home {
    padding: 2rem 0;
}
.aree-tematiche-home .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.aree-tematiche-home .wrapper .box {
    padding: 2rem 1rem;
    border: 1px solid #ebebeb;
    border-radius: 1rem;
    text-align: center;
}
.aree-tematiche-home .wrapper .box .icona {
    width: 7rem;
    height: 7rem;
    margin-bottom: 1rem;
    object-fit: cover;
}
.aree-tematiche-home .wrapper .box h3 {
    font-size: 1.5rem;
    font-weight: 600;
}
.aree-tematiche-home .wrapper .box h3 a {
    color: #0b1a48;
    text-decoration: none;
}
.aree-tematiche-home .wrapper .box h3 a:hover {
    text-decoration: underline;
}
.aree-tematiche-home .wrapper .box .lista {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aree-tematiche-home .wrapper .box .lista li {
    display: inline-block;
    font-size: 0.9rem;
}
.aree-tematiche-home .wrapper .box .lista li a {
    color: #595959;
    text-decoration: none;
}
.aree-tematiche-home .wrapper .box .lista li a:hover {
    text-decoration: underline;
}
.aree-tematiche-home .wrapper .box .lista li:not(:last-child):after {
    content: " - ";
}
/* fine Aree tematiche */

/* Area tematica lettura */
.area-tematica-lettura .tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}
.area-tematica-lettura .tags li a {
    display: block;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #000;
    text-decoration: none;
    transition: 0.2s;
}
.area-tematica-lettura .tags li a:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.area-tematica-lettura .tags li a .cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 1rem 1rem 0 0;
}
.area-tematica-lettura .tags li a .contenuto {
    padding: 1rem;
}
@media (max-width: 992px) {
    .area-tematica-lettura .tags {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .area-tematica-lettura .tags {
        grid-template-columns: 1fr;
    }
}
/* fine Area tematica lettura */

/* Tag: Lettura */
.lettura-tag .titolo-sezione {
    font-size: 2.2rem;
    border-bottom: 1px solid #b1b1b1;
    padding-bottom: 1rem;
}
.lettura-tag .header {
    position: relative;
}
.lettura-tag .header .sfondo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.lettura-tag .header .sfondo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lettura-tag .header .header-wrapper {
    padding: 6rem 0;
}
.lettura-tag .header .box {
    background: #fff;
    border-radius: 1rem;
    width: 50%;
    padding: 1.5rem 2rem;
    position: relative;
}
.lettura-tag .header .box h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}
.lettura-tag .header .box .descrizione {
    color: var(--grey);
}

.lettura-tag .servizi {
    background: #ebeef0;
    padding: 2rem 0;
}
.lettura-tag .wrapper-servizi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
    padding: 1rem 0;
}
.lettura-tag .wrapper-servizi .box {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    word-wrap: break-word;
}
.lettura-tag .wrapper-servizi .box h3 {
    font-size: 1.5rem;
}
.lettura-tag .wrapper-servizi .box h3 a {
    color: var(--primary);
    text-decoration: none;
}
.lettura-tag .wrapper-servizi .box h3 a:hover {
    text-decoration: underline;
}
.lettura-tag .wrapper-servizi .box .descrizione {
    color: var(--grey);
}

.lettura-tag .notizie {
    padding: 2rem 0;
}
.lettura-tag .wrapper-notizie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}
.lettura-tag .wrapper-notizie .box {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}
.lettura-tag .wrapper-notizie .box .cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}
.lettura-tag .wrapper-notizie .box .content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
}
.lettura-tag .wrapper-notizie .box .content h3 {
    font-size: 1.5rem;
}
.lettura-tag .wrapper-notizie .box .content h3 a {
    color: var(--primary);
    text-decoration: none;
}
.lettura-tag .wrapper-notizie .box .content h3 a:hover {
    text-decoration: underline;
}
.lettura-tag .wrapper-notizie .box .content .descrizione {
    color: var(--grey);
}
.lettura-tag .wrapper-notizie .box .content .calendario {
    color: #595959;
    margin-bottom: 0.5rem;
}
.lettura-tag .wrapper-notizie .box .content .calendario .icona {
    color: #0b1a48;
}

.lettura-tag .eventi {
    padding: 2rem 0;
}
.lettura-tag .wrapper-eventi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}
.lettura-tag .wrapper-eventi .box {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}
.lettura-tag .wrapper-eventi .box .cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}
.lettura-tag .wrapper-eventi .box .content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
}
.lettura-tag .wrapper-eventi .box .content h3 {
    font-size: 1.5rem;
}
.lettura-tag .wrapper-eventi .box .content h3 a {
    color: var(--primary);
    text-decoration: none;
}
.lettura-tag .wrapper-eventi .box .content h3 a:hover {
    text-decoration: underline;
}
.lettura-tag .wrapper-eventi .box .content .descrizione {
    color: var(--grey);
}
.lettura-tag .wrapper-eventi .box .content .calendario {
    color: #595959;
    margin-bottom: 0.5rem;
}
.lettura-tag .wrapper-eventi .box .content .calendario .icona {
    color: #0b1a48;
}
.lettura-tag .wrapper-aree {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
    padding: 2rem 0;
}
.lettura-tag .wrapper-aree .box {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    word-wrap: break-word;
}
.lettura-tag .wrapper-aree .box h3 {
    font-size: 1.5rem;
}
.lettura-tag .wrapper-aree .box h3 a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .lettura-tag .header .box {
        width: 100%;
    }
    .lettura-tag .header .box h1 {
        font-size: 2rem;
    }
    .lettura-tag .header .header-wrapper {
        padding: 3rem 0;
    }
}
@media (max-width: 576px) {
    .lettura-tag .header .box h1 {
        font-size: 1.8rem;
    }
    .lettura-tag .titolo-sezione {
        font-size: 1.8rem;
    }
    .lettura-tag .wrapper-servizi .box h3 {
        font-size: 1.1rem;
    }
}
/* fine Tag: Lettura */

/* Evento lettura */
.evento-lettura {
    margin-bottom: 2rem;
}
.evento-lettura .cover {
    width: 100%;
    max-height: 350px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}
.evento-lettura .titolo {
    font-weight: 700;
    margin-bottom: 0;
}
.evento-lettura .sottotitolo {
    margin-bottom: 1rem;
}
.evento-lettura .indirizzo {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.evento-lettura .indirizzo .icona {
    color: #0b1a48;
}
.evento-lettura .data {
    margin-bottom: 0.5rem;
}
.evento-lettura .data .icona {
    color: #0b1a48;
}
.evento-lettura .orario {
    margin-bottom: 0.5rem;
}
.evento-lettura .orario .icona {
    color: #0b1a48;
}
.evento-lettura .tags {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}
.evento-lettura .tags li {
    display: inline-block;
}
.evento-lettura .tags li .tag {
    color: #fff;
    padding: 0 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0 4px 4px 0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.evento-lettura .tags li .tag:hover {
    background: var(--secondary);
    color: #fff;
}
.evento-lettura .allegati {
    margin-bottom: 1rem;
}
.evento-lettura .allegati h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.evento-lettura .allegati ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.evento-lettura .allegati ul a {
    text-decoration: none;
    color: #000;
}
.evento-lettura .allegati ul a:hover {
    text-decoration: underline;
}
.evento-lettura .allegati ul li .icona {
    color: #0b1a48;
}
.evento-lettura #map {
    width: 100%;
    height: 350px;
}
/* fine Evento lettura */

/* Ricerca */
/* .tab-content > .active {
  margin: 1rem 0;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
} */
.risultato-ricerca {
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.risultato-ricerca .header {
    font-size: 1rem;
    background: #f8f8f8;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
}
.risultato-ricerca .body {
    padding: 1rem;
}
.risultato-ricerca .body h3 {
    font-size: 1rem;
}
.risultato-ricerca .body h3 a {
    color: #000;
    text-decoration: none;
}
.risultato-ricerca .body h3 a:hover {
    text-decoration: underline;
}
/* fine Ricerca */

/* jsCalendar CUSTOM */
.jsCalendar table {
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    border-radius: 1rem !important;
    margin: 0 !important;
    border-collapse: unset !important;
}
.jsCalendar tbody > tr {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
    align-content: center;
}
.jsCalendar tbody td.jsCalendar-current {
    background-color: #ec092b !important;
}
.jsCalendar tbody td.jsCalendar-selected {
    border: 1px solid #ec092b !important;
}
.jsCalendar tbody td.jsCalendar-selected:hover {
    border: 2px solid #ec092b !important;
}
.jsCalendar thead {
    display: contents;
}
.jsCalendar .jsCalendar-title-row {
    width: 100%;
    display: grid;
}
.jsCalendar .jsCalendar-week-days {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
    align-content: center;
}
.jsCalendar .jsCalendar-week-days > th {
    font-weight: bold !important;
}
/* fine jsCalendar CUSTOM */

/* Contenuto aggiuntivo sezione */
.contenuto-aggiuntivo-sidebar h2 {
    font-size: 1.4rem;
}
.contenuto-aggiuntivo-sidebar .contenuto {
    font-size: 1rem;
    line-height: 150%;
}
.contenuto-aggiuntivo-sidebar .contenuto p {
    font-size: 1rem;
    line-height: 150%;
}
.contenuto-aggiuntivo-sidebar .contenuto p:last-child {
    margin-bottom: 0;
}

/* 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: #005491;
    height: 100%;
    overflow-y: scroll;
    overflow: auto;
    z-index: 99999;
    top: 0;
    left: -450px;
    transition: 0.5s;
    border-radius: 0 1rem 1rem 0;
}

.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: #fff;
    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: #fff;
    border: none;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
}

.menu-popup .menu .primo-livello + ul {
    padding: 1rem 0 1rem 2rem;
    color: #fff;
    background: #214582;
}

.menu-popup .menu .primo-livello + ul li {
    margin-bottom: 0.5rem;
}
.menu-popup .menu .primo-livello + ul a {
    color: #fff;
}

.menu-popup .menu .primo-livello a {
    color: #fff;
    display: inline-block;
}

.menu-popup .menu .primo-livello:hover {
    background: #fff;
    color: #005491;
}

.menu-popup .menu .primo-livello:hover a {
    color: #005491;
}

.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: #fff;
}

.menu-popup .menu .secondo-livello + ul {
    padding: 0 0 0 1rem;
}
.menu-popup .menu .secondo-livello + ul li {
    margin-bottom: 0.5rem;
}

.menu-popup .menu .secondo-livello {
    color: #fff;
    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 */

/* Risorse importanti home */
.risorse-importanti-home-v2 {
    background: #f6f5fb;
    padding: 2rem 0;
}
.risorse-importanti-home-v2 .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
    gap: 1rem;
}
.risorse-importanti-home-v2 .wrapper .box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 1rem rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.2s;
}
.risorse-importanti-home-v2 .wrapper .box:hover {
    box-shadow: 0 -4px 1rem rgba(0, 0, 0, 0.1);
}
.risorse-importanti-home-v2 .wrapper .box .icona {
    width: 4rem;
    height: 4rem;
    background: #e6e4f9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.risorse-importanti-home-v2 .wrapper .box .icona img {
    width: 2rem;
    height: 2rem;
}
.risorse-importanti-home-v2 .wrapper .box h3 {
    padding: 2rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}
.risorse-importanti-home-v2 .wrapper .box h3 .evidenza {
    margin-top: 0.8rem;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}
.risorse-importanti-home-v2 .wrapper .box .link {
    background: #e6e4f9;
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}
@media (max-width: 768px) {
    .risorse-importanti-home-v2 .wrapper .box h3 {
        padding: 1rem 0;
    }
    .risorse-importanti-home-v2 .wrapper .box h3 .evidenza {
        font-size: 1.5rem;
    }
}
/* fine Risorse importanti home */

/* Brescia medica home */
.brescia-medica-home-v2 {
    padding: 2rem 0;
}
.brescia-medica-home-v2 .wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
}
.brescia-medica-home-v2 .box:first-of-type {
    margin-top: 1rem;
}
@media (max-width: 576px) {
    .brescia-medica-home-v2 .wrapper {
        grid-template-columns: 1fr;
    }
}
/* fine Brescia medica home */

/* OVERRIDE */
header .main-header {
    background: #06c;
    color: #fff;
}
header .main-header a {
    color: #fff;
}
header .main-header .main-menu ul li a {
    color: #fff;
}
header .btn-search-header svg {
    stroke: #fff;
}
header .main-header .logo-wrapper .burger-menu-toggle svg rect {
    fill: #fff;
}
header .main-header .main-menu .main-menu-mobile .btn-search-header svg {
    stroke: #fff;
}

header .main-header .main-menu {
    display: flex;
    flex-direction: column;
}

header .main-header .main-menu .social {
    align-self: end;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size:14px;
    
}

header .main-header .main-menu .social ul li .icona {
    background:#fff;
    border-radius: 50%;
    padding:4px;
    flex-shrink: 0;
    flex-grow: 0;
    color:#0066cc;
    width: 1.8rem;
    height: 1.8rem;
}

@media(max-width:992px) {
    header .main-header .main-menu .social {
        display: none;
    }
}

.area-contenuto h2 {
    font-size: 2rem;
}

.area-contenuto h3 {
    font-size: 1.6rem;
}

.area-contenuto h4 {
    font-size: 1.28rem;
}

.area-contenuto h5 {
    font-size: 1.024rem;
}

.area-contenuto h6 {
    font-size: 0.82rem;
    font-weight: normal;
}

.come-fare-per-home .wrapper .box .icona-fa {
  width: 1.5rem;
  height: 1.5rem;
}