/* ===========================================================
   STELLE DELL'ACCESSIBILITA — UMIP
   Merge: Direction B (hero "cos'è") + Direction A (albo + dettaglio)
   =========================================================== */

:root {
    --st-blue:       #1d97d4;
    --st-blue-deep:  #0f6fa5;
    --st-blue-dark:  #0a4f78;
    --st-coral:      #e94560;
    --st-ink:        #2a2a2a;
    --st-ink-soft:   #555;
    --st-paper:      #ffffff;
    --st-paper-warm: #fbf8f3;
    --st-paper-cool: #f4f8fb;
    --st-line:       #e6e9ec;
    /* Scala unica per il corpo del testo (lead / section / card / step) */
    --st-body:       20px;
    --st-body-lh:    1.6;
}
@media (max-width: 1024px) { :root { --st-body: 19px; } }
@media (max-width: 720px)  { :root { --st-body: 18px; } }
@media (max-width: 480px)  { :root { --st-body: 17px; } }

.stelle-page {
    font-family: 'Exo 2', sans-serif;
    color: var(--st-ink);
    line-height: 1.55;
    position: relative;
    z-index: 0;
    overflow-x: clip;   /* evita scroll orizzontale dalle fasce full-bleed (100vw) */
}

/* Sfondo animato: stelle stagionali che fluttuano dietro i contenuti */
.st-bg-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.st-bg-stars span {
    position: absolute;
    line-height: 1;
    will-change: transform, opacity;
}
.st-container,
.st-hero-strip,
.st-form-hero,
.st-albo-head,
.st-cta-final {
    position: relative;
    z-index: 1;
}
.stelle-page * { box-sizing: border-box; }
.stelle-page a { color: var(--st-blue); text-decoration: none; }
.stelle-page a:hover { text-decoration: underline; }

/* Container centrale: max 1280px (come gli artboard del design) */
.st-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 100px;
}

/* ========== SUB-NAV STELLE (editorial tabs) ========== */
.st-subnav {
    background: #fff;
    border-bottom: 1px solid var(--st-line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.st-subnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: nowrap;
}
.st-subnav-link {
    position: relative;
    padding: 22px 4px;
    background: transparent;
    color: #8a93a0 !important;
    border: 0;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s;
}
.st-subnav-short { display: none; }
.st-subnav-link::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%;
    bottom: -1px;
    height: 2px;
    background: var(--st-blue);
    transition: left .25s ease, right .25s ease;
}
.st-subnav-link:hover {
    color: var(--st-blue-deep) !important;
}
.st-subnav-link.is-active {
    color: var(--st-blue-deep) !important;
    font-weight: 700;
}
.st-subnav-link.is-active::after {
    left: 0; right: 0;
}
@media (max-width: 600px) {
    .st-subnav-inner {
        justify-content: space-evenly;
        gap: 10px;
        padding: 0 22px;
        overflow-x: auto;            /* sicurezza: scroll invece di andare a capo */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .st-subnav-inner::-webkit-scrollbar { display: none; }
    .st-subnav-link { padding: 15px 2px; font-size: 15px; letter-spacing: 0.2px; }
    .st-subnav-full  { display: none; }   /* mobile: usa la label corta */
    .st-subnav-short { display: inline; }
}

/* ========== HERO STRIP (Direction B) ========== */
.st-hero-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 380px;
}
.st-hero-cell {
    padding: 48px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}
.st-hero-glyph {
    position: absolute; top: 18px; left: 18px;
    font-size: 40px; opacity: 0.35; line-height: 1;
}
.st-hero-label { text-align: center; }
.st-hero-season {
    font-size: 22px; font-weight: 800; letter-spacing: 0.3px;
}
.st-hero-months {
    font-size: 12px; opacity: 0.7; margin-top: 2px;
    letter-spacing: 1px; text-transform: uppercase;
}

