body, html {
    margin: 0;
    padding: 0;
}

#main {
    padding-top:0!important;
}

.p-1 {
    padding:1rem;
}
.p-2 {
    padding:2rem;
}
.p-50 {
    padding:50px;
}

.pt-1 {
    padding-top:1rem;
}

.pb-1 {
    padding-bottom:1rem;
}

.mt-1 {
    margin-top:1rem;
}

.mb-1 {
    margin-bottom:1rem;
}

.mt-2 {
    margin-top:2rem;
}

.mb-2 {
    margin-bottom:2rem;
}

.titolo-placeholder {
    height: 3.2em;
    margin-bottom: 1rem;
    visibility: hidden;
}

*:focus {
    outline: 5px solid #d59d03 !important;
}

#menu-mainmenu
{
    margin-right:100px !Important;
}

body, h1, h2, h3, h4, p, span, strong, div, ul, ol, a {
    font-family: "Titillium Web", sans-serif;
}

p {
    line-height: 1.5;
}

h1 {
    margin:0 !important;
    padding:0 !important;
}

figure {
    margin:0;
    padding:0;
}

a {
    color:#0066cc;
}

a:hover {
    color: #000;
}

.strong {
    font-weight: bold;
}

.screenreader-text {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    top: auto;
}
.screenreader-text:focus {
    color: black;
    display: inline-block;
    height: auto;
    width: auto;
    position: static;
    margin: auto;
}
.screen-reader-only {
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.mcc-spacer {
    padding: 20px 0 20px 0;
}

.mcc-big-spacer {
    padding: 50px 0 50px 0;
}

.minHW-44 a {
    display: flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

.fixedH-44 {
    height: 44px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center;
}

.text-regular{
    font-weight:normal;
}

.text-bold{
    font-weight: bold;
}

.text-underline {
    text-decoration: underline;
}

.text-blue {
    color: #004a99;
}

.text-white {
    color: #fff;
}

.text-std {
    color: #000;
}

a.pdf-version {
    display: flex;
    align-items: center;
    justify-content: center;
   color: #fff;
    text-decoration: underline;
    font-size: 1rem;
}

a.pdf-version:hover {
    color: #fff;
    text-decoration: unset;
}

.blue-box {
    background-color: #06c;
    color: #fff;
    border-radius: 0.4rem;
    padding: 2rem;
    width: 10rem;
    height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 600;
    font-size: 120%;
}

.gray-circle {
    border-radius: 50%;
    margin-right: 4rem;
    width: 10rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}

a.blue-box:hover {
    color: #fff;
    text-decoration: none;
}

.close-x {
    font-size: 4rem;
    font-weight: bold;
    color: #003366;
}

a.close-x {
    text-decoration: none;
}

a.close-x:hover {
    color: #06c;
}

.titolo-paragrafo {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #004d99;
}

.pulsante-std-blue {
    background-color: #06c;
    color: #fff;
    padding: .65rem 1rem;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 0.4rem;
    cursor: pointer;
    text-transform: uppercase;
}

.pulsante-std-blue:hover {
    color: #fff;
    text-decoration: underline;
}

.searchGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.searchInput,
.searchGroup button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.searchGroup input {
    padding: 1.2rem;
     background-color: #dbeeff;
    border: none;
}

.searchGroup button {
    background-color: #06c;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
}

#reset-filters {
    padding: 1rem;
}

.custom-unordered-list {
    list-style: none;
    padding-left: 0;
}

.custom-unordered-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.custom-unordered-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("../images/arrow-right.svg") no-repeat center center;
    background-size: contain;
}

.custom-ordered-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

.custom-ordered-list > li {
    counter-increment: step;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.custom-ordered-list > li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0054a6;
}

.custom-ordered-list ol {
    list-style: none;
    counter-reset: substep;
    padding-left: 1.5rem;
    margin-top: 10px;
}

.custom-ordered-list ol > li {
    counter-increment: substep;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.custom-ordered-list ol > li::before {
    content: counter(substep, lower-alpha) ")";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0054a6;
}



.custom-graph-ordered-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

.custom-graph-ordered-list li {
    counter-increment: step;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.custom-graph-ordered-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #0054a6;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 2px solid #0054a6;
}

.annulla-filtro {
    padding: 20px;
    margin-top: -25px;
}
.annulla-filtro a {
    text-decoration: none;
}

.icona-accordion {
    width: 2rem;
    height: auto;
}

.icona-std-link {
    width: .9rem;
    height: auto;
    margin-top: 6px;
    margin-left: 7px;
    position: absolute;
}

.icona-std-link:hover {
    stroke: #003366;
}

.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px 0;
    border-right: 2px solid #0072CE;
}

.news-icon img {
    max-width: 50px;
    height: auto;
}

.search-tag {
    border: 1px solid #004D99;
    color: #004D99;
    border-radius: 10px;
    padding: 0.3rem 1.7rem;
    font-size: 1rem;
    text-align: center;
    margin-top: -5px;
}

.search-tag:hover {
    color: #fff;
    background-color: #06c;
    border-radius: 10px;
}

/*********************************************** FLEX GENERALE INIZIO *************************************************/

.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-gap {
    gap: 1.5rem; /* oppure quello che vuoi */
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0066cc;
    color: white;
    padding: 1rem 0 1rem 1rem;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: auto;
    width: auto;
    display: block;
}

.logo span {
    display: flex;
    align-items: center;
}

.logofdg {
    min-height: 70px;
}

.header-text {
    display: flex;
    align-items: center;
}

.header-text h1 {
    border-left: 0.1rem solid white;
    line-height: 1;
    margin: 0;
}

.header-text h1 a {
    display: flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding-left: 1rem;
    font-size: 2.2rem;
    text-decoration: none;
    color: white;
}


