/* ============================================================================
   HILO IMPACT — Sistema variant
   Caricato solo nella pagina Progetti (template), nell'archivio CPT hilo_project,
   nelle tassonomie correlate e nelle pagine singole progetto.
============================================================================ */

.hilo-projects > section,
.hilo-projects > nav { max-width: 1600px; margin: 0 auto; }

.hilo-projects__head {
    padding: 60px 56px 28px;
    display: grid; grid-template-columns: 2fr 10fr; gap: 24px;
    align-items: start;
}
.hilo-projects__head .hilo-eyebrow { padding-top: 8px; margin: 0; color: var(--hilo-mute); }
.hilo-projects__title {
    grid-column: 2;
    font-family: var(--hilo-font-display); font-weight: 500;
    font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
    color: var(--hilo-ink); margin: 0;
}
.hilo-projects__lede {
    grid-column: 2;
    font-size: 17px; color: var(--hilo-mute); margin-top: 28px; line-height: 1.55; max-width: 700px;
}

/* Filter bar — boxed e pill, coerente con .hilo-btn / .hilo-tag */
.hilo-projects__filters {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding: 22px 56px 26px;
    align-items: center;
}
.hilo-filter {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px;
    background: transparent; color: var(--hilo-ink);
    border: 1px solid var(--hilo-rule);
    border-radius: 999px;
    font-family: var(--hilo-font-body); font-size: 14px; font-weight: 500;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hilo-filter:hover { border-color: var(--hilo-ink); background: transparent; }
.hilo-filter.is-active {
    background: var(--hilo-ink); color: var(--hilo-bg); border-color: var(--hilo-ink);
}
.hilo-filter__count {
    font-family: var(--hilo-font-mono); font-size: 11px;
    color: var(--hilo-mute); letter-spacing: 0.04em;
}
.hilo-filter:hover .hilo-filter__count { color: var(--hilo-ink); }
.hilo-filter.is-active .hilo-filter__count { color: var(--hilo-green); }

.hilo-projects__list { padding: 0; }

.hilo-project-row {
    display: grid; grid-template-columns: 120px 1fr 1fr;
    border-bottom: 1px solid var(--hilo-rule);
}
.hilo-project-row:nth-child(2n) { background: var(--hilo-bg-alt); }

.hilo-project-row__num {
    border-right: 1px solid var(--hilo-rule);
    padding: 32px 18px;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: flex-start;
}
.hilo-project-row__num .hilo-eyebrow { color: var(--hilo-mute); margin-bottom: 8px; }
.hilo-project-row__code {
    font-family: var(--hilo-font-display); font-size: 52px;
    color: var(--hilo-ink); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
}
.hilo-project-row__bullet {
    width: 14px; height: 14px; border-radius: 50%; background: var(--hilo-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hilo-green) 20%, transparent);
}
.hilo-project-row--accent-sky       .hilo-project-row__bullet { background: var(--hilo-sky);       box-shadow: 0 0 0 4px color-mix(in srgb, var(--hilo-sky) 20%, transparent); }
.hilo-project-row--accent-terra     .hilo-project-row__bullet { background: var(--hilo-terra);     box-shadow: 0 0 0 4px color-mix(in srgb, var(--hilo-terra) 20%, transparent); }
.hilo-project-row--accent-greendeep .hilo-project-row__bullet { background: var(--hilo-green-deep);box-shadow: 0 0 0 4px color-mix(in srgb, var(--hilo-green-deep) 20%, transparent); }

.hilo-project-row__body { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.hilo-project-row__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hilo-tag {
    font-family: var(--hilo-font-mono); font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--hilo-mute); color: var(--hilo-mute);
    padding: 4px 8px; border-radius: 999px;
}
.hilo-tag--green     { border-color: var(--hilo-green);      color: var(--hilo-green); --tag-color: var(--hilo-green); }
.hilo-tag--sky       { border-color: var(--hilo-sky);        color: var(--hilo-sky); --tag-color: var(--hilo-sky); }
.hilo-tag--terra     { border-color: var(--hilo-terra);      color: var(--hilo-terra); --tag-color: var(--hilo-terra); }
.hilo-tag--greendeep { border-color: var(--hilo-green-deep); color: var(--hilo-green-deep); --tag-color: var(--hilo-green-deep); }
.hilo-tag--greensoft { border-color: var(--hilo-green-soft); color: var(--hilo-green-soft); --tag-color: var(--hilo-green-soft); }
.hilo-tag--mute      { border-color: var(--hilo-rule-soft, var(--hilo-rule)); color: var(--hilo-mute); }

/* Variante "marker": highlight evidenziatore dietro al testo del tag.
   Copre quasi tutta l'altezza (5%-92%) per restare integrato col testo,
   non visualmente staccato come una sottolineatura. Alpha 50% leggibile. */
.hilo-tag--mark {
    border: 0;
    color: var(--hilo-ink);
    padding: 2px 8px;
    line-height: 2.4;
    border-radius: 0;
    background-image: linear-gradient(
        to top,
        transparent 5%,
        color-mix( in srgb, var(--tag-color, var(--hilo-green)) 50%, transparent ) 5%,
        color-mix( in srgb, var(--tag-color, var(--hilo-green)) 50%, transparent ) 92%,
        transparent 92%
    );
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
[data-hilo-eco="on"] .hilo-tag--mark {
    background-image: linear-gradient(
        to top,
        transparent 5%,
        color-mix( in srgb, var(--tag-color, var(--hilo-green)) 65%, transparent ) 5%,
        color-mix( in srgb, var(--tag-color, var(--hilo-green)) 65%, transparent ) 92%,
        transparent 92%
    );
}

.hilo-project-row__title {
    font-family: var(--hilo-font-display); font-weight: 500;
    font-size: clamp(40px, 5vw, 54px); letter-spacing: -0.02em; line-height: 1; color: var(--hilo-ink);
}
.hilo-project-row__title a { color: inherit; transition: color .15s ease; }
.hilo-project-row__title a:hover { color: var(--hilo-green); }
.hilo-project-row__text { font-size: 15px; color: var(--hilo-mute); line-height: 1.6; }
.hilo-project-row__meta {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
    padding-top: 18px; border-top: 1px solid var(--hilo-rule-soft, var(--hilo-rule));
    font-family: var(--hilo-font-mono); font-size: 10.5px; letter-spacing: 0.05em;
}
.hilo-project-row__meta dt { color: var(--hilo-mute); text-transform: uppercase; margin-bottom: 4px; }
.hilo-project-row__meta dd { color: var(--hilo-ink); font-size: 12px; }
.hilo-project-row__meta a { color: var(--hilo-green); }
.hilo-project-row__cover { position: relative; }
.hilo-project-row__cover .hilo-photo { height: 100%; min-height: 320px; }

.hilo-projects__cta {
    padding: 70px 56px 90px;
    display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 24px; align-items: center;
}
.hilo-projects__cta .hilo-eyebrow { margin: 0; color: var(--hilo-mute); }
.hilo-projects__cta-title {
    font-family: var(--hilo-font-display); font-weight: 500;
    font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.05; color: var(--hilo-ink);
    margin: 0;
}
.hilo-projects__cta-title .hilo-accent--green { color: var(--hilo-green); }
.hilo-projects__cta > .hilo-btn { justify-self: end; }
