.it-header-slim-wrapper, .point-list-wrapper .point-list .point-list-aside.point-list-primary:after {
    background-color: #003366;
}

aside .cmp-navscroll .navbar.it-navscroll-wrapper .link-list-wrapper ul li a.active {
    border-left: 2px solid #003366;
}

.it-header-center-wrapper,
.it-header-navbar-wrapper,
.navbar,
.it-calendar-wrapper .it-header-block-title,
.it-hero-wrapper,
.it-carousel-wrapper .splide__pagination button.is-active {
    background: #004d99
}

.t-primary,
.t-primary a,
.cmp-breadcrumbs .breadcrumb-container .breadcrumb .breadcrumb-item a,
.navbar.it-navscroll-wrapper .link-list-wrapper ul li a.active span,
.card .card-body a h5.card-title,
.card .card-body a .card-title.h5,
a.read-more,
a.read-more .icon,
.u-main-primary {
    color: #004d99
}

.btn-primary {
    background-color: #004d99;
    border-color: #004d99
}

.btn-outline-primary{
    color: #004d99;
    border-color: #004d99;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #0051a8;
    border-color: #0051a8;
    color: #fff;
}

.cmp-breadcrumbs .breadcrumb-container .breadcrumb .breadcrumb-item a:hover {
    color: #0051a8
}

.chip:not(.chip-disabled),
.chip:is(div):hover:not(.chip-disabled) {
    border-color: #004d99
}

.icon-primary,
.it-header-wrapper .search-link svg,
.search-modal .modal-title .search-link svg,
.search-modal .form-group .autocomplete-icon .icon,
.search-modal .form-group .input-group-prepend svg,
a.read-more .icon,
.icon-success {
    fill: #004d99 !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #004d99;
    border-color: #004d99;
    color: #fff;
    cursor: disabled;
}

.point-list-wrapper .point-list .point-list-aside.point-list-primary{
    color: #004d99;
    border-color: #004d99;
}

.btn-dropdown,
.chip .chip-label,
.chip:is(div):hover:not(.chip-disabled) .chip-label,
.chip.chip-primary>.chip-label,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show>.btn-outline-primary.dropdown-toggle,
.btn-outline-primary:hover {
    color: #004d99
}

.btn-outline-primary:hover {
    background-color: #0051a8;
    border-color: #0051a8;
    color: #fff;
}

.btn-outline-primary:hover .icon {
    fill: #fff !important;
}

.btn-outline-primary, .btn-outline-primary:hover{
    box-shadow: inset 0 0 0 2px #004d99;
}

.cmp-navscroll .navbar.it-navscroll-wrapper .link-list-wrapper .accordion .accordion-header .accordion-button,
.link-list-wrapper ul li a:hover:not(.disabled) span,
.link-list-wrapper ul li a:not(.disabled) span {
    color: #004d99
}

:root {
    --bs-primary-rgb: 0, 77, 153;
    --bs-link-hover-color: #0051a8;
    --bs-btn-hover-color: #0051a8;
    --bs-btn-hover-border-color: #0051a8;
    --bs-link-color: #0051a8;
    --bs-btn-active-border-color: #0051a8;
    --bs-btn-border-color: #0051a8;
}

.it-header-slim-wrapper-content .it-header-slim-right-zone .nav-item.dropdown {
    display: none;
}

.it-header-slim-wrapper {
    background: hsla(210, 100%, 20%, 1);
}

.it-header-center-wrapper,
.it-header-navbar-wrapper,
.navbar {
    background: hsla(210, 100%, 30%, 1);
}

.it-footer-main .it-brand-wrapper a .icon {
    width: 60px;
    height: 100px;
}

.it-footer-main-bottom {
    margin-top: 60px;
    background: hsla(0, 0%, 0%, 0.3);
}

.it-footer-main,
footer {
    background: hsla(210, 100%, 20%, 1);
}

.footer-bottom-bottom-item a {
    padding: 10px 40px 10px 0;
}

.it-footer .footer-heading-title {
    border: 0;
    padding-bottom: 0;
}