/* ========== INTRO ========== */
.st-intro {
    text-align: center;
    padding: 72px 0 48px;
}
.st-eyebrow {
    font-size: 13px; color: var(--st-coral);
    font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 14px;
}
.st-eyebrow-range { font-weight: 600; }
/* mobile + tablet: la data va a capo (evita la riga storta) */
@media (max-width: 1024px) {
    .st-eyebrow-range { display: block; margin-top: 6px; }
    .st-eyebrow-sep { display: none; }
}
.st-h1 {
    font-size: 64px; margin: 0; font-weight: 800;
    color: var(--st-blue-deep);
    letter-spacing: -1.5px; line-height: 1.05;
}
.st-h1-grad {
    display: inline-block;
    background: linear-gradient(90deg, #6ba368, #e89a2b, #c9512e, #3f7ea6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-style: italic;
}
.st-lead {
    max-width: 760px; margin: 24px auto 0;
    color: var(--st-ink-soft); font-size: var(--st-body); line-height: var(--st-body-lh);
}
.st-cta-row {
    margin-top: 32px;
    display: inline-flex; gap: 12px; flex-wrap: wrap;
    justify-content: center;
}
.st-btn {
    display: inline-block;
    border: 0; padding: 16px 32px;
    font-weight: 700; letter-spacing: 0.8px;
    font-size: 13px; cursor: pointer;
    border-radius: 999px;
    font-family: inherit;
    text-decoration: none !important;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.st-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.st-btn-primary { background: var(--st-blue-deep); color: #fff; }
.st-btn-ghost {
    background: transparent; color: var(--st-blue-deep);
    text-decoration: underline !important; padding: 14px 22px;
}

/* ========== SECTIONS ========== */
.st-section {
    padding: 32px 0;
}
.st-albo-head {
    padding: 64px 24px 36px;
    text-align: center;
}
.st-albo-hero {
    max-width: 820px;
    margin: 0 auto;
}
.st-albo-title {
    font-size: 60px;
    font-weight: 800;
    color: var(--st-blue-deep);
    letter-spacing: -1.5px;
    line-height: 1.04;
    margin: 8px 0 0;
}
.st-albo-lead {
    max-width: 740px;
    margin: 20px auto 0;
    color: var(--st-ink-soft);
    font-size: var(--st-body);
    line-height: var(--st-body-lh);
}
.st-albo-stars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    margin: 30px auto 0;
}
.st-albo-star { line-height: 0; }
.st-albo-star img {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.08));
}
.st-albo-star:nth-child(odd) { transform: translateY(-8px); }
.st-albo-head .st-filters { margin-top: 34px; }

@media (max-width: 640px) {
    .st-albo-title { font-size: 36px; }
    .st-albo-star img { width: 58px; height: 58px; }
}
.st-h2 {
    color: var(--st-blue-deep);
    font-size: 40px; margin: 0; font-weight: 700;
}
.st-h2-center {
    color: var(--st-blue-deep);
    font-size: 34px; margin: 0 0 28px; font-weight: 700;
    text-align: center;
}
.st-h2-blue {
    color: var(--st-blue);
    font-size: 36px; font-weight: 700;
    margin-bottom: 12px;
}
.st-section-lead {
    max-width: 740px; margin: 0 auto 32px;
    color: var(--st-ink-soft); text-align: center;
    font-size: var(--st-body); line-height: var(--st-body-lh);
}

/* ========== "Una stella, fisica e digitale" ========== */
.st-card-wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    background: #f9f9f9;
    border-radius: 0;
    /* Fascia grigia full-bleed: sfondo da bordo a bordo, contenuto allineato al container */
    margin-inline: calc(50% - 50vw);
    padding-block: 72px;
    padding-inline: calc(50vw - 50%);
}
.st-card-wide-text p {
    color: var(--st-ink-soft);
    margin-top: 16px; font-size: var(--st-body); line-height: var(--st-body-lh);
}
.st-perks {
    margin-top: 18px; padding: 0; list-style: none;
    display: grid; gap: 10px;
}
.st-perks li {
    display: flex; gap: 10px; align-items: center;
    font-size: var(--st-body); color: var(--st-ink);
}
.st-perks li span {
    color: var(--st-coral); font-size: 24px;
}
.st-card-wide-art { display: flex; justify-content: center; }

