/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:  'Ubuntu',Arial, sans-serif;
    font-size: 1rem;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Archivo Black', sans-serif;
}


/* ===== HEADER / MENU ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Colore blu chiaro con trasparenza */
    background-color:  rgba(62, 120, 178, 0.7);
    transition: all 0.3s ease;
    /* Altezza iniziale  */
    padding: 7px 0;
}

/* Header quando si scrolla - diventa più piccolo e più scuro */
.header.scrolled {
    /* Padding ridotto quando si scrolla  */
    padding: 6px 0;
    /* Colore più scuro quando si scrolla  */
    background-color:rgba(68, 108, 176, 0.70);
    
}

.header-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 1001;
    position: relative;
}

.logo img {
    /* Dimensione logo iniziale*/
    height: 60px;
    transition: height 0.3s ease;
    filter: drop-shadow(0px 0 2px #fff);
}

/* Logo più piccolo quando si scrolla  */
.header.scrolled .logo img {
    height: 40px;
}

/* Menu principale - compatto e allineato a sinistra */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.nav-menu > li {
    list-style: none;
    position: relative;
}

.nav-menu > li > a,
.nav-menu > li > button {
    color: #F5F5F5;
    text-decoration: none;
    padding: 10px 7px;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: background-color 0.3s;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Freccia dropdown */
.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu dropdown */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3E78B2;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 0 0 4px 4px;
    width: max-content;      /* adatta la larghezza al contenuto */
    min-width: 100%;         /* non più stretta del bottone genitore */
}

.dropdown:hover .submenu {
    display: flex;
}

.submenu li {
    list-style: none;
}

.submenu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s;
    padding: 10px 17px;    
     
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Separatore prima di Area Soci */
.nav-separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

.area-soci-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    /*margin-left: 5px;*/
}

.area-soci-btn .icon {
    width: 1.5em;           
    height: 1.5em;
    
}

/* Hamburger menu mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hide SVG del blocco icons.svg ===== */
.icons-svg-hide {
    display:none;
}

/* ===== HERO SECTION ===== */
.hero {
    /* Immagine di sfondo  */
    background-image: url('https://www.lagap.org/wp-content/uploads/2023/11/title-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 100px;
    text-align: center;
    color: white;
    padding-bottom: 40px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}


.hero h1 {
    color: white;
    font-size: 37px;
    font-weight: 700;
    position: relative;
    z-index: 1;
        
}

/* ===== MAIN CONTENT ===== */
.main-content {
    /* Larghezza massima contenuto  */
    max-width: 1150px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    color: #3E78B2;
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 4px solid #4a7ba7;
    display: inline-block;
    padding-bottom: 5px;
    font-family: 'Archivo Black', sans-serif;

}

.section-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}



/* ===== TABLE DESKTOP ===== */
.table-container {
    overflow-x: auto;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background-color: #51c149; 
    color: white;
}

th {
    padding: 15px 15px 15px 4px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    /*cursor: pointer;*/
    user-select: none;
    position: relative;
}

/* Larghezze specifiche per le colonne della tabella soci-registro */
th[data-column="tessera"],
td:nth-child(1) {
    width: 5%;
}

th[data-column="nome"],
td:nth-child(2) {
    width: 20%;
}

th[data-column="cognome"],
td:nth-child(3) {
    width: 25%;
}

th[data-column="email"],
td:nth-child(4) {
    width: 30%;
}

th[data-column="provincia"],
td:nth-child(5) {
   width: 5%;
}


th[data-column="regione"],
td:nth-child(6) {
    width: 15%;
}

th:hover {
    background-color: #6da66e;
}

/* Larghezze specifiche per le colonne della tabella table-formazione-crediti*/
.table-formazione-crediti th[data-column="tessera"],
.table-formazione-crediti td:nth-child(1) {
    width: 2%;
}



.table-formazione-crediti th[data-column="nome"],
.table-formazione-crediti td:nth-child(2) {
    width: 25%;
}

.table-formazione-crediti th[data-column="email"],
.table-formazione-crediti td:nth-child(3) {
    width: 20%;
}