.it-footer .footer-top-border {
    padding-top: 0.889rem;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.it-footer .footer-heading-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.it-footer .footer-list a,
.it-footer .footer-info {
    letter-spacing: 0.24px;
    font-size: 1rem;
    line-height: 32px;
}

.it-footer-legal {
    /* vecchio valore rgb(18	,50	,98	) */
    /* nuovo rgb(10,35,68) */
    background: rgb(10, 35, 68);
    color: #fff;
    padding: 5px 15px;
}

.it-footer .footer-bottom-custom a+a {
    margin-left: 20px;
}

.contact-list li a {
    text-decoration: none;
}

.contact-list li a span {
    text-decoration: underline;
}


.card-teaser .card-image-wrapper.d-block .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.has-bg-grey{
    background-color: rgba(0,0,0,.05)
}

.navbar.it-navscroll-wrapper .link-list-wrapper ul li a.active{
    border-left: 2px solid #004d99;
}

.it-hero-wrapper.it-wrapped-container{
    background: #fff;
}

.it-hero-wrapper .it-hero-card.it-hero-bottom-overlapping{
    margin: 0 auto;
}

.it-hero-wrapper .drop-shadow{
    box-shadow: unset;
}

.wrap-newsletter{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-newsletter input[type="email"]{
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    border-radius: 5px 0 0 5px;
    position: relative;
    padding-left: 30px;
}

.wrap-newsletter input[type="email"]::placeholder{
    color: #fff;
    opacity: 1;
}

.envelope-container{
    position: relative;
}

.envelope-container svg{
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    fill: #fff;
}

.wrap-newsletter .btn-primary{
    border-radius: 0 5px 5px 0;
    text-transform: uppercase;
    background-color: unset;
    border: 1px solid #fff;
    border-left: 0;
    color: #fff;
    padding: 12px 10px;
    font-size: 13px;
}

.link-list li{
    padding: 10px 0;
}

.form-check [type=checkbox]:focus+label, .form-check [type=radio]:focus+label, .toggles label input[type=checkbox]:focus+.lever, :focus:not(.focus--mouse) {
    border: 1px solid #000;
}

.cmp-input-search .autocomplete-icon{
    left:2px;
}

.custom-category-top{
    display: flex;
    justify-content: space-between;
    text-transform: none;
    color: var(--bs-link-hover-color) !important;
    font-weight: bold;;
}

.custom-category-top .data:before{
    display: none !important;
}

.figure.img-full img{
    height: 400px;
}

.card.card-img .img-responsive-wrapper .img-responsive{
    padding-bottom: 40%;
}

.homepage .paragraph--type--ultima-notizia{
    margin-bottom: 100px;
}

.homepage .paragraph--type--elenco-card-da-termine{
    position: relative;
}

.homepage .paragraph--type--elenco-card-da-termine .container .row{
    margin-top: -150px;
}

.homepage .paragraph--type--blocco{
    background-color: #ebeef0;
    text-align: center;
    z-index: 2;
    position: relative;
}
.homepage .paragraph--type--blocco a{
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
}

.homepage #calendario .section.section-muted{
    background-color: #ebeef0;
}

.homepage .paragraph--type--container-vuoto{
    background-color: #fff;
    padding: 10px;
    position: relative;
    margin-top: -100px;
    padding: 70px;
    z-index: 1;
}

.homepage .paragraph--type--container-contenuti-in-evidenza .container .row .cmp-list-card-img{
    position: relative;
    z-index: 2;
}

.custom-doc-pubblico {
    color: rgb(37,90,190);
    font-weight: normal;
}
.custom-doc-pubblico svg {
    margin-right: 20px;
    color: rgb(37,90,190);
    font-size: 23px;
}
.custom-doc-pubblico a {
    color: rgb(37,90,190);
    text-decoration: none;
}

.persona-custom a:hover{
    text-decoration: none;
}

.persona-custom .incarichi_collegati{
    font-size: 13px;
    color: rgb(37,90,190);
}

.persona-custom .card-title{
    text-transform: capitalize;
    color: rgb(37,90,190);
}

.persona-custom .text-paragraph-card{
    font-weight: 400;
    text-transform: none;
    color: #455a64;

}

.persona-custom .card:after, .card.parte-di:after{
    margin: 0;
}

.persona-custom .card-body{
    padding-top: 0;
}

.persona-custom .card-body .paragraph--type--punto-di-contatto .card-title{
    color: black;
}

.title-label{
    font-size: 22px;
    font-weight: bold;
    color: rgb(37,90,190);
}

.insediamento-title{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.insediamento-text{
    margin-bottom: 30px;
}

.contatto-break{
    display: block;
}

.more-info .field__item a{
    text-decoration: none;
    color: rgb(37,90,190);
    margin-bottom: 10px;
}

.parte-di{

}

.full-witdh{
    width: 100%;
}

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

.parte-di-text {
    text-decoration: none;
    color: rgb(37,90,190);
    font-size: 18px;
    font-weight: bold;
}

.homepage .paragraph--type--elenco-card-da-termine .card-teaser-image .card-body{
    color: rgb(37,90,190);
}

.title-unita-organizzativa a{
    text-decoration: none;
    color: black;
    font-size: 22px;;
}

.card .card-calendar{
    color: rgb(37,90,190);
}

.bg-grey, .homepage .paragraph--type--blocco, .homepage #calendario .section.section-muted, .section.section-muted, .bg-grey-card {
    background-color: rgb(243,247,252) !important;
}

.search-bar-section .section.section-muted{
    background-color: #fff !important;
}

@media screen and (max-width: 767px) {
    .it-header-wrapper .navbar-collapsable {
        background-color: rgb(37,90,190);
    }
    
    .it-header-wrapper .navbar-collapsable .logo-hamburger,
    .navbar .navbar-collapsable .navbar-nav li a.nav-link,
    .it-header-wrapper .navbar-collapsable .it-socials,
    .it-header-wrapper .navbar-collapsable .logo-hamburger .it-brand-title,
    .it-header-wrapper .navbar-collapsable .it-socials span {
        color: #fff !important;
    }
    
    .it-header-wrapper .navbar-collapsable .menu-wrapper {
        background-color: rgb(37,90,190);
    }
}

@media screen and (max-width: 768px) {
    .search-link {
        background-color: #fff;
    }
    
}

.cards-custom{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    position: relative;
}

.cards-custom .category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cards-custom .category-top .category:before{
    display: none !important;
}

.cards-custom .category-top .category:before{
    content: '';
    display: none !important;
}

.cards-custom .category-top .category{
    font-weight: bold;
}

.cards-custom .category-top{
    color: rgb(37,90,190);
    font-size: .778rem;
}

.cards-custom .card-title{
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(34,34,34);
}

.cards-custom.card-wrapper.card-teaser-wrapper .card-teaser {
    flex: 1;
}

.cards-custom.card-wrapper .read-more {
    position: absolute;
    bottom: 30px;
    left: 0px;
    text-decoration: none;
    color: rgb(37,90,190);
}

.cards-custom .card-text{
    padding-bottom: 50px;
}

.nav-tabs .nav-link.active, 
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active:hover {
    border-bottom-color: rgb(37,90,190);
    color: rgb(37,90,190);
}

.evidence-section .list-item.active:hover span, .useful-links-section .list-item.active:hover span, .evidence-section .list-item.active span, .useful-links-section .list-item.active span{
    color: rgb(37,90,190) !important;
}

.persona-custom .read-more .card-title{
    font-size: 1.5rem;
}

.chip-wrapper.inline-block{
    display: inline-block;
}

.accordion-header .accordion-button, .accordion-header .accordion-button:active, .accordion-header .accordion-button:focus, .accordion-header .accordion-button:not(.collapsed) {
    color: rgb(49,55,60);

}

#modulisticaAccordion .accordion-item{
    border: 1px solid #dfe2e5;
    border-radius: 1px;
    padding: 0px 15px 20px;
    margin-bottom: 15px;
}