.header-claim {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.header-nav {
    flex: 1 1 auto;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-list a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list .search img {
    height: 20px;
}

.g-search {
    display: block;
    position: absolute;
    background: white;
    color: black;
    padding: 1rem;
    top: 100%;
    right: 0;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.fascia-bianca{
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: calc(100vw - var(--scrollbar-width, 8px));
    background-color: #fff;
    padding: 10px 0;
}

.fascia-grigia{
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: calc(100vw - var(--scrollbar-width, 8px));
    background-color: #efefef;
    padding: 10px 0;
}

.fascia-grigia-info{
    width: 100%;
    background-color: #efefef;
    padding: 30px 0;
}

.fascia-covid {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background-color: #fff;
    padding: 30px 0;
    overflow: hidden;
}

.fascia-covid .news-card-lastest {
    background:transparent;
    padding: 20px 20px 10px 0;
    border: 1px solid #003366;
}

.fascia-covid .news-card-lastest .news-date {
    padding: 0;
}

.fascia-celeste {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: calc(100vw - var(--scrollbar-width, 8px));
    background-color: #cfe5f9;
    padding: 30px 0;
    overflow: hidden;
}

.fascia-celeste .news-card-lastest {
    background:transparent;
    padding: 20px 20px 10px 0;
    border: 1px solid #003366;
}

.fascia-celeste .news-card-lastest .news-date {
padding: 0;
}

.fascia-blue {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: calc(100vw - var(--scrollbar-width, 8px));
    background-color: #004d99;
    padding: 30px 0;

}

.fascia-blue p {
    color: #fff;
}

.fascia-blue img {
    width: 60%;
}

.fascia-grigia-info p, .fascia-celeste p  {
    margin: 0;
    width: 100%;
}

.fascia-celeste #operazioni  {
    width: 50%;
}

.fascia-covid .centered-number > p {
    margin-top: 20px;
    width: 100%;
    border-top: 2px double #0066cc;
    border-left: 2px double #0066cc;
    border-right: 2px double #0066cc;
    background-color: #ededed;
}

.foto-affiancata #tempistiche  {
    width: 50%;
}

.standard-boxed {
    max-width: 1236px;
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
}

.standard-boxed-small {
    max-width: 1236px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
}

.sezione-affiancata {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sezione-affiancata .testo-affiancato {
    flex: 1;
}

.sezione-affiancata .foto-affiancata {
    flex: 0 0 25%;

}

.sezione-affiancata .foto-affiancata img {
    height: auto;
    display: block;
    border-radius: 8px;
}

.sezione-affiancata .foto-affiancata #logomcc {
    height: 7rem;
    display: block;
    border-radius: 8px;
}

.sezione-affiancata .foto-affiancata #soggetti {
margin-top: -10rem;
}

.sezione-affiancata .foto-affiancata #sedute {
    width: 20%;
    position: absolute;
    right: 2.5rem;
    top: calc(100% - 230px);
    z-index: 9;
}

.icone-griglia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
    margin-top: 40px;
}

.icona-blocco {
    flex: 1 1 calc(25% - 30px);
    text-align: center;
    max-width: calc(25% - 30px);
}

.icona-blocco img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.icona-blocco p {
    font-size: 1rem;
    line-height: 1.5;
    min-height: 90px;
}

.loghi-box {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.4rem;
    height: 10rem;
    width: 10rem;
    padding: 2rem;
    margin-bottom: 1rem;
}
.loghi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.loghi-row > div {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}

.loghi-row img {
    max-height: 60px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


.blocco-affiancato {
    display: flex;
    gap: 8rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: flex-start; /* <-- questo è il punto chiave! */
}

.blocco-affiancato .colonna {
    flex: 1;
}

.colonna img {
    height:50px !important;
}



/*********************************************** FLEX GENERALE FINE ****************************************************/

/***************************************************** MENU INIZIO *****************************************************/

.menu {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    text-align: center;
}

.menu .menu-item {
    flex: 1;
    border-right: 1px solid #0066cc;
    border-bottom: 1px solid #0066cc;
}

.menu .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background-color: #fff;
    color: #0066cc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Hover effect */
.menu .menu-item a:hover {
    font-weight: bold;
    text-decoration: underline;
    color: #0157AC;
}

.menu-toggle {
    display: none;
    background-color: #003366;
    width: 100%;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}


/***************************************************** MENU FINE *******************************************************/


/***************************************************** SEARCH INIZIO ***************************************************/

.g-search-item {
    position: relative;
    display: flex;
    height: 5rem;
}

.g-search-item>a {
    padding: 0 2rem;
    margin: 0;
}

.g-search-item>a.is-open {
    background-color: #004d99;
}

.g-search-item>a.is-open img:first-child {
    display: none;
}

.g-search-item>a.is-open img:last-child {
    display: inline-block;
}

.g-search-item>a.is-open+.g-search {
    opacity: 1;
    visibility: visible;
}

.g-search-item a {
    display: flex;
    align-items: center;
}

.g-search-item img {
    margin-right: 0;
}

.g-search-item>a img:last-of-type {
    display: none;
}

.g-search {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 8rem;
    background-color: #004d99;
    padding: 3em;
    z-index: 1001;
}

.g-search label {
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    color: #ffffff;
}

.g-search div {
    display: flex;
    height: 4rem;
}

.g-search input::-webkit-input-placeholder {
    font-style: italic;
    color: white;
    opacity: 0.4;
}

.g-search input {
    border: none;
    border-bottom: 1px solid white;
    background: transparent;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    color: white;
    padding: .5rem;
}
.g-search input[type="search"]::-webkit-search-decoration,
.g-search input[type="search"]::-webkit-search-cancel-button,
.g-search input[type="search"]::-webkit-search-results-button,
.g-search input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    background:
            linear-gradient(45deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0) 43%,#FFF 45%,#FFF 55%,rgba(255,255,255,0) 57%,rgba(255,255,255,0) 100%),
            linear-gradient(135deg, transparent 0%,transparent 43%,#FFF 45%,#FFF 55%,transparent 57%,transparent 100%);
}

.g-search button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.g-search button img {
    margin-left: 10px;
}

/*************************************************** SEARCH FINE *******************************************************/

/************************************************** SLIDER INIZIO*******************************************************/

.swiper-container {
    width: 100%;
    height: 100%;
}

.page-template-page-home #top-slider .swiper-button-prev,
.page-template-page-home #top-slider .swiper-button-next {
    position: absolute;
    width: 8rem;
    height: calc(100% + 2rem);
    cursor: pointer;
    opacity: 1;
    z-index: 9999;
    opacity: 0;
    top: 0;
    transition: 0.2s;
}

.page-template-page-home #top-slider .swiper-button-prev:hover,
.page-template-page-home #top-slider .swiper-button-next:hover {
    opacity: 1;
}

.page-template-page-home #top-slider .swiper-button-prev {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.45), transparent), url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, 40%;
    transform: rotate(180deg);
    left: 0;
}

.page-template-page-home #top-slider .swiper-button-next {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.45), transparent), url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, 40%;
    right: 0;
}

.swiper-slide {
    background-blend-mode: multiply;
    background-position: top;
    background-size: cover;
    color: #fff;
}

.page-template-page-home .box-slider~.swiper-button-prev {
    background-image: url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-gray.svg");
    transform: rotate(180deg);
    left: 4rem;
    top: 18rem;
}

.page-template-page-home .box-slider~.swiper-button-next {
    background-image: url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-gray.svg");
    left: 9rem;
    top: 18rem;
}

.arrows-carousel.box-slider .swiper-button-prev {
    background-image: url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-gray.svg");
    transform: rotate(180deg);
    left: 0;
    top: 0;
}

