@media print {
    /* Nascondi tutti i bottoni */
    .contact-btn,
    .openPDF,
    .openGIT {
        display: none;
    }

    /* Nascondi il footer */
    .footer {
        display: none;
    }
}


/* Header */
header {
    background-color: #1a1a2e !important; /* Blu scuro elegante */
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Card */
.card {
    text-align: center;
    margin-bottom: 20px;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #f3f3f3); /* Sfondo chiaro con gradiente */
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.15), -6px -6px 15px rgba(255, 255, 255, 0.8);
}

.card:hover {
    transform: translateY(-10px); /* Effetto di sollevamento */
    background: linear-gradient(145deg, #f5f5f5, #e6e6e6); /* Gradiente al passaggio del mouse */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.7);
    
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background-clip: padding-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
} /*sistema*/

/* Numero della Card */
.card .number {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: black; /* Blu acceso per evidenziare */
}

/* Nome e Cognome */
.card .name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 5px;
    color: #333; /* Testo scuro per contrasto */
}

/* Bottone per contattare via email */
.card .contact-btn {
    margin-top: 10px;
    border-radius: 15px;
    background: linear-gradient(145deg, #00b333, #007f24); /* Gradiente verde moderno */
    color: white; /* Testo bianco */
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card .contact-btn:hover {
    background: linear-gradient(145deg, #00e64d, #009933); /* Verde più acceso al passaggio del mouse */
    transform: scale(1.05); /* Leggero effetto zoom */
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
}


/* Bottone PDF e Git */
.openPDF, .openGIT {
    background: linear-gradient(145deg, #343a40, #2c3136);
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    margin: 10px 5px;
}

.openPDF:hover, .openGIT:hover {
    background: linear-gradient(145deg, #495057, #343a40); /* Grigio scuro per hover */
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #1a1a2e; /* Sfondo scuro elegante */
    color: white;
    padding: 20px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* Layout personalizzato per la griglia delle card */
@media (min-width: 1200px) {
    .col-custom-5 {
        flex: 0 0 19%; /* Ogni card occupa il 19% della larghezza */
        max-width: 19%;
        margin-right: 1%;
    }
    .col-custom-5:nth-child(4n) {
        margin-right: 0; /* Rimuove il margine dall'ultima card della riga */
    }
}