.st-card-wide-art .stella-umip {
    width: auto;
    height: auto;
    max-width: min(100%, 480px);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

/* ========== COME FUNZIONA — 4 step (card connesse) ========== */
.st-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    padding-top: 34px;   /* spazio per il badge che sborda in alto */
}
/* Linea che collega le card, centrata verticalmente dietro (visibile nei gap) */
.st-steps::before {
    content: "";
    position: absolute;
    top: 50%; transform: translateY(-50%);
    left: 12.5%; right: 12.5%;
    height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, #6ba368, #e89a2b, #c9512e, #3f7ea6);
    opacity: 0.7;
    z-index: 0;
}
.st-step {
    position: relative;
    z-index: 1;
    border: 1px solid var(--st-line);
    padding: 46px 24px 28px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.st-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.09);
    border-color: transparent;
}
.st-step-num {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--st-blue-deep);
    color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.st-step-title {
    font-size: 23px; font-weight: 700;
    color: var(--st-blue-deep);
    margin: 4px 0 8px;
}
/* Colori stagionali su badge + titolo */
.st-step:nth-child(1) .st-step-title { color: #6ba368; } /* primavera - verde */
.st-step:nth-child(2) .st-step-title { color: #e89a2b; } /* estate - giallo */
.st-step:nth-child(3) .st-step-title { color: #c9512e; } /* autunno - arancio */
.st-step:nth-child(4) .st-step-title { color: #3f7ea6; } /* inverno - blu */
.st-step:nth-child(1) .st-step-num { background: #6ba368; }
.st-step:nth-child(2) .st-step-num { background: #e89a2b; }
.st-step:nth-child(3) .st-step-num { background: #c9512e; }
.st-step:nth-child(4) .st-step-num { background: #3f7ea6; }
.st-step-desc {
    font-size: var(--st-body); color: var(--st-ink-soft); line-height: var(--st-body-lh);
}

/* ========== TIMELINE STAGIONI ========== */
.st-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
}
.st-tl-cell {
    padding: 28px 22px;
    position: relative;
}
.st-tl-glyph {
    font-size: 36px; line-height: 1; opacity: 0.4;
}
.st-tl-cell.is-active .st-tl-glyph {
    opacity: 1;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.28));
}
.st-tl-label {
    font-size: 22px; font-weight: 800; margin-top: 14px;
}
.st-tl-months {
    font-size: 12px; opacity: 0.85;
    margin-top: 4px; letter-spacing: 1px;
}
.st-tl-divider {
    height: 1px; margin: 16px 0;
}
.st-tl-info {
    font-size: 12px; opacity: 0.85;
}
.st-tl-info b { font-size: 14px; }
.st-tl-pill {
    margin-top: 14px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px; display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.st-tl-pill:hover {
    background: #fff;
    color: var(--st-ink) !important;
    transform: translateY(-1px);
}

/* ========== ALBO (Direction A) ========== */
.st-albo .st-h2-center { margin-bottom: 10px; }

.st-filters {
    display: flex; justify-content: center;
    gap: 8px; padding: 8px 0 32px; flex-wrap: wrap;
}
.st-chip {
    --chip-color: var(--st-blue);
    --chip-border: var(--st-blue);
    padding: 10px 20px;
    border: 1.5px solid var(--st-line);
    background: #fff;
    color: var(--chip-color);
    font-weight: 700; font-size: 12px;
    letter-spacing: 0.8px; text-transform: uppercase;
    border-radius: 24px; cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.st-chip:hover {
    border-color: var(--chip-border);
}
.st-chip.is-active {
    background: var(--chip-border);
    border-color: var(--chip-border);
    color: #fff;
}
.st-chip[data-filter="tutti"] { --chip-color: var(--st-blue); --chip-border: var(--st-blue); }
.st-chip span { opacity: 0.7; margin-left: 4px; }

.st-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.st-noresults {
    text-align: center; color: #8a93a0;
    padding: 40px 0; font-size: 17px;
}
.st-pagination {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 8px;
    margin-top: 36px;
}
.st-page {
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--st-line);
    border-radius: 6px;
    background: #fff; color: var(--st-blue-deep);
    font-weight: 700; font-size: 15px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.st-page:hover:not(:disabled):not(.is-active) { border-color: var(--st-blue); color: var(--st-blue); }
.st-page.is-active {
    background: var(--st-blue); border-color: var(--st-blue); color: #fff; cursor: default;
}
.st-page:disabled { opacity: 0.4; cursor: default; }
.st-card {
    display: block;
    border: 1px solid var(--st-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.st-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-decoration: none !important;
}
.st-card-img {
    position: relative;
    aspect-ratio: 16/10;
    background: #e8e8e8;
    overflow: hidden;
}
/* Backdrop sfocato: riempie le bande con la foto stessa invece del grigio */
.st-card-img-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    filter: blur(18px) saturate(1.15);
    z-index: 0;
}
/* Foto intera visibile sopra, senza tagli */
.st-card-img-fg {
    position: relative;
    width: 100%; height: 100%;
    object-fit: contain; display: block;
    z-index: 1;
}
.st-card-img img {
    display: block;
}
.st-card-img-fallback {
    width: 100%; height: 100%;
    background: repeating-linear-gradient(135deg, #eaeef2 0 14px, #dfe5eb 14px 28px);
    display: flex; align-items: center; justify-content: center;
    color: #8b95a0;
    font-family: 'Exo 2', sans-serif;
    font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase;
}
.st-card-tagrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.st-card-star-inline {
    flex-shrink: 0;
    line-height: 0;
}
.st-card-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
}
.st-card-body { padding: 18px; }
.st-card-type {
    font-size: 11px; color: var(--st-ink-soft);
    letter-spacing: 1px; text-transform: uppercase;
}
.st-card-name {
    font-size: 18px; font-weight: 700;
    color: var(--st-blue-deep); margin-top: 4px;
}
.st-card-city {
    font-size: 13px; color: var(--st-ink-soft); margin-top: 2px;
}
.st-card-feats {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 14px;
}
.st-card-feats span {
    font-size: 11px; padding: 4px 8px;
    background: var(--st-paper-cool);
    color: var(--st-blue-deep);
    border-radius: 3px;
}
.st-empty {
    text-align: center; padding: 40px;
    color: var(--st-ink-soft); font-style: italic;
}

/* ========== CTA FINALE (deprecato — solo se serve) ========== */
.st-cta-final {
    padding: 56px 0 60px;
    position: relative; overflow: hidden;
}
.st-cta-final-glyph {
    position: absolute; right: -40px; top: -20px;
    opacity: 0.18; font-size: 360px; line-height: 1;
    pointer-events: none;
}
.st-cta-final-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px; align-items: center;
}
.st-cta-final-grid p {
    max-width: 540px; margin-top: 16px;
    color: var(--st-ink); font-size: 15px;
}
.st-cta-final-grid .st-btn { margin-top: 24px; }

/* ===========================================================
   DETTAGLIO (single-stella.php) — Direction A layout
   =========================================================== */
.st-detail .st-bc {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px;
    padding: 28px 0 12px;
    font-size: 16px;
    color: var(--st-ink-soft);
}
.st-detail .st-bc a {
    color: var(--st-blue); text-decoration: none; font-weight: 600;
    transition: color .15s;
}
.st-detail .st-bc a:hover { color: var(--st-blue-deep); text-decoration: underline; }
.st-detail .st-bc-sep { color: #c2cad2; font-size: 18px; line-height: 1; }
.st-detail .st-bc-current { color: var(--st-ink); font-weight: 700; }

.st-detail-hero {
    padding: 0 0 40px;
}
.st-detail-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}
.st-detail-hero-main,
.st-detail-hero-side > * {
    aspect-ratio: 16/10;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.st-detail-hero-main img,
.st-detail-hero-side img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.st-detail-hero-side {
    display: grid; gap: 8px;
}
.st-detail-hero-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #8b95a0;
    background: repeating-linear-gradient(135deg, #eaeef2 0 14px, #dfe5eb 14px 28px);
    font-family: 'Exo 2', sans-serif;
    font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase;
}

.st-detail-title-row {
    display: flex; align-items: flex-start;
    gap: 32px; margin-top: 32px;
}
.st-detail-title-text { flex: 1; }
.st-detail-type {
    font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}
.st-detail-h1 {
    font-size: 44px;
    color: var(--st-blue-deep);
    font-weight: 700;
    margin: 6px 0 0;
}
.st-detail-body {
    color: var(--st-ink-soft);
    margin-top: 12px; max-width: 620px;
}
.st-detail-body p { margin: 0 0 12px; }

.st-detail-stella-card {
    flex: 0 0 220px;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    padding: 18px;
    border: 2px solid; border-radius: 6px;
}
.st-detail-stella-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-top: 4px; text-align: center;
}
.st-detail-stella-date {
    font-size: 11px; color: var(--st-ink-soft);
}

.st-detail-info {
    padding: 0 0 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}
.st-detail-h3 {
    color: var(--st-blue-deep);
    font-size: 22px;
    margin: 0 0 16px;
}
.st-detail-feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.st-feat {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--st-line);
    border-radius: 4px;
}
.st-feat.no { opacity: 0.4; }
.st-feat-mark {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #ddd; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
}
.st-feat.has .st-feat-mark { background: var(--st-blue); }
.st-feat-label { font-size: 14px; }
.st-feat.no .st-feat-label { color: var(--st-ink-soft); }

.st-detail-dl {
    display: grid;
    grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
    font-size: 14px; margin: 0;
}
.st-detail-dl dt { color: var(--st-ink-soft); }
.st-detail-dl dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.st-detail-dl dd a { overflow-wrap: anywhere; }
.st-detail-extra {
    margin-top: 18px; border-radius: 6px; overflow: hidden;
    aspect-ratio: 16/9; background: #eef5fb;
}
.st-detail-extra img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}

/* ===========================================================
   FORM CANDIDATURA — Direction B
   =========================================================== */
.st-form-hero {
    position: relative; overflow: hidden;
}
.st-form-hero-glyph {
    position: absolute; right: -40px; top: -20px;
    opacity: 0.18; font-size: 360px; line-height: 1;
    pointer-events: none;
}
.st-form-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px; align-items: center;
    padding-top: 56px; padding-bottom: 48px;
}
.st-form-hero-inner p { color: var(--st-ink); font-size: var(--st-body); line-height: var(--st-body-lh); }

.st-form-wrap {
    padding: 48px 40px 60px;
    max-width: 920px;
}

.st-fsec { margin-top: 40px; }
.st-fsec:first-child { margin-top: 0; }
.st-fsec-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
}
.st-fsec-num {
    width: 36px; height: 36px; border-radius: 50%;
    flex: 0 0 36px;                 /* no shrink: resta cerchio anche con titoli lunghi */
    color: #fff; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    line-height: 1;
}
.st-fsec-title {
    margin: 0; font-size: 27px; color: var(--st-blue-deep); font-weight: 700;
}
.st-fsec-body { padding-left: 52px; }

.st-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-frow-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.st-field { margin-top: 14px; }
.st-field:first-child { margin-top: 0; }
/* dentro le righe a griglia le celle si allineano in alto (no offset sulla 2ª/3ª) */
.st-frow .st-field,
.st-frow-3 .st-field { margin-top: 0; }
.st-field label {
    display: block;
    font-size: 13px; color: var(--st-ink-soft);
    font-weight: 700; margin-bottom: 7px;
    letter-spacing: 1px; text-transform: uppercase;
}
.st-field input[type="text"],
.st-field input[type="email"],
.st-field input[type="tel"] {
    width: 100%; padding: 15px 18px;
    border: 1.5px solid var(--st-line);
    border-radius: 8px;
    font-size: 17px; font-family: inherit;
    outline: none; background: #fff;
}
.st-field input:focus {
    border-color: var(--st-blue);
}
.st-help {
    font-size: 16px; color: var(--st-ink-soft);
    line-height: 1.5;
    margin: 0 0 16px;
}

/* tipo attività - chip radio */
.st-chip-pickers {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.st-chip-pick {
    cursor: pointer;
}
.st-chip-pick input { display: none; }
.st-chip-pick span {
    display: inline-block;
    padding: 10px 20px;
    border: 1.5px solid var(--st-line);
    background: #fff;
    color: var(--st-ink);
    border-radius: 999px;
    font-size: 16px; font-weight: 500;
    transition: all .15s;
}
.st-chip-pick input:checked + span {
    border-color: var(--pick-accent);
    background: var(--pick-bg);
    color: var(--pick-deep);
    font-weight: 700;
}

/* Checkbox accessibilità */
.st-checks {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.st-check {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px;
    background: #f8f8f8;
    border: 1.5px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    transition: all .15s;
}
.st-check input { display: none; }
.st-check-mark {
    width: 22px; height: 22px; border-radius: 5px;
    background: #fff;
    border: 1.5px solid var(--st-line);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 800;
    flex-shrink: 0;
}
.st-check input:checked ~ .st-check-mark {
    background: var(--check-accent);
    border-color: var(--check-accent);
}
.st-check input:checked ~ .st-check-mark::after { content: "✓"; }
.st-check:has(input:checked) {
    background: var(--check-bg);
    border-color: var(--check-accent);
    color: var(--check-deep);
    font-weight: 600;
}

/* Upload zone */
.st-uploads {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.st-upload {
    aspect-ratio: 4/3;
    border: 2px dashed color-mix(in srgb, var(--up-accent) 40%, transparent);
    border-radius: 8px;
    background: var(--up-bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--up-deep); gap: 6px;
    cursor: pointer;
    position: relative;
}
.st-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-upload-icon { font-size: 28px; opacity: 0.5; }
.st-upload-label { font-size: 13px; font-weight: 600; }
.st-upload-hint { font-size: 11px; opacity: 0.7; }
/* Card unica multi-upload: bassa e larga, non 6 riquadri */
.st-upload--multi {
    aspect-ratio: auto;
    min-height: 132px;
    padding: 22px 24px;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.st-upload--multi .st-upload-label { font-size: 18px; }
.st-upload--multi .st-upload-hint { font-size: 14px; }
.st-upload--multi:hover { border-color: var(--up-accent); }
.st-upload--multi.has-files {
    border-style: solid;
    border-color: var(--up-accent);
    background: color-mix(in srgb, var(--up-accent) 8%, var(--up-bg));
}
.st-upload--multi.has-files .st-upload-hint { opacity: 1; font-weight: 600; color: var(--up-deep); }

.st-form-foot {
    margin-top: 40px;
    padding: 28px;
    background: var(--st-paper-cool);
    border-radius: 8px;
    display: flex; justify-content: space-between;
    align-items: center; gap: 24px;
}
.st-privacy {
    font-size: 15px; color: var(--st-ink-soft);
    display: flex; gap: 10px;
    max-width: 560px;
    line-height: 1.55;
}
.st-privacy input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
    .st-container { padding: 0 32px; }
    .st-h1 { font-size: 48px; }
    .st-steps { grid-template-columns: repeat(2, 1fr); }
    .st-steps::before { display: none; }   /* niente linea quando le card vanno a capo */
    .st-grid { grid-template-columns: repeat(2, 1fr); }
    .st-timeline { grid-template-columns: repeat(2, 1fr); }
    .st-detail-hero-grid { grid-template-columns: 1fr; }
    .st-card-wide { grid-template-columns: 1fr; padding-block: 48px; gap: 32px; }
    .st-form-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .st-form-hero-star { display: flex; justify-content: center; }
    .st-form-hero-glyph, .st-cta-final-glyph { font-size: 240px; }
}
@media (max-width: 720px) {
    .st-container { padding: 0 20px; }
    .st-h1 { font-size: 36px; }
    .st-h2 { font-size: 26px; }
    .st-h2-center { font-size: 24px; }
    .st-intro { padding: 48px 0 32px; }
    .st-hero-strip { grid-template-columns: repeat(2, 1fr); min-height: 0; }
    .st-hero-cell { padding: 32px 16px 20px; }
    .st-steps { grid-template-columns: 1fr; }
    .st-grid { grid-template-columns: 1fr; }
    .st-timeline { grid-template-columns: repeat(2, 1fr); }
    .st-detail-hero-grid { grid-template-columns: 1fr; }
    .st-detail-title-row { flex-direction: column; }
    .st-detail-stella-card { flex-basis: auto; width: 100%; }
    .st-detail-info { grid-template-columns: 1fr; }
    .st-detail-feats { grid-template-columns: 1fr; }
    /* Informazioni: dt sopra, dd sotto — niente colonna fissa che stringe i valori lunghi */
    .st-detail-dl {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .st-detail-dl dt {
        font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
        margin-top: 14px;
    }
    .st-detail-dl dt:first-of-type { margin-top: 0; }
    .st-detail-dl dd { margin-top: 2px; }
    /* immagine: altezza naturale, senza bande dell'aspect-ratio 16/9 */
    .st-detail-extra { aspect-ratio: auto; }
    .st-detail-extra img { height: auto; }
    .st-cta-final-grid { grid-template-columns: 1fr; }
    .st-cta-final-star { display: flex; justify-content: center; }
    .st-frow, .st-frow-3 { grid-template-columns: 1fr; }
    .st-fsec-body { padding-left: 0; }
    .st-fsec-title { font-size: 20px; }
    .st-checks { grid-template-columns: 1fr; }
    .st-form-foot { flex-direction: column; align-items: stretch; }
    /* hero form: il font-size inline (48px) va sovrascritto */
    .st-form-hero .st-h1 { font-size: 30px !important; }
    .st-form-hero-inner { padding-top: 40px; padding-bottom: 32px; }
    .st-form-hero-glyph, .st-cta-final-glyph { font-size: 180px; }
    .st-form-wrap { padding: 32px 20px 48px; }
    .st-albo-head { padding: 40px 20px 28px; }
}
@media (max-width: 480px) {
    .st-h1 { font-size: 30px; }
    .st-timeline { grid-template-columns: 1fr; }
    .st-hero-season { font-size: 19px; }
    .st-cta-row { display: flex; flex-direction: column; }
    .st-cta-row .st-btn { width: 100%; text-align: center; }
    .st-form-hero-glyph, .st-cta-final-glyph { font-size: 120px; }
}

/* ---------------------------------------------------------------------------
   Esito invio candidatura (?candidatura=ok|ko)
   --------------------------------------------------------------------------- */
.st-notice {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.st-notice--ok {
    background: #edfaf1;
    border-color: #9dd8b0;
    color: #1c6b3a;
}
.st-notice--ko {
    background: #fdeeee;
    border-color: #e6a9a9;
    color: #8c2b2b;
}
.st-notice a { color: inherit; text-decoration: underline; }