.arrows-carousel.box-slider .swiper-button-next {
    background-image: url("/wp-content/themes/fondodigaranzia/assets/images/arrow-right-gray.svg");
    left: 9rem;
    top: 0;
}

.swiper-content {
    height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 6rem;
    padding-bottom: 6rem;
    font-size: 1.8rem;
    box-sizing: border-box;
    max-width: 80rem;
}

.swiper-button-next, .swiper-button-prev {
    position: relative !important;
}

.slider-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.swiper-button-next {
    left: 4rem !important;
}

.slider-text {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
}

.slider-cta {
    color: inherit;
    margin: 1.2rem 0;
    align-self: flex-start;
    font-size:1.1rem;
    font-weight: bold;
    text-decoration: none;
}

.slider-cta:hover {
    color: inherit;
    text-decoration: underline;
}

.swiper-pagination .swiper-pagination-bullet {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 0.1rem solid;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    background-color: #fff;
    transform: scale(0.8);
}

.swiper-pagination .swiper-pagination-bullet-active {
    background: transparent;
    color: #fff;
    transform: scale(1.2);
}

.swiper-pagination.swiper-pagination-bullets {
    text-align: left;
    padding: 0 5% 3%;
    display: flex;
    align-items: center;
}

.swiper-pagination-bullet-active::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    border-radius: 50%;
}

/*paginazione slider*/
.swiper-pagination-slider {
    position: absolute;
    text-align: center;
    -webkit-transition: .3s opacity;
    -o-transition: .3s opacity;
    transition: .3s opacity;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    z-index: 10;
}

/* Bullet container: ha area cliccabile 44x44 */
.swiper-pagination-slider .swiper-pagination-bullet {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Pallino interno visivo */
.swiper-pagination-slider .swiper-pagination-bullet::after {
    content: "";
    width: 22px;  /* pallino piccolo visivo */
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    display: block;
}

/* Stato attivo: pallino più grande o colorato */
.swiper-pagination-slider .swiper-pagination-bullet.swiper-pagination-bullet-active::after {
    width: 22px;
    height: 22px;
    background-color: #fff;
}

.swiper-pagination-slider .swiper-pagination-bullet-active {
    background: transparent;
    color: #fff;
}

.swiper-pagination-slider.swiper-pagination-bullets {
    text-align: left;
    padding: 0 5% 1% 4.5%;
    display: flex;
    align-items: center;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.box-slider .swiper-wrapper {
    box-sizing: border-box;
    padding-bottom: 6rem;
    height: auto;
}

.box-slider .swiper-pagination {
    bottom: 2px;
    padding: 0;
    text-align: center;
    justify-content: center;
}

.section-3 .box-slider .swiper-pagination-bullet-active {
    color: #06c;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* metà larghezza */
    height: 100%; /* tutta l'altezza */
    background: linear-gradient(
            to right,
            rgba(19, 43, 134, 1) 0%,
            rgba(19, 43, 134, 0.8) 50%,
            rgba(19, 43, 134, 0.6) 80%,
            rgba(19, 43, 134, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.swiper-content {
    position: relative;
    z-index: 2;
}

/************************************************** SLIDER FINE *******************************************************/

/************************************************** FLAG INIZIO *******************************************************/

.italian-flag-bar {
    display: flex;
    height: .938rem;
    width: 100%;
}

.flag-part {
    flex: 1;
}

.green {
    background-color: #008C45;
}

.white {
    background-color: #FFFFFF;
}

.red {
    background-color: #CD212A;
}

/*************************************************** FLAG FINE ********************************************************/

/*************************************************** MAP INIZIO *******************************************************/

.map-container {
    text-align: center;
    height: 800px;
}

.map {
    display: inline-block;
    max-width: 600px;
    width: 100%;
    position: relative;
    height: 800px
}

svg .region {
    fill: #fff;
    stroke: #d1e7ff;
    stroke-width: 3px;
}

svg .region:hover {
    fill: #004d99;
}

svg.width-100 {
    width: 100%;
    overflow: visible;
}

.detail {
    min-width: 25rem;
    position: absolute;
    display: none;
    background: #fff;
    overflow: hidden;
    pointer-events: none;
    text-align: left;
    color: #00264d;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.detail.visible {
    display: block;
}

.detail span {
    color: #06c;
    font-weight: 700;
}

.detail>div:first-child {
    padding: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #06c;
}

.detail>div:last-child {
    padding: 0.8rem;
}

#valle-d-aosta-d {
    top: 12%;
    left: 6%;
}

#piemonte-d {
    top: 19%;
    left: 10%;
}

#lombardia-d {
    top: 14%;
    left: 25%;
}

#trentino-alto-adige-d {
    top: 7%;
    left: 40%;
}

#friuli-venezia-giulia-d {
    top: 10%;
    left: 55%;
}

#veneto-d {
    top: 13%;
    left: 44%;
}

#liguria-d {
    top: 24%;
    left: 21%;
}

#emilia-romagna-d {
    top: 22%;
    left: 38%;
}

#toscana-d {
    top: 31%;
    left: 38%;
}

#marche-d {
    top: 34%;
    left: 57%;
}

#umbria-d {
    top: 37%;
    left: 49%;
}

#lazio-d {
    top: 48%;
    left: 51%;
}

#abruzzo-d {
    top: 44%;
    left: 61%;
}

#molise-d {
    top: 50%;
    left: 66%;
}

#campania-d {
    top: 55%;
    left: 69%;
}

#puglia-d {
    top: 53%;
    left: 74%;
}

#basilicata-d {
    top: 60%;
    left: 75%;
}

#calabria-d {
    top: 70%;
    left: 74%;
}

#sicilia-d {
    top: 83%;
    left: 66%;
}

#sardegna-d {
    top: 62%;
    left: 20%;
}

/*************************************************** MAP FINE *******************************************************/

/************************************************* TABELLE INIZIO *****************************************************/

.table-box {
    overflow-x: auto;
}

.pure-table {
    empty-cells: show;
    border: 1px solid #cbcbcb;
    border-spacing: 0;
}

.pure-table caption {
    color: #000;
    font: italic 85%/1 arial, sans-serif;
    padding: 1rem 0;
    text-align: center;
    background-color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: bold;
}

.pure-table td,
.pure-table th {
    border-left: 1px solid #cbcbcb;
    border-width: 0 0 0 1px;
    font-size: inherit;
    margin: 0;
    overflow: visible;
    padding: .5em 1em;
}

.pure-table td:first-child,
.pure-table th:first-child {
    border-left-width: 0;
}

.pure-table thead {
    background-color: #e0e0e0;
    color: #000;
    text-align: left;
    vertical-align: bottom;
}