#modulisticaAccordion .me-2-title{
    font-size: 1.7rem;
    font-weight: bold;
}

#modulisticaAccordion .accordion-body, #modulisticaAccordion .list-group-item {
    padding: 0;
}

.text-formatted table {
    width: 100%;
    border-collapse: collapse;
}
.text-formatted table th, .text-formatted table td {
    border: 1px solid #dfe2e5;
    padding: 8px;
    text-align: left;
}
.text-formatted table th {
    background-color: #f8f9fa;
    font-weight: bold;
}
.text-formatted table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.text-formatted table tr:hover {
    background-color: #e9ecef;
}
.text-formatted table caption {
    caption-side: bottom;
    font-style: italic;
    color: #6c757d;
}

/* Paginazione moderna */
.pagination-wrapper,
.pager {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination,
.pager__items {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.pagination .page-item,
.pager__items .pager__item,
.pager__items li {
    margin: 0 2px;
    list-style: none;
}

.pagination .page-link,
.pager__items .pager__item a,
.pager__items li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    color: #004d99;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item:not(.active) .page-link:hover,
.pager__items .pager__item:not(.is-active) a:hover,
.pager__items li:not(.is-active) a:hover {
    z-index: 2;
    color: #004d99;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 153, 0.15);
}

.pagination .page-item.active .page-link,
.pager__items .pager__item.is-active,
.pager__items .pager__item.is-active a,
.pager__items li.is-active {
    z-index: 3;
    color: #fff !important;
    background-color: #004d99;
    border-color: #004d99;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.disabled .page-link,
.pager__items .pager__item.disabled a,
.pager__items li.disabled a {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-link .icon,
.pager__items .pager__item a .icon {
    width: 1rem;
    height: 1rem;
}

/* Stili specifici per pager con frecce dopple */
.pager__item--next a[rel="next"],
.pager__item--next a[title*="successiva"] {
    position: relative;
}

.pager__item--next a[rel="next"]::after,
.pager__item--next a[title*="successiva"]::after {
    content: "»";
    font-size: 1.2em;
    margin-left: 0.2em;
}

.pager__item--next a[rel="next"] span[aria-hidden="true"],
.pager__item--next a[title*="successiva"] span[aria-hidden="true"] {
    display: none;
}

.pager__item--previous a[rel="prev"],
.pager__item--previous a[title*="precedente"] {
    position: relative;
}
.pager__item--previous a[rel="prev"]::before,
.pager__item--previous a[title*="precedente"]::before {
    content: "«";
    font-size: 1.2em;
    margin-right: 0.2em;
}
.pager__item--previous a[rel="prev"] span[aria-hidden="true"],
.pager__item--previous a[title*="precedente"] span[aria-hidden="true"] {
    display: none;
}

#block-comuni-theme-content .field--name-field-descrizione-completa dd,
#block-comuni-theme-content .field--name-field-descrizione-completa ul,
#block-comuni-theme-content .field--name-field-descrizione-completa ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 2rem;
    list-style: disc;
}

/* Per dispositivi mobili */
@media (max-width: 575.98px) {
    .pagination .page-link,
    .pager__items .pager__item a,
    .pager__items .pager__item.is-active,
    .pager__items li a {
        min-width: 2rem;
        min-height: 2rem;
        padding: 0.4rem;
    }
    
    .pagination .page-item:not(.active):not(.disabled):not(:first-child):not(:last-child),
    .pager__item:not(.is-active):not(:first-child):not(:last-child):not(.pager__item--next):not(.pager__item--previous) {
        display: none;
    }
    
    .pagination .page-item.active,
    .pagination .page-item:first-child,
    .pagination .page-item:last-child,
    .pager__items .pager__item.is-active,
    .pager__items .pager__item--previous,
    .pager__items .pager__item--next {
        display: block;
    }
}

/* Slideshow Custom per field_allegati */
.custom-slideshow-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.custom-slideshow-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.custom-slideshow-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

.custom-slideshow-image {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.custom-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 77, 153, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-slideshow-nav:hover {
    background: rgba(0, 77, 153, 1);
    transform: translateY(-50%) scale(1.1);
}

.custom-slideshow-nav:focus {
    outline: 2px solid #004d99;
    outline-offset: 2px;
}

.custom-slideshow-prev {
    left: 16px;
}

.custom-slideshow-next {
    right: 16px;
}

.custom-slideshow-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    gap: 8px;
}

.custom-slideshow-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-slideshow-indicator:hover {
    border-color: #004d99;
    background: rgba(0, 77, 153, 0.2);
}

.custom-slideshow-indicator.active {
    background: #004d99;
    border-color: #004d99;
}

.custom-slideshow-indicator:focus {
    outline: 2px solid #004d99;
    outline-offset: 2px;
}

.form-check [type=checkbox]:checked+label::after{
    border-color: #004d99;
    background-color: #004d99;
    z-index: 0;
}

.form-item-search-api-fulltext{
    padding: 0;
    margin: 0;
}

.form-item-search-api-fulltext .clean-input {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .custom-slideshow-prev {
        left: 12px;
    }
    
    .custom-slideshow-next {
        right: 12px;
    }
    
    .custom-slideshow-image {
        max-height: 400px;
    }
    
    .custom-slideshow-indicators {
        padding: 15px;
    }
    
    .custom-slideshow-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .custom-slideshow-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .custom-slideshow-prev {
        left: 8px;
    }
    
    .custom-slideshow-next {
        right: 8px;
    }
    
    .custom-slideshow-image {
        max-height: 300px;
    }
}