/* Pagina pubblica Novità (changelog.html): timeline compatta per settimana. Variabili da home-public.css. */

.dhcl-hero {
    padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 3.75rem);
    text-align: center;
}

.dhcl-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dhcl-hero-title {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 5.5vw, 3.2rem);
}

.dhcl-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhcl-stats li {
    display: grid;
    gap: .1rem;
    min-width: 8.5rem;
    padding: .75rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
}

.dhcl-stats strong {
    color: var(--dhp-gold-soft);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.dhcl-stats span {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
}

.dhcl-body {
    max-width: 52rem;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- filtri ---------- */
.dhcl-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.dhcl-filters[hidden] { display: none; }

.dhcl-filter {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .95rem;
    border: 1px solid var(--dhp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--dhp-ink);
    font-size: .86rem;
    font-weight: 800;
    transition: background-color .25s, color .25s, border-color .25s;
}

.dhcl-filter:hover { border-color: var(--dhp-green); }
.dhcl-filter:focus-visible { outline: 3px solid var(--dhp-gold); outline-offset: 2px; }

.dhcl-filter[aria-pressed="true"] {
    border-color: var(--dhp-ink);
    background: var(--dhp-ink);
    color: #fff;
}

.dhcl-dot {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
}

.dhcl-dot.is-nuovo { background: #1f9d6f; }
.dhcl-dot.is-migliorato { background: var(--dhp-gold); }
.dhcl-dot.is-corretto { background: #6b7c99; }

/* ---------- timeline ---------- */
.dhcl-timeline {
    position: relative;
    display: grid;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhcl-timeline::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--dhp-gold), rgba(15, 91, 79, .15));
}

.dhcl-week {
    position: relative;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.1rem;
    align-items: start;
}

.dhcl-week.is-filtered-out { display: none; }

.dhcl-date {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
    background: var(--dhp-green);
    color: #fff;
    box-shadow: 0 0 0 5px var(--dhp-cream, #fbf8f1), 0 12px 24px -14px rgba(10, 64, 56, .7);
    line-height: 1;
}

.dhcl-week.is-latest .dhcl-date {
    background: linear-gradient(160deg, var(--dhp-gold-soft), var(--dhp-gold));
    color: #1c1406;
}

.dhcl-date-day {
    font-size: 1.55rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dhcl-date-month {
    margin-top: .15rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dhcl-week-body {
    padding: 1rem 1.2rem 1.1rem;
    border: 1px solid var(--dhp-line);
    border-radius: 1.1rem;
    background: #fff;
    transition: box-shadow .3s var(--dhp-ease), border-color .3s;
}

.dhcl-week-body:hover,
.dhcl-week:target .dhcl-week-body {
    border-color: rgba(15, 91, 79, .28);
    box-shadow: 0 18px 40px -30px rgba(10, 64, 56, .55);
}

.dhcl-week-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.dhcl-latest {
    padding: .12rem .5rem;
    border-radius: 999px;
    background: #fbecd5;
    color: #8a5a17;
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dhcl-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhcl-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .65rem;
    border-radius: .75rem;
    background: var(--dhp-cream, #fbf8f1);
    font-size: .9rem;
    line-height: 1.3;
}

.dhcl-item[hidden] { display: none; }

.dhcl-item i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: .6rem;
    background: #fff;
    color: var(--dhp-green);
    font-size: .95rem;
}

.dhcl-item > span:first-of-type { flex: 1; }

.dhcl-none {
    padding: 2rem;
    border-radius: var(--dhp-radius);
    background: var(--dhp-cream);
    text-align: center;
}

@media (max-width: 575.98px) {
    .dhcl-timeline::before { left: 1.5rem; }
    .dhcl-week { grid-template-columns: 3rem 1fr; gap: .75rem; }
    .dhcl-date { width: 3rem; height: 3rem; border-radius: .9rem; }
    .dhcl-date-day { font-size: 1.2rem; }
    .dhcl-date-month { font-size: .62rem; }
    .dhcl-week-body { padding: .85rem .9rem .95rem; }
    .dhcl-items { grid-template-columns: 1fr; }
    .dhcl-stats li { min-width: 0; flex: 1 1 6.5rem; }
}