.pure-table td {
    background-color: transparent;
}

.pure-table-odd td,
.pure-table-striped tr:nth-child(2n-1) td {
    background-color: #f2f2f2;
}

.pure-table-blu td,
.pure-table-striped tr:nth-child(2n-1) td {
    background-color: #06c;
    color: white;
    font-weight: bold;
}

.pure-table-blu,
td.blu {
    background-color: #002F5F;
    color: white;
    font-weight: bold;
}

.pure-table-blu,
td.azzurro {
    background-color: #d1e7ff;
    color: black;
    font-weight: bold;
}

.pure-table-bordered th {
    font-size: 1.5rem;
}

.pure-table-bordered td {
    border-bottom: 1px solid #cbcbcb;
    font-size: .85rem;
    line-height: 1.5;
}

.pure-table-bordered tbody > tr:last-child > td {
    border-bottom-width: 0;
}

.pure-table-horizontal td,
.pure-table-horizontal th {
    border-width: 0 0 1px;
    border-bottom: 1px solid #cbcbcb;
}

.pure-table-horizontal tbody > tr:last-child > td {
    border-bottom-width: 0;
}

.row-width-table {
    width: 200px;
}

.fdg-table {
    background: #e4e4e4;
    margin: 20px auto 0;
    border-collapse: collapse;
    text-align: center;
}
.fdg-table caption {
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 10px;
}
.fdg-table thead {
    font-size: 1.1rem;
    line-height: 1.5;
    vertical-align: text-top;
}
.fdg-table th, .fdg-table td {
    padding: 20px;
    border: 1px solid #fff;
    font-weight: 600;
}
.fdg-table tbody td.fdg-table-lightblue {
    background: #0066cc;
}
.fdg-table tbody th {
    font-size: 1.3rem;
    padding: 2px 5px;
}
.fdg-table tbody td {
    background: #004d99;
    color: #fff;
}
.fdg-table-legend {
    margin: 5px 20px 30px 20px;
    padding: 0 30px 0 30px;
    font-size: 0.9rem;
    line-height: 1.5;
}


/************************************************* TABELLE FINE *******************************************************/

/******************************************** SCELTA SERVIZI HOME INIZIO **********************************************/

.scelta-servizio {
    display: flex;
    height: 360px;
    width: 100%;
}

.half {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.servizio-pro {
    background-color: #0067cc;
    color: white;
}

.servizio-bank{
    background-color: #dbeeff;
    color: #004d99;
}

.scelta-servizio h2 {
    font-size: 3.2rem;
    margin:0;
    line-height: 1;
}

.scelta-servizio p{
    font-size: 1.6rem;
    margin:5px;
}

.servizio-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    min-width:265px;
    min-height: 60px;
    background-color: transparent;
}

.servizio-pro .servizio-button {
    color: white;
    border: 2px solid white;
}

.servizio-bank .servizio-button {
    color: #004d99;
    border: 2px solid #004d99;
}

/********************************************* SCELTA SERVIZI HOME FINE ***********************************************/

/************************************************ HERO BANNER INIZIO **************************************************/
.hero-banner {
    position: relative;
    width: auto;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 40px;
    overflow: hidden;
}

.hero-banner.sezioni-fondo {
    background-image: url('../images/sezioni-fondo.png');
}

.hero-banner.conosci-fondo {
    background-image: url('../images/conosci-fondo.png');
}

.hero-banner.sezioni-fondo-interna {
    background-image: url('../images/sezioni-fondo-interna.png');
}

.hero-banner.servizi-online-imprese {
    background-image: url('../images/servizi-online-imprese.png');
}

.hero-banner.servizi-banche-confidi {
    background-image: url('../images/servizi-banche-confidi.png');
}

.hero-banner.contattaci {
    background-image: url('../images/contattaci.png');
}

.hero-banner.archivio-news {
    background-image: url('../images/archivio-delle-news.png');
}

.hero-banner.gestore-fondo {
    background-image: url('../images/gestore-fondo.png');
}

.hero-banner.normativa-modulistica {
    background-image: url('../images/normativa-modulistica.png');
}

.hero-banner.numeri-del-fondo {
    background-image: url('../images/numeri-del-fondo.png');
}

.hero-banner.presentazione-domanda {
    background-image: url('../images/presentazione-domanda-online.png');
}

.hero-banner.prossima-seduta {
    background-image: url('../images/prossima-seduta-consiglio.png');
}

.hero-banner.standard-photo {
    background-image: url('../images/standard-bg.png');
}

.hero-banner.risultati-ricerca {
    background-image: url('../images/risultati-ricerca.png');
}

.hero-banner h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 99;
    max-width: 50%;
}

.hero-side-gradient-sky-blue {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 10%;
    width: 300px;
    background: linear-gradient(
            to right,
            rgba(68, 211, 220, 1) 0%,
            rgba(68, 211, 220, 0.6) 40%,
            rgba(68, 211, 220, 0.2) 100%
    );
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 20px;
    color: #fff;
}

.hero-side-gradient-green {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;

    height: auto !important;             
    min-height: 0;
    padding: 5px 10px;        
     
    background: linear-gradient(
            to right,
            rgba(0, 180, 0, 1) 0%,
            rgba(0, 180, 0, 0.6) 40%,
            rgba(0, 180, 0, 0.2) 100%);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    color: #fff;
}

.hero-side-gradient-red {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;

    height: auto !important;             
    min-height: 0;
    padding: 5px 10px;   

    background: linear-gradient(
            to right,
            rgba(200, 0, 0, 1) 0%,
            rgba(200, 0, 0, 0.6) 40%,
            rgba(200, 0, 0, 0.2) 100%
    );
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    color: #fff;
}

/* Quando la descrizione esiste, aumentiamo lo spazio */
.hero-side-gradient-green.has-description,
.hero-side-gradient-red.has-description {
  padding: 10px 12px;
}

.descrizione-aggiuntiva {
  display: block;
  font-weight: 400;
  margin-top: 8px;
  font-size: 0.75em;
  line-height: 1.3;
  border-top: 1px solid rgba(255,255,255,0.2); /* Opzionale: un filetto per separare */
  padding-top: 8px;
}

.hero-side-link img {
    max-height: 60px;
    width: auto;
    margin-right: 25px;
}

.hero-side-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
}

.hero-side-text a {
    color: #fff;
    text-decoration: underline;
}

.hero-side-text a:hover {
   text-decoration: none;
}

/************************************************ HERO BANNER FINE **************************************************/

/**************************************************** TABS INIZIO *****************************************************/

.tabs {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 30px;
}

.tab-button {
    padding: 13px 20px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
    color: #004d99;
    border: 2px solid #d4d4d4;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    opacity: 0.4;
    min-width: 150px;
}

