/* Lista con pallini neutri, coerente con Bootstrap */
.wrd-bullet-list .list-group-item {
    border: 0;
}

.wrd-bullet-list .wrd-bullet {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    margin-top: .55rem;
    /* allineamento verticale con il testo */
    flex: 0 0 .5rem;
}

.faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info-text);
    font-weight: 600;
    font-size: .95rem;
}

.wrd-list-style .fa-check,
.wrd-post-list .fa-check {
    color: #2E8481;
}

.wrd-post-list li i {
    top: 2px !important;
    height: 26px !important;
    line-height: 28px !important;
}

blockquote.blockquote-custom p {
    line-height: 1.3 !important;
    font-size: 18px !important;
}

.blockquote-footer-custom {
    margin-top: -1rem;
    font-size: .875em;
    color: #141324;
}

.blockquote-custom {
    margin-bottom: 1rem;
    font-size: 18px;
    color: #141324 !important;
}

.border-start-custom {
    border-left: 6px solid #f2b705 !important;
}


.blockquote-custom:before {
    color: #F4F9FC !important;
}

.btn-outline-primary-wp {
    color: green;
    border-color: green;
}

.btn-outline-primary-wp:hover {
    color: #ffffff;
    background-color: green;
    border-color: green;
}

.btn-outline-secondary-mail {
    color: #F2B705;
    border-color: #F2B705;
}

.btn-outline-secondary-mail:hover {
    color: #ffffff;
    background-color: #F2B705;
    border-color: #F2B705;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #f4f9fc;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: #f4f9fc;
}

/* Lista numerata “chip”: numeri più grandi + link puliti */
.wrd-numbered-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    counter-reset: num;
}

.wrd-numbered-list li {
    counter-increment: num;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .5rem 0;
}

.wrd-numbered-list li::before {
    content: counter(num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    background: var(--bs-primary-bg-subtle, rgba(13, 110, 253, .1));
    color: var(--bs-primary-text-emphasis, #0a58ca);
    font-weight: 700;
    font-size: 1.05rem;
}

.wrd-numbered-list a {
    color: inherit;
    text-decoration: none !important;
    /* niente sottolineatura */
}

.wrd-numbered-list a:hover {
    color: var(--bs-primary);
    /* solo all’hover */
    text-decoration: underline;
    /* sottolinea solo su hover */
    cursor: pointer;
}

.wrd-numbered-list a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 13, 110, 253), .2);
    border-radius: .25rem;
}

/* (opzionale) Se hai header sticky, evita che l’ancora finisca sotto l’header */
#capire-problemi,
#cosa-facciamo,
#testimonianze,
#costi-modalita,
#faq,
#consigli,
#contatti-cta {
    scroll-margin-top: 80px;
}

.bg-custom-info {
    background-color: #F4F9FC !important
}

/* FIX numerazione titoli */
.sanitrit-page {
    counter-reset: major-sec;
    /* inizializza il contatore */
    --wrd-num-size: 2.4rem;
    /* diametro del chip */
    --wrd-num-gap: 1.5rem;
    /* distanza numero ↔ testo */
}

.sanitrit-page .wrd-num-title {
    position: relative;
    /* NECESSARIO per posizionare ::before */
    padding-left: calc(var(--wrd-num-size) + var(--wrd-num-gap));
    overflow: visible;
    /* evita clipping in temi “stretti” */
}

.sanitrit-page .wrd-num-title::before {
    counter-increment: major-sec;
    content: counter(major-sec);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--wrd-num-size);
    height: var(--wrd-num-size);
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary-bg-subtle, rgba(13, 110, 253, .1));
    color: var(--bs-primary-text-emphasis, #0a58ca);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .04);
}


/* (opzionale) dimensioni leggermente più compatte su mobile */
@media (max-width: 575.98px) {
    .sanitrit-page .wrd-num-title {
        padding-left: 2.6rem;
    }

    .sanitrit-page .wrd-num-title::before {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1rem;
    }


}

.sfondo-scurito {
    position: relative;
    overflow: hidden;
}

.sfondo-scurito::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* Assicurati che il contenuto sia sopra l'overlay */
.sfondo-scurito>* {
    position: relative;
    z-index: 1;
}


.wrd-post-list-small li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
}

