/* ============================================================
   Escursioni — archivio + dettaglio
   Prefissi: .de- (archivio) | .des- (singolo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
    --dh-forest: #1f3a2d;
    --dh-forest-2: #2d4f3e;
    --dh-cream: #f7f3ec;
    --dh-cream-2: #ede5d3;
    --dh-terracotta: #c2622d;
    --dh-terracotta-dark: #a04f1f;
    --dh-charcoal: #1a1714;
    --dh-muted: #6b6358;
    --dh-line: rgba(26, 23, 20, 0.12);
    --dh-font-display: 'Fraunces', Georgia, serif;
    --dh-font-body: 'Outfit', system-ui, sans-serif;
    --dh-radius-md: 14px;
    --dh-radius-lg: 24px;
    --dh-max: 1200px;
    --dh-header-height: 76px;
}

/* ── BASE ──────────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: var(--dh-header-height); }
.dh {
    color: var(--dh-charcoal);
    font-family: var(--dh-font-body);
    font-size: 17px;
    line-height: 1.6;
    background: var(--dh-cream);
    overflow-x: hidden;
}
.dh * { box-sizing: border-box; }
.dh h1, .dh h2, .dh h3, .dh h4 {
    font-family: var(--dh-font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

/* ── HEADER ────────────────────────────────────────────────────────────── */
.dh-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; height: var(--dh-header-height);
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
    background: rgba(31, 58, 45, 0);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0);
}
.dh-header.is-scrolled {
    background: rgba(247, 243, 236, .95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--dh-line);
    box-shadow: 0 2px 12px rgba(26, 23, 20, .04);
}
.dh-header__inner {
    height: 100%; max-width: var(--dh-max); margin: 0 auto;
    padding: 0 6vw; display: flex; align-items: center;
    justify-content: space-between; gap: 2rem;
}
.dh-header__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--dh-cream); transition: color .35s ease; }
.dh-header.is-scrolled .dh-header__logo { color: var(--dh-forest); }
.dh-header__logo-img { height: 46px; width: auto; display: block; flex-shrink: 0; filter: none; transition: filter .35s ease; }
.dh-header.is-scrolled .dh-header__logo-img { filter: invert(1); }
.dh-header__nav { flex: 1; display: flex; justify-content: center; }
.dh-header__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
.dh-header__nav a { color: var(--dh-cream); text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: .01em; position: relative; padding: .35rem 0; transition: color .2s ease; }
.dh-header.is-scrolled .dh-header__nav a { color: var(--dh-charcoal); }
.dh-header__nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--dh-terracotta); transition: width .25s ease; }
.dh-header__nav a:hover::after, .dh-header__nav a.is-current::after { width: 100%; }
.dh-header__nav a:hover, .dh-header__nav a.is-current { color: var(--dh-terracotta); }
.dh-header.is-scrolled .dh-header__nav a.is-current { color: var(--dh-terracotta); }
.dh-header__socials { display: flex; align-items: center; gap: .75rem; }
.dh-header__socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--dh-cream); transition: all .2s ease; border: 1px solid rgba(247, 243, 236, .25); }
.dh-header.is-scrolled .dh-header__socials a { color: var(--dh-forest); border-color: var(--dh-line); }
.dh-header__socials a:hover { color: var(--dh-terracotta); border-color: var(--dh-terracotta); transform: translateY(-2px); }
.dh-header__socials svg { width: 18px; height: 18px; }
.dh-header__toggle { display: none; background: transparent; border: none; cursor: pointer; width: 36px; height: 36px; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.dh-header__toggle span { display: block; width: 22px; height: 2px; background: var(--dh-cream); border-radius: 2px; transition: all .3s ease; }
.dh-header.is-scrolled .dh-header__toggle span { background: var(--dh-charcoal); }
.dh-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dh-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dh-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dh-mobile-menu { position: fixed; top: var(--dh-header-height); left: 0; right: 0; bottom: 0; background: var(--dh-forest); z-index: 99; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s ease, visibility .3s ease, transform .3s ease; overflow-y: auto; }
.dh-mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dh-mobile-menu nav { padding: 3rem 2rem; }
.dh-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.dh-mobile-menu ul a { display: block; padding: 1rem 0; color: var(--dh-cream); text-decoration: none; font-family: var(--dh-font-display); font-size: 1.75rem; font-weight: 500; border-bottom: 1px solid rgba(247, 243, 236, .1); font-variation-settings: "opsz" 144; }
.dh-mobile-menu__socials { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.dh-mobile-menu__socials a { color: rgba(247, 243, 236, .7); text-decoration: none; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(247, 243, 236, .3); padding-bottom: 2px; }
@media (max-width: 900px) {
    .dh-header__nav, .dh-header__socials { display: none; }
    .dh-header__toggle { display: flex; }
    .dh-header__inner { padding: 0 1.25rem; }
}

/* ── SHARED COMPONENTS ─────────────────────────────────────────────────── */
.dh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.75rem; border-radius: 999px; font-family: var(--dh-font-body); font-size: .95rem; font-weight: 500; text-decoration: none; transition: all .25s ease; cursor: pointer; border: none; }
.dh-btn--primary { background: var(--dh-terracotta); color: var(--dh-cream); }
.dh-btn--primary:hover { background: var(--dh-terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(194, 98, 45, .3); }
.dh-btn--ghost { background: transparent; color: var(--dh-cream); border: 1px solid rgba(247, 243, 236, .5); }
.dh-btn--ghost:hover { background: rgba(247, 243, 236, .12); border-color: var(--dh-cream); }
.dh-btn--outline { background: transparent; color: var(--dh-forest); border: 1.5px solid var(--dh-forest); }
.dh-btn--outline:hover { background: var(--dh-forest); color: var(--dh-cream); transform: translateY(-2px); }
.dh-btn--full { width: 100%; }

.dh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.dh-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── DIFFICOLTÀ — colori ───────────────────────────────────────────────── */
:root {
    --de-facile:      #2e7d32;  --de-facile-bg:     rgba(46,125,50,.1);
    --de-media:       #e65100;  --de-media-bg:      rgba(230,81,0,.1);
    --de-impegnativa: #bf360c;  --de-impegnativa-bg:rgba(191,54,12,.1);
    --de-alpinistica: #b71c1c;  --de-alpinistica-bg:rgba(183,28,28,.1);
}

/* ── HERO ARCHIVIO ─────────────────────────────────────────────────────── */
.de-hero {
    position: relative;
    height: 52vh; min-height: 340px;
    background: var(--dh-forest) center/cover no-repeat;
    display: flex; align-items: flex-end;
}
.de-hero__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,8,6,.7) 0%, rgba(10,8,6,.2) 60%, transparent 100%);
}
.de-hero__inner {
    position: relative; z-index: 1;
    max-width: var(--dh-max); width: 100%;
    margin: 0 auto; padding: 0 6vw 3rem;
}
.de-hero__eyebrow {
    display: block; font-size: .72rem; letter-spacing: .25em;
    text-transform: uppercase; color: var(--dh-terracotta);
    font-weight: 600; margin-bottom: .75rem;
}
.de-hero__title {
    font-family: var(--dh-font-display); font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500; color: #fff; letter-spacing: -.02em;
    line-height: 1.05; margin: 0 0 .6rem;
}
.de-hero__sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0; }