.tab-button.active {
    background: linear-gradient(
            to top,
            rgba(217, 232, 247, 1) 0%,
            rgba(217, 232, 247, 0.8) 50%,
            rgba(217, 232, 247, 0.6) 80%,
            rgba(217, 232, 247, 0) 100%
    );
    color: #004d99;
    border: 2px solid #badbf5;
    opacity: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-tabs {
    margin: 0 auto;
    padding: 10px 10px 0px 10px;
    box-sizing: border-box;
}

.section-tabs .heading {
    text-align: center;
    margin-bottom: 20px;
}

.section-tabs .heading h2 {
    margin: 0 0 20px 0;
    font-size: 3.2rem;
    color: #004d99;
    line-height: 1;
}

/***************************************************** TABS FINE ******************************************************/

/******************************************** NUMERI DEL FONDO HOME INIZIO *********************************************/

.section-content {
    max-width: 1236px;
    margin: 0 auto;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
}

.section-content .heading {
    text-align: center;
    margin-bottom: 20px;
}

.section-content .heading h2 {
    margin: 0 0 20px 0;
    font-size: 3.2rem;
    color: #004d99;
    line-height: 1;
}

 .news-heading {
    margin: 0 0 20px 20px;
    font-size: 1.2rem;
    color: #000;
    line-height: 1.5;
     text-align: left;
}

.section-content .heading h3 {
    text-align: center;
    font-size: 1.1rem;
    color: #004d99;
    margin: 0 5px 5px 5px;
}

.section-content .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    height: 44px;
    padding: 0 10px;
    line-height: 1;
    box-sizing: border-box;
}


.section-content .description_attach {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
    gap: 30px;
}

.section-content .description_attach img {
    margin-right: 8px;
}


.container-counter .centered-number {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.container-counter .col {
    flex: 1;
    min-width: 200px;
}

.container-counter .box {
    padding: 20px 20px 0 20px;
    border-radius: 8px;
}

.container-counter .num-text {
    display: block;
    font-size: 2.8rem;
    font-weight: lighter;
    color: #0066cc;
}

.container-counter .num-text+p {
    font-weight:  normal;
    color: #555454;
    margin: 0;
    font-size: 1.1rem;
}

.box .icon img {
    width: auto;
    height: 60px;
    margin-bottom: 10px;
}

.title_covid {
    padding: 20px 0;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    color: #004d99;
}

/********************************************* NUMERI DEL FONDO HOME FINE *********************************************/

/********************************************** SEZIONI DEL FONDO INIZIO **********************************************/

.logo-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.logo-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.logo-item img {
    max-height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.05);
}

/*********************************************** SEZIONI DEL FONDO FINE ***********************************************/


/******************************************* CHECKBOX FILTRI DOCUMENTI INIZIO ******************************************/

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

 #searchResult {
    justify-content: flex-start !important;
     margin-top: 20px;
}

.checkBoxGroup {
    flex: 0 0 calc((100% / 3) - 20px);
    max-width: calc((100% / 3) - 20px);
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #06c;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background: #fff;
    transition: all 0.2s;
    min-height: 50px;
}

.checkBoxGroup:hover {
    border-color: #0073e6;
    box-shadow: 0 3px 6px rgba(0,115,230,0.2);
}

.checkBoxGroup.selected {
    background: #e0f0ff;
    border-color: #0077cc;
}

.checkBoxGroup.selected input[type="checkbox"] {
    accent-color: #0077cc;
}

.checkBoxGroup input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
    border: 2px solid #06c;
}

.checkBoxGroup label {
    cursor: pointer;
    color: #06c;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 600;
}

.checkBoxGroup label a {
    text-decoration: none;
}

.checkBoxGroup label a:hover {
    text-decoration: underline;
}

.checkBoxGroup input:disabled + label {
    opacity: 0.4;
    pointer-events: none;
}


/******************************************* CHECKBOX FILTRI DOCUMENTI FINE *******************************************/

/************************************************ OWL CAROUSEL INIZIO *************************************************/
.carousel-wrapper {
    max-width: 1236px;
    margin: 0 auto;
    padding: 1rem 1rem 0 1rem;
    overflow-x: hidden;
}


.owl-stage-outer {
    overflow: visible !important;
}


.owl-carousel .carousel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.owl-carousel .carousel-card .card-title, .owl-carousel .carousel-card .card-excerpt, .news-card .news-content h3, .news-card .news-content p {
    text-align: left;
    margin-left: 0;
}

.owl-carousel .owl-item {
    padding: 0 10px;
    box-sizing: border-box;
}

.card-top {
    height: 160px;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
}

.card-bottom {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003366;
    margin: 0 0 0.5rem 0;
    min-height: 3.2em;
    line-height: 1.6em;
}

.card-excerpt {
    flex-grow: 1;
    color: #333;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    min-height: 5em;
    line-height: 1.5;
}

.card-link {
    text-align: right;
    color: #005eb8;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 1rem;
}


.owl-dots {
    text-align: center;
    margin-top: 20px;
    padding: 5px 0 5px 0;
}

.owl-dot {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    cursor: pointer;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
}

.owl-dot.active span {
    background: #005eb8;
}
/************************************************ OWL CAROUSEL FINE ***************************************************/

/********************************************** CAROUSEL GRIGLIA INIZIO ************************************************/

.custom-card-grid {
    display: flex; /* era grid */
    flex-wrap: wrap; /* aggiunto con flex */
    justify-content: center;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 360px));  inizialmente era una griglia */
    gap: 30px;
}

.grid-wrapper {
    max-width: 1236px;
    margin: 0 auto;
    padding: .3rem 1rem 0 1rem;
    overflow-x: hidden;
}


.grid-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    flex: 1 1 300px;  /* larghezza base aggiunta con flex nel custom-card-grid */
    max-width: 360px;  /* larghezza massima aggiunta con flex nel custom-card-grid*/
    position: relative;
}

.g-card-top {
    height: 160px;
    background-color: #005eb8;
}

.g-card-top-light {
    height: 160px;
    background-color: #dbeeff;
}

.g-card-image-placeholder {
    width: 100%;
    height: 100%;
}

.g-card-image-placeholder img {
    width: 100%;
    height: 80%;
    margin-top: 20px;
}

.g-card-bottom {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}


.g-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003366;
    margin: 0 0 0.5rem 0;
    min-height: 3.2em;
    line-height: 1.6em;
}


.g-card-excerpt {
    flex-grow: 1;
    color: #333;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    min-height: 5em;
    line-height: 1.5;
}


.g-card-link {
    text-align: right;
    color: #005eb8;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 1rem;
}