.wrd-post-list-small li i {
    background-color: #f4f9fc;
    display: inline-block;
    height: 20px;
    width: 20px;
    text-align: center;
    line-height: 20px;
    position: absolute;
    left: 0;
    top: 4px;
    transition: .3s;
    color: #F2B705;
}

/* Selettore Lingua */
.header-top-area .lang-switcher {
    position: relative;
}

/* Menu centrato rispetto al bottone */
.header-top-area .lang-switcher__menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 0;

    padding: 8px;
    list-style: none;

    background: #151515;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);

    display: none;
    z-index: 9999;

    /* ✅ layout più bello */
    min-width: 160px;
    display: none;

    /* ✅ griglia centrata */
    display: none;
    gap: 8px;
}

/* Mostra menu */
.header-top-area .lang-switcher:hover .lang-switcher__menu,
.header-top-area .lang-switcher:focus-within .lang-switcher__menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 lingue in riga */
    justify-items: center;
    align-items: center;
}

/* Ponte invisibile */
.header-top-area .lang-switcher::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

/* Ogni item: un "pulsante" quadrato centrato */
.header-top-area .lang-switcher__item {
    width: 36px;
    height: 32px;
    display: grid;
    place-items: center;

    padding: 0;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    line-height: 1;

    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
}

.header-top-area .lang-switcher__item:hover {
    background: #f7b500;
    border-color: #f7b500;
    color: #000;
}

.header-top-area .lang-switcher__item.is-active {
    outline: 2px solid rgba(247, 181, 0, .8);
    outline-offset: 2px;
}

/* Flag: dimensione coerente */
.header-top-area .lang-flag {
    font-size: 18px;
    line-height: 1;
}

/* Nascondi la voce lingua nel menu desktop */
#main-menu>li.lang-only-mobile {
    display: none;
}

/* Mostrala solo dentro il menu mobile (slicknav clona il menu) */
.slicknav_nav li.lang-only-mobile {
    display: block;
}


/* Accessibilità: testo solo per screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========= CREDITS ========= */
.footer-credits {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    opacity: 0.55;
    text-align: center;
    letter-spacing: 0.3px;
    transition: opacity .25s ease-in-out;
}

.footer-credits:hover {
    opacity: 0.75;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: color .3s ease;
}

/* Sottolineatura elegante on-hover (linea fine e animata) */
.footer-credits a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width .25s ease, left .25s ease;
}

.footer-credits a:hover::after {
    width: 100%;
    left: 0;
}

/* ========= CREDITS END ========= */

/* FLAG */
/* Contenitore del selettore lingua in topbar */
.header-top-social-icon .lang-switcher,
.header-top-social-icon .lang-switcher__btn {
    display: inline-flex !important;
    align-items: center !important;
}

/* Il bottone (globo + flag + freccia) */
.lang-switcher__btn {
    gap: 8px;
    line-height: 1;
    /* evita che il testo/line-height sposti l’icona */
    padding: 0;
    /* evita offset strani */
}

/* Centra anche le icone fontawesome */
.lang-switcher__btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Bandierina */
.lang-switcher__btn .lang-flag-img {
    display: block;
    width: 19px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
}

/* copy message */

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* PRELOADER */
.preloader img {
    max-width: 220px;
    width: 220px;
}

/* scroll to top */
/* scroll to top */
.scroll-to-top {
    display: flex;
    align-items: center;
    width: auto;
    height: 35px;
    background: transparent;
    position: fixed;
    bottom: 60px;
    left: -12px;
    /* ⬅️ SINISTRA */
    right: auto;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: rotate(-90deg);
    cursor: pointer;
    transition: all 0.2s ease;

    color: #2E8481;
    /* ⬅️ COLORE TESTO */
}

/* Barra esterna */
.scroll-to-top__wrapper {
    display: inline-block;
    width: 30px;
    height: 4px;
    background-color: #2E8481;
    position: relative;
    overflow: hidden;
}

/* Barra interna (progress) */
.scroll-to-top__inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    /* parte da 0 */
    height: 100%;
    background-color: #2E8481;
}

.scroll-to-top__text {
    display: inline;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-left: 10px;
}

/* Stato visibile */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    bottom: 70px;
}

/* Hover */
.scroll-to-top:hover {
    color: #2E8481;
}