.table-formazione-crediti th[data-column="status"],
.table-formazione-crediti td:nth-child(4) {
    width: 2%;
}

.table-formazione-crediti th[data-column="annoIscrizione"],
.table-formazione-crediti td:nth-child(5) {
    width: 8%;
}

 
.table-formazione-crediti th[data-column="2023"],
.table-formazione-crediti td:nth-child(6) {
    width: 8%;
}

.table-formazione-crediti th[data-column="2024"],
.table-formazione-crediti td:nth-child(7) {
    width: 8%;
}
.table-formazione-crediti th[data-column="2025"],
.table-formazione-crediti td:nth-child(8) {
    width: 8%;
}
.table-formazione-crediti th[data-column="2026"],
.table-formazione-crediti td:nth-child(9) {
    width: 8%;
}
 
tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:nth-child(even) {
    background-color:  #efeded;
}

tbody tr:hover {
    background-color: #f0f7f0;
}

td {
    padding: 5px;
    font-size: 14px;
}

/* Header e celle di testo - allineamento a sinistra */
.table-formazione-crediti th,
.table-formazione-crediti td {
    text-align: left;
}

/* Header e celle crediti anni + stato - allineamento centro */
.table-formazione-crediti .anno-cell,
.table-formazione-crediti .col-stato,
.table-formazione-crediti .col-annoIscrizione,
.table-formazione-crediti thead th:nth-child(n+5) {
    text-align: center;
}

.col-tessera {
    text-align: center;
}


.email-cell a {
    color: #51c149;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    gap: 6px;
    font-weight: 700;
}

.email-cell a:hover {
    color: #3d8541;
}


/* ===== CARDS MOBILE ===== */
/*.cards-container {
    display: none;
}

.member-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size:14px;
}

.card-row:last-child {
    border-bottom: none;
}

.card-label {
    font-weight: 600;
    color: #555;
    font-size:13px;
}

.card-value {
    text-align: right;
    color: #333;
}


.card-value.email a {
    color: #51c149;
     font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    gap: 6px;
}*/

 

/* ===== FOOTER ===== */
.footer {
    background-color: #221e19;
    color: white;
    padding: 50px 20px 0;
}

.footer-content {
    /* Larghezza massima footer */
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;   
    row-gap: 10px; 
    margin-bottom: 40px;
}

/* INVIO POSTA prende tutta la larghezza */
.footer-section.full-width {
    grid-column: 1 / -1;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-section p {
    /* Font più piccolo e compatto */
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: disc;
    padding-left: 20px;
}

.footer-section ul li {
    margin-bottom: 2px;
    font-size: 12.5px;
    color: #ccc;
    line-height: 1.4;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: #7cb77f;
}

/* Icone footer */
.footer-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Footer bottom con sfondo più scuro */
.footer-bottom-wrapper {
    /* Sfondo più scuro per l'ultima riga */
    background-color: #171511;
     margin: 0 -20px;
}

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 15px 0 ;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 20px;
}

.footer-bottom .copyright {
    text-align: left;
    font-size: 12px;
    color: #999;
}

