/* ============================================================
   percorsosportivo.css  --  Percorso Sportivo page styles
   Palette: arancio/ambra #e65d00 su bianco/grigio chiaro
   ============================================================ */

:root {
    --sp-orange: #e65d00;
    --sp-orange-dark: #b84a00;
    --sp-orange-light: #fff0e6;
    --sp-orange-mid: #f7c9a8;
    --sp-text: #1e1208;
    --sp-gray: #6b5a4e;
    --sp-border: #f0d9cc;
    --sp-bg: #fdf7f4;
    --sp-white: #ffffff;
    --sp-special: #f0f8f0;
    --sp-special-border: #a8d8a8;
    --sp-special-accent: #2e7d32;
}

/* -- NAVBAR ACTIVE -- */
.navbar-menu a.active {
    color: var(--sp-orange) !important;
    font-weight: 600;
}

/* -- HERO -- */
.sp-hero {
    background: linear-gradient(160deg, #fff0e6 0%, #fff8f2 45%, #fdf7f4 100%);
    padding: 110px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .sp-hero::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -120px;
        width: 560px;
        height: 560px;
        background: radial-gradient(circle, rgba(230,93,0,0.07) 0%, transparent 70%);
        pointer-events: none;
    }

    .sp-hero::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(184,74,0,0.05) 0%, transparent 70%);
        pointer-events: none;
    }

.sp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sp-orange-dark);
    background: rgba(230,93,0,0.10);
    padding: 5px 16px;
    border-radius: 40px;
    margin-bottom: 22px;
}

.sp-eyebrow-light {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
}

.sp-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--sp-text);
    margin: 0 0 16px;
}

.sp-title-accent {
    color: var(--sp-orange);
    display: block;
}

.sp-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sp-orange);
    margin: 0 0 24px;
}

.sp-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--sp-gray);
    max-width: 620px;
    margin: 0 0 40px;
}

.sp-hero-stats {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.78);
    border-radius: 20px;
    border: 1px solid var(--sp-border);
    backdrop-filter: blur(8px);
    overflow: hidden;
    margin-bottom: 40px;
}

.sp-stat {
    flex: 1;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--sp-border);
}

    .sp-stat:last-child {
        border-right: none;
    }

.sp-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--sp-orange);
    line-height: 1;
}

.sp-stat-label {
    font-size: 11px;
    color: var(--sp-gray);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
}

.sp-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* -- INTRO -- */
.sp-intro-section {
    padding: 100px 0;
    background: var(--sp-white);
}

.sp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.sp-section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sp-orange);
    margin-bottom: 14px;
}

.sp-intro-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--sp-text);
    margin-bottom: 24px;
}

.sp-intro-text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--sp-gray);
    margin-bottom: 16px;
}

.sp-intro-pillars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-pillar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--sp-text);
    font-weight: 500;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-decoration: none;
    justify-content: space-between;
    cursor: pointer;
}

    .sp-pillar:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 16px rgba(230,93,0,0.10);
        background: var(--sp-orange-light);
        color: var(--sp-orange-dark);
    }

.sp-pillar-arrow {
    font-size: 16px;
    color: var(--sp-orange);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sp-pillar:hover .sp-pillar-arrow {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

/* -- SEZIONE CORSI -- */
.sp-corsi-section {
    padding: 100px 0;
    background: var(--sp-bg);
}

.sp-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

    .sp-section-header h2 {
        font-size: 38px;
        font-weight: 700;
        color: var(--sp-text);
        margin: 8px 0 16px;
    }

    .sp-section-header p {
        font-size: 16px;
        color: var(--sp-gray);
        line-height: 1.6;
    }

/* -- MODULI / CORSI -- */
.sp-moduli {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-modulo {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

    .sp-modulo:hover {
        box-shadow: 0 6px 28px rgba(230,93,0,0.10);
    }

.sp-modulo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
}

.sp-modulo-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--sp-orange);
    line-height: 1;
    min-width: 52px;
    letter-spacing: -0.04em;
    opacity: 0.65;
}

.sp-modulo-header-text {
    flex: 1;
}

.sp-modulo-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0 0 4px;
    line-height: 1.2;
}

.sp-modulo-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sp-orange);
    font-weight: 500;
}

.sp-modulo-emoji {
    font-size: 28px;
    flex-shrink: 0;
    opacity: 0.85;
}

.sp-modulo-body {
    padding: 0;
}

.sp-modulo-intro {
    padding: 24px 32px 0;
    border-bottom: 1px solid var(--sp-border);
    padding-bottom: 20px;
}

    .sp-modulo-intro p {
        font-size: 15px;
        line-height: 1.75;
        color: var(--sp-gray);
        margin: 0;
    }

