/* ============================================================
   EVENTI / MARATHON 2025 — STILE PREMIUM NWR&V
============================================================ */

.page-marathon-2025 {
    background: #f5f7f9;
}

/* ============================
   HERO
============================ */

.page-hero {
    padding: 35px 0 25px 0;
    background: #e6eef1;
    color: #23333a;
    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 GENERALE */
.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SEZIONI */
.marathon-section {
    padding: 40px 0;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 35px;
    text-align: center;
}

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

/* CARD BASE */
.marathon-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 450px;
    transition: box-shadow 0.35s ease, transform 0.25s ease;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);
}

.marathon-card:hover {
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 25px 45px rgba(0, 0, 0, 0.18),
        0 40px 65px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

/* Bordo animato premium */
.marathon-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 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 12px #4d798b60);
}

/* ICONA */
.marathon-icon i {
    font-size: 4rem;
    color: #355866;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marathon-card:hover .marathon-icon i {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px #35586680);
}

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

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

/* IMMAGINI PERCORSI / PARCHEGGI */
.marathon-img {
    width: 100%;
    border-radius: 14px;
    margin: 18px 0 22px 0;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.marathon-btn:hover {
    background: #355866;
    transform: translateY(-1px);
}

/* LINK INFO LOCANDINE */
.info-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.info-link {
    display: inline-block;
    font-size: 0.95rem;
    color: #355866;
    background: #e6eef1;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.info-link:hover {
    background: #355866;
    color: #fff;
}

/* BOX AVVISO ISCRIZIONI */
.alert-box {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3f3, #ffe3e3);
    border: 1px solid #f5b5b5;
    color: #8a1f1f;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.alert-box i {
    font-size: 1.4rem;
    margin-top: 2px;
}

/* LISTA GPX */
.gpx-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
    text-align: left;
}

.gpx-list li {
    margin-bottom: 8px;
}

.gpx-list a {
    color: #355866;
    text-decoration: none;
    font-weight: 600;
}

.gpx-list a:hover {
    text-decoration: underline;
}

/* NOTE GPS */
.gps-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #555;
}

/* GLIGHTBOX THUMB NASCOSTO */
.hidden-thumb {
    display: none;
}

/* ANIMAZIONI */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(3px);
    }

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

.marathon-card {
    animation: fadeSlideIn 0.45s ease-out;
}

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

@media (max-width: 768px) {

    .page-hero {
        padding: 70px 0 20px 0;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .marathon-grid {
        gap: 25px;
    }

    .marathon-card {
        max-width: 100%;
        padding: 25px;
        border-radius: 14px;
    }

    .marathon-icon i {
        font-size: 3rem;
    }

    .marathon-title {
        font-size: 1.2rem;
        margin-top: 25px;
    }

    .marathon-desc {
        font-size: 0.95rem;
        margin: 12px 0 20px 0;
    }

    .marathon-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .alert-box {
        font-size: 0.9rem;
        flex-direction: row;
    }
}