.footer-credits {
    /* Credits al centro su 3 colonne */
    grid-column: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.footer-developed {
    /* Credits a destra su 3 colonne */
    grid-column: 3/ 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.footer-bottom-wrapper  a {
    color: #999;
    text-decoration: none;
}

.footer-bottom-wrapper  a:hover{
    color: #7cb77f;
    text-decoration: none;
}
/* Messaggio nessun risultato */
/*.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    display: none;
}

.no-results.active {
    display: block;
}*/


/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: #51c149;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #45a83d;
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 212px;
    height: 24px;
}



/* =====  =====  =====  =====  =====  =====  ===== */
/* ===== ===== ===== RESPONSIVE===== ===== ===== */
/* =====  =====  =====  =====  =====  =====  ===== */



/*==========================    1200px    ==========================  */
/* Switch a hamburger a 1200px per evitare che il menu si perda */

@media (max-width: 1200px) {
    /* Menu diventa mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #478946;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        padding-top: 90px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    
    .nav-menu > li > a,
    .nav-menu > li > button {
        /*padding: 20px 30px;
        font-size: 16px;
        
        justify-content: space-between;*/
        width: 100%;
        padding: 15px 20px;
    }

    /* Submenu mobile */
    .submenu {
        position: static;
        background-color: #4c77ad;
        display: none;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown.active .submenu {
        display: flex;
    }

    .dropdown:hover .submenu {
        display: none;
    }

    .dropdown.active:hover .submenu {
        display: flex;
    }

    .submenu a {
        padding: 15px 50px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-separator {
        display: block;
        width: 100%;
        height: 1px;
        background-color: #ffffff;
        margin: 0;
    }

    .area-soci-btn {
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

    .hamburger {
        display: flex;
    }

    
    /* Footer bottom mobile */

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 10px;
        gap: 10px;
    }

    .footer-bottom .copyright {
        text-align: center;
    }

    .footer-credits {
        grid-column: 1;
        flex-direction: column;
    }

    .footer-developed {
        grid-column: 1;
        justify-content: center;
    }

}


/*==========================    768px    ==========================  */

@media (max-width: 768px) {
   
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    /* Nasconde tabella desktop su mobile
    .table-container {
        display: none;
    } */

    /* Mostra cards su mobile */
    /*.cards-container {
        display: block;
    }*/

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section.full-width {
        grid-column: 1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom .copyright {
        text-align: center;
    }

    .footer-credits {
        grid-column: 1;
        flex-direction: column;
    }
}


/*==========================    480px    ==========================  */


@media (max-width: 480px) {
    .main-content {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }
}










/*******************************************
            PAGE/SEZIONE DATI SOCIO 
********************************************/
.socio-details {
    background: #fff;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;*/
}

/* Header con info principali 
.socio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #94ba2c;
   
    flex-wrap: wrap;
}*/

.socio-main-info {
    flex: 1;
}

.socio-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

/*
.socio-cf {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}*/

/*
.socio-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.socio-email,
.socio-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.95rem;
}

.icon-inline {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.socio-email a,
.socio-phone {
    color: #333;
}

.socio-email a:hover {
    color: #94ba2c;
}*/

/* Dati tessera */
.socio-membership {
    display: flex;
    gap: 3rem;
    
    margin-bottom: 0.5rem;
}

.membership-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.membership-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #94ba2c;
}

/* Sezione corsi 
.corsi-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.corso-category {
    border-left: 3px solid #94ba2c;
    padding-left: 1.5rem;
}

.corso-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 1rem 0;
}*/

.corso-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.corso-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    gap: 1rem;
}

.corso-name {
    font-weight: 500;
    color: #333;
}

.corso-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.corso-date {
    color: #666;
    font-size: 0.9rem;
}

.corso-crediti {
    color: #94ba2c;
    font-weight: 600;
    font-size: 0.9rem;
}

.corso-ore {
    font-size: 0.8rem;
    color: #777;
    opacity: 0.85;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .socio-details {
        padding: 1.5rem;
    }

    .socio-header {
        flex-direction: column;
        gap: 1rem;
    }

    .socio-name {
        font-size: 1.5rem;
    }

    .socio-membership {
        flex-direction: column;
        gap: 1rem;
    }

    .corso-category {
        padding-left: 1rem;
    }

    .corso-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .corso-info {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }
}


.corso-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-radius: 4px;
    gap: 0.6rem;
}

.corso-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.corso-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.corso-date {
    color: #666;
    font-size: 0.88rem;
    font-weight: 500;
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Ubuntu', sans-serif;
}

.corso-date::before {
    content: "Data: ";
    color: #999;
    font-weight: 400;
}

