/* life-stages-v427.css — Pagina /percorsi-eta — 5 fasce d'età + over-50 lifelong learning
   CI: Competitive Intelligence — EF Education First reorganization (5 segments).
   Coerenza Liquid v100: variabili --lp-*, dark glass, accenti #E87C2A.
   NB: caricato via <link> in index.html (Blazor scoped CSS NON linkato in deploy staging). */

.ils-hero-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--lp-space-8) var(--lp-space-6);
}

/* ── Tabs fasce d'età ───────────────────────────────────────────── */
.ils-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-space-2);
    background: rgba(13, 19, 32, 0.6);
    border: 1px solid rgba(126, 138, 166, 0.18);
    border-radius: 16px;
    padding: var(--lp-space-2);
    margin: var(--lp-space-6) 0 var(--lp-space-7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ils-tab {
    flex: 1 1 160px;
    min-width: 140px;
    padding: 16px 14px;
    background: transparent;
    color: rgba(238, 243, 255, 0.65);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.ils-tab:hover {
    background: rgba(232, 124, 42, 0.06);
    color: #eef3ff;
}

.ils-tab:focus-visible {
    outline: 2px solid #E87C2A;
    outline-offset: 2px;
}

.ils-tab-range {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #eef3ff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ils-tab-label {
    display: block;
    font-size: 12px;
    color: rgba(238, 243, 255, 0.55);
    letter-spacing: 0.02em;
}

.ils-tab--active {
    background: linear-gradient(135deg, #e87c2a 0%, #c5631a 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(232, 124, 42, 0.28);
}

.ils-tab--active .ils-tab-range,
.ils-tab--active .ils-tab-label {
    color: #fff;
}

.ils-tab-badge {
    display: inline-block;
    background: #e87c2a;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ils-tab--active.ils-tab--featured .ils-tab-badge {
    background: #fff;
    color: #e87c2a;
}

/* ── Layout hero + lista corsi ─────────────────────────────────── */
.ils-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr;
    gap: var(--lp-space-5);
}

@media (max-width: 980px) {
    .ils-content-grid {
        grid-template-columns: 1fr;
    }
}

.ils-hero-card {
    background: rgba(13, 19, 32, 0.7);
    border: 1px solid rgba(126, 138, 166, 0.18);
    border-radius: 16px;
    padding: var(--lp-space-6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ils-hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 124, 42, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ils-tag {
    display: inline-block;
    background: rgba(232, 124, 42, 0.14);
    color: #e87c2a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.ils-hero-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: #eef3ff;
    position: relative;
    line-height: 1.2;
}

.ils-hero-card p {
    color: rgba(238, 243, 255, 0.72);
    font-size: 15px;
    margin-bottom: 22px;
    line-height: 1.55;
    position: relative;
}

.ils-stats-row {
    display: flex;
    gap: var(--lp-space-4);
    margin-bottom: var(--lp-space-5);
    position: relative;
    flex-wrap: wrap;
}

.ils-stat {
    flex: 1 1 80px;
    min-width: 80px;
}

.ils-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #e87c2a;
    display: block;
    line-height: 1.1;
}

.ils-stat-desc {
    font-size: 11px;
    color: rgba(238, 243, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ils-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-space-3);
    position: relative;
}

/* ── Panel corsi consigliati ───────────────────────────────────── */
.ils-courses-panel {
    background: rgba(13, 19, 32, 0.7);
    border: 1px solid rgba(126, 138, 166, 0.18);
    border-radius: 16px;
    padding: var(--lp-space-5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ils-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--lp-space-3);
    margin-bottom: var(--lp-space-4);
    flex-wrap: wrap;
}

.ils-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #eef3ff;
    margin: 0;
}

.ils-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(238, 243, 255, 0.62);
    cursor: pointer;
    user-select: none;
}

.ils-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ils-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    background: rgba(126, 138, 166, 0.25);
    border-radius: 11px;
    transition: background 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
}

.ils-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #eef3ff;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ils-toggle-input:checked + .ils-toggle {
    background: #e87c2a;
}

.ils-toggle-input:checked + .ils-toggle::after {
    transform: translateX(16px);
    background: #fff;
}

.ils-toggle-input:focus-visible + .ils-toggle {
    outline: 2px solid #E87C2A;
    outline-offset: 2px;
}

/* ── Card corso ────────────────────────────────────────────────── */
.ils-courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--lp-space-3);
}

.ils-course-card {
    display: flex;
    align-items: center;
    gap: var(--lp-space-3);
    padding: var(--lp-space-3) var(--lp-space-4);
    background: rgba(8, 12, 22, 0.7);
    border: 1px solid rgba(126, 138, 166, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ils-course-card:hover {
    border-color: rgba(232, 124, 42, 0.45);
    transform: translateY(-1px);
}

.ils-course-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.ils-course-info {
    flex: 1;
    min-width: 0;
}

.ils-course-title {
    font-size: 14px;
    font-weight: 600;
    color: #eef3ff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ils-course-meta {
    font-size: 12px;
    color: rgba(238, 243, 255, 0.55);
}

.ils-cert-badge {
    font-size: 10px;
    font-weight: 700;
    color: #41d98c;
    background: rgba(65, 217, 140, 0.1);
    border: 1px solid rgba(65, 217, 140, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.ils-empty {
    padding: var(--lp-space-5);
    text-align: center;
    color: rgba(238, 243, 255, 0.55);
    font-size: 13px;
    border: 1px dashed rgba(126, 138, 166, 0.2);
    border-radius: 12px;
}

/* ── Sezione "Perché segmentare" ───────────────────────────────── */
.ils-why {
    margin-top: var(--lp-space-8);
}

@media (max-width: 720px) {
    .ils-tab-range { font-size: 15px; }
    .ils-hero-card h2 { font-size: 22px; }
    .ils-stat-num { font-size: 20px; }
}