.container-pagination {
    margin-top: 2rem;
    text-align: center;
    padding: .4rem 0 .4rem 0;
}

.pagination > ul > li {
    list-style-type: none; /* Remove bullets */
}

.pagination .pagination-list {
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #000;
    font-weight: bold;
    font-size: 0.875rem;
    text-decoration: none;
    margin: 0 6px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #0078d4;
    color: #fff;
}

.pagination .current {
    background-color: #0066cc;
    color: #fff;
    pointer-events: none;
}

.pagination .dots {
    background: transparent;
    color: #333;
    width: auto;
    height: auto;
    font-size: 1rem;
    border-radius: 0;
    min-width: auto;
}
.container-pagination .textpage {
    color: #0066cc;
    font-weight: bold;
}

.hide-pages {
    display: none !important;
}


.status-icon {
    position: absolute;
    top: -1px;
    right: -10px;
    z-index: 5;
    pointer-events: none;
    background: transparent !important;
}

.status-icon::before,
.status-icon::after {
    z-index: 4; /* leggermente sotto l’icona */
}

.status-icon img {
    width: 90%;
    height: auto;
    display: block;
    background: transparent !important;
    pointer-events: auto;
}

/* 🔸 Tooltip */
.status-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 60%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .6);
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Piccola freccia */
.status-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Mostra il tooltip al passaggio */
.status-icon:hover::after,
.status-icon:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
}


/********************************************** CAROUSEL GRIGLIA FINE *************************************************/

