/* ============================================================
   MARATHON INDEX — VERSIONE 2 CARD PREMIUM
============================================================ */

.page-marathon-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 */
.marathon-section {
    padding: 40px 0;
}

/* GRID — SOLO 2 CARD */
.marathon-grid.two-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    gap: 50px;
    justify-items: center;
}

/* ============================================================
   CARD — VERSIONE PREMIUM RIFINITA
============================================================ */

.marathon-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;

    /* Effetto 3D + ombre più marcate */
    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;
}

/* Hover più profondo */
.marathon-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 scuro animato + glow blu */
.marathon-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;
}

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

/* ICONA — effetto 3D leggero */
.marathon-icon i {
    font-size: 4.2rem;
    color: #355866;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

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

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

/* BUTTON */
.marathon-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;
}

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

/* ============================================================
   BOX NESSUNA MARATONA — Doppia card interna premium
============================================================ */

.no-gare-box {
    margin-top: 20px;
    padding: 28px;

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

    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, #23333a, #4d798b);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    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);

    text-align: center;
    color: #333;
}

.no-gare-box i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #53717d;
}

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

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

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