.staff {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../images/staff/bg_staff.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y; /* Ripetizione verticale dello sfondo */
    position: relative;
    min-height: 800px;
    transform: none;
    will-change: background-position;
}

.staff .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(5px);
    pointer-events: none;
    transition: opacity 0.75s ease-in-out;
    opacity: 0;
    z-index: 2;
}

.staff .overlay.active {
    opacity: 1;
}

.staff .container {
    position: relative;
    width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px;
}

.staff .container .row-title {
    width: 100%;
    justify-content: center;
    margin: 4rem auto;
    font-weight: bolder;
}

.staff .container .row-title h1 {
    text-align: center;
    font-weight: bolder;
    color: white; /* Colore bianco per h1 */
    text-shadow: none; /* Nessuna ombra */
}

.staff .container .row-content {
    width: 100%;
    justify-content: space-between;
}

.staff .container .card {
    position: relative;
    max-width: 300px;
    height: 15rem;
    background: rgba(255, 255, 255, 0.2); /* Colore bianco semi-trasparente per effetto vetro */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Effetto sfocatura (glassmorphism) */
    -webkit-backdrop-filter: blur(10px); /* Supporto per Safari */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Bordo leggermente trasparente */
    margin: auto;
    margin-top: 3rem;
    margin-bottom: 8rem;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
    will-change: transform;
}

.staff .container .card:hover {
    height: 21rem;
    margin-bottom: 0;
}

.staff .container .card h3 {
    text-align: center;
    text-transform: uppercase;
    color: white; /* Colore bianco per h3 */
    text-shadow: 2px 2px 5px fuchsia; /* Ombra fucsia brillante */
}

.staff .container .row-title h6 {
    text-align: center;
    color: fuchsia; /* Colore fucsia per h6 */
    text-shadow: none; /* Nessuna ombra */
}

.staff .container .card .image {
    position: relative;
    width: 260px;
    height: 260px;
    top: -50%;
    left: 8px;
    z-index: 1;
}

.staff .container .card .image img {
    max-width: 100%;
    border-radius: 15px;
}

.staff .container .card .content {
    position: relative;
    top: -140px;
    padding: 10px 15px;
    color: white; /* Colore bianco per i paragrafi */
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.staff .container .card .content p {
    font-size: 12px;
    line-height: 1.7;
    font-weight: normal;
    color: white; /* Colore bianco per i testi */
    margin-bottom: 8px;
}

.staff .container .card:hover .content {
    margin-top: 30px;
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s;
}

.staff .card.active {
    position: relative;
    z-index: 2;
    filter: none;
}
