/* ---------------------------------------------------------------------------
   JOBS MANAGER — tema dell'area pubblica.

   Impaginazione editoriale: fondo bianco, filetti da 1px, angoli vivi,
   tipografia Source Sans 3 con titoli molto grandi. Tutte le regole sono
   circoscritte a «body.site», così il pannello resta con il proprio aspetto.
   --------------------------------------------------------------------------- */

body.site {
    --rule: #111318;
    --rule-soft: #dcdfe4;
    --ink: #0d0f13;
    --ink-2: #454b56;
    --ink-3: #6c737f;
    --paper: #fff;
    background: var(--paper);
    color: var(--ink);
    font-size: 16.5px;
}

body.site .wrap { max-width: 1240px; padding: 0 24px; }
body.site .wrap-narrow { max-width: 820px; }

body.site a { color: var(--brand); text-underline-offset: 3px; }
body.site h1, body.site h2, body.site h3 { letter-spacing: -.025em; font-weight: 700; }

body.site :focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Intestazione ---------- */
body.site .site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 60;
}
body.site .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 78px;
    flex-wrap: wrap;
}
body.site .brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}
body.site .brand-logo { display: block; max-height: 46px; max-width: 220px; width: auto; }
body.site .brand-box {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px dashed #b9bec7;
    display: grid;
    place-items: center;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--ink-3);
    text-transform: lowercase;
    font-weight: 600;
}
body.site .brand-text { display: block; line-height: 1.2; }
body.site .brand-name {
    display: block;
    font-size: 19px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
}
body.site .brand-line {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--ink-3);
    letter-spacing: 0;
    margin-top: 1px;
}

body.site .site-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
body.site .site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
}
body.site .site-nav a:hover { border-bottom-color: var(--rule-soft); background: none; color: var(--ink); }
body.site .site-nav a.is-active { border-bottom-color: var(--ink); background: none; color: var(--ink); }