.sp-modulo-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.sp-point {
    padding: 22px 28px;
    border-right: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
}

    .sp-point:nth-child(2n) {
        border-right: none;
    }

    .sp-point:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* If odd number of points, last item spans full width */
    .sp-point:last-child:nth-child(odd) {
        grid-column: span 2;
        border-right: none;
        border-bottom: none;
    }

    .sp-point h5 {
        font-size: 13px;
        font-weight: 700;
        color: var(--sp-text);
        margin: 0 0 10px;
        line-height: 1.3;
    }

    .sp-point p {
        font-size: 14px;
        line-height: 1.65;
        color: var(--sp-gray);
        margin: 0 0 8px;
    }

        .sp-point p:last-child {
            margin-bottom: 0;
        }

    .sp-point ul {
        list-style: none;
        padding: 0;
        margin: 6px 0 10px;
    }

        .sp-point ul li {
            font-size: 14px;
            color: var(--sp-gray);
            line-height: 1.5;
            padding: 4px 0 4px 18px;
            position: relative;
        }

            .sp-point ul li::before {
                content: '';
                position: absolute;
                left: 0;
                top: 11px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--sp-orange);
                opacity: 0.6;
            }

.sp-nota {
    font-size: 13px !important;
    font-style: italic;
    color: var(--sp-orange-dark) !important;
    background: var(--sp-orange-light);
    border-left: 3px solid var(--sp-orange);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px !important;
    margin-top: 8px !important;
}

/* -- MODULO SPECIALE (taping - verde) -- */
.sp-modulo-special {
    border-color: var(--sp-special-border);
}

    .sp-modulo-special .sp-modulo-header {
        background: var(--sp-special);
        border-bottom-color: var(--sp-special-border);
    }

.sp-special-num {
    color: var(--sp-special-accent);
    opacity: 0.7;
}

.sp-special-tag {
    color: var(--sp-special-accent) !important;
}

.sp-modulo-special .sp-modulo-header h3 {
    color: #1b3d1e;
}

.sp-modulo-special .sp-modulo-intro {
    background: #f8fdf8;
    border-bottom-color: var(--sp-special-border);
}

.sp-modulo-special .sp-point {
    border-right-color: var(--sp-special-border);
    border-bottom-color: var(--sp-special-border);
}

    .sp-modulo-special .sp-point ul li::before {
        background: var(--sp-special-accent);
    }

.sp-modulo-special .sp-nota {
    color: var(--sp-special-accent) !important;
    background: var(--sp-special);
    border-left-color: var(--sp-special-accent);
}

/* -- CTA -- */
.sp-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--sp-orange-dark) 0%, #7a2e00 100%);
    text-align: center;
}

.sp-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 32px;
}

    .sp-cta-inner h2 {
        font-size: 42px;
        font-weight: 700;
        color: white;
        margin: 16px 0 20px;
        line-height: 1.1;
    }

    .sp-cta-inner p {
        font-size: 17px;
        color: rgba(255,255,255,0.82);
        line-height: 1.65;
        margin-bottom: 32px;
    }

.sp-cta-dove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-bottom: 36px;
}

.btn-large {
    padding: 18px 44px !important;
    font-size: 17px !important;
    border-radius: 50px !important;
}

/* -- VIDEO PLAYER -- */
.sp-video-section {
    padding: 100px 0;
    background: var(--sp-bg);
}

.sp-video-wrapper {
    max-width: 380px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0,0,0,0.28);
    position: relative;
}

.sp-video {
    width: 100%;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
    cursor: pointer;
}

.sp-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}

    .sp-video-overlay:hover {
        background: rgba(0,0,0,0.35);
    }

.sp-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 80px;
    height: 80px;
    transition: transform 0.2s;
}

    .sp-play-btn:hover {
        transform: scale(1.1);
    }

    .sp-play-btn svg {
        width: 80px;
        height: 80px;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    }

.sp-video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30,18,8,0.92);
    padding: 12px 20px;
}

.sp-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

    .sp-ctrl-btn:hover {
        opacity: 1;
    }

.sp-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sp-progress-fill {
    height: 100%;
    background: var(--sp-orange);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.sp-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
    flex-shrink: 0;
    min-width: 36px;
}

/* -- RESPONSIVE -- */
@media (max-width: 1068px) {
    .sp-intro-grid {
        gap: 48px;
    }

    .sp-modulo-points {
        grid-template-columns: 1fr;
    }

    .sp-point {
        border-right: none;
    }

        .sp-point:last-child:nth-child(odd) {
            grid-column: span 1;
        }
}

@media (max-width: 768px) {
    .sp-title {
        font-size: 36px;
    }

    .sp-hero-stats {
        flex-wrap: wrap;
    }

    .sp-stat {
        min-width: 120px;
        padding: 16px 20px;
    }

    .sp-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-modulo-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 24px;
    }

    .sp-modulo-intro {
        padding: 20px 24px;
        padding-bottom: 16px;
    }

    .sp-point {
        padding: 18px 24px;
        border-right: none;
        border-bottom: 1px solid var(--sp-border);
    }

        .sp-point:last-child {
            border-bottom: none;
        }

    .sp-cta-inner h2 {
        font-size: 30px;
    }

    .sp-video-wrapper {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .sp-title {
        font-size: 28px;
    }

    .sp-hero-inner {
        padding: 0 20px;
    }

    .sp-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .sp-section-header h2 {
        font-size: 28px;
    }

    .sp-intro-text h2 {
        font-size: 26px;
    }

    .sp-modulo-header {
        padding: 16px 20px;
    }

    .sp-modulo-num {
        font-size: 28px;
        min-width: 40px;
    }

    .sp-modulo-header h3 {
        font-size: 17px;
    }

    .sp-point {
        padding: 16px 20px;
    }
}
