/* ============================================================
   CLASSIFICHE INDEX — VERSIONE PREMIUM
============================================================ */

.page-classifiche-index {
    background: #f5f7f9;
}

/* HERO */
.page-hero {
    padding: 35px 0 25px;
    background: #e6eef1;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CONTAINER */
.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SEZIONE */
.classifiche-section {
    padding: 0 0 40px;
}

/* ============================================================
   CARD — PREMIUM STYLE
============================================================ */

.classifiche-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 520px;

    position: relative;
    overflow: hidden;

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10),
        0 18px 38px rgba(0, 0, 0, 0.14),
        0 32px 65px rgba(0, 0, 0, 0.18);

    transition:
        box-shadow 0.35s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.classifiche-card:hover {
    transform: translateY(-6px);
    filter: brightness(1.03);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.14),
        0 28px 55px rgba(0, 0, 0, 0.20),
        0 45px 85px rgba(0, 0, 0, 0.25);
}

/* Bordo glow blu */
.classifiche-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #23333a, #4d798b, #23333a);
    opacity: 0;
    transition: opacity 0.35s ease, filter 0.35s ease;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.classifiche-card:hover::before {
    opacity: 1;
    filter: drop-shadow(0 0 18px #4d798b80);
}

/* ICONA */
.classifiche-icon i {
    font-size: 4.2rem;
    color: #355866;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.classifiche-card:hover .classifiche-icon i {
    transform: scale(1.10) rotateX(8deg);
    filter: drop-shadow(0 0 10px #35586680);
}

/* TESTI */
.classifiche-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #355866;
    margin-top: 30px;
}

.classifiche-desc {
    font-size: 1rem;
    color: #23333a;
    margin: 15px 0 25px;
}

/* BUTTON */
.classifiche-btn {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.classifiche-btn:hover {
    background: #355866;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(53, 88, 102, 0.35);
}

/* BOX NESSUNA GARA - BORDO SFUMATO PREMIUM */
.no-gare-box {
    margin-top: 20px;
    padding: 28px;

    /* Sfondo elegante */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 245, 0.9));

    /* Bordo sfumato premium */
    border: 3px solid transparent;
    border-radius: 18px;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 245, 0.9)),
        linear-gradient(135deg, #53717d, #7fa1ad);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    /* Effetto 3D */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.12),
        inset 0 0 12px rgba(255, 255, 255, 0.6),
        0 0 14px rgba(83, 113, 125, 0.35);
    /* glow del bordo */

    text-align: center;
    color: #333;

    /* Animazione */
    animation: fadeSlideIn 0.45s ease-out;
}

/* Icona */
.no-gare-box i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #53717d;
    /* colore tema */
    text-shadow: 0 2px 4px rgba(83, 113, 125, 0.35);
}

/* Titolo */
.no-gare-box h4 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
}

/* GRIGLIA RESPONSIVE AUTOMATICA */
.classifiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {
    .classifiche-grid.two-cards {
        grid-template-columns: 1fr;
    }
}