/* ---------- Pulsanti ---------- */
body.site .btn {
    border-radius: 0;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    font-weight: 600;
    padding: 13px 26px;
    font-size: 15.5px;
}
body.site .btn:hover { background: #000; border-color: #000; color: #fff; }
body.site .btn-ghost {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--rule);
}
body.site .btn-ghost:hover { background: #f4f5f7; color: var(--ink); border-color: var(--ink); }
body.site .btn-sm { padding: 9px 18px; font-size: 14px; }
body.site .btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ---------- Campi ---------- */
body.site input[type="text"], body.site input[type="email"], body.site input[type="tel"],
body.site input[type="search"], body.site input[type="url"], body.site select, body.site textarea {
    border-radius: 0;
    border: 1px solid var(--rule-soft);
    font-size: 15.5px;
    padding: 12px 14px;
    background: var(--paper);
}
body.site input:focus, body.site select:focus, body.site textarea:focus {
    border-color: var(--ink);
    box-shadow: none;
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
body.site .file-field { border-radius: 0; border-style: dashed; border-color: var(--rule-soft); background: #fafbfc; }
body.site .file-field:hover, body.site .file-field.is-hover { border-color: var(--ink); background: #f4f5f7; }
body.site .alert { border-radius: 0; }

/* ---------- Sezione introduttiva ---------- */
body.site .hero { padding: 76px 0 68px; border-bottom: 1px solid var(--rule); }
body.site .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: start;
}
body.site .hero-kicker {
    color: var(--brand);
    font-weight: 700;
    font-size: 15.5px;
    margin: 0 0 18px;
}
body.site .hero h1 {
    font-size: clamp(38px, 5.4vw, 62px);
    line-height: 1.04;
    margin: 0 0 22px;
    letter-spacing: -.035em;
}
body.site .hero-text {
    font-size: 18px;
    color: var(--ink-2);
    margin: 0 0 30px;
    max-width: 46ch;
    line-height: 1.55;
}
body.site .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Riquadro numeri */
body.site .stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
body.site .stats-box.is-single { grid-template-columns: 1fr; }
body.site .stat-cell {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 30px 28px 26px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.site .stat-cell .n {
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}
body.site .stat-cell .t { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }

/* ---------- Barra di ricerca ---------- */
body.site .search-bar { border-bottom: 1px solid var(--rule); padding: 20px 0; }
body.site .search-form {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: center;
}
body.site .search-form .field { margin: 0; }
body.site .search-form label {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
body.site .search-reset { font-size: 14px; }

/* ---------- Elenco delle posizioni ---------- */
body.site .list-section { padding: 56px 0 10px; }
body.site .list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
}
body.site .list-head h1, body.site .list-head h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    margin: 0;
}
body.site .list-meta { color: var(--ink-3); font-size: 14.5px; }

body.site .jobs { list-style: none; margin: 0; padding: 0; }
body.site .jobs > li { border-bottom: 1px solid var(--rule-soft); }
body.site .job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 26px 0;
    flex-wrap: wrap;
}
body.site .job-row-main { flex: 1 1 420px; min-width: 0; }
body.site .job-row h3 { margin: 0 0 12px; font-size: 20px; }
body.site .job-row h3 a { color: var(--ink); text-decoration: none; }
body.site .job-row h3 a:hover { text-decoration: underline; }
body.site .job-row .job-excerpt {
    color: var(--ink-2);
    font-size: 14.5px;
    margin: 0 0 12px;
    max-width: 76ch;
}
body.site .job-row-action { flex: 0 0 auto; }

body.site .tag {
    border-radius: 0;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    color: var(--ink-2);
    padding: 5px 12px;
    font-size: 13.5px;
    font-weight: 500;
}
body.site .tag-brand { background: var(--paper); border-color: var(--rule-soft); color: var(--ink-2); }
body.site .tag-new { border-color: var(--brand); color: var(--brand); font-weight: 600; }
body.site .tag-warn { background: var(--paper); border-color: #e0c688; color: #8a5a00; }

body.site .list-more { text-align: center; padding: 34px 0 44px; border-bottom: 1px solid var(--rule); }
body.site .list-more a { font-weight: 600; text-decoration: none; }
body.site .list-more a:hover { text-decoration: underline; }

/* ---------- Riquadri valori ---------- */
body.site .values { padding: 56px 0 64px; }
body.site .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
body.site .value-card {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 34px 30px 38px;
}
body.site .value-card .mark { width: 26px; height: 26px; background: var(--ink); margin-bottom: 24px; }
body.site .value-card h3 { font-size: 19px; margin: 0 0 12px; }
body.site .value-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- Insegne ---------- */
body.site .brands { padding: 10px 0 56px; }
body.site .brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
body.site .brand-card {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 26px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 168px;
}
body.site .brand-card:hover { background: #f7f8f9; color: inherit; }
body.site .brand-card .segment-logo { height: 44px; }
body.site .brand-card .segment-logo img { max-height: 44px; max-width: 160px; }
body.site .logo-fallback {
    border-radius: 0;
    background: #f1f2f4;
    color: var(--ink);
    width: 44px;
    height: 44px;
    font-size: 15px;
}
body.site .brand-card h3 { font-size: 17px; margin: 0; }
body.site .brand-card .n { margin-top: auto; font-size: 14px; color: var(--ink-3); }

/* ---------- Dettaglio offerta e moduli ---------- */
body.site .crumbs { padding: 22px 0 0; }
body.site .panel {
    border-radius: 0;
    border: 1px solid var(--rule);
    box-shadow: none;
    padding: 34px;
}
body.site .panel + .panel { margin-top: 22px; }
body.site .panel h2 { font-size: 21px; }
body.site .panel h3 { font-size: 17px; margin: 30px 0 12px; }
body.site .panel h4 { font-size: 15.5px; margin: 20px 0 8px; letter-spacing: -.01em; }
body.site .prose { color: var(--ink-2); font-size: 16px; }
body.site .prose li::marker { color: var(--ink); }

body.site .detail-head { padding: 34px 0 30px; border-bottom: 1px solid var(--rule); }
body.site .detail-head h1 {
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.08;
    margin: 0 0 16px;
}
body.site .detail-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 14.5px;
    color: var(--ink-3);
}
body.site .detail-kicker a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
body.site .detail-kicker a:hover { text-decoration: underline; }
body.site .job-layout { padding: 34px 0 20px; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; }
body.site .summary-list li { border-bottom-color: var(--rule-soft); }
body.site .result-box { padding: 30px 20px; }
body.site .result-box .result-icon { border-radius: 0; }

body.site .segment-hero {
    border-radius: 0;
    border: 1px solid var(--rule);
    box-shadow: none;
    padding: 32px;
    align-items: flex-start;
}
body.site .detail-head .segment-hero .segment-logo { margin-top: 6px; }
body.site .empty { border-radius: 0; border: 1px dashed var(--rule-soft); }
body.site .pagination a, body.site .pagination span { border-radius: 0; border-color: var(--rule-soft); }
body.site .pagination .is-current { background: var(--ink); border-color: var(--ink); }

/* Scelta dell'insegna nella candidatura spontanea */
body.site .choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
body.site .choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--rule-soft);
    padding: 16px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    font-size: 15px;
    transition: border-color .14s, background .14s;
}
body.site .choice:hover { border-color: var(--ink); background: #fafbfc; }
body.site .choice input { margin-top: 3px; accent-color: var(--brand); flex: 0 0 18px; width: 18px; height: 18px; }
body.site .choice-name { font-weight: 600; display: block; }
body.site .choice-note { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
body.site .choice.is-selected { border-color: var(--ink); background: #f7f8f9; }

body.site .steps {
    margin: 0; padding: 0 0 0 20px; font-size: 14.5px; color: var(--ink-2);
}
body.site .steps li { padding: 7px 0; }
body.site .steps li::marker { color: var(--ink); font-weight: 700; }

/* ---------- Piè di pagina ---------- */
body.site .site-footer {
    margin-top: 0;
    border-top: 1px solid var(--rule);
    padding: 30px 0;
    background: var(--paper);
    font-size: 14.5px;
    color: var(--ink-3);
}
body.site .site-footer .wrap { align-items: center; gap: 20px; }
body.site .footer-links { gap: 26px; }
body.site .site-footer a { color: var(--ink-2); }

/* ---------- Adattamenti ---------- */
@media (max-width: 1000px) {
    body.site .hero-grid { grid-template-columns: 1fr; gap: 42px; }
    body.site .search-form { grid-template-columns: 1fr 1fr; }
    body.site .search-form .field-search { grid-column: 1 / -1; }
    body.site .job-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body.site { font-size: 16px; }
    body.site .wrap { padding: 0 18px; }
    body.site .site-header .wrap { min-height: 66px; padding-top: 12px; padding-bottom: 12px; }
    body.site .site-nav { gap: 18px; width: 100%; }
    body.site .hero { padding: 46px 0 42px; }
    body.site .stats-box { grid-template-columns: 1fr 1fr; }
    body.site .stat-cell { padding: 22px 18px; min-height: 118px; }
    body.site .search-form { grid-template-columns: 1fr; }
    body.site .job-row { align-items: flex-start; gap: 16px; }
    body.site .job-row-action { width: 100%; }
    body.site .job-row-action .btn { width: 100%; }
    body.site .panel { padding: 24px 18px; }
    body.site .list-section { padding: 40px 0 6px; }
}

@media print {
    body.site .search-bar, body.site .list-more { display: none; }
}
