/* audience-first-v428.css — Pagina /percorsi — 5 segmenti audience-first
   CI: Competitive Intelligence — EF Education First audience-first navigation.
   Stile: 3-col card grid + hero card 2-span + panel footer CTA contestuale.
   Liquid v100: variabili --lp-*, glass dark, accenti #E87C2A.
   NB: caricato via <link> in index.html (Blazor scoped CSS NON linkato in deploy staging). */

/* ── Section wrapper ─────────────────────────────────────────────── */
.af-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--lp-space-8) var(--lp-space-6);
}

/* ── Tab bar ─────────────────────────────────────────────────────── */
.af-tab-bar {
    display: flex;
    gap: 4px;
    background: rgba(13, 19, 32, 0.72);
    border: 1px solid rgba(126, 138, 166, 0.18);
    border-radius: 13px;
    padding: 6px;
    margin: var(--lp-space-6) 0 var(--lp-space-5);
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.af-tab-btn {
    flex: 1;
    min-width: 110px;
    padding: 11px 14px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: rgba(238, 243, 255, 0.45);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.af-tab-btn:hover {
    background: rgba(232, 124, 42, 0.08);
    color: rgba(238, 243, 255, 0.8);
}

.af-tab-btn:hover .af-tab-range {
    color: rgba(238, 243, 255, 0.4);
}

.af-tab-btn:focus-visible {
    outline: 2px solid #e87c2a;
    outline-offset: 2px;
}

.af-tab-btn--active {
    background: #e87c2a;
    color: #fff;
    box-shadow: 0 4px 18px rgba(232, 124, 42, 0.32);
}

.af-tab-btn--active .af-tab-range {
    color: rgba(255, 255, 255, 0.72);
}

.af-tab-icon {
    font-size: 20px;
    margin-bottom: 1px;
    line-height: 1;
}

.af-tab-range {
    font-size: 9.5px;
    font-weight: 500;
    color: rgba(238, 243, 255, 0.25);
    letter-spacing: 0.03em;
    transition: color 0.18s ease;
}

/* ── Card grid ───────────────────────────────────────────────────── */
.af-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

/* ── Base card ───────────────────────────────────────────────────── */
.af-card {
    background: #0d1320;
    border: 1px solid rgba(126, 138, 166, 0.18);
    border-radius: 14px;
    padding: 22px 20px 20px;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.af-card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2.5px;
    background: linear-gradient(90deg, #e87c2a, #f5a650);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 14px 14px 0 0;
}

.af-card:hover {
    border-color: rgba(232, 124, 42, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.af-card:hover::after {
    transform: scaleX(1);
}

/* ── Hero card (spans 2 cols) ────────────────────────────────────── */
.af-card--hero {
    grid-column: span 2;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.af-hero-thumb {
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    background: rgba(232, 124, 42, 0.1);
    border: 1px solid rgba(232, 124, 42, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

/* ── Card internals ──────────────────────────────────────────────── */
.af-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #e87c2a;
    background: rgba(232, 124, 42, 0.1);
    border: 1px solid rgba(232, 124, 42, 0.22);
    border-radius: 6px;
    padding: 2.5px 7px;
    margin-bottom: 12px;
}

.af-card-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

.af-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #eef3ff;
    line-height: 1.3;
    margin-bottom: 7px;
}

.af-card-desc {
    font-size: 12.5px;
    color: rgba(238, 243, 255, 0.52);
    line-height: 1.6;
    margin-bottom: 16px;
}

.af-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10.5px;
    color: rgba(238, 243, 255, 0.38);
    margin-bottom: 15px;
}

.af-c-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #e87c2a;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: gap 0.18s ease;
}

.af-c-link:hover {
    gap: 8px;
}

/* ── Panel footer CTA ────────────────────────────────────────────── */
.af-panel-foot {
    margin-top: 20px;
    padding: 22px 26px;
    background: linear-gradient(130deg, rgba(232, 124, 42, 0.08) 0%, rgba(232, 124, 42, 0.02) 100%);
    border: 1px solid rgba(232, 124, 42, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.af-foot-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #eef3ff;
    display: block;
    margin-bottom: 3px;
}

.af-foot-text p {
    font-size: 12.5px;
    color: rgba(238, 243, 255, 0.5);
}

.af-foot-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .af-grid {
        grid-template-columns: 1fr;
    }

    .af-card--hero {
        grid-column: span 1;
        flex-direction: column;
    }

    .af-hero-thumb {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .af-tab-btn {
        min-width: 80px;
        font-size: 11px;
        padding: 9px 8px 8px;
    }

    .af-tab-icon {
        font-size: 17px;
    }

    .af-panel-foot {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .af-section {
        padding: var(--lp-space-6) var(--lp-space-4);
    }

    .af-tab-bar {
        gap: 2px;
        padding: 4px;
    }
}
