﻿/* =========================================================
   BASE / GLOBAL
=========================================================== */

body {
    background: #f8f9fa;
    font-family: "Open Sans","Tahoma","Verdana","Arial",sans-serif;
}

/* CHECK BOX 24x24*/
    .form-check-input.checkbox-24 {
        appearance: none;
        -webkit-appearance: none;
        width: 24px !important;
        height: 24px !important;
        box-sizing: border-box;
        border: 2px solid #0d6efd;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
    }

    .checkbox-24::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .form-check-input.checkbox-24:checked::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 2px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
/* CHECK BOX 24x24*/


/* =========================================================
   LAYOUT & SPACING
=========================================================== */

.mgt70 {
    margin-top: 70px !important;
}

.mt-8rem {
    margin-top: 6rem;
}

.mw980 {
    max-width: 980px;
}

.maxw-1300 {
    max-width: 1300px;
}

.cursor-minh500 {
    cursor: pointer;
    min-height: 500px;
}

.maxh-40 {
    max-height: 40px;
}

.maxh-220-scroll {
    max-height: 220px;
    overflow-y: auto;
}


/* =========================================================
   GRID / BORDERS / STRUCTURE
=========================================================== */

.border-md-end {
    border-right: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    .border-md-end {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

.br-11 {
    border-radius: 11px;
}


/* =========================================================
   COLORS & TEXT
=========================================================== */

.blue50 {
    background: #1052BC;
    color: #fff;
}

.text-blue-1052 {
    color: #1052BC !important;
}

.text-grey80-h5 {
    color: var(--Grey-80, #343A40);
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.text-grey80-label {
    color: var(--Grey-80, #343A40);
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}


/* =========================================================
   PILL COMPONENTS
=========================================================== */

.pill-grey70 {
    background: var(--Grey-70, #495057);
    color: #fff;
    border-radius: 100px;
    padding: 4px 14px;
    display: inline-block;
    line-height: 1;
}

.pill-grey20 {
    border-radius: 100px;
    background: var(--Grey-20, #E9ECEF);
}

.pill-blue50 {
    background-color: var(--Blue-50, #1052BC) !important;
    color: white !important;
    border-radius: 100px;
}


/* =========================================================
   BUTTONS
=========================================================== */

.btn-outline-blue-1052 {
    color: #1052BC !important;
    border: 1px solid #1052BC !important;
    background-color: transparent !important;
}

    .btn-outline-blue-1052:hover,
    .btn-outline-blue-1052:focus,
    .btn-outline-blue-1052:active {
        color: #1052BC !important;
        background-color: transparent !important;
        border-color: #1052BC !important;
        box-shadow: none !important;
    }

.bg-blue-1052 {
    background-color: #1052BC !important;
    color: white !important;
}

    .bg-blue-1052:hover,
    .bg-blue-1052:focus,
    .bg-blue-1052:active {
        background-color: #1052BC !important;
        color: white !important;
    }

.btn-search-noblue,
.btn-search-white-1052 {
    background-color: white !important;
    border: 1px solid #1052BC !important;
    border-radius: 50px !important;
    height: 36px !important;
    max-width: 220px !important;
    color: #1052BC !important;
}

.btn-search-white-1052 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    cursor: pointer;
}

    .btn-search-noblue:hover,
    .btn-search-noblue:focus,
    .btn-search-noblue:active,
    .btn-search-white-1052:hover,
    .btn-search-white-1052:focus,
    .btn-search-white-1052:active,
    .btn-search-white-1052:visited {
        background-color: white !important;
        border-color: #1052BC !important;
        color: #1052BC !important;
        box-shadow: none !important;
    }

.adesioni-btn {
    background: #1052BC !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

    .adesioni-btn:hover,
    .adesioni-btn:focus {
        background: #1052BC !important;
        color: white !important;
        box-shadow: none !important;
    }


/* =========================================================
   IMAGES
=========================================================== */

.fixed-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.h180-cover {
    height: 180px;
    object-fit: cover;
}

.card-img-left {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

/* =========================================================
   COMPONENTS — SEARCH BAR (HEADER)
=========================================================== */

.search-wrap {
    position: relative;
    width: 100%;
    height: 38px;
    border: 1px solid #CED4DA;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.search-input {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 0.93rem;
    padding: 0 42px 0 12px;
    background: transparent;
    border-radius: 6px;
}

.search-btn-abs {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 100%;
    border: none;
    border-radius: 0 6px 6px 0;
    background: #1052BC;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .search-btn-abs:hover {
        background: #0b3f94;
    }

    .search-btn-abs i {
        font-size: 1rem;
    }

.search-input:focus {
    outline: 2px solid rgba(16, 82, 188, 0.25);
    outline-offset: 0;
}

.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}


/* =========================================================
   COMPONENTS — CARD EVIDENZA
=========================================================== */

.evidenza-card {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-btn {
    background-color: #1052BC;
    border-color: #1052BC;
    color: #fff;
}


/* =========================================================
   COMPONENTS — CARD INIZIATIVE HOME
=========================================================== */

.open-ambito {
    cursor: pointer;
}

.card-ambito {
    width: 302px;
    max-width: 302px;
    height: 252px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform .18s ease, box-shadow .18s ease;
}

.overlay-dark-75 {
    background: rgba(0,0,0,0.57);
}

.fs-105 {
    font-size: 1.05rem;
}

.fs-085 {
    font-size: 0.85rem;
}

.gap-6px {
    gap: 6px;
}

.size-155 {
    width: 15.5px;
    height: 15.5px;
}


/* =========================================================
   PAGINATION
=========================================================== */

.pagination {
    gap: 6px;
}

    .pagination .page-item .page-link {
        border: 1px solid #343a40;
        color: #1052BC;
        border-radius: 6px;
        padding: 6px 14px;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }

    .pagination .page-item.active .page-link {
        background-color: #1052BC;
        color: #fff;
        border-color: #1052BC;
        pointer-events: none;
    }

    .pagination .page-item.disabled .page-link {
        background-color: transparent;
        color: #999;
        border-color: #343a40;
        cursor: not-allowed;
    }

    .pagination .page-link:focus {
        box-shadow: none;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 6px 18px;
        font-weight: 600;
    }

    .pagination .page-item.disabled span.page-link {
        border: none;
        background: transparent;
        color: #666;
        cursor: default;
        padding: 6px 10px;
    }

@media (max-width: 576px) {
    .pagination .page-item .page-link {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}
/* =========================================================
   HEADER — RESPONSIVE CANONICO
=========================================================== */

/* ---------- DESKTOP (≥992px) ---------- */
@media (min-width: 992px) {
    #nav {
        display: flex !important;
    }

    .hamburger-areas {
        display: none !important;
    }

    #btnSearchToggle span {
        display: inline !important;
    }

    .shadow-bottom.fixed-top {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}

/* ---------- TABLET / MOBILE (<992px) ---------- */
@media (max-width: 991.98px) {
    #nav {
        display: none !important;
    }

    .hamburger-areas {
        display: block !important;
    }

    #btnSearchToggle span {
        display: none !important;
    }

    .shadow-bottom.fixed-top {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .maxh-40 {
        max-height: 32px;
    }

    header.d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    #btnSearchToggle {
        padding: 0 12px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center;
    }
}

/* ---------- MOBILE (<768px) ---------- */
@media (max-width: 767.98px) {
    #btnSearchToggle {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .bi-list {
        font-size: 2rem !important;
    }

    .maxh-40 {
        max-height: 28px;
    }
}

/* ---------- EXTRA SMALL (<480px) ---------- */
@media (max-width: 480px) {
    #navbarMenu .card-body a {
        padding: 8px 0 !important;
        font-size: 0.95rem;
    }

    header.d-flex {
        gap: 4px !important;
    }
}
/* Aree visibili solo su mobile */
.hamburger-areas {
    display: none;
}

@media (max-width: 991.98px) {
    .hamburger-areas {
        display: block;
    }
}

.hamburger-areas,
.hamburger-account {
    display: none;
}

@media (max-width: 991.98px) {
    .hamburger-areas,
    .hamburger-account {
        display: block;
    }
}

/* Nascondi login desktop su mobile */
@media (max-width: 991.98px) {
    .header-account-desktop {
        display: none !important;
    }
}
/* Disattiva totalmente hover/focus/active del bottone hamburger */
.btn-hamburger-clean,
.btn-hamburger-clean:focus,
.btn-hamburger-clean:hover,
.btn-hamburger-clean:active,
.btn-hamburger-clean:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    outline: none !important;
    border: none !important;
}

    /* Annulla stile Bootstrap :not(.collapsed) */
    .btn-hamburger-clean:not(.collapsed),
    .btn-hamburger-clean:not(.collapsed):hover,
    .btn-hamburger-clean:not(.collapsed):focus {
        background: transparent !important;
        color: #000 !important;
    }

    /* Blocca hover sugli <i> interni */
    .btn-hamburger-clean i,
    .btn-hamburger-clean:hover i,
    .btn-hamburger-clean:focus i,
    .btn-hamburger-clean:active i {
        color: #000 !important;
    }
/* --- SEZIONE ALIXTE --- */
.alixte-section {
    padding: 2.5rem 0;
}

.alixte-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: #fff;
}

/* Immagine */
.card-img-left {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

/* Testo */
.alixte-card .card-body {
    flex: 1;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alixte-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.alixte-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Bottoni pill */
.btn-pill {
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary.btn-pill {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary.btn-pill {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

/* --- CARD INIZIATIVE HOME --- */
.iniziativa-card {
    width: 100%;
    max-width: 302px;
    height: 252px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #000;
}

    .iniziativa-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }

    .iniziativa-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .iniziativa-card .card-img-overlay {
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: #fff;
        height: 100%;
        transition: background-color 0.3s ease;
    }

    .iniziativa-card:hover .card-img-overlay {
        background-color: rgba(0, 0, 0, 0.75);
    }

    .iniziativa-card h5 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .iniziativa-card span {
        font-size: 0.85rem;
    }

/* Layout principale: 4 card in fila fissa su desktop */
#iniziative-cards .d-flex {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

    #iniziative-cards .d-flex > div {
        flex: 0 0 302px; /* Larghezza fissa per card */
    }

/* --- MEDIA QUERIES --- */
@@media (max-width: 767.98px) {
    /* Alixte più compatta su mobile */
    .card-img-left {
        min-height: 200px;
    }

    .alixte-card .card-body {
        padding: 1rem;
    }
    /* Iniziative: solo su mobile si impilano */
    #iniziative-cards .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

        #iniziative-cards .d-flex > div {
            flex: 1 1 100%;
            max-width: 100%;
        }
}

.open-ambito {
    cursor: pointer;
}

.card-ambito {
    width: 302px;
    max-width: 302px;
    height: 252px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform .18s ease, box-shadow .18s ease;
}

.fs-105 {
    font-size: 1.05rem;
}

.fs-085 {
    font-size: 0.85rem;
}

.text-blue-1052 {
    color: #1052BC !important;
}

.gap-6px {
    gap: 6px;
}

.bg-blue-1052 {
    background-color: #1052BC !important;
    color: white !important;
}

    .bg-blue-1052:hover,
    .bg-blue-1052:focus,
    .bg-blue-1052:active {
        background-color: #1052BC !important;
        color: white !important;
    }

.size-155 {
    width: 15.5px;
    height: 15.5px;
}

.btn-outline-blue-1052 {
    color: #1052BC !important;
    border: 1px solid #1052BC !important;
    background-color: transparent !important;
}

    .btn-outline-blue-1052:hover,
    .btn-outline-blue-1052:focus,
    .btn-outline-blue-1052:active {
        color: #1052BC !important;
        background-color: transparent !important;
        border-color: #1052BC !important;
        box-shadow: none !important;
    }
.fixed-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Troncamento descrizione a 3 righe */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evidenza-card {
    height: 600px;
    display: flex;
    flex-direction: column;
}
/* --- Pulsante personalizzato (stesso blu delle frecce) --- */
/* --- Pulsante personalizzato (blu ALI) --- */
.custom-btn {
    background-color: #1052BC; /* blu principale */
    border-color: #1052BC;
    color: #fff;
    /*transition: all 0.25s ease;*/
}

/*.custom-btn:hover {
            background-color: #3c82ff;*/ /* blu più chiaro all’hover */
/*border-color: #3c82ff;
            transform: scale(1.03);
        }*/

/* --- Badge neutri (nessuno blu) --- */
.card-body .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

.card-body .bg-secondary {
    background-color: #6c757d !important; /* grigio standard Bootstrap */
    color: #fff !important;
}

.card-body .bg-light {
    background-color: #e9ecef !important; /* grigio chiaro neutro */
    color: #000 !important;
}

.blue50 {
    background: #1052BC;
    color: #fff;
}

.btn:hover,
.btn:focus,
.btn:active {
    color: #fff !important;
    background-color: #1052BC !important;
}

maxw-1300 {
    max-width: 1300px;
}

/*AREA SOCI */

.area-soci-container {
    font-family: "Open Sans";
    background: var(--Grey-10, #F8F9FA);
    border-top: 2px solid #E9EAEB;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 100px
}

.row-container {
    padding-left: 2rem;
    padding-right: 2rem;
  /*  width: 1440px;
    height: 3173px;*/
    background: var(--Grey-10, #F8F9FA);
}

.margin-sezioni {
    margin-top: 15px;
}

.semibold-h5 {
    color: var(--Grey-70, #495057);
    /* H5/SemiBold */
    font-family: "Open Sans";
    font-size: 1.25rem;
/*    font-size: 20px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 28px */
}

.regular-h2 {
    color: var(--Grey-70, #495057);
    /* H2/Regular */
    font-family: "Open Sans";
    font-size: 2rem;
    /*font-size: 32px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 38.4px */
}

.semibold-h2 {
    color: var(--Grey-80, #343A40);
    /* H2/SemiBold */
    font-family: "Open Sans";
    font-size: 2rem;
/*    font-size: 32px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 38.4px */
}

.text-grey80-h4 {
    color: var(--Grey-80, #343A40);
    /* H4/SemiBold */
    font-family: "Open Sans";
    font-size: 1.5rem;
/*    font-size: 24px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
}


.btn-esci {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 14px 16px;
    border-radius: 100px;
    background: var(--Grey-20, #E9ECEF);
    color: var(--Grey-80, #343A40);
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-weight: 600;
    line-height: 100%;
    width: auto !important;
}

.btn-esci-icon {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
    aspect-ratio: 11/8;
    fill: var(--Grey-80, #343A40);
}


.consiglio-container {
    padding: 24px; 
    border-radius: 24px;
    border: 1px solid var(--Grey-20, #E9ECEF);
    background: var(--Basic-White, #FFF);
}


.labelmedium-regular {
    color: var(--Grey-70, #495057);
    /* Label Medium/Regular */
    font-family: "Open Sans";
    font-size: 1rem;
/*    font-size: 16px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 16px */
}


.semibold-h4 {
    color: var(--Grey-80, #343A40);
    /* H4/SemiBold */
    font-family: "Open Sans";
    font-size: 1.5rem;
/*    font-size: 24px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
}

.link-text {
    color: var(--Blue-50, #1052BC);
    /* Label Big/SemiBold */
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
    text-decoration: none;
}


/*ADESIONI*/

.storico-adesioni-h4 {
    color: var(--Grey-80, #343A40);
    /* H4/SemiBold */
    font-size: 1.5rem;
/*    font-size: 24px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
    margin-bottom: 25px;
}

.adesione-titolo {
    color: var(--Grey-80, #343A40);
    /* p big/SemiBold */
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 27px */
    margin: 0;
}


.status-icon {
    width: 10px;
    height: 10px;
}

.icon-green {
    color: #198754;
}

.icon-red {
    color: #DC3545;
}

.icon-yellow {
    color: #FFC107;
}

.adesione-container {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--Grey-40, #CED4DA);
    background: var(--Grey-10, #F8F9FA);
    margin-bottom: 15px;
}


.azioni-container{
    gap:10px;
}

.blue-btn {
    height: 46px;
    padding: 14px 16px;
    border-radius: 100px;
    /*    border-radius:20px;*/
    border: 2px solid var(--Blue-50, #1052BC);
    color: var(--Blue-50, #1052BC);
    /* Label Big/SemiBold */
    font-family: "Open Sans";
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
    background-color: white;
}


.hr-adesione {
    background-color: #CED4DA;
    height: 1px;
    margin: 10px 0;
}


/*PROFILO PERSONALE*/
.profilo-container {
    border-radius: 24px;
    border: 1px solid var(--Grey-40, #CED4DA);
    background: var(--Grey-10, #F8F9FA);
    padding: 24px;
    margin-bottom: 20px;
    /*padding-left: 15px;
    padding-top: 15px*/
}


.profilo {
    margin-left: 0;
    margin-right: 0;
    background: var(--Grey-10, #F8F9FA);
}

.white-container-grey20 {
    padding: 32px 24px;
    /* padding: 20px;*/
    border-radius: 24px;
    border: 1px solid var(--Grey-20, #E9ECEF);
    background: var(--Basic-White, #FFF);
}

.profilo-container .labelbig-regular {
    margin-bottom: 8px;
}

.profilo-container p {
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
}

.profilo-container .col {
    min-width: 0;
}

/*NUCLEO FAMIGLIARE*/
.grey-container {
    border-radius: 16px;
    border: 1px solid var(--Grey-40, #CED4DA);
    background: var(--Grey-10, #F8F9FA);
    padding: 16px;
}

.icon-div {
    flex-shrink: 0;
    height: 44px;
    width: 44px;
    border-radius: 100px;
    background: var(--Grey-20, #E9ECEF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.white-container-grey40 {
    border-radius: 24px;
    border: 1px solid var(--Grey-40, #CED4DA);
    background: var(--Basic-White, #FFF);
    padding: 32px 24px;
}


.labelbig-semibold {
    color: var(--Grey-80, #343A40);
    /* Label Big/SemiBold */
    font-family: "Open Sans";
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
}

.labelbig-regular-status {
    color: var(--Grey-80, #343A40);
    /* Label Medium/Regular */
    font-family: "Open Sans";
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 16px */
}

.labelbig-regular-data {
    color: var(--Grey-70, #495057);
    /* Label Medium/Regular */
    font-family: "Open Sans";
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 16px */
}



.labelmedium-semibold {
    color: var(--Blue-50, #1052BC);
    /* Label Medium/SemiBold */
    font-family: "Open Sans";
    font-size: 1rem;
/*    font-size: 16px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 16px */
}

.ticket-greycontainer {
    border-radius: 16px;
    border: 1px solid var(--Grey-40, #CED4DA);
    background: var(--Grey-10, #F8F9FA);
    padding: 24px;
   /* padding: 15px;*/
    margin-bottom: 10px;
}


.hr-ticket {
    background-color: #CED4DA;
    height: 1px;
    margin: 10px auto;
    width: 90%;
}

.ticket-btn {
    border-radius: 100px;
    background: var(--Grey-20, #E9ECEF);
    color: var(--Grey-80, #343A40);
    display: flex;
    height: 46px;
    padding: 14px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Label Big/SemiBold */
    font-family: "Open Sans";
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
}

/* =========================================================
   PAGINA ISCRIZIONE BENEFICIARIO
=========================================================== */

/* Container principale */
.iscrizione-beneficiario-container {
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1400px;
}

/* Bottone torna indietro */
.btn-torna-area {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    padding: 8px 16px;
}

.btn-torna-area:hover {
    background-color: #d8dbdd;
}

/* Titoli */
.titolo-iscrizione {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 12px;
}

.sottotitolo-iscrizione {
    font-size: 1rem;
/*    font-size: 16px;*/
    max-width: 850px;
    color: #6c757d;
    margin-bottom: 24px;
}

/* Form container */
.form-container-iscrizione {
    background-color: white;
    border: 1px solid #bcc5cf;
    border-radius: 12px;
    padding: 32px;
}

/* Stili per i campi del form - APPLICA a tutti gli input */
.form-container-iscrizione .form-control {
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    padding: 12px;
}

.form-container-iscrizione .form-control:focus {
    border-color: #1052BC;
    box-shadow: 0 0 0 0.2rem rgba(16, 82, 188, 0.25);
}

/* Gruppo input con icona */
.input-group-iscrizione .form-control {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.input-group-iscrizione .input-group-text {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Alert informativo */
.alert-info-iscrizione {
    background-color: #ECF3FD;
    color: #0D4296;
    border-radius: 8px;
    border-left: 4px solid #0D4296;
    padding: 16px;
}

/* Sezione autorizzazione */
.sezione-autorizzazione {
    background-color: #F8F9FA;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 24px;
}

/* Sezione documento */
.sezione-documento {
    background-color: #F8F9FA;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 24px;
}

/* Link privacy */
.link-privacy {
    color: #0D4296;
    text-decoration: none;
    font-weight: 600;
}

.link-privacy:hover {
    text-decoration: underline;
}

/* Bottoni azione */
.form-container-iscrizione .btn-annulla-iscrizione {
    background-color: #E9ECEE !important;
    border-radius: 20px !important;
    color: black !important;
    padding: 10px 32px !important;
    font-weight: 600 !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
}

.form-container-iscrizione .btn-annulla-iscrizione:hover {
    background-color: #d8dbdd !important;
    color: black !important;
    text-decoration: none !important;
}

.form-container-iscrizione .btn-conferma-iscrizione {
    background-color: #1052BC !important;
    border-radius: 20px !important;
    color: white !important;
    padding: 10px 32px !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
}

.form-container-iscrizione .btn-conferma-iscrizione:hover {
    background-color: #0b3f94 !important;
    color: white !important;
}

/* Provincia readonly */
.provincia-readonly {
    background-color: #f8f9fa;
}

/* Validazione */
.form-container-iscrizione .is-invalid {
    border-color: #dc3545;
}

.form-container-iscrizione .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 0.875rem;
/*    font-size: 14px;*/
    color: #dc3545;
}

/* Z-index per datepicker */
.datepicker {
    z-index: 9999 !important;
}

.datepicker-dropdown {
    z-index: 9999 !important;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000 !important;
}

/* =========================================================
   PAGINA ISCRIZIONE SEZIONE
=========================================================== */

/* Container principale */
.iscrizione-sezione-container {
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 40px;
    text-align: start;
}

/* Bottone torna indietro */
.btn-torna-areasoci {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

    .btn-torna-areasoci:hover {
        background-color: #d8dbdd;
        color: black;
    }

/* Titoli */
.titolo-iscrizione-sezione {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 24px;
}

.sottotitolo-iscrizione-sezione {
    font-size: 1.5rem;
/*    font-size: 24px;*/
    font-weight: 600;
    margin-bottom: 24px;
}

/* Form container */
.form-container-sezione {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Dropdown personalizzati */
.dropdown-sezione {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #D9D9D9;
}

    .dropdown-sezione:focus {
        border-color: #1052BC;
        box-shadow: 0 0 0 0.2rem rgba(16, 82, 188, 0.25);
    }

/* Sezione quote */
.sezione-quote {
    background-color: #F8F9FA;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.quota-associativa {
    font-weight: 600;
    margin-bottom: 8px;
}

.quota-familiare {
    margin-bottom: 8px;
}

.quota-altro-beneficiario {
    margin-bottom: 0;
}

/* Box info */
.box-info-iscrizione {
    background-color: #ECF3FD;
    color: #0D4296;
    border-radius: 8px;
    border-left: 4px solid #0D4296;
    padding: 20px 25px;
    margin-top: 30px;
}

/* Bottone conferma */
.btn-conferma-iscrizione-sezione {
    background-color: #2360C1;
    color: white;
    border-radius: 20px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    margin-top: 30px;
}

    .btn-conferma-iscrizione-sezione:hover {
        background-color: #1d4e9e;
        color: white;
    }

    .btn-conferma-iscrizione-sezione:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

/* Alert errori */
.alert-error-iscrizione {
    margin-bottom: 24px;
}

    .alert-error-iscrizione i {
        margin-right: 8px;
    }

/* Label form */
.label-form-sezione {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Messaggi validazione */
.text-validation-error {
    font-size: 0.875rem;
/*    font-size: 14px;*/
    color: #dc3545;
}

/* Spinner per processing */
.spinner-processing {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}



/* =========================================================
   PAGINA STAMPA TESSERA
=========================================================== */

/* Stili per la stampa */
@media print {
    body * {
        visibility: hidden !important;
    }

    #tessera-da-stampare,
    #tessera-da-stampare * {
        visibility: visible !important;
    }

    #tessera-da-stampare {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 32px !important;
        border: 2px solid #D6D9DD !important;
        border-radius: 16px !important;
        background: #FFFFFF !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .btn, .back-btn, h2, h5.text-secondary {
        display: none !important;
    }
    .text-secondary {
        color: #495057 !important;
    }
}

/* Container principale pagina */
.tessera-page-container {
    padding-top: 100px;
    padding-left: 15px;
}

/* Bottone torna indietro */
.btn-torna-tessera {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

    .btn-torna-tessera:hover {
        background-color: #d8dbdd;
        color: black;
    }

/* Titoli pagina */
.titolo-stampa-tessera {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 12px;
}

.sottotitolo-stampa-tessera {
    color: #6c757d;
    font-size: 1.125rem;
/*    font-size: 18px;*/
    margin-bottom: 32px;
}

/* Container tessera */
.tessera-container {
    max-width: 780px;
    margin: 0 auto;
}

/* Tessera stampabile */
.tessera-stampabile {
    border: 2px solid #D6D9DD;
    border-radius: 16px;
    padding: 32px 36px;
    background: #FFFFFF;
    margin-top: 32px;
}

/* Intestazione tessera */
.tessera-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tessera-logo {
    height: 82px;
}

.tessera-year {
    font-size: 2.75rem;
/*    font-size: 44px;*/
    font-weight: 600;
    color: #7A7F84;
    margin-top: 8px;
}

/* Corpo tessera */
.tessera-body {
    margin-top: 32px;
    padding-left: 4px;
}

.tessera-name {
    margin: 0;
    font-size: 1.625rem;
/*    font-size: 26px;*/
    font-weight: 600;
    color: #2F3336;
}

.tessera-cf {
    margin-top: 16px;
    font-size: 1.25rem;
/*    font-size: 20px;*/
    color: #5A5E61;
    letter-spacing: 0.5px;
}

.tessera-num {
    margin-top: 26px;
    font-size: 1.125rem;
/*    font-size: 18px;*/
    color: #5A5E61;
}

/* Bottone stampa */
.btn-stampa-tessera {
    background-color: #2360C1;
    color: white;
    border-radius: 30px;
    padding: 12px 26px;
    border: none;
    font-size: 1.125rem;
/*    font-size: 18px;*/
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-stampa-tessera:hover {
        background-color: #1d4e9e;
        color: white;
    }

    .btn-stampa-tessera i {
        margin-right: 8px;
    }

/* Allineamento pulsante */
.stampa-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Layout responsive */
@media (max-width: 768px) {
    .tessera-page-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tessera-stampable {
        padding: 24px;
    }

    .tessera-logo {
        height: 60px;
    }

    .tessera-year {
        font-size: 2.25rem;
/*        font-size: 36px;*/
    }

    .tessera-name {
        font-size: 1.375rem;
/*        font-size: 22px;*/
    }

    .tessera-cf {
        font-size: 1.125rem;
/*        font-size: 18px;*/
    }
}


/* Versione mobile della tessera */
@media (max-width: 576px) {
    .tessera-page-container {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .tessera-container {
        max-width: 100%;
    }

    .tessera-stampabile {
        padding: 20px;
    }

    .tessera-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tessera-logo {
        height: 50px;
    }

    .tessera-year {
        font-size: 2rem;
/*        font-size: 32px;*/
        margin-top: 0;
    }

    .tessera-name {
        font-size: 1.25rem;
/*        font-size: 20px;*/
    }

    .tessera-cf {
        font-size: 1rem;
/*        font-size: 16px;*/
        margin-top: 12px;
    }

    .tessera-num {
        font-size: 1rem;
/*        font-size: 16px;*/
        margin-top: 20px;
    }

    .btn-stampa-tessera {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
/*        font-size: 16px;*/
    }

    .col-md-2 {
        display: none;
    }

    .col-md-8 {
        width: 100%;
        max-width: 100%;
    }
}
/* =========================================================
   PAGINA RIEPILOGO ANNO QUOTE CONTRIBUTI
=========================================================== */

/* Container principale pagina */
.riepilogo-quote-container {
    padding-top: 100px;
    padding-left: 15px;
}

/* Bottone torna indietro */
.btn-torna-riepilogo {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

    .btn-torna-riepilogo:hover {
        background-color: #d8dbdd;
        color: black;
    }

/* Titoli pagina */
.titolo-riepilogo-quote {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 12px;
}

/* Card container */
.card-riepilogo {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Sottotitoli card */
.sottotitolo-card-riepilogo {
    font-size: 1.5rem;
/*    font-size: 24px;*/
    font-weight: 600;
    margin-bottom: 16px;
}

/* Box dati socio */
.box-dati-socio {
    background-color: #F8F9FA;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.label-dato-socio {
    color: #6c757d;
    font-size: 0.875rem;
/*    font-size: 14px;*/
    margin-bottom: 4px;
}

.valore-dato-socio {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 16px;
}

/* Selettore anno */
.select-anno-riepilogo {
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    padding: 10px;
}

    .select-anno-riepilogo:focus {
        border-color: #1052BC;
        box-shadow: 0 0 0 0.2rem rgba(16, 82, 188, 0.25);
    }

/* Box totali */
.box-totale {
    background-color: #F8F9FA;
    border-radius: 10px;
    border: 1px solid #E9EAEB;
    padding: 12px;
}

.label-totale {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.valore-totale-principale {
    font-weight: 700;
    font-size: 1.5rem;
/*    font-size: 24px;*/
    margin-bottom: 8px;
    color: #2F3336;
}

.valore-totale-secondario {
    font-weight: 600;
    font-size: 1.125rem;
/*    font-size: 18px;*/
    margin-bottom: 0;
    color: #2F3336;
}

/* Tabella dettaglio movimenti */
.tabella-movimenti {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    .tabella-movimenti thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        border: 1px solid #dee2e6;
        padding: 12px 8px;
        text-align: center;
        vertical-align: middle;
    }

    .tabella-movimenti tbody td {
        border: 1px solid #dee2e6;
        padding: 12px 8px;
        vertical-align: middle;
    }

/* Colonne specifiche tabella */
.col-tipologia {
    width: 20%;
    text-align: center;
}

.col-data-evento {
    width: 9%;
    text-align: center;
}

.col-data-valuta {
    width: 9%;
    text-align: center;
}

.col-descrizione {
    width: 38%;
    text-align: center;
}

.col-addebiti {
    width: 12%;
    text-align: right;
}

.col-accrediti {
    width: 12%;
    text-align: right;
}

/* Messaggio nessun pagamento */
.messaggio-nessun-pagamento {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.testo-nessun-pagamento {
    color: #6c757d;
    margin-bottom: 0;
}

/* Loader per AJAX */
.loading-riepilogo {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

    .loading-riepilogo::after {
        content: "Caricamento...";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 10px 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        font-weight: 600;
        z-index: 1000;
    }

/* Hidden fields */
.hidden-field {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .riepilogo-quote-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-riepilogo {
        padding: 16px;
    }

    .box-totale {
        margin-bottom: 16px;
    }

    .valore-totale-principale {
        font-size: 1.25rem;
/*        font-size: 20px;*/
    }

    .valore-totale-secondario {
        font-size: 1rem;
/*        font-size: 16px;*/
    }

    .tabella-movimenti thead th,
    .tabella-movimenti tbody td {
        padding: 8px 4px;
        font-size: 0.875rem;
/*        font-size: 14px;*/
    }
}

@media (max-width: 576px) {
    .col-md-2 {
        display: none;
    }

    .col-md-8 {
        width: 100%;
        max-width: 100%;
    }

    .box-dati-socio {
        margin-bottom: 12px;
    }
}

.tabella-movimenti tbody tr:hover {
    background-color: #f8f9fa;
}

.tabella-movimenti tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Animazione per il cambio anno */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#dettaglio-movimenti-container > div {
    animation: fadeIn 0.3s ease-in-out;
}

/* Stile per importi */
.importo-addebito {
    color: #dc3545;
    font-weight: 600;
}

.importo-accredito {
    color: #198754;
    font-weight: 600;
}

/* Spinner personalizzato */
.spinner-riepilogo {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-riepilogo .75s linear infinite;
}

@keyframes spinner-riepilogo {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   PAGINA ISCRIZIONE BENEFICIARIO (LISTA BENEFICIARI)
=========================================================== */

/* Container principale pagina */
.iscrizione-beneficiario-container {
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 40px;
    font-family: "Open Sans", sans-serif;
}

/* Bottone torna indietro */
.btn-torna-iscrizione-beneficiario {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

    .btn-torna-iscrizione-beneficiario:hover {
        background-color: #d8dbdd;
        color: black;
    }

/* Titoli pagina */
.titolo-beneficiari {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 12px;
    color: #343A40;
}

/* Bottone iscrivi nuovo beneficiario */
.btn-nuovo-beneficiario {
    color: #2360C1;
    border-radius: 20px;
    border: 2px solid #2360C1;
    background-color: transparent;
    font-weight: 600;
    padding: 8px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 40px;
}

    .btn-nuovo-beneficiario:hover {
        background-color: rgba(35, 96, 193, 0.1);
        color: #2360C1;
        text-decoration: none;
    }

/* Tabella beneficiari */
.tabella-beneficiari {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 16px;
}

    .tabella-beneficiari thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        border: 1px solid #dee2e6;
        padding: 12px 8px;
        text-align: center;
        vertical-align: middle;
        color: #343A40;
    }

    .tabella-beneficiari tbody td {
        border: 1px solid #dee2e6;
        padding: 12px 8px;
        vertical-align: middle;
    }

/* Colonne specifiche tabella beneficiari */
.col-nome-beneficiario {
    width: 25%;
    text-align: center;
}

.col-codice-fiscale {
    width: 20%;
    text-align: center;
}

.col-sesso {
    width: 10%;
    text-align: center;
}

.col-data-nascita {
    width: 15%;
    text-align: center;
}

.col-stato {
    width: 30%;
    text-align: center;
}

/* Effetti hover sulle righe della tabella */
.tabella-beneficiari tbody tr:hover {
    background-color: #f8f9fa;
}

.tabella-beneficiari tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Testo piccolo per dettagli aggiuntivi */
.fs-7 {
    font-size: 0.85rem;
}

/* Messaggio nessun beneficiario */
.messaggio-nessun-beneficiario {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 32px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.testo-nessun-beneficiario {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1rem;
/*    font-size: 16px;*/
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iscrizione-beneficiario-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .titolo-beneficiari {
        font-size: 1.75rem;
/*        font-size: 28px;*/
    }

    .btn-nuovo-beneficiario {
        padding: 8px 16px;
        font-size: 0.875rem;
/*        font-size: 14px;*/
        height: 36px;
    }

    .tabella-beneficiari thead th,
    .tabella-beneficiari tbody td {
        padding: 8px 4px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .iscrizione-beneficiario-container {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .titolo-beneficiari {
        font-size: 1.5rem;
/*        font-size: 24px;*/
    }

    .btn-torna-iscrizione-beneficiario {
        padding: 6px 12px;
        font-size: 0.875rem;
/*        font-size: 14px;*/
    }

    .btn-nuovo-beneficiario {
        width: 100%;
        margin-top: 16px;
    }

    /* Per tabelle su mobile */
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow-x: auto;
    }

    .tabella-beneficiari {
        min-width: 700px; /* Forza scroll orizzontale su mobile */
    }

    .messaggio-nessun-beneficiario {
        padding: 24px 16px;
    }
}

/* Stili per stati attivi/non attivi */
.stato-attivo {
    color: #198754;
    font-weight: 600;
}

.stato-non-attivo {
    color: #6c757d;
    font-style: italic;
}

.stato-disattivazione {
    color: #dc3545;
    font-weight: 600;
}

/* =========================================================
   PAGINA DETTAGLIO INIZIATIVE IN PAGAMENTO
=========================================================== */

/* Container principale pagina */
.dettaglio-iniziative-container {
    padding-top: 100px;
    padding-left: 15px;
}

/* Bottone torna indietro */
.btn-torna-iniziative {
    background-color: #E9ECEE;
    border-radius: 20px;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

    .btn-torna-iniziative:hover {
        background-color: #d8dbdd;
        color: black;
    }

/* Titoli pagina */
.titolo-dettaglio-iniziative {
    font-size: 2rem;
/*    font-size: 32px;*/
    font-weight: 700;
    margin-bottom: 12px;
    color: #2F3336;
}

/* Card container */
.card-dettaglio-iniziative {
    background-color: white;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

/* Header card */
.card-header-iniziative {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E9EAEB;
}

.card-titolo-iniziative {
    font-size: 1.25rem;
/*    font-size: 20px;*/
    font-weight: 600;
    color: #2F3336;
    margin: 0;
}

.card-contatore {
    background-color: #2360C1;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
/*    font-size: 14px;*/
    font-weight: 600;
}

/* Box dati socio */
.box-dati-iniziative {
    background-color: #F8F9FA;
    border: 1px solid #E9EAEB;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.label-dato-iniziative {
    color: #495057;
    /*color: #6c757d;*/    
    font-size: 0.875rem;
    /*    font-size: 14px;*/
    margin-bottom: 4px;
}

.valore-dato-iniziative {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
/*    font-size: 16px;*/
    color: #2F3336;
}

/* Messaggio nessun dato */
.messaggio-nessun-dato {
    color: #6c757d;
    margin-bottom: 0;
    font-style: italic;
}

/* =========================================================
   TABELLA ADESIONI
=========================================================== */

.tabella-adesioni {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .tabella-adesioni thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
        padding: 12px 8px;
        text-align: left;
        vertical-align: middle;
    }

    .tabella-adesioni tbody td {
        border-bottom: 1px solid #e9ecef;
        padding: 12px 8px;
        vertical-align: middle;
    }

    .tabella-adesioni tbody tr:hover {
        background-color: #f8f9fa;
    }

/* Colonne tabella adesioni */
.col-titolo {
    width: 50%;
}

.col-data {
    width: 50%;
}

/* Stili contenuto celle adesioni */
.titolo-adesione {
    font-weight: 500;
    color: #2F3336;
    font-size: 0.9375rem;
/*    font-size: 15px;*/
}

.data-adesione {
    color: #6c757d;
    font-size: 0.875rem;
/*    font-size: 14px;*/
}

/* =========================================================
   TABELLA MOVIMENTI
=========================================================== */

.tabella-movimenti {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .tabella-movimenti thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
        padding: 12px 8px;
        text-align: left;
        vertical-align: middle;
    }

    .tabella-movimenti tbody td {
        border-bottom: 1px solid #e9ecef;
        padding: 12px 8px;
        vertical-align: middle;
    }

    .tabella-movimenti tbody tr:hover {
        background-color: #f8f9fa;
    }

/* Colonne tabella movimenti */
.col-data-valuta {
    width: 15%;
}

.col-descrizione {
    width: 50%;
}

.col-addebiti {
    width: 17.5%;
    text-align: right;
}

.col-accrediti {
    width: 17.5%;
    text-align: right;
}

/* Stili contenuto celle movimenti */
.data-movimento {
    color: #6c757d;
    font-size: 14px;
}

.descrizione-movimento {
    font-size: 14px;
    line-height: 1.4;
}

.addebiti-movimento,
.accrediti-movimento {
    font-size: 0.875rem;
/*    font-size: 14px;*/
    text-align: right;
}

/* Importi movimenti */
.importo-addebito {
    color: #dc3545;
    font-weight: 600;
}

.importo-accredito {
    color: #198754;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE DESIGN
=========================================================== */

@media (max-width: 992px) {
    .dettaglio-iniziative-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-dettaglio-iniziative {
        padding: 16px;
    }

    .col-titolo {
        width: 60%;
    }

    .col-data {
        width: 40%;
    }

    .col-data-valuta {
        width: 18%;
    }

    .col-descrizione {
        width: 44%;
    }

    .col-addebiti {
        width: 19%;
    }

    .col-accrediti {
        width: 19%;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow-x: auto;
    }

    .tabella-adesioni,
    .tabella-movimenti {
        font-size: 0.875rem;
/*        font-size: 14px;*/
        min-width: 600px;
    }

    .card-contatore {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
/*        font-size: 12px;*/
    }

    .tabella-movimenti {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .dettaglio-iniziative-container {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .titolo-dettaglio-iniziative {
        font-size: 1.5rem;
/*        font-size: 24px;*/
    }

    .card-titolo-iniziative {
        font-size: 1.125rem;
/*        font-size: 18px;*/
    }

    .col-md-2 {
        display: none;
    }

    .col-md-8 {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .tabella-movimenti {
        font-size: 0.8125rem;
/*        font-size: 13px;*/
    }

    .descrizione-movimento {
        font-size: 0.8125rem;
/*        font-size: 13px;*/
    }

    .addebiti-movimento,
    .accrediti-movimento {
        font-size: 0.8125rem;
/*        font-size: 13px;*/
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
        FOCUS VISIBILE GLOBALE
 ========================= */

/* Base: nessun outline Bootstrap */
button:focus,
a:focus {
    outline: none;
}

/* BOTTONI E LINK-STILE-BOTTONI */
.btn:focus,
.btn:focus-visible,
a.btn:focus,
a.btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(16, 82, 188, 0.85) !important;
    outline: none !important;
}

/* Blocca Bootstrap che schiarisce i colori */
.btn:focus,
.btn:focus-visible,
.btn:active {
    background-color: inherit !important;
    color: inherit !important;
}

/* HAMBURGER / ICON BUTTON */
.btn-hamburger-clean:focus,
.btn-hamburger-clean:focus-visible {
    box-shadow: 0 0 0 4px rgba(16, 82, 188, 0.85) !important;
    border-radius: 6px;
}
/* CARD / ELEMENTI CLICCABILI */
.card a:focus-visible,
.card button:focus-visible {
    box-shadow: 0 0 0 4px rgba(16, 82, 188, 0.85);
    border-radius: 12px;
}

/* =========================
   CAROUSEL INDICATORS PULITI
   ========================= */

/* Stato normale */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #495057;
    border: none;
    opacity: 1;
}

/* Stato attivo */
.carousel-indicators.active {
    width: 32px;
    border-radius: 6px;
    background-color: #1052BC;
}

/* Focus visibile (accessibilità) */
.carousel-indicators button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 82, 188, 0.85);
}

/* Focus visibile per tutti i bottoni personalizzati */
.btn-search-white-1052:focus-visible,
.btn-search-white-1052:focus {
    outline: none !important; /* rimuove outline di default */
    box-shadow: 0 0 0 3px rgba(16, 82, 188, 0.9) !important; /* rettangolo azzurro visibile */
    border-radius: 8px; /* arrotondato come il bottone */
    background-color: #fff !important; /* mantiene lo sfondo */
    z-index: 10; /* assicura che l’ombra sia sopra altri elementi */
}

/* Focus visibile su <a role="button"> e button */
a[role="button"]:focus-visible, button:focus-visible {
    outline: none;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(16, 82, 188, 0.85);
    border-radius: 6px; /* o 8px se vuoi più arrotondato */
    z-index: 10;
}

a[role="button"] {
    position: relative; /* necessario per box-shadow */
    display: inline-block; /* evita problemi di dimensioni */
    z-index: 1; /* sotto il focus */
}

    a[role="button"]:focus-visible::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border: 3px solid rgba(16, 82, 188, 0.85);
        border-radius: 12px; /* arrotondamento come la card */
        pointer-events: none;
        z-index: 9999;
    }

/* =========================
   Focus visibile solo per le frecce del carousel
   ========================= */
.carousel-arrow.prev,
.carousel-arrow.next {
    position: relative;
    z-index: 20; /* sopra tutto */
    background-color: transparent;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    /* Focus visibile */
    .carousel-arrow.prev:focus-visible,
    .carousel-arrow.next:focus-visible {
        outline: none;
    }

        .carousel-arrow.prev:focus-visible::after,
        .carousel-arrow.next:focus-visible::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border: 3px solid rgba(16, 82, 188, 0.85);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
        }

/* Evita che le frecce vengano tagliate */
.territorio-carousel .d-flex.justify-content-center {
    overflow: visible;
}

/* Focus visibile per link del footer */
/* =========================
   Focus visibile link footer
   ========================= */
/* FOOTER - FOCUS VISIBILE */
.footer-column-small a,
.footer-column-small a[role="button"] {
    position: relative; /* necessario per il box-shadow */
    display: inline-block;
}

/* Focus visibile */
.footer-column-small a:focus-visible,
.footer-column-small a[role="button"]:focus-visible {
    outline: none; /* rimuove outline predefinito */
    box-shadow: 0 0 0 3px rgba(16, 82, 188, 0.9); /* bordo azzurro */
    background-color: rgba(16, 82, 188, 0.15); /* leggero sfondo per contrasto */
    border-radius: 6px;
    z-index: 1000;
}

/* FOOTER – focus visibile per link e link-button */
.footer-column-small a {
    position: relative;
    display: inline-block;
}

.footer-menu,
.footer-column-small {
    overflow: visible;
}

.footer-column-small a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 4px;
}