/* ── FILTER BAR ─────────────────────────────────────────────────────────── */
.de-filters {
    position: sticky; top: var(--dh-header-height);
    z-index: 40; background: #fff;
    border-bottom: 1px solid var(--dh-line);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.de-filters__inner {
    max-width: var(--dh-max); margin: 0 auto; padding: 0 6vw;
    display: flex; align-items: center; gap: .75rem;
    height: 60px; overflow-x: auto; scrollbar-width: none;
}
.de-filters__inner::-webkit-scrollbar { display: none; }
.de-filters__label {
    font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
    color: var(--dh-muted); font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.de-filters__pills { display: flex; gap: .5rem; flex-shrink: 0; }
.de-filter-pill {
    display: flex; align-items: center; gap: .4rem;
    padding: .35rem .9rem; border-radius: 999px;
    border: 1.5px solid var(--dh-line);
    background: transparent; cursor: pointer;
    font-size: .82rem; font-weight: 500;
    color: var(--dh-muted); white-space: nowrap;
    transition: all .2s ease; font-family: var(--dh-font-body);
}
.de-filter-pill:hover { border-color: var(--dh-terracotta); color: var(--dh-terracotta); }
.de-filter-pill.is-active { background: var(--dh-forest); border-color: var(--dh-forest); color: #fff; }
.de-filter-pill__dot {
    width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.de-filters__search {
    display: flex; align-items: center; gap: .55rem;
    margin-left: auto; padding: .28rem .95rem;
    border-radius: 999px; border: 1.5px solid rgba(26,23,20,.28);
    background: #f4ede2;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.de-filters__search:focus-within {
    border-color: var(--dh-forest); box-shadow: 0 0 0 3px rgba(31,58,45,.1); background: #fff;
}
.de-filters__search-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--dh-muted); }
.de-search-input {
    border: none; background: transparent; padding: 0; outline: none;
    font-family: var(--dh-font-body); font-size: .9rem; color: var(--dh-charcoal);
    width: 160px;
}
.de-search-input::placeholder { color: var(--dh-muted); }
.de-filters .de-filters__search input[type="search"]:focus,
.de-filters .de-filters__search input[type="search"]:focus-visible {
    outline: 0 !important; box-shadow: none !important; border: 0 !important;
}
.de-filters__count {
    font-size: .8rem; color: var(--dh-muted); white-space: nowrap; flex-shrink: 0;
}

/* ── TRIPS GRID ─────────────────────────────────────────────────────────── */
.de-trips { padding: 3.5rem 0 6rem; background: var(--dh-cream); }
.de-trips__grid {
    max-width: var(--dh-max); margin: 0 auto; padding: 0 6vw;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.de-trips__empty {
    display: none; grid-column: 1/-1; text-align: center;
    padding: 4rem 2rem; color: var(--dh-muted);
}
.de-trips__empty p { margin: 0 0 1.5rem; font-size: 1.05rem; }

/* ── CARD ────────────────────────────────────────────────────────────────── */
.de-card {
    background: #fff; border-radius: var(--dh-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.de-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.de-card.is-hidden { display: none; }

/* media */
.de-card__media {
    position: relative; aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0;
}
.de-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.de-card:hover .de-card__media img { transform: scale(1.04); }
.de-card__media-placeholder { width: 100%; height: 100%; background: var(--dh-forest-2); }

/* badges on photo */
.de-card__date-badge {
    position: absolute; bottom: .75rem; right: .75rem;
    background: rgba(10,8,6,.65); backdrop-filter: blur(8px);
    color: #fff; font-size: .75rem; font-weight: 500;
    padding: .3rem .75rem; border-radius: 999px;
}
.de-card__diff-badge {
    position: absolute; top: .75rem; left: .75rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: .28rem .7rem; border-radius: 999px;
}
.de-card__diff-badge--facile      { background: var(--de-facile-bg);      color: var(--de-facile); }
.de-card__diff-badge--media       { background: var(--de-media-bg);       color: var(--de-media); }
.de-card__diff-badge--impegnativa { background: var(--de-impegnativa-bg); color: var(--de-impegnativa); }
.de-card__diff-badge--alpinistica { background: var(--de-alpinistica-bg); color: var(--de-alpinistica); }

/* body */
.de-card__body { padding: 1.25rem 1.4rem 0; flex: 1; display: flex; flex-direction: column; }
.de-card__location {
    display: flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: var(--dh-terracotta); font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem;
}
.de-card__location svg { width: 13px; height: 13px; flex-shrink: 0; }
.de-card__title {
    font-family: var(--dh-font-display); font-size: 1.2rem;
    color: var(--dh-charcoal); font-weight: 500; line-height: 1.2;
    margin: 0 0 .6rem; letter-spacing: -.01em;
}
.de-card__guide {
    display: flex; align-items: center; gap: .35rem;
    font-size: .82rem; color: var(--dh-muted); margin-bottom: .75rem;
}
.de-card__guide svg { width: 14px; height: 14px; flex-shrink: 0; }

/* stats row */
.de-card__stats {
    display: flex; align-items: center;
    border-top: 1px solid var(--dh-line);
    margin-top: auto;
}
.de-card__stat {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: .2rem; padding: .8rem .4rem;
    font-size: .78rem; color: var(--dh-muted);
}
.de-card__stat + .de-card__stat { border-left: 1px solid var(--dh-line); }
.de-card__stat svg { width: 14px; height: 14px; color: var(--dh-terracotta); }
.de-card__stat-val { font-size: .88rem; font-weight: 600; color: var(--dh-charcoal); }

/* CTA */
.de-card__cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.4rem;
    border-top: 1px solid var(--dh-line);
    font-size: .88rem; font-weight: 600; color: var(--dh-forest);
    text-decoration: none; letter-spacing: .01em;
    transition: background .2s ease, color .2s ease;
}
.de-card__cta:hover { background: var(--dh-forest); color: #fff; }
.de-card__cta svg { width: 16px; height: 16px; transition: transform .2s; }
.de-card__cta:hover svg { transform: translateX(4px); }

/* CTA archivio */
.de-cta { padding: 7rem 6vw; background: var(--dh-forest); text-align: center; color: var(--dh-cream); }
.de-cta__wrap { max-width: 680px; margin: 0 auto; }
.de-cta__eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(247,243,236,.6); margin-bottom: 1.25rem; font-weight: 500; }
.de-cta__title { font-family: var(--dh-font-display); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--dh-cream); margin-bottom: 1.25rem; font-variation-settings: "opsz" 144; }
.de-cta__sub { font-size: 1.1rem; color: rgba(247,243,236,.75); margin: 0 0 2.5rem; line-height: 1.6; }
.de-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE ESCURSIONE (.des-)
   ══════════════════════════════════════════════════════════════════════════ */

/* hero */
.des-hero {
    position: relative; min-height: 60vh;
    background: var(--dh-forest) center/cover no-repeat;
    display: flex; align-items: flex-end;
}
.des-hero__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,8,6,.82) 0%, rgba(10,8,6,.3) 55%, transparent 100%);
}
.des-hero__inner {
    position: relative; z-index: 1;
    max-width: var(--dh-max); width: 100%; margin: 0 auto;
    padding: 0 6vw 3.5rem;
}
.des-breadcrumb { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem; font-size: .82rem; }
.des-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.des-breadcrumb a:hover { color: #fff; }
.des-breadcrumb__sep { color: rgba(255,255,255,.35); }
.des-breadcrumb__current { color: rgba(255,255,255,.9); }
.des-hero__location {
    display: flex; align-items: center; gap: .4rem;
    font-size: .82rem; color: var(--dh-terracotta); font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem;
}
.des-hero__location svg { width: 14px; height: 14px; }
.des-hero__title {
    font-family: var(--dh-font-display); font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500; color: #fff; letter-spacing: -.025em;
    line-height: 1.05; margin: 0 0 1rem;
}
.des-hero__date {
    display: flex; align-items: center; gap: .5rem;
    font-size: .95rem; color: rgba(255,255,255,.8);
}
.des-hero__date svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }

/* stats panel */
.des-stats {
    background: #fff;
    border-bottom: 1px solid var(--dh-line);
}
.des-stats__grid {
    max-width: var(--dh-max); margin: 0 auto; padding: 0 6vw;
    display: grid; grid-template-columns: repeat(5, 1fr);
}
.des-stat {
    padding: 2rem 1rem; text-align: center;
    border-right: 1px solid var(--dh-line);
}
.des-stat:last-child { border-right: none; }
.des-stat__icon { display: flex; justify-content: center; margin-bottom: .5rem; }
.des-stat__icon svg { width: 22px; height: 22px; color: var(--dh-terracotta); }
.des-stat__value {
    font-family: var(--dh-font-display); font-size: 2rem; font-weight: 500;
    color: var(--dh-forest); line-height: 1; margin-bottom: .25rem;
    letter-spacing: -.02em;
}
.des-stat__value small { font-size: .9rem; font-family: var(--dh-font-body); font-weight: 400; }
.des-stat__label {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--dh-muted); font-weight: 600;
}

/* difficulty bar inside stat */
.des-diff-bar {
    display: flex; justify-content: center; gap: 4px; margin-bottom: .5rem;
}
.des-diff-bar__seg {
    width: 18px; height: 6px; border-radius: 3px;
    background: var(--dh-line);
}
.des-diff-bar__seg.is-active { background: var(--fill-color); }

