/* Mobile Team Info - Versione Semplificata */

/* Info Button - Solo icona */
.mobile-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mobile-info-btn:hover,
.mobile-info-btn:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Modal Overlay */
.member-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.member-info-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.member-info-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 100%;
    max-width: 350px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.member-info-modal-overlay.show .member-info-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.member-info-header {
    position: relative;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-info-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.member-info-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
    transition: all 0.3s ease;
}

/* Posizionamento specifico per Roberto */
.member-info-photo[alt="Roberto Birocchi"] {
    object-position: center 30%;
    transform: scale(1.05);
}

/* Posizionamento specifico per Giuseppe */
.member-info-photo[alt="Giuseppe Anastasio"] {
    object-position: center 20%;
}

.member-info-title h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.member-info-role-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.member-info-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

/* Modal Content */
.member-info-content {
    padding: 20px;
}

.member-info-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .member-info-modal-overlay {
        padding: 16px;
    }
    
    .member-info-modal {
        max-width: 320px;
        border-radius: 14px;
    }
    
    .member-info-header,
    .member-info-content {
        padding: 16px;
    }
    
    .member-info-avatar {
        width: 60px;
        height: 60px;
    }
    
    .member-info-photo[alt="Roberto Birocchi"] {
        object-position: center 25%;
        transform: scale(1.08);
    }
    
    .member-info-photo[alt="Giuseppe Anastasio"] {
        object-position: center 15%;
    }
    
    .member-info-title h3 {
        font-size: 1.1rem;
    }
    
    .member-info-content p {
        font-size: 0.8rem;
    }
    
    .mobile-info-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
