/* View: Views/Home/Job.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: 860px;
}
.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; }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

/* TIPOGRAFIA */
.jb-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;
}
.jb-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;
}
.jb-title--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.jb-title span.hl { color: var(--cyan); }
.jb-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;
}
.jb-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 0 0;
}

.jb-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;
}
.jb-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
.jb-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;
}
.jb-btn-ghost:hover { border-color: #b8b8c0; color: var(--ap-ink); transform: translateY(-1px); text-decoration: none; }

.divisore-minimal {
    border: none;
    border-top: 1px solid var(--ap-line);
    margin: 0;
    opacity: 1;
}

/* INTRO */
.sez-jb-intro {
    background: #fff;
    padding: clamp(64px, 9vw, 120px) 0;
}
.jb-intro-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* COSA OFFRIAMO */
.sez-jb-offer {
    background: var(--ap-surface);
    padding: clamp(64px, 9vw, 120px) 0;
}
.offer-card {
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    padding: 34px 32px;
    height: 100%;
    transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
}
.offer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,159,218,.30);
    box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
}
.offer-card .offer-num {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.offer-card h3 {
    font-family: var(--ap-font);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-snug);
    line-height: 1.2;
    margin: 0 0 10px;
}
.offer-card p {
    font-family: var(--ap-font);
    font-size: .95rem;
    color: var(--ap-grey);
    line-height: 1.6;
    margin: 0;
}

/* POSIZIONI */
.sez-jb-jobs {
    background: #fff;
    padding: clamp(64px, 9vw, 120px) 0;
}
.jobs-list {
    max-width: 900px;
    margin: 0 auto;
}
.job-item {
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.job-item:hover { border-color: rgba(0,159,218,.30); }
.job-item.is-open {
    border-color: rgba(0,159,218,.30);
    box-shadow: 0 30px 70px -32px rgba(0,159,218,.38);
}
.job-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 28px 30px;
    cursor: pointer;
    font-family: var(--ap-font);
}
.job-head:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.job-head-text { flex: 1; min-width: 0; }
.job-head-text h2 {
    font-family: var(--ap-font);
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-snug);
    line-height: 1.25;
    margin: 0;
}
.job-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ap-font);
    font-size: .78rem;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}
.job-toggle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ap-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-ink);
    transition: background .25s, color .25s, transform .3s;
}
.job-head:hover .job-toggle { background: var(--ap-ink); color: #fff; }
.job-item.is-open .job-toggle {
    background: var(--cyan);
    color: #fff;
    transform: rotate(180deg);
}
.job-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.2,.65,.3,1);
}
.job-panel-inner {
    padding: 0 30px 30px;
    border-top: 1px solid var(--ap-line);
    margin: 0 30px;
    padding-left: 0;
    padding-right: 0;
}
.job-panel-inner .description {
    font-family: var(--ap-font);
    font-size: 1rem;
    color: var(--ap-grey);
    line-height: 1.75;
    margin: 24px 0 26px;
    white-space: pre-line;
}

/* CTA FINALE */
.sez-jb-cta { background: #fff; padding: 0 0 clamp(64px, 9vw, 120px); }
.jb-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;
}
.jb-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;
}
.jb-cta-band > * { position: relative; z-index: 1; }
.jb-cta-band .jb-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); }
    .job-head { padding: 22px 20px; gap: 14px; }
    .job-panel-inner { margin: 0 20px; padding-bottom: 24px; }
    .offer-card { padding: 28px 24px; }
}
