/* ===========================
   SAGGI – CARD 3D + OVERLAY + BORDO + FADE-IN
   =========================== */

.page-hero {
    background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
    text-align: center;
    padding: 3em 1em 2em;
    border-bottom: 1px solid #ddd;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.page-hero p {
    font-size: 1.2rem;
    color: #a0004f;
    font-weight: 600;
    text-align: center;
}

.saggi-content {
    padding: 3em 0;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saggi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    justify-items: center;
}

/* CARD */
.saggio-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    max-width: 420px;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: fadeCard 0.6s ease forwards;
    opacity: 0;
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.12),
        0 14px 24px rgba(0, 0, 0, 0.14),
        0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #ddd;
    padding: 5px;
}

@keyframes fadeCard {
    to {
        opacity: 1;
    }
}

.saggio-card:nth-child(1) {
    animation-delay: 0.2s;
}

.saggio-card:nth-child(2) {
    animation-delay: 0.4s;
}

.saggio-card:nth-child(3) {
    animation-delay: 0.6s;
}

.saggio-card:nth-child(4) {
    animation-delay: 0.8s;
}

.saggio-card:nth-child(5) {
    animation-delay: 1s;
}

.saggio-card:nth-child(6) {
    animation-delay: 1.2s;
}

.saggio-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.18),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

.saggio-card img {
    width: 100%;
    display: block;
    border-radius: 24px;
    padding: 8px;
}

.saggio-card:hover .overlay {
    opacity: 1;
}

/* DATA SOPRA L'IMMAGINE (DENTRO LA CARD) */
.saggio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.saggio-date {
    background: #a0004f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
}

.btn-video {
    display: inline-block;
    margin: 12px auto 0;
    padding: 10px 18px;
    background: #a0004f;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background .25s ease;
}

.btn-video:hover {
    background: #7a003c;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .saggi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .saggi-grid {
        grid-template-columns: 1fr;
    }
}