/**
 * Page Sections - Global Styles
 * Stili unificati per sezioni comuni su tutte le pagine
 * Utilizzato in: master-corsi, master-completamento, certificazioni, ecc.
 */

:root {
    --primary: #D1184F;
    --primary-dark: #B3103F;
    --primary-light: #E13869;
}

/* ========================================
   PAGE HEADER SECTION
   ======================================== */

.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0 60px;
    overflow: hidden;
    color: white;
    margin-bottom: 3rem;
}

.page-header .diagonal-stripes {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.05) 35px,
        rgba(255, 255, 255, 0.05) 70px
    );
    opacity: 0.8;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

/* ========================================
   TIPOLOGIA SECTIONS
   ======================================== */

.tipologia-section {
    margin-bottom: 3rem;
}

.tipologia-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 2rem;
}

.tipologia-title i {
    font-size: 1.2rem;
    color: var(--primary);
}

.badge-primary {
    background-color: var(--primary) !important;
    color: white;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* ========================================
   SECTION TITLES & SUBTITLES
   ======================================== */

.section-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    padding: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(209, 24, 79, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #453B97, var(--primary-dark));
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.cta-section .cta-diagonal-stripes {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.03) 40px,
        rgba(255, 255, 255, 0.03) 80px
    );
    pointer-events: none;
}

.cta-section .cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s;
}

.cta-section .btn-light:hover {
    background: var(--primary);
    color: white;
    border-color: white;
    transform: scale(1.05);
}

.cta-section .btn-outline-light {
    background: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
}

/* ========================================
   FILTERS CONTAINER (per master-corsi)
   ======================================== */

.filters-container {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: white;
    border-radius: 8px;
}

.filters-container .form-label {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filters-container .form-select {
    border-color: #d1d3d5;
    font-size: 0.9rem;
}

.filters-container .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(209, 24, 79, 0.25);
}

.results-counter .badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 20px;
    background-color: var(--primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

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

    .page-subtitle {
        font-size: 1rem;
    }

    .tipologia-title {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .filters-container {
        padding: 1.5rem !important;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