.corso-crediti {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    background: #94ba2c;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .corso-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}







/*******************************************
            GESTIONE LOGIN FORM
********************************************/

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    font-family: 'Archivo Black', sans-serif;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.login-box p {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.login-error {
    background: #fee;
    border-left: 3px solid #c33;
    color: #c33;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Ubuntu', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #94ba2c;
}

.login-btn {
    background: #94ba2c;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Ubuntu', sans-serif;
}

.login-btn:hover {
    background: #7a9a23;
}

.logout {
    display: block;
    color: white;
    font-size: 1.1rem; 
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-box {
        padding: 2rem 1.5rem;
    }
}



/* ============================================
   BARRA DI RICERCA
============================================ */
.search-container {
    margin-bottom: 10px;
}

.search-box {
    position: relative;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Ubuntu', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: #51c149;
    box-shadow: 0 0 0 3px rgba(81, 193, 73, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.clear-btn svg {
    width: 20px;
    height: 20px;
    color: #999;
}

.clear-btn.hidden-btn {
    display: none;
}

.clear-btn:hover {
    background: #f0f0f0;
}

/* ============================================
   BOTTONI DETTAGLI
============================================ 
.details-cell {
    text-align: center;
    width: 80px;
}

.btn-details {
    background: #51c149;
    border: none;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-details svg {
    width: 13px;
    height: 13px;
    color: white;
}

.btn-details:hover {
    background: #45a83d;
    transform: scale(1.05);
}*/

/* Bottone + mobile 
.btn-mobile-plus {
    background: #51c149;
    border: none;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s;
}

.btn-mobile-plus svg {
    width: 18px;
    height: 18px;
    color: white;
}

.btn-mobile-plus:hover {
    background: #45a83d;
    transform: scale(1.1);
}*/

/* Bottone a fondo card 
.btn-card-details {
    width: 100%;
    background: #51c149;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.3s;
    font-family: 'Ubuntu', sans-serif;
}

.btn-card-details svg {
    width: 18px;
    height: 18px;
}

.btn-card-details:hover {
    background: #45a83d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(81, 193, 73, 0.3);
}*/

/* Nascondi righe quando filtrate 
tr.hidden,
..hidden {
    display: none;
}*/

/* ============================================
   MODALE
============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 900px;
     
    max-height: 98vh;
    margin: 60px auto 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;

}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: #333;
}

#modalBody {
    padding: 2.5rem;
    max-height: calc(98vh - 80px);
    overflow-y: auto;
}

/* Scroll lock body quando modale aperta */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE MODALE
============================================ */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    #modalBody {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 8px;
    }
    
    #modalBody {
        padding: 1rem;
    }
}





/* ===================================================================
   STILI CELLE CREDITI CLICCABILI - TABELLA INDEX3
   =================================================================== */

/* Celle con crediti valorizzati - sfondo verde chiaro 
.has-crediti {
    background-color: #d4edda;
    font-weight: 600;
    color: #155724;
}*/

/* Celle cliccabili - cursor pointer e hover 
.crediti-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.crediti-clickable:hover {
    background-color: #c3e6cb;
   
}*/

/* ===================================================================
   MODALE CREDITI - STRUTTURA IDENTICA A MODALE SOCI
   =================================================================== */

/* Contenitore dettagli crediti  
.crediti-details {
    padding: 0;
}*/

/* Header crediti  
.crediti-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.crediti-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Archivo Black', sans-serif;
}

.crediti-socio {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.95;
}

.crediti-totali {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.crediti-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.crediti-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255,255,255,0.3);
    padding: 0.25rem 1rem;
    border-radius: 20px;
}*/



/* ID modale body crediti
#creditiModalBody {
    padding: 2.5rem;
    max-height: calc(98vh - 80px);
    overflow-y: auto;
} */


/* ===== COLONNA STATO - INDICATORI COLORATI ===== */


/* Pallino indicatore - PICCOLO, SENZA BORDO, SENZA HOVER 
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: default;
}*/

/* Pallino VERDE - 16 crediti raggiunti 
.status-green {
    background-color: #28a745;
}*/

/* Pallino ROSSO - crediti non raggiunti 
.status-red {
    background-color: #dc3545;
}*/

/* Pallino ARANCIONE - stato intermedio (per futuri sviluppi)
.status-orange {
    background-color: #fd7e14;
}
 */
/* Responsive - pallini leggermente più grandi su mobile
@media (max-width: 768px) {
    .status-indicator {
        width: 12px;
        height: 12px;
    }
} */