/* descrizione + profilo altimetrico — griglia 2 colonne */
.des-body {
    background: var(--dh-cream); padding: 3.5rem 0;
}
.des-body__grid {
    max-width: var(--dh-max); margin: 0 auto; padding: 0 6vw;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 3.5rem;
    align-items: start;
}
.des-body__grid > *:only-child {
    grid-column: 1 / -1;
}
.des-elevation__title {
    font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--dh-muted); font-weight: 600; margin-bottom: 1.25rem; margin-top: 0;
}
.des-body__desc-text {
    font-size: 1rem; color: var(--dh-charcoal); line-height: 1.75;
}
.des-body__desc-text p { margin: 0 0 1rem; }
.des-body__desc-text p:last-child { margin-bottom: 0; }
.des-elevation__svg {
    width: 100%; height: auto; display: block;
    border-radius: var(--dh-radius-md); overflow: hidden;
}
.des-elevation__labels {
    display: flex; justify-content: space-between;
    font-size: .78rem; color: var(--dh-muted); margin-top: .5rem;
}
@media (max-width: 720px) {
    .des-body__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* guide card */
.des-guide {
    background: var(--dh-cream-2); padding: 3.5rem 0;
}
.des-guide__wrap {
    max-width: var(--dh-max); margin: 0 auto; padding: 0 6vw;
    display: flex; align-items: center; gap: 1.5rem;
}
.des-guide__avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--dh-forest); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden;
    border: 3px solid var(--dh-cream);
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.des-guide__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.des-guide__avatar svg { width: 36px; height: 36px; }
.des-guide__label {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--dh-muted); font-weight: 600; margin: 0 0 .25rem;
}
.des-guide__name {
    font-family: var(--dh-font-display); font-size: 1.4rem;
    color: var(--dh-charcoal); margin: 0 0 .2rem; font-weight: 500;
}
.des-guide__role {
    font-size: .85rem; color: var(--dh-muted); font-style: italic; margin: 0;
}

