.aibp-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    width: 100%;
    margin: 0 auto;
}

.aibp-cs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.aibp-cs-foto-btn {
    display: inline-block;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.aibp-cs-foto-btn:hover,
.aibp-cs-foto-btn:focus,
.aibp-cs-foto-btn:active {
    background: none;
    outline: none;
    box-shadow: none;
}

.aibp-cs-foto {
    width: 250px !important;
    height: 250px !important;
    max-width: 100%;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transition: transform 0.2s ease;
}

.aibp-cs-foto-btn:hover .aibp-cs-foto,
.aibp-cs-foto-btn:focus .aibp-cs-foto {
    transform: scale(0.93);
}

.aibp-cs-nome {
    margin-top: 16px;
    font-weight: 700;
}

.aibp-cs-ruolo {
    margin-top: 4px;
    font-style: italic;
    color: #555;
}

/* Modale */
.aibp-cs-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.aibp-cs-modal.is-open {
    display: block;
}

.aibp-cs-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.aibp-cs-modal-content {
    position: relative;
    background: #fff;
    max-width: 640px;
    width: calc(100% - 40px);
    margin: 5vh auto;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-sizing: border-box;
}

.aibp-cs-modal-content .aibp-cs-foto {
    width: 250px;
    height: 250px;
}

.aibp-cs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
}

.aibp-cs-modal-nome {
    margin-top: 24px;
}

.aibp-cs-modal-bio {
    color: #555;
}

/* Mobile: 2 colonne */
@media (max-width: 782px) {
    .aibp-cs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .aibp-cs-foto,
    .aibp-cs-modal-content .aibp-cs-foto {
        width: 150px !important;
        height: 150px !important;
    }
}
