/* View: Views/Home/CaseHistoryList.cshtml */
:root {
    --ap-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ap-ink: #1d1d1f;
    --ap-grey: #6e6e73;
    --ap-line: #e4edf5;
    --ap-surface: #f5f5f7;
    --navy: #003c78;
    --blu: #007FBF;
    --cyan: #009FDA;
    --giallo: #FFB704;
    --ls-tight: -.03em;
    --ls-snug: -.015em;
    --lh-tight: 1.05;
}

#header.fixed-top {
    background-color: rgba(255,255,255,.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ap-line);
}
#header.fixed-top a,
#header.fixed-top .nav-link,
#header.fixed-top .navbar-nav .nav-link,
#header.fixed-top li a { color: var(--ap-ink) !important; }

/* HERO */
.blog-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    text-align: center;
    padding: clamp(120px, 14vw, 180px) 24px clamp(72px, 10vw, 120px);
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: -30%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,159,218,.12), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero .sez-label {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.blog-hero h1 {
    font-family: var(--ap-font);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--ap-ink);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 20px;
    max-width: 900px;
}
.blog-hero h1 span { color: var(--cyan); }
.blog-hero .hero-sub {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    color: var(--ap-grey);
    line-height: 1.65;
    margin: 0 auto 40px;
    max-width: 620px;
}
.blog-hero-divider {
    width: 56px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--cyan);
    margin: 0 auto 40px;
    opacity: 1;
}
.blog-hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-grey);
    font-family: var(--ap-font);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}
.blog-hero-scroll:hover { color: var(--cyan); text-decoration: none; }

/* TIPOGRAFIA */
.ch-label {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.ch-title {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 14px;
}
.ch-title--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.ch-title span.hl { color: var(--cyan); }
.ch-sub {
    font-family: var(--ap-font);
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    color: var(--ap-ink);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.ch-lead {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    color: var(--ap-grey);
    font-weight: 400;
    line-height: 1.7;
    margin: 18px auto 0;
    max-width: 820px;
}

.ch-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ap-ink);
    color: #fff;
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 30px;
    border-radius: 980px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.ch-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
.ch-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ap-ink);
    border: 1px solid var(--ap-line);
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 28px;
    border-radius: 980px;
    text-decoration: none;
    transition: border-color .2s, transform .15s;
}
.ch-btn-ghost:hover { border-color: #b8b8c0; color: var(--ap-ink); transform: translateY(-1px); text-decoration: none; }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.divisore-minimal {
    border: none;
    border-top: 1px solid var(--ap-line);
    margin: 0;
    opacity: 1;
}

/* INTRO */
.sez-ch-intro {
    background: #fff;
    padding: clamp(64px, 9vw, 110px) 0 clamp(32px, 4vw, 56px);
    text-align: center;
}

/* FILTRI */
.ch-filtri {
    background: #fff;
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}
.ch-filtri .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.ch-filtri .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ch-filtri .btn-filter {
    font-family: var(--ap-font);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ap-ink);
    background: var(--ap-surface);
    border: 1px solid #e0e0e5;
    border-radius: 980px;
    padding: 8px 20px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.ch-filtri .btn-filter:hover,
.ch-filtri .btn-filter.active {
    background: var(--ap-ink);
    border-color: var(--ap-ink);
    color: #fff;
    text-decoration: none;
}
.ch-filtri .webinar-link {
    font-family: var(--ap-font);
    font-size: .9rem;
    font-weight: 600;
    color: var(--blu);
    text-decoration: none;
}
.ch-filtri .webinar-link a { color: inherit; text-decoration: none; }
.ch-filtri .webinar-link:hover,
.ch-filtri .webinar-link a:hover { color: var(--navy); text-decoration: underline; }

/* GRIGLIA */
.sez-ch-grid {
    background: #fff;
    padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 120px);
}
.ch-card {
    display: block;
    height: 100%;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, var(--ap-surface) 100%);
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
}
.ch-card:hover {
    text-decoration: none;
    transform: translateY(-6px);
    border-color: rgba(0,159,218,.30);
    box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
}
.ch-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--ap-surface);
}
.ch-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.ch-card:hover .ch-card-media img { transform: scale(1.04); }
.ch-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ch-card-body h2 {
    font-family: var(--ap-font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-snug);
    line-height: 1.3;
    margin: 0;
}
.ch-card-meta {
    font-family: var(--ap-font);
    font-size: .84rem;
    color: var(--ap-grey);
    line-height: 1.5;
    margin: 0;
}
.ch-card-read {
    font-family: var(--ap-font);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ap-ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    transition: color .2s, gap .2s;
}
.ch-card:hover .ch-card-read { color: var(--cyan); gap: 11px; }

/* CTA FINALE */
.sez-ch-cta { background: #fff; padding: 0 0 clamp(64px, 9vw, 120px); }
.ch-cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e7f6fd 0%, #f3fbff 55%, #ffffff 100%);
    border: 1px solid #d4ecfa;
    border-radius: 32px;
    padding: clamp(56px, 8vw, 110px) 32px;
    text-align: center;
}
.ch-cta-band::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -45%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,159,218,.20), transparent 65%);
    filter: blur(54px);
    pointer-events: none;
}
.ch-cta-band > * { position: relative; z-index: 1; }
.ch-cta-band .ch-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .blog-hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .ch-filtri .container { flex-direction: column; align-items: flex-start; }
}
