/* Default.aspx - Home Page CSS */

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

    .hero h1 {
        margin-bottom: 16px;
        background: linear-gradient(90deg, #1d1d1f 0%, #424245 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero .subtitle {
        font-size: 28px;
        line-height: 1.14286;
        font-weight: 400;
        letter-spacing: 0.007em;
        color: var(--apple-gray);
        margin-bottom: 32px;
    }

.hero-description {
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: 21px;
    line-height: 1.381;
    color: var(--apple-black);
}

/* Corsi in Partenza Section */
.corsi-section {
    padding: 80px 0;
    background: var(--apple-light-gray);
}

    .corsi-section h2 {
        text-align: center;
        margin-bottom: 60px;
    }

.corsi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Corso Card */
.corso-card {
    background: var(--apple-white);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

    .corso-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }

.corso-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.corso-card.no-image .corso-content {
    padding-top: 28px;
}

.corso-card.no-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.corso-content {
    padding: 24px;
}

.corso-categoria {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--apple-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.corso-titolo {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16667;
    margin-bottom: 12px;
    color: var(--apple-black);
}

.corso-descrizione {
    font-size: 15px;
    line-height: 1.4667;
    color: var(--apple-gray);
    margin-bottom: 16px;
}

.corso-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--apple-border);
}

.corso-durata,
.corso-prezzo {
    font-size: 14px;
    color: var(--apple-gray);
}

.corso-prezzo {
    font-weight: 600;
    color: var(--apple-blue);
    font-size: 17px;
}

/* Countdown Timer */
.countdown-wrapper {
    background: var(--apple-light-gray);
    border-radius: 12px;
    padding: 16px;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--apple-gray);
    margin-bottom: 8px;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-item {
    text-align: center;
    min-width: 50px;
}

.countdown-value {
    display: block;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--apple-black);
    margin-bottom: 4px;
}

.countdown-unit {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--apple-gray);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

    .about-content h2 {
        margin-bottom: 24px;
    }

    .about-content p {
        font-size: 21px;
        line-height: 1.381;
        margin-bottom: 20px;
    }

    .about-content .text-muted {
        font-size: 17px;
    }

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    }

    .social-btn svg {
        flex-shrink: 0;
    }

.social-instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-facebook {
    background: #1877F2;
    color: #fff;
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--apple-black);
    color: var(--apple-white);
    text-align: center;
}

    .cta-section h2 {
        color: var(--apple-white);
        margin-bottom: 20px;
    }

    .cta-section p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 21px;
        margin-bottom: 32px;
    }

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 0;
    color: var(--apple-gray);
}

    .loading::after {
        content: '';
        display: inline-block;
        width: 40px;
        height: 40px;
        border: 3px solid var(--apple-border);
        border-top-color: var(--apple-blue);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1068px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero .subtitle {
        font-size: 24px;
    }

    .corsi-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 734px) {
    .hero {
        padding: 80px 0 60px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero .subtitle {
            font-size: 19px;
        }

    .hero-description {
        font-size: 17px;
    }

    .corsi-grid {
        grid-template-columns: 1fr;
    }

    .corso-image {
        height: 200px;
    }

    .countdown-value {
        font-size: 24px;
    }
}


/* Percorsi Formativi Section */
.percorsi-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f5f7f6 100%);
}

.percorsi-header {
    text-align: center;
    margin-bottom: 56px;
}

.percorsi-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #007852;
    background: rgba(0,120,82,0.08);
    padding: 5px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}

.percorsi-header h2 {
    margin-bottom: 12px;
}

.percorsi-header p {
    font-size: 17px;
    color: var(--apple-gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.percorsi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.percorso-card {
    background: var(--apple-white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

    .percorso-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 24px 64px rgba(0,0,0,0.12);
    }

.percorso-image-wrap {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.percorso-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.percorso-card:hover .percorso-image {
    transform: scale(1.04);
}

.percorso-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.percorso-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 40px;
}

.percorso-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.percorso-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    width: fit-content;
}

.percorso-tag-sport {
    color: #0066cc;
    background: rgba(0,102,204,0.08);
}

.percorso-tag-olistico {
    color: #007852;
    background: rgba(0,120,82,0.08);
}

.percorso-body h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--apple-black);
    margin-bottom: 12px;
}

.percorso-body p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--apple-gray);
    margin-bottom: 20px;
    flex: 1;
}

.percorso-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--apple-border);
}

.percorso-meta-item {
    font-size: 14px;
    color: var(--apple-gray);
}

    .percorso-meta-item strong {
        color: var(--apple-black);
        font-weight: 700;
        margin-right: 4px;
    }

.percorso-sportivo .percorso-link {
    color: #0066cc;
}

.percorso-olistico .percorso-link {
    color: #007852;
}

.percorso-link {
    font-size: 15px;
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
}

.percorso-card:hover .percorso-link {
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .percorsi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .percorso-image-wrap {
        height: 220px;
    }

    .percorsi-section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .percorso-image-wrap {
        height: 180px;
    }

    .percorso-body {
        padding: 20px 20px 24px;
    }

        .percorso-body h3 {
            font-size: 22px;
        }
}