/************************************************* ACCORDION INIZIO ****************************************************/
.accordion {
    max-width: 100%;
    margin: 20px auto;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

/* Stile comune per header (sia button che link) */
.accordion-header {
    width: 100%;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    text-decoration: none;  /* evita underline nei <a> */
    color: inherit;         /* uniforma colore */
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-icon {
    margin-right: 12px;
    font-weight: bold;
    color: #0072CE;
}

.accordion-title {
    flex: 1;
    color: #004d99;
}

.accordion-action {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #0072CE;
    font-weight: 500;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #0072CE;
}

.accordion-arrow {
    margin-left: 6px;
    font-size: 0.8rem;
}

.mcc-accordion-chevron-arrow-up {
    transform: rotate(.5deg);
}

.accordion-content {
    display: none;
    padding: 20px;
    background: #f5f9fc;
}

.accordion-item.open .accordion-content {
    display: block;
}

/* Variante singola (file senza cartella) */
.accordion-item.single .accordion-header {
    cursor: pointer;
}

/* Variante "link" → icona rossa */
.accordion-item.link .accordion-icon {
    color: #cc0000;
}

.accordion-item.single .news-excerpt {
    margin-left: 53px;
    margin-top: -20px;
    margin-bottom: 5px;
    width: 70%;
}


/************************************************* ACCORDION FINE *****************************************************/


/**************************************** DOC ALLEGATI e SEPARATORI INIZIO *********************************************/

.docs-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-icon {
    width: 28px;
    height: 28px;
}

.docs-line {
    flex-grow: 1;
    border: none;
    border-top: 2px solid #0060d6; /* blu coerente col resto del sito */
}

.docs-title {
    color: #004a99;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem 0 .5rem;
    text-transform: uppercase;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-link {
    color: #000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.docs-link:hover {
    color: #0057cc;
}

/****************************************** DOC ALLEGATI E SEPARATORI FINE *********************************************/
*
/************************************************ NEWS HOME iNIZIO ****************************************************/
.news-date {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #004d99;
    text-align: center;
    font-weight: 500;
    padding: 0 6px 0 6px;
    border-right: 2px solid #0072CE;
    justify-content: center;
    line-height: 1.2;
    min-width: 80px;
}

#data-news, #all-news {
    padding: 10px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid #0072CE;
    border-right: 0;
}

#data-news .full-date  {
    font-size: 1.6rem;
}
.news-date .day {
    display: block;
    font-weight: bold;
}

.news-date .month {
    display: block;
    font-size: 1.2rem;
    text-transform: capitalize;
}

.news-date .year {
    display: block;
    font-size: 1.2rem;
    opacity: 0.8;
}

.news-text {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-title {
    font-weight: 700;
    color: #0050A0;
    text-decoration: none;
    margin-bottom: 4px;
    display: inline-block;
}
.news-title:hover {
    text-decoration: underline;
}
.news-excerpt {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.news-container {
    max-width: 1236px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.desc-card {
    background: #fff;
    border: 1px solid #0066cc;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 20px 10px 20px;
    gap: 20px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-card {
    display: flex;
    background: #fff;
    border: 1px solid #0066cc;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 20px 10px 20px;
    gap: 20px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-card-lastest {
    display: flex;
    background: #cfe5f9;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px 20px 10px 20px;
    gap: 20px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-card-lastest .news-date {
    background: transparent;
}

.news-card-lastest h2 {
    margin: 0;
}

.news-card-lastest p {
    font-size: 1.15rem;
    line-height: 1.5;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.news-content h3 {
    margin-top: 0;
}

.news-content p {
    margin: 0;
}

.news-content a h3 {
    color: #0066cc;
    text-decoration: none;
}

.news-content a:hover h3 {
    text-decoration: underline;
}


/************************************************* NEWS HOME FINE *****************************************************/

/********************************************** LISTA CONTATTI INIZIO***************************************************/

.contatti-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contatti {
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

.contatti span {
    font-weight: 700;
    color: #004d99;
    display: block;
    margin-bottom: 6px;
    font-style: normal;
}

.contatti-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.contatti-lista li {
    font-size: 14px;
    font-style: normal;
}

.contatti-lista li a{
    color: #000;
    text-decoration: none;
}

.contatti-grid-persone {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    
    justify-content: start;
    justify-items: start;
    width: 100%;
}

.contatti-persone {
    box-sizing: border-box;
    width: 100%;
}

.contatti-persone span {
    font-weight: 700;
    color: #004d99;
    display: block;
    margin-bottom: 6px;
    font-style: normal;
}

.banca-header {
    text-align: center;
    margin-bottom: 40px;
}

.banca-header .banca-titolo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004a94;
    margin: 20px 0 10px;
    font-family: 'Noto Sans', sans-serif;
}

.logo-mcc img {
    max-width: 260px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.banca-loghi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 50px;
    padding: 0 20px;
    max-width: 1236px;
    margin: 0 auto 20px;
}

.banca-logo {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banca-logo img {
    max-height: 50px;
    width: auto;
    max-width: 160px;
}

/********************************************** LISTA CONTATTI FINE****************************************************/

/******************************************** GRIGLIA REPORT INIZIO ***************************************************/

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-3 .col {
    display: flex;
    align-items: center;
}

.media {
    display: flex;
    align-items: center;
    gap: 16px;
}

.media img {
    width: 40px;
    height: auto;
}

.media a {
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    box-sizing: border-box;
}

.media a:hover {
    text-decoration: underline;
}

.media-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-block {
    display: block !important;
}


/********************************************* GRIGLIA REPORT FINE *****************************************************/

/************************************************* FOOTER INIZIO ******************************************************/

.footer {
    background-color: #0066cc;
    padding: 40px 0 40px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
}

.footerTop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.footerList {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 1.25rem;
}

.footerList h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.footerList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footerList li {
    margin-bottom: 6px;
}

.footerList a {
    font-size: 1.2rem;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footerList a:hover {
    text-decoration: underline;
    color: #fff;
}

.footerBottom {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 20px 0 20px 0;
    background-color: #004d99;
    color: #fff;
    font-size: .8rem;
}

/************************************************** FOOTER FINE ********************************************************/

/*************************************************** 404 INIZIO ********************************************************/

.error-404 {
    padding: 40px 20px;
    text-align: center;
}
.error-404 .page-content a {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    margin-top: 30px;
    width: 200px;
    border: 3px solid #fff;
}
.error-404 .page-content a:hover {
    border: 3px solid #24bdff;
}

.error-404 .page-content a:hover span {
    text-decoration: underline;
}

.error-404 .page-content a img {
    width: 55px;
}

.row-width-table {
    width: 12%;
}
.row-width-table-33 {
    width: 33%;
}
.row-width-table-25 {
    width: 25%;
}

.margin-left-auto {
    margin-left: auto;
}

.margin-top-60 {
    margin-top: 60px;
}

#maincontent p {
    line-height: 1.5;
}

p {
    line-height: 1.5;
}

#sezione_accessibilita h3, #sezione_accessibilita p {
    text-align: center;
}

.logo-width {
    width: 300px;
}
/*************************************************** 404 FINE *********************************************************/

/************************************************ MEDIA QUERY MAX WIDTH ************************************************/


@media only screen and (max-width: 1290px) {
    .header-claim {
       display: none;
    }

    .page-template-page-home .box-slider~.swiper-button-prev,
    .page-template-page-home .box-slider~.swiper-button-next {
        top: 21rem;
    }
}

@media only screen and (max-width: 1080px) {
    #ministeroLogo {
        display: none;
    }

    .header-text h1 a {
        font-size: 1.3rem;
    }

    .nav-list a {
        font-size: 0.75rem;
    }

    .logo img {
        width: 2.8rem;
    }

    .flex-header {
        padding: 0.6rem;
    }
}

@media only screen and (max-width: 1024px) {
    .flex-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .header-nav {
        width: 100%;
    }

    .nav-list {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu.show {
        display: flex;
    }

    .menu .menu-item {
        width: 100%;
    }

    .header-nav .nav-list li:not(.g-search-item) {
        display: none;
    }

    .header-nav.only-search {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        flex: 1;
    }

    .header-nav.only-search .nav-list {
        flex-direction: row;
    }


    .header-nav.only-search .nav-list li:not(.g-search-item) {
        display: none;
    }

    .header-nav.only-search .g-search-item {
        display: block;
        margin-left: auto;
        margin-top: 1rem;
        height: auto;
    }

    .page-template-page-home .box-slider~.swiper-button-prev,
    .page-template-page-home .box-slider~.swiper-button-next {
        top: 22rem;
    }

    .container-counter .num-text {
        font-size: 2rem;
    }

    .owl-dots {
        display: none;
    }

    .footerList {
        flex: 1 1 calc(40% - 1rem);
        text-align: center;
    }

    .footerList .minHW-44 a {
        display: block !important;
    }

    .hero-banner {
        height: 200px;
    }
    .hero-banner h1 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 999px) {
    .custom-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 992px) {
    .contatti {
        flex: 1 1 calc(50% - 20px);
    }
    .icona-blocco {
        flex: 1 1 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
        .contatti-grid-persone {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 928px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 925px) {
    .slider-title {
        font-size: 4.5rem;
    }
}

@media only screen and (max-width: 768px) {
    .hero-banner h1 {
        max-width: 100%;
    }

    .footerList {
        padding: 0;
    }

    .footerList:last-child {
       margin-bottom: 50px;
    }

    .footerList a {
        font-size: 1rem;
    }

    .footerTop {
        flex-direction: column;
        gap: 20px;
    }

    .container-counter .centered-number {
        flex-direction: column;
        align-items: center;
    }

    .container-counter .col {
        width: 100%;
        max-width: 400px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .bg-mobile-gray {
        background-color: #f2f2f2;
        width: 100vw;
        margin-left: -10px;
        padding: 0 20px 20px 20px;
        box-sizing: border-box;
    }

    .mcc-spacer {
        padding: 10px 0 10px 0;
    }

    .mcc-big-spacer {
        padding: 20px 0 20px 0;
    }

    .sezione-affiancata {
        flex-direction: column;
    }
    .testo-affiancato {
        order: 1;
    }
    .foto-affiancata {
        order: 2;
        margin-top: 20px;
    }
    .sezione-affiancata .foto-affiancata {
        display: none;
    }

    .section-content .heading {
        margin-top: 20px;
    }

    .blocco-affiancato {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .blocco-affiancato .colonna {
        width: 100%;
        max-width: 500px;

    }

    .icona-blocco {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }

    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 40px 20px;
    }

    .hero-side-gradient-sky-blue {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 20px;
        border-radius: 10px;
        background: linear-gradient(
                to top,
                rgba(68, 211, 220, 0.9) 0%,
                rgba(68, 211, 220, 0.5) 50%,
                rgba(68, 211, 220, 0) 100%
        );
        padding: 20px;
        box-sizing: border-box;
    }

    .hero-side-link img {
        max-height: 50px;
    }

    .hero-side-gradient-green {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 20px;
        border-radius: 10px;
        background: linear-gradient(
                to left,
                rgba(0, 180, 0, 0.9) 0%,
                rgba(0, 180, 0, 0.5) 40%,
                rgba(0, 180, 0, 0) 100%);
        padding: 20px;
        box-sizing: border-box;
    }

    .hero-side-gradient-red {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 20px;
        border-radius: 10px;
        background: linear-gradient(
                to left,
                rgba(200, 0, 0, 0.9) 0%,
                rgba(200, 0, 0, 0.5) 40%,
                rgba(200, 0, 0, 0) 100%
        );
        padding: 20px;
        box-sizing: border-box;
    }

    .logo-row {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .logo-item {
        flex: 1 1 30%; /* 3 loghi per riga circa */
        text-align: center;
    }

    .logo-item img {
        max-height: 60px;
    }

}

@media only screen and (max-width: 767px) {
    .scelta-servizio{
        flex-direction: column;
        height: auto;
    }

    .half {
        flex: none;
        width: 100%;
        height: auto;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 1.5rem;
        margin:0;
    }

    .scelta-servizio p{
        font-size: 1rem;
        margin:5px;
    }

    .servizio-button {
        min-width: 150px;
        min-height: 30px;
        font-size: 1rem;
    }

    .loghi-row {
        flex-wrap: wrap;
    }
    .loghi-row > div {
        flex: 1 1 100%; /* ogni logo occupa tutta la riga */
    }

    .docs-link {
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 599px) {
    .custom-card-grid {
        grid-template-columns: 1fr;
    }

    .checkBoxGroup {
       min-width: 100%;
    }

    .searchGroup {
        flex-direction: column;
    }

    .searchInput,
    .searchGroup button {
        width: 100%;
    }
}


@media only screen and (max-width: 576px) {
    .contatti-grid-persone {
        grid-template-columns: 1fr;
    }
}


@media only screen and (max-width: 524px) {
    .g-search {
        min-width: 100%;
        width: 100vw;
        padding: 4rem 2rem;
    }
}

@media  only screen and (max-width: 480px) {
    .news-card {
        flex-direction: column;
    }

    #card-ultime .news-card, #card-filtrate .news-card {
        flex-direction: unset;
    }

    #card-ultime .news-content h3, #card-filtrate .news-content h3 {
        font-size: .8rem;
    }

    #card-ultime .news-content p, #card-filtrate .news-content p {
        display: none;
    }

    .news-card-lastest {
        flex-direction: column;
    }

    .fascia-celeste .news-card-lastest,  .fascia-covid .news-card-lastest  {
        padding: 20px 20px 10px 20px;
    }


    .news-date {
        flex: none;
        border-right: none;
        border-bottom: 2px solid #0072CE;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 1rem 0 1rem 0;
    }

    .contatti {
        flex: 1 1 100%;
        text-align: center;
    }

    .icona-blocco {
        flex: 1 1 100%; /* 1 per riga */
        max-width: 100%;
    }

    .logofdg {
        min-height: auto;
    }
}


@media only screen and (max-width: 375px) {

    .swiper-content {
        padding-left: 1rem;
        justify-content: flex-start;
    }

    .slider-title {
        font-size: 2.4rem;
        line-height: 1;
    }

    .slider-text {
        font-size: 1.2rem;
    }

    .slider-cta {
        position: absolute;
        bottom: -.4rem;
        right: 1rem;
    }

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 3%;
    }
}


@media only screen and (max-width: 341px) {
    .header-text h1 a{
       font-size: 1rem;
    }
}

@media only screen and (max-width: 306px) {
    .header-text h1 a{
        font-size: .6rem;
    }
}

/******************************************* MEDIA QUERY MIN AND MANX WIDTH ********************************************/

@media only screen and (min-width: 1701px) and (max-width: 1920px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 4%;
    }

}

@media only screen and (min-width: 1601px) and (max-width: 1700px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 5.5%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 2.8rem;
        margin:0;
    }

}

@media only screen and (min-width: 1501px) and (max-width: 1600px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 6%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 2.6rem;
        margin:0;
    }

}

@media only screen and (min-width: 1351px) and (max-width: 1500px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 6.5%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 2.4rem;
        margin:0;
    }

}

@media only screen and (min-width: 1280px) and (max-width: 1350px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 6.5%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 2.4rem;
        margin:0;
    }

}

@media only screen and (min-width: 1201px) and (max-width: 1279px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 7%;
    }

}

@media only screen and (min-width: 1100px) and (max-width: 1200px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 7.7%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 2rem;
        margin:0;
    }

    .scelta-servizio p{
        font-size: 1.4rem;
        margin:5px;
    }

}

@media only screen and (min-width: 1024px) and (max-width: 1099px) {

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 8.5%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 1.8rem;
        margin:0;
    }

    .scelta-servizio p{
        font-size: 1.4rem;
        margin:5px;
    }

}

@media only screen and (min-width: 768px) and (max-width: 1023px) {

    .swiper-content {
        padding-left: 1rem;
        justify-content: center;
    }

    .slider-title {
        font-size: 3.4rem;
        line-height: 1;
    }

    .slider-text {
        font-size: 1.8rem;
    }

    .slider-cta {
        position: absolute;
        bottom: -.4rem;
        right: 1rem;
    }

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 1%;
    }

    .scelta-servizio h2, .section-content .heading h2 {
        font-size: 1.4rem;
    }

    .scelta-servizio p{
        font-size: 1rem;
        margin:5px;
    }

    .servizio-button {
        min-width: 150px;
        min-height: 30px;
        font-size: 1rem;
    }

    .loghi-row {
        flex-wrap: wrap;
    }
    .loghi-row > div {
        flex: 1 1 calc(33.333% - 20px);
    }
    .loghi-row > div:nth-child(4),
    .loghi-row > div:nth-child(5) {
        flex: 1 1 calc(50% - 20px);
    }

}