/* CTA singolo */
.des-cta { padding: 6rem 6vw; background: var(--dh-cream-2); text-align: center; }
.des-cta__wrap { max-width: 600px; margin: 0 auto; }
.des-cta__eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--dh-terracotta); font-weight: 500; margin-bottom: 1rem; }
.des-cta__title { font-family: var(--dh-font-display); font-size: clamp(1.75rem, 4vw, 2.8rem); color: var(--dh-forest); margin: 0 0 1rem; font-variation-settings: "opsz" 100; }
.des-cta__sub { color: var(--dh-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 2.25rem; }
.des-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }

/* avatar nella stat guida */
.des-stat__avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--dh-forest); border: 2px solid var(--dh-cream-2);
    display: flex; align-items: center; justify-content: center;
}
.des-stat__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.des-stat__role {
    font-size: .72rem; color: var(--dh-muted); font-style: italic;
    margin: .15rem 0 .25rem; line-height: 1.3;
}

/* footer */
.dh-footer { background: #0a0806; padding: .85rem 6vw; text-align: center; }
.dh-footer__text {
    font-family: var(--dh-font-body); font-size: .78rem;
    color: rgba(255,255,255,.45); margin: 0; letter-spacing: .03em;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .des-stats__grid { grid-template-columns: repeat(3, 1fr); }
    .des-stat:nth-child(3) { border-right: none; }
    .des-stat:nth-child(4),
    .des-stat:nth-child(5) { border-top: 1px solid var(--dh-line); }
    .des-stat:nth-child(5) { border-right: none; }
    .des-body__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
    .de-trips__grid { grid-template-columns: 1fr; }
    .des-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .des-stat,
    .des-stat:nth-child(n) { padding: 1rem .5rem; border: none; }
    .des-stat__icon { margin-bottom: .3rem; }
    .des-stat__icon svg { width: 18px; height: 18px; }
    .des-stat__value { font-size: 1.5rem; }
    .des-stat__value small { font-size: .75rem; }
    .des-stat__label { font-size: .68rem; }
    .des-stat__avatar { width: 56px; height: 56px; }
    .des-diff-bar { gap: 3px; }
    .des-diff-bar__seg { height: 5px; }
    .de-filters__inner {
        flex-wrap: wrap; overflow-x: visible; height: auto;
        padding: .75rem 6vw; gap: .5rem;
    }
    .de-filters__pills { flex-wrap: wrap; flex-shrink: 1; width: 100%; }
    .de-filters__search { margin-left: 0; width: 100%; }
    .de-search-input { width: 100%; flex: 1; }
    .de-filters__count { display: none; }
}