@media only screen and (min-width: 501px) and (max-width: 767px) {

    .swiper-content {
        padding-left: 1rem;
        justify-content: center;
    }

    .slider-title {
        font-size: 2.8rem;
        line-height: 1;
    }

    .slider-text {
        font-size: 1.6rem;
    }

    .slider-cta {
        position: absolute;
        bottom: -.4rem;
        right: 1rem;
    }

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 1%;
    }
}

@media only screen and (min-width: 376px) and (max-width: 500px) {

    .swiper-content {
        padding-left: 1rem;
        justify-content: center;
    }

    .slider-title {
        font-size: 2.4rem;
        line-height: 1;
    }

    .slider-text {
        font-size: 1.2rem;
    }

    .slider-cta {
        position: absolute;
        bottom: -.4rem;
        right: 1rem;
    }

    .swiper-pagination-slider.swiper-pagination-bullets {
        padding: 0 5% 1% 1%;
    }
}

/************************************************ MEDIA QUERY MIN WIDTH ************************************************/

@media (min-width: 1025px) {
    .footerList {
        flex: 1 1 22%;
    }
}

@media (min-width: 1024px) {
    .box-slider .swiper-wrapper {
        padding: 0;
    }
    .box-slider .swiper-pagination {
        display: none;
    }

    swiper-content {
        padding-left: 1rem;
        justify-content: center;
    }

    .slider-title {
        font-size: 3.4rem;
        line-height: 1;
    }

    .slider-text {
        font-size: 1.3rem;
    }
}

@media (min-width: 600px) {
    .searchInput {
        flex: 0 1 70%;
    }
    .searchGroup button {
        flex: 0 1 28%;
    }
}



