/* ═══════════════════════════════════════════════════════════════
   Malghe.it — child.css
   Wildex Child Theme — stili custom
═══════════════════════════════════════════════════════════════ */

/* Sfondo del sito bianco puro — il tema padre imposta di suo un
   azzurrino chiarissimo, qui lo sovrascriviamo esplicitamente. */
html, body { background-color: #FFFFFF !important; }

/* ── Intestazione minimale malga (sfondo chiaro) ──────────── */
.malga-minimal-head {
    padding-top: 180px !important;
    padding-bottom: 8px;
}
@media (max-width: 767px) {
    .malga-minimal-head { padding-top: 164px !important; }
}
/* Nell'app l'header del sito è assente: niente spazio da riservare
   (stessa logica già usata per gli archivi e la pagina racconto). */
html.is-pwa-app .malga-minimal-head { padding-top: 16px !important; }
.malga-minimal-head__title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--malghe-text,#1A1A1A);
    line-height: 1.15;
    margin-bottom: 8px;
}
.malga-minimal-head .malgheit-breadcrumb { margin-top: 12px; margin-bottom: 0; }
.malga-minimal-head .malgheit-breadcrumb ol { color: var(--malghe-muted,#6B6356); }
.malga-minimal-head .malgheit-breadcrumb a { color: var(--malghe-muted,#6B6356); }
.malga-minimal-head .malgheit-breadcrumb li:last-child { color: var(--malghe-text,#1A1A1A); }

.malga-header-badges { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
.malga-badge {
    display:inline-flex;align-items:center;gap:5px;
    padding:.22rem .75rem;border-radius:999px;font-size:.72rem;font-weight:700;
    color:#fff;
}
.malga-badge--tipo    { background: var(--malghe-green,#005F56); }
.malga-badge--quota   { background: var(--malghe-text,#1A1A1A); }
.malga-badge--premium { background:linear-gradient(135deg,#C4862A,#E8A844); }
.malga-header-meta {
    display:flex;flex-wrap:wrap;gap:4px 16px;
    font-size:.88rem;color: var(--malghe-muted,#6B6356);margin-top:6px;
}
.malga-header-meta i { opacity:.7;font-size:.8rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.malgheit-breadcrumb { margin-top:12px; }
.malgheit-breadcrumb ol {
    display:flex;flex-wrap:wrap;gap:5px;list-style:none;
    padding:0;margin:0;font-size:.78rem;color:rgba(255,255,255,.6);
}
.malgheit-breadcrumb a { color:rgba(255,255,255,.75);text-decoration:none; }
.malgheit-breadcrumb a:hover { color:#fff; }
.malgheit-breadcrumb li:last-child { color:#fff;font-weight:600; }
.malgheit-breadcrumb li+li::before { content:"›";margin-right:5px; }

/* ── Offer bar ────────────────────────────────────────────── */
.malga-offer-bar {
    background:var(--malghe-cream-alt,#EDE8DF);
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);
    padding:12px 0;
}
.malga-offer-bar .container { display:flex;flex-wrap:wrap;gap:8px; }
.malga-offer-chip {
    display:inline-flex;align-items:center;gap:7px;
    padding:.38rem 1rem;background:#fff;
    border:1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:999px;font-size:.82rem;font-weight:700;color:var(--malghe-text,#1A1A1A);
}
.malga-offer-chip i { color:var(--malghe-green,#005F56);font-size:.82rem; }
.malga-offer-chip__logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* ── Gallery ──────────────────────────────────────────────── */
.malga-gallery {
    display:grid;
    /* 3 colonne hegelo-style: grande sx, poi 2 colonne uguali */
    grid-template-columns:2fr 1fr 1fr;
    grid-template-rows:248px 248px;
    gap:8px;
    position:relative;
    border-radius:16px;
    overflow:hidden;
    margin-top:28px;
}
@media(max-width:991px) {
    .malga-gallery {
        grid-template-columns:1fr;
        grid-template-rows:260px;
    }
    .malga-gallery__grid { display:none; }
}
.malga-gallery__main {
    /* immagine grande: occupa tutta la colonna sx su 2 righe */
    grid-column:1;
    grid-row:1 / 3;
    overflow:hidden;cursor:pointer;
}
.malga-gallery__main img,
.malga-gallery__cell img {
    width:100%;height:100%;object-fit:cover;
    transition:transform .4s ease;display:block;
}
.malga-gallery__main:hover img,
.malga-gallery__cell:hover img { transform:scale(1.04); }
.malga-gallery__grid {
    /* occupa colonne 2+3, righe 1+2 — griglia 2×2 interna */
    grid-column:2 / 4;
    grid-row:1 / 3;
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:1fr 1fr;
    gap:8px;
    /* altezza = 2 righe della gallery esterna */
    height:calc(248px * 2 + 8px);
}
.malga-gallery__cell { overflow:hidden;cursor:pointer;position:relative; }
.malga-gallery__cell--more .malga-gallery__more-overlay {
    position:absolute;inset:0;background:rgba(0,0,0,.45);
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:1.1rem;font-weight:800;
}
.malga-gallery__btn {
    position:absolute;bottom:14px;right:14px;z-index:5;
    display:inline-flex;align-items:center;gap:7px;
    background:rgba(255,255,255,.95);border:1.5px solid rgba(0,0,0,.12);
    border-radius:8px;padding:7px 14px;font-size:.8rem;font-weight:700;
    cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15);transition:all .15s;
}
.malga-gallery__btn:hover { background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.2); }
.malga-gallery__btn i { color:var(--malghe-green,#005F56); }
.malga-hero-img { width:100%;border-radius:12px;margin-bottom:0; }

/* ── Lightbox ─────────────────────────────────────────────── */
.malga-lightbox {
    position:fixed;inset:0;z-index:99999;
    background:rgba(10,10,10,.95);
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    opacity:0;pointer-events:none;transition:opacity .2s;
}
.malga-lightbox.is-open { opacity:1;pointer-events:auto; }
.mlb-close {
    position:absolute;top:16px;right:16px;
    background:rgba(255,255,255,.12);border:none;color:#fff;
    width:40px;height:40px;border-radius:50%;font-size:16px;
    cursor:pointer;transition:background .15s;
}
.mlb-close:hover { background:rgba(255,255,255,.25); }
.mlb-prev,.mlb-next {
    position:absolute;top:50%;transform:translateY(-50%);
    background:rgba(255,255,255,.1);border:none;color:#fff;
    width:48px;height:48px;border-radius:50%;font-size:18px;
    cursor:pointer;transition:background .15s;
}
.mlb-prev { left:16px; } .mlb-next { right:16px; }
.mlb-prev:hover,.mlb-next:hover { background:rgba(255,255,255,.2); }
.mlb-stage { max-width:min(90vw,1100px);max-height:70vh; }
.mlb-stage img { max-width:100%;max-height:70vh;object-fit:contain;border-radius:6px; }
.mlb-footer {
    position:absolute;bottom:0;left:0;right:0;
    padding:12px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;
}
.mlb-counter { font-size:.75rem;color:rgba(255,255,255,.45); }
.mlb-thumbs { display:flex;gap:5px;overflow-x:auto;padding:2px;max-width:90vw; }
.mlb-thumb {
    width:52px;height:40px;border-radius:4px;overflow:hidden;
    border:2px solid transparent;padding:0;cursor:pointer;
    opacity:.55;background:none;transition:all .15s;flex-shrink:0;
}
.mlb-thumb img { width:100%;height:100%;object-fit:cover; }
.mlb-thumb.active,.mlb-thumb:hover { opacity:1;border-color:#fff; }

/* ── Single malga area ────────────────────────────────────── */
.single-malga-area { padding:48px 0 80px; }
/* Spazio riservato per la barra fissa "Chiama ora/Richiedi info" — sempre,
   indipendentemente da quali pulsanti compaiono davvero lì dentro. */
@media (max-width: 991px) {
    .single-malga-area { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
html.is-pwa-app .single-malga-area {
    /* in app la barra sta sopra la bottom-nav, quindi lo spazio da riservare è la somma di entrambe */
    padding-bottom: calc(var(--app-bottom-nav-h) + 90px + env(safe-area-inset-bottom)) !important;
}
.malga-content {}

/* ── Sezioni contenuto ────────────────────────────────────── */
.malga-section {
    padding-top:36px;margin-top:36px;
    border-top:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-section:first-child { border-top:none;padding-top:0;margin-top:0; }
.malga-section-title {
    font-size:1.3rem;font-weight:800;letter-spacing:-.02em;
    margin-bottom:20px;color:var(--malghe-text,#1A1A1A);
}

/* ── Custode card ─────────────────────────────────────────── */
.custode-card {
    display:flex;gap:24px;align-items:stretch;
    border:1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:16px;padding:24px;background:#fff;
}
@media(max-width:600px) { .custode-card { flex-direction:column;gap:16px; } }
.custode-card--slim { padding: 16px 20px; gap: 16px; align-items: flex-start; }
.custode-card--slim .custode-card__photo { width: 64px; height: 64px; }
.custode-card--slim .custode-card__main { gap: 4px; }
.custode-card__sub { font-size: .84rem; color: var(--malghe-muted,#6B6356); font-weight: 600; }
.custode-card--slim .custode-card__link { margin-top: 6px; }
.custode-card--slim .custode-card__nome { font-size: 1.05rem; margin: 0; line-height: 1.2; }
.custode-card__photo {
    width:128px;height:128px;border-radius:50%;overflow:hidden;flex-shrink:0;
    background:var(--malghe-green,#005F56);
    align-self:center;
}
@media(max-width:600px) { .custode-card__photo { width:96px;height:96px;align-self:flex-start; } }
.custode-card__photo img { width:100%;height:100%;object-fit:cover;display:block; }
.custode-card__photo--empty, .custode-compact__img--empty {
    display:flex;align-items:center;justify-content:center;
    background:var(--malghe-cream,#F5F0E8);color:var(--malghe-muted,#6B6356);
    width:100%;height:100%;
}

.custode-card__main {
    flex:1;min-width:0;
    display:flex;flex-direction:column;
    justify-content:center;gap:10px;
}
.custode-card__head {}
.custode-card__eyebrow {
    display:inline-flex;align-items:center;gap:6px;
    font-size:.7rem;font-weight:800;text-transform:uppercase;
    letter-spacing:.1em;color:var(--malghe-green,#005F56);margin-bottom:6px;
}
.custode-card__nome {
    font-size:1.2rem;font-weight:800;margin:0 0 3px;line-height:1.25;
    color: var(--malghe-text,#1A1A1A) !important;
}
.custode-card__dal {
    font-size:.8rem;color:var(--malghe-muted,#6B6356);
    font-weight:500;margin-left:10px;
}
.custode-card__ruolo {
    font-size:.86rem;color:var(--malghe-muted,#6B6356);font-weight:600;
}
.custode-card__bio {
    font-size:.88rem;line-height:1.75;color:var(--malghe-muted,#6B6356);
    margin:0;
}
.custode-card__footer {
    display:flex;align-items:center;gap:14px;margin-top:4px;
}
.custode-card__link {
    display:inline-flex;align-items:center;gap:6px;
    font-size:.86rem;font-weight:700;color:var(--malghe-green,#005F56);
    text-decoration:none;cursor:pointer;
}
.custode-card__link:hover { text-decoration:underline; }
.custode-card__ig {
    display:inline-flex;align-items:center;justify-content:center;
    width:34px;height:34px;border-radius:50%;
    background:var(--malghe-cream,#F5F0E8);
    color:var(--malghe-text,#1A1A1A);font-size:.95rem;
    transition:background .15s;
}
.custode-card__ig:hover { background:var(--malghe-green-pale,#E8F4F2);color:var(--malghe-green,#005F56); }

/* Custode compact (in sidebar) */
.custode-compact {
    display:flex;align-items:center;gap:12px;padding:14px;
    border-radius:10px;background:var(--malghe-cream,#F5F0E8);
    border:1.5px solid var(--malghe-border-lt,#EAE5DC);
    text-decoration:none;transition:border-color .15s;
}
.custode-compact:hover { border-color:var(--malghe-green,#005F56); }
.custode-compact__img {
    width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0;
}
.custode-compact__eyebrow {
    font-size:.65rem;font-weight:800;text-transform:uppercase;
    letter-spacing:.08em;color:var(--malghe-green,#005F56);
}
.custode-compact__nome {
    font-weight:800;font-size:.9rem;color:var(--malghe-text,#1A1A1A);
}
.custode-compact__ruolo {
    font-size:.76rem;color:var(--malghe-muted,#6B6356);
}
.custode-compact__arrow { margin-left:auto;color:var(--malghe-muted,#6B6356);font-size:.8rem; }

/* ── Servizi ──────────────────────────────────────────────── */
.malga-servizi {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:10px;
}
.malga-svc {
    display:flex;align-items:center;gap:9px;
    padding:9px 12px;background:#fff;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:9px;font-size:.78rem;font-weight:600;
}
.malga-svc__icon {
    width:28px;height:28px;border-radius:7px;
    background:var(--malghe-green-pale,#E8F4F2);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.malga-svc__icon i { color:var(--malghe-green,#005F56);font-size:.75rem; }

/* ── Menu malga ───────────────────────────────────────────── */
.malga-cucina-intro {
    font-size:.92rem;color:var(--malghe-muted,#6B6356);
    margin-bottom:18px;font-style:italic;
}
.malga-menu-grid {
    display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;
}
.malga-menu-card {
    background:#fff;border-radius:12px;overflow:hidden;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-menu-card__img { aspect-ratio:16/9;overflow:hidden; }
.malga-menu-card__img img { width:100%;height:100%;object-fit:cover;display:block; }
.malga-menu-card__body { padding:12px 14px; }
.malga-menu-card__nome { font-weight:800;font-size:.92rem;margin-bottom:4px; }
.malga-menu-card__desc { font-size:.8rem;color:var(--malghe-muted,#6B6356);line-height:1.5; }

/* ── Pernottamento stats ──────────────────────────────────── */
.malga-dormi-stats {
    display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;
}
.malga-dormi-stat {
    display:flex;align-items:center;gap:7px;
    padding:9px 14px;background:#fff;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:9px;font-size:.8rem;
}
.malga-dormi-stat i { color:var(--malghe-green,#005F56);font-size:.82rem; }
.malga-dormi-stat strong { font-weight:800; }
.malga-dormi-stat span { font-size:.7rem;color:var(--malghe-muted,#6B6356);margin-left:2px; }

/* ── Prodotti ─────────────────────────────────────────────── */
.malga-prodotti-grid {
    display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;
}
.malga-prod-card {
    background:#fff;border-radius:12px;overflow:hidden;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-prod-card__img { aspect-ratio:4/3;overflow:hidden; }
.malga-prod-card__img img { width:100%;height:100%;object-fit:cover;display:block; }
.malga-prod-card__body { padding:12px 14px; }
.malga-prod-card__nome { font-weight:800;font-size:.92rem;margin-bottom:5px; }
.malga-prod-card__desc { font-size:.8rem;color:var(--malghe-muted,#6B6356);line-height:1.55;margin-bottom:8px; }
.malga-prod-badge {
    display:inline-flex;align-items:center;gap:5px;
    padding:.2rem .6rem;background:var(--malghe-accent-pale,#FDF3E3);
    color:var(--malghe-accent,#C4862A);border-radius:999px;
    font-size:.7rem;font-weight:800;
}

/* ── Mappa ────────────────────────────────────────────────── */
.malga-map {
    width:100%;height:320px;border-radius:12px;margin-bottom:16px;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
    background:var(--malghe-cream,#F5F0E8);
}
.malga-indirizzo {
    font-size:.86rem;font-weight:600;color:var(--malghe-muted,#6B6356);
    margin-bottom:8px;display:flex;align-items:center;gap:6px;
}
.malga-come-desc {
    font-size:.86rem;color:var(--malghe-muted,#6B6356);
    line-height:1.7;margin-bottom:14px;
}

/* ── Pulsanti ─────────────────────────────────────────────── */
.malga-btn {
    display:inline-flex;align-items:center;gap:7px;
    padding:.55rem 1.2rem;border-radius:999px;
    font-size:.86rem;font-weight:700;text-decoration:none;
    border:none;cursor:pointer;transition:all .15s;
}
.malga-btn--primary { background:var(--malghe-green,#005F56);color:#fff; }
.malga-btn--primary:hover { background:var(--malghe-green-dark,#004840);color:#fff; }
.malga-btn--secondary {
    background:transparent;border:2px solid var(--malghe-green,#005F56);
    color:var(--malghe-green,#005F56);
}
.malga-btn--secondary:hover { background:var(--malghe-green,#005F56);color:#fff; }
.malga-btn--send {
    background:var(--malghe-green,#005F56);color:#fff;
    width:100%;justify-content:center;padding:.85rem;
    font-size:.92rem;font-weight:700;border-radius:12px;
    letter-spacing:.01em;
}
.malga-btn--send:hover { background:var(--malghe-green-dark,#004840); }

/* ── FAQ ──────────────────────────────────────────────────── */
.malga-faq { display:flex;flex-direction:column;gap:8px; }
.malga-faq-item {
    border:1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s;
}
.malga-faq-item[open] { border-color:var(--malghe-green,#005F56); }
.malga-faq-q {
    padding:15px 18px;cursor:pointer;list-style:none;
    font-weight:700;font-size:.9rem;display:flex;align-items:center;
    justify-content:space-between;gap:10px;
}
.malga-faq-q::-webkit-details-marker { display:none; }
.malga-faq-q::after {
    content:'+';color:var(--malghe-muted,#6B6356);
    font-size:1.2rem;font-weight:300;flex-shrink:0;transition:transform .2s;
}
.malga-faq-item[open] .malga-faq-q::after { transform:rotate(45deg);color:var(--malghe-green,#005F56); }
.malga-faq-a {
    padding:0 18px 16px;font-size:.86rem;
    color:var(--malghe-muted,#6B6356);line-height:1.75;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — sticky su desktop
═══════════════════════════════════════════════════════════ */
.malga-sidebar {
    position:sticky;
    top:90px;
    display:flex;flex-direction:column;gap:16px;
}
.malga-sbox {
    background:#fff;
    border:1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius:14px;overflow:hidden;
}
.malga-sbox-price {
    padding:16px 20px 12px;
    font-size:1rem;
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-sbox-price strong { font-size:1.4rem;font-weight:900; }
.malga-sbox-price span { font-size:.8rem;color:var(--malghe-muted,#6B6356);margin-left:4px; }
.malga-sbox-head {
    padding:14px 20px 10px;font-weight:800;font-size:.92rem;
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-sbox-body { padding:14px 18px; }

/* Form contatti */
.malga-contact-form {
    padding:16px 20px;display:flex;flex-direction:column;gap:9px;
}
.malga-contact-form input,
.malga-contact-form textarea {
    width:100%;padding:.75rem 1rem;
    background:#F7FBFA;
    border:1.5px solid transparent;
    border-radius:12px;          /* radius generoso come hegelo */
    font:inherit;font-size:.86rem;outline:none;
    transition:border-color .15s, box-shadow .15s;
    color:#1A1A1A;
}
.malga-contact-form input:focus,
.malga-contact-form textarea:focus {
    background:#F7FBFA;
    border-color:var(--malghe-green,#005F56);
    box-shadow:0 0 0 3px rgba(0,95,86,.08);
}
.malga-contact-form input::placeholder,
.malga-contact-form textarea::placeholder { color:#9B948A; }
.malga-contact-form textarea { resize:vertical;min-height:90px; }
.malga-privacy-check {
    display:flex;align-items:center;gap:8px;
    font-size:.77rem;color:var(--malghe-muted,#6B6356);cursor:pointer;
    line-height:1.4;
}
.malga-privacy-check input[type=checkbox] {
    flex-shrink:0;
    width:16px;height:16px;
    accent-color:var(--malghe-green,#005F56);
    cursor:pointer;
}
.malga-privacy-check a { color:var(--malghe-green,#005F56);text-decoration:underline; }

/* Contatti diretti */
.malga-contacts { padding:8px 0; }
.malga-contact-row {
    display:flex;align-items:center;gap:12px;
    padding:11px 18px;font-size:.86rem;font-weight:600;
    color:var(--malghe-text,#1A1A1A);text-decoration:none;
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);transition:background .15s;
}
.malga-contact-row:last-child { border-bottom:none; }
.malga-contact-row:hover { background:var(--malghe-cream,#F5F0E8); }
.malga-contact-row--tel:hover { color:var(--malghe-green,#005F56); }
.malga-contact-row--wa:hover { color:#25D366; }
.malga-contact-icon {
    width:32px;height:32px;border-radius:8px;
    background:var(--malghe-cream,#F5F0E8);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
    font-size:.9rem;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — sticky CTA bar
═══════════════════════════════════════════════════════════ */
.malga-mobile-cta {
    display:none; /* visibile solo mobile — vedi sotto */
    position:fixed;bottom:0;left:0;right:0;z-index:800;
    padding:10px 16px max(10px,env(safe-area-inset-bottom));
    background:#fff;border-top:1px solid var(--malghe-border-lt,#EAE5DC);
    box-shadow:0 -4px 20px rgba(0,0,0,.1);gap:8px;
}
.malga-mobile-btn {
    flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;
    padding:.72rem;border-radius:12px;font:inherit;  /* stesso radius per entrambi */
    font-size:.88rem;font-weight:700;cursor:pointer;text-decoration:none;
    border:2px solid var(--malghe-green,#005F56);     /* border su entrambi */
}
.malga-mobile-btn--call {
    background:var(--malghe-green,#005F56);color:#fff;
}
.malga-mobile-btn--info {
    background:transparent;color:var(--malghe-green,#005F56);
}

/* ── Drawer form mobile ──────────────────────────────────── */
.malga-drawer {
    position:fixed;inset:0;z-index:9600;
    display:flex;align-items:flex-end;
    opacity:0;pointer-events:none;transition:opacity .25s;
}
.malga-drawer.is-open { opacity:1;pointer-events:auto; }
.malga-drawer__backdrop {
    position:absolute;inset:0;background:rgba(0,0,0,.5);
}
.malga-drawer__panel {
    position:relative;width:100%;
    background:#fff;border-radius:20px 20px 0 0;
    padding:0 0 max(20px,env(safe-area-inset-bottom));
    transform:translateY(100%);transition:transform .3s ease;
    max-height:90vh;overflow-y:auto;
}
.malga-drawer.is-open .malga-drawer__panel { transform:translateY(0); }
.malga-drawer__head {
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 20px 14px;font-weight:800;font-size:.95rem;
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malga-drawer__close {
    background:var(--malghe-cream,#F5F0E8);border:none;
    width:32px;height:32px;border-radius:50%;cursor:pointer;
    display:flex;align-items:center;justify-content:center;font-size:.85rem;
}
.malga-contact-form--drawer { padding:16px 20px 20px; }

/* ── Breakpoint: mobile ──────────────────────────────────── */
@media (max-width:991px) {
    .malga-sidebar-col { display:none; }         /* sidebar nascosta */
    .malga-mobile-cta  { display:flex; }          /* CTA bar visibile */
    .single-malga-area { padding-bottom:90px; }   /* spazio per CTA bar */
    .malga-gallery { grid-template-rows:220px; }
}
@media (max-width:575px) {
    .malga-gallery { grid-template-rows:180px; }
    .malga-servizi { grid-template-columns:1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   CARD MALGA — archivio, location, custode
═══════════════════════════════════════════════════════════ */
.malgheit-card {
    background:#fff;border-radius:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.06);
    overflow:hidden;transition:transform .2s,box-shadow .2s;
    display:flex;flex-direction:column;height:100%;
}
.malgheit-card:hover {
    transform:translateY(-5px);
    box-shadow:0 8px 32px rgba(0,0,0,.14);
}
.malgheit-card__img {
    display:block;aspect-ratio:3/2;overflow:hidden;position:relative;
}
.malgheit-card__img img {
    width:100%;height:100%;object-fit:cover;
    transition:transform .4s;display:block;
}
.malgheit-card:hover .malgheit-card__img img { transform:scale(1.04); }
.malgheit-card__img-placeholder {
    width:100%;height:100%;
    background:linear-gradient(135deg,#1a3c2a,#2d6a4f 50%,#52b788);
}
.malgheit-card__badges {
    position:absolute;top:10px;left:10px;display:flex;gap:5px;
}
.malgheit-card__tipo {
    background:rgba(0,95,86,.85);color:#fff;
    padding:.18rem .65rem;border-radius:999px;
    font-size:.68rem;font-weight:800;backdrop-filter:blur(6px);
}
.malgheit-card__prem {
    background:linear-gradient(135deg,#C4862A,#E8A844);color:#fff;
    padding:.18rem .55rem;border-radius:999px;font-size:.68rem;font-weight:800;
}
.malgheit-card__body { padding:16px 18px;flex:1; }
.malgheit-card__title {
    font-size:1rem;font-weight:800;line-height:1.25;margin-bottom:8px;
}
.malgheit-card__title a { color:inherit;text-decoration:none; }
.malgheit-card__meta {
    display:flex;flex-wrap:wrap;gap:4px 10px;
    font-size:.78rem;color:var(--malghe-muted,#6B6356);margin-bottom:8px;
}
.malgheit-card__chips { display:flex;flex-wrap:wrap;gap:4px; }
.malgheit-chip {
    display:inline-flex;align-items:center;gap:3px;
    padding:.16rem .6rem;background:var(--malghe-green-pale,#E8F4F2);
    color:var(--malghe-green,#005F56);border-radius:999px;
    font-size:.7rem;font-weight:700;
}
.malgheit-card__footer {
    padding:10px 18px 14px;
    border-top:1px solid var(--malghe-border-lt,#EAE5DC);
    display:flex;align-items:center;justify-content:space-between;
}
.malgheit-card__cta {
    display:inline-flex;align-items:center;gap:5px;
    background:var(--malghe-green,#005F56);color:#fff;
    padding:.45rem 1rem;border-radius:999px;
    font-size:.8rem;font-weight:800;text-decoration:none;
    transition:background .15s;
}
.malgheit-card__cta:hover { background:var(--malghe-green-dark,#004840);color:#fff; }
.malgheit-price-wrap { display:inline-flex;gap:1px; }
.malgheit-price { font-weight:800;color:var(--malghe-border,#D9D2C7);font-size:.9rem; }
.malgheit-price--on { color:var(--malghe-green,#005F56); }

/* ── Archivio, filter bar, paginazione ────────────────────── */
.malgheit-archive { padding:48px 0 80px; }
.malgheit-filter-bar { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px; }
.malgheit-filter-pill {
    padding:.55rem 1.3rem;border-radius:999px;
    border:none;
    background:#FCFCFC;background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA);
    font-size:.85rem;font-weight:600;color:var(--malghe-muted,#6B6356);
    text-decoration:none;transition:all .15s;white-space:nowrap;
    box-shadow:
        -3px -3px 8px rgba(255,255,255,.9),
        3px 3px 10px rgba(0,0,0,.08),
        0 1px 3px rgba(0,0,0,.04);
}
.malgheit-filter-pill:hover,
.malgheit-filter-pill.active {
    color:var(--malghe-green,#005F56);
    background:var(--malghe-green-pale,#E8F4F2);background-image:none;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,.06),
        inset -2px -2px 5px rgba(255,255,255,.7);
}
.malgheit-pagination { display:flex;justify-content:center;gap:5px;padding:32px 0; }
.malgheit-pagination .page-numbers {
    display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:38px;border-radius:999px;
    border:1.5px solid var(--malghe-border,#D9D2C7);
    font-size:.86rem;font-weight:700;color:var(--malghe-muted,#6B6356);
    text-decoration:none;transition:all .15s;
}
.malgheit-pagination .page-numbers:hover,
.malgheit-pagination .current {
    background:var(--malghe-green,#005F56);color:#fff;
    border-color:var(--malghe-green,#005F56);
}

/* ═══════════════════════════════════════════════════════════
   PERCORSO — stats bar, waypoints, scheda tecnica
═══════════════════════════════════════════════════════════ */
.malgheit-perc-stats-bar {
    background:var(--malghe-cream-alt,#EDE8DF);
    border-bottom:1px solid var(--malghe-border-lt,#EAE5DC);
    padding:16px 0;
}
.malgheit-perc-stats {
    display:flex;flex-wrap:wrap;justify-content:center;
}
.malgheit-stat {
    text-align:center;padding:10px 24px;
    border-right:1px solid var(--malghe-border-lt,#EAE5DC);min-width:90px;
}
.malgheit-stat:last-child { border-right:none; }
.malgheit-stat__val {
    font-size:1.35rem;font-weight:900;letter-spacing:-.02em;
    color:var(--malghe-text,#1A1A1A);
    display:flex;align-items:baseline;justify-content:center;gap:3px;
}
.malgheit-stat__val span { font-size:.72rem;font-weight:600;color:var(--malghe-muted,#6B6356); }
.malgheit-stat__lbl {
    font-size:.7rem;font-weight:700;color:var(--malghe-muted,#6B6356);
    text-transform:uppercase;letter-spacing:.07em;margin-top:3px;
}
.malgheit-diff-pill {
    display:inline-flex;align-items:center;justify-content:center;
    padding:.2rem .7rem;border-radius:999px;
    font-size:.72rem;font-weight:800;color:#fff;
}
.malgheit-diff-badge-sm,.malgheit-diff-pill-sm {
    display:inline-flex;align-items:center;justify-content:center;
    width:26px;height:26px;border-radius:6px;
    font-size:.72rem;font-weight:800;color:#fff;
}
.malgheit-waypoints { display:flex;flex-direction:column;gap:10px; }
.malgheit-wp-item {
    display:flex;align-items:flex-start;gap:14px;
    padding:13px 16px;background:#fff;border-radius:10px;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
}
.malgheit-wp-num {
    width:28px;height:28px;border-radius:50%;
    background:var(--malghe-green,#005F56);color:#fff;
    font-size:.78rem;font-weight:800;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.malgheit-wp-nome { font-weight:800;font-size:.9rem; }
.malgheit-wp-meta { font-size:.76rem;color:var(--malghe-muted,#6B6356);margin-top:2px; }
.malgheit-wp-desc { font-size:.8rem;color:var(--malghe-muted,#6B6356);margin-top:3px;line-height:1.5; }
.malgheit-info-table { width:100%;border-collapse:collapse;font-size:.86rem; }
.malgheit-info-table th {
    text-align:left;color:var(--malghe-muted,#6B6356);font-weight:600;
    padding:6px 10px 6px 0;width:45%;
}
.malgheit-info-table td { font-weight:700;padding:6px 0; }
.malgheit-info-table tr+tr th,
.malgheit-info-table tr+tr td { border-top:1px solid var(--malghe-border-lt,#EAE5DC); }
.malga-map.malgheit-percorso-map { height:400px; }
.malgheit-btn--outline {
    background:transparent;border:2px solid var(--malghe-green,#005F56);
    color:var(--malghe-green,#005F56);
}
.malgheit-btn--outline:hover { background:var(--malghe-green,#005F56);color:#fff; }
.malgheit-perc-area { padding:48px 0 80px; }
.malgheit-btn {
    display:inline-flex;align-items:center;gap:6px;
    padding:.55rem 1.1rem;border-radius:999px;
    font-size:.86rem;font-weight:700;text-decoration:none;transition:all .15s;
}
.malgheit-btn--primary { background:var(--malghe-green,#005F56);color:#fff; }
.malgheit-btn--primary:hover { background:var(--malghe-green-dark,#004840);color:#fff; }

/* ═══════════════════════════════════════════════════════════
   CUSTODE PROFILO (author.php)
═══════════════════════════════════════════════════════════ */
.malgheit-custode-header .malgheit-custode-hero {
    display:flex;align-items:center;gap:28px;padding:20px 0;
}
@media(max-width:640px) { .malgheit-custode-hero { flex-direction:column;text-align:center; } }
.malgheit-custode-hero__photo {
    width:140px;height:140px;border-radius:50%;
    border:4px solid rgba(255,255,255,.3);overflow:hidden;flex-shrink:0;
}
.malgheit-custode-hero__photo img { width:100%;height:100%;object-fit:cover; }
.malgheit-custode-eyebrow {
    font-size:.72rem;font-weight:800;letter-spacing:.12em;
    text-transform:uppercase;opacity:.7;margin-bottom:8px;color:#fff;
}
.malgheit-custode-nome {
    font-size:clamp(1.6rem,4vw,2.6rem);font-weight:900;color:#fff;letter-spacing:-.02em;
}
.malgheit-custode-dal { font-size:.8rem;font-weight:500;opacity:.7;margin-left:10px; }
.malgheit-custode-ruolo { font-size:1rem;opacity:.8;color:#fff;margin-top:4px; }
.malgheit-custode-stats {
    display:inline-flex;align-items:center;gap:6px;
    background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);
    padding:.3rem .85rem;border-radius:999px;font-size:.82rem;font-weight:700;color:#fff;margin-top:8px;
}
.malgheit-custode-social { display:flex;gap:10px;margin-top:12px;flex-wrap:wrap; }
.malgheit-social-link {
    display:inline-flex;align-items:center;gap:5px;
    background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);
    color:#fff;padding:.28rem .82rem;border-radius:999px;
    font-size:.8rem;font-weight:600;text-decoration:none;transition:background .15s;
}
.malgheit-social-link:hover { background:rgba(255,255,255,.25);color:#fff; }
.malgheit-custode-body { padding:48px 0 80px; }
.malgheit-custode-bio { font-size:.97rem;line-height:1.85;max-width:720px; }
.malgheit-custode-bio p { margin-bottom:.8em; }

/* ═══════════════════════════════════════════════════════════
   ADMIN METABOX STYLES
═══════════════════════════════════════════════════════════ */
.malgheit-mb-grid {
    display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:14px;margin-bottom:4px;
}
.malgheit-field { display:flex;flex-direction:column;gap:5px; }
.malgheit-field label { font-size:12px;font-weight:600;color:#1d2327; }
.malgheit-field--full { grid-column:1/-1; }
.malgheit-field--sep { border-top:1px solid #ddd;padding-top:14px;margin-top:4px; }
.malgheit-field input[type=text],
.malgheit-field input[type=number],
.malgheit-field input[type=email],
.malgheit-field input[type=url],
.malgheit-field input[type=tel],
.malgheit-field input[type=date],
.malgheit-field select,
.malgheit-field textarea {
    border-radius:6px;border:1px solid #ddd;padding:7px 10px;
    font-size:13px;width:100%;font-family:inherit;
}
.malgheit-desc { font-size:11px;color:#666;font-style:italic;margin-top:2px; }
.malgheit-radio-group { display:flex;flex-direction:column;gap:6px;margin-top:4px; }
.malgheit-radio { display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer; }
.malgheit-check-row { display:flex;flex-wrap:wrap;gap:10px;margin-top:4px; }
.malgheit-check-grid { display:flex;flex-wrap:wrap;gap:8px;margin-top:4px; }
.malgheit-check-label { display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer; }
.malgheit-section-toggle {
    border-top:2px solid #005F56;padding-top:14px;margin-top:18px;
}
.malgheit-toggle-label { display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px; }
.malgheit-toggle-title { font-weight:700;font-size:14px; }
.malgheit-toggle-section { margin-top:12px;padding:14px;background:#f8f8f8;border-radius:8px; }
.malgheit-servizi-grid { display:flex;flex-wrap:wrap;gap:8px;margin-top:12px; }
.malgheit-repeater { background:#f0f0f0;border-radius:8px;padding:14px;margin-top:12px; }
.malgheit-repeater-head { font-size:13px;font-weight:700;margin-bottom:10px; }
.malgheit-rep-item {
    background:#fff;border:1px solid #ddd;border-radius:6px;
    padding:12px;margin-bottom:10px;
}
.malgheit-rep-handle {
    font-size:12px;font-weight:700;color:#666;margin-bottom:8px;
    display:flex;align-items:center;gap:8px;
}
.malgheit-rep-rm { color:#cc1818!important;margin-left:auto;cursor:pointer;background:none;border:none;font-size:12px; }
.malgheit-media-row { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px; }
.malgheit-thumb { width:48px;height:48px;object-fit:cover;border-radius:4px;border:1px solid #ddd; }
.malgheit-diff-badge { display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;font-size:11px;font-weight:800;color:#fff;margin-right:2px; }
/* Premium admin */
.malgheit-premium-box { padding:4px 0; }
#premium-fields { margin-top:14px;display:flex;flex-direction:column;gap:10px; }
.malgheit-alert { padding:9px 12px;border-radius:6px;font-size:12px;font-weight:600; }
.malgheit-alert--warn { background:#fff3cd;border:1px solid #ffc107;color:#856404; }
.malgheit-alert--error { background:#fde8e8;border:1px solid #dc3545;color:#721c24; }
.malgheit-status { display:inline-block;padding:.2rem .6rem;border-radius:999px;font-size:12px;font-weight:700; }
.malgheit-status--active { background:#d1e7dd;color:#0f5132; }
.malgheit-status--warn { background:#fff3cd;color:#856404; }
.malgheit-status--expired { background:#f8d7da;color:#721c24; }
.malgheit-status--basic { background:#e9ecef;color:#495057; }
.malgheit-premium-table th,.malgheit-premium-table td { padding:10px 12px!important;vertical-align:middle!important; }
.malgheit-row--expired { background:#fff5f5!important; }
.malgheit-row--warn { background:#fffbf0!important; }
.malgheit-user-table th { width:200px; }

/* ── Override gradiente page-header Wildex ─────────────────────
   Il tema padre applica un overlay bianco che rende il testo
   illeggibile. Lo sostituiamo con un gradiente scuro dal basso. */
.page-header {
    position:relative;
}
/* Rimuovi il gradiente bianco del parent */
.page-header::before {
    background:linear-gradient(
        to top,
        rgba(0,0,0,.65) 0%,
        rgba(0,0,0,.25) 50%,
        rgba(0,0,0,.10) 100%
    ) !important;
}

/* ── Card percorso inline (in single-malga) ──────────────────── */
.malga-perc-card {
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--malghe-border-lt,#EAE5DC);
    text-decoration:none;
    color:inherit;
    transition:box-shadow .2s, transform .2s;
    height:100%;
}
.malga-perc-card:hover {
    box-shadow:0 6px 24px rgba(0,0,0,.12);
    transform:translateY(-3px);
}
.malga-perc-card__map {
    width:100%; aspect-ratio:16/9; display:block;
    pointer-events: none;
    background: #1a3c2a;
}
.malga-perc-card__body {
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.malga-perc-card__diff {
    display:inline-flex;align-items:center;justify-content:center;
    width:28px;height:28px;border-radius:7px;
    font-size:.72rem;font-weight:800;color:#fff;
    flex-shrink:0;align-self:flex-start;
}
.malga-perc-card__title {
    font-size:.95rem;font-weight:800;line-height:1.3;
    color:var(--malghe-text,#1A1A1A);margin:0;
}
.malga-perc-card__meta {
    display:flex;flex-wrap:wrap;gap:4px 12px;
    font-size:.78rem;color:var(--malghe-muted,#6B6356);
}
.malga-perc-card__meta i { color:var(--malghe-green,#005F56);font-size:.75rem; }

/* ── Mobile CTA: border-radius forzato uguale su entrambi ─────
   Il tema padre può sovrascrivere, quindi !important          */
.malga-mobile-cta { display:none; }
@media (max-width:991px) {
    .malga-mobile-cta {
        display:flex;
        position:fixed;bottom:0;left:0;right:0;z-index:800;
        padding:10px 16px max(10px,env(safe-area-inset-bottom));
        background:#fff;border-top:1px solid #EAE5DC;
        box-shadow:0 -4px 20px rgba(0,0,0,.1);gap:8px;
    }
    .malga-mobile-btn {
        flex:1 !important;
        display:inline-flex !important;
        align-items:center;justify-content:center;gap:7px;
        padding:.72rem !important;
        border-radius:12px !important;   /* stesso per entrambi */
        font:inherit;font-size:.88rem;font-weight:700;
        cursor:pointer;text-decoration:none;
        border:2px solid var(--malghe-green,#005F56) !important;
    }
    .malga-mobile-btn--call {
        background:var(--malghe-green,#005F56) !important;
        color:#fff !important;
    }
    .malga-mobile-btn--info {
        background:transparent !important;
        color:var(--malghe-green,#005F56) !important;
    }
}

/* ── Toast notifica form contatti ───────────────────────────── */
.malgheit-toast {
    position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:9999;
    display:inline-flex;align-items:center;gap:10px;
    padding:.8rem 1.4rem;border-radius:10px;font-size:.88rem;font-weight:600;
    box-shadow:0 4px 20px rgba(0,0,0,.18);animation:toastIn .3s ease;
    white-space:nowrap;
}
.malgheit-toast--ok  { background:#005F56;color:#fff; }
.malgheit-toast--err { background:#c0392b;color:#fff; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ── Custode hero (author.php) ──────────────────────────────── */
.custode-hero-header { background:linear-gradient(160deg,#003d35,#005F56) !important; }
.custode-hero {
    display:flex;align-items:center;gap:36px;
    padding:8px 0 12px;
}
@media(max-width:640px) { .custode-hero { flex-direction:column;text-align:center;gap:20px; } }
/* ═══════════════════════════════════════════════════════════════
   TESTIMONIANZE — card stile "polaroid" + popup
═══════════════════════════════════════════════════════════════ */
.testimonianze-grid {
    display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;
}
.testimonianza-card {
    background:#fff;border:1px solid #ECE7DE;border-radius:0;
    box-shadow:0 3px 14px rgba(0,0,0,.08);
    display:flex;flex-direction:column;
}
.testimonianza-card__foto-frame {
    background:#fff;padding:12px 12px 0;
}
.testimonianza-card__foto {
    display:block;width:100%;aspect-ratio:4/3;position:relative;
    background:#f2efe8;cursor:pointer;
}
.testimonianza-card__foto img { width:100%;height:100%;object-fit:cover;display:block; }
.testimonianza-card__foto--empty {
    display:flex;align-items:center;justify-content:center;color:var(--malghe-muted,#6B6356);font-size:2rem;
    cursor:default;
}
.testimonianza-card__foto-count {
    position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.65);color:#fff;
    font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px;
}
.testimonianza-card__body { padding:16px 16px 18px;display:flex;flex-direction:column;gap:12px; }
.testimonianza-card__titolo { margin:0;font-size:.98rem;font-weight:800;color:var(--malghe-text,#1A1A1A); }
.testimonianza-card__testo { font-size:.92rem;line-height:1.6;color:var(--malghe-text,#1A1A1A);margin:0; }
.testimonianza-card__chips { display:flex;flex-wrap:wrap;gap:6px; }
.testimonianza-chip {
    display:inline-flex;align-items:center;gap:5px;font-size:.7rem;font-weight:600;
    background:var(--malghe-green-pale,#E8F4F2);color:var(--malghe-green,#005F56);
    padding:.28rem .6rem;border-radius:999px;
}
/* riga identità (avatar+nome+badge+data): sullo spazio bianco della polaroid,
   sopra il testo, senza box né ombra. */
.testimonianza-card__autore {
    display:flex;align-items:center;gap:10px;
}
.testimonianza-card__avatar {
    width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0;
    border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.2);background:#fff;
}
.testimonianza-card__autore-testo { display:flex;flex-direction:column;line-height:1.3;flex:1;min-width:0; }
.testimonianza-card__nome { font-size:.82rem;font-weight:700;color:var(--malghe-text,#1A1A1A); }
.testimonianza-card__badge {
    display:inline-flex;align-items:center;gap:4px;font-size:.68rem;font-weight:600;
    color:var(--malghe-green,#005F56);
}
.testimonianza-card__badge img { width:14px;height:14px;object-fit:contain; }
.testimonianza-card__data { font-size:.68rem;color:var(--malghe-muted,#6B6356);white-space:nowrap; }

.testimonianze-disclaimer {
    font-size:.76rem;color:var(--malghe-muted,#6B6356);line-height:1.6;
    margin:20px 0 16px;padding:12px 14px;background:#F7F5EF;border-radius:8px;
}
.testimonianze-disclaimer i { color:#B08900;margin-right:4px; }

/* ── Popup: tutte le testimonianze ─────────────────────────── */
.testimonianze-modal, .testimonianza-foto-modal {
    position:fixed;inset:0;z-index:9999;display:none;
}
.testimonianze-modal.is-open, .testimonianza-foto-modal.is-open { display:block; }
.testimonianze-modal__backdrop, .testimonianza-foto-modal__backdrop {
    position:absolute;inset:0;background:rgba(20,20,15,.72);
}
.testimonianze-modal__inner {
    position:relative;max-width:640px;margin:5vh auto;background:#fff;border-radius:14px;
    max-height:90vh;display:flex;flex-direction:column;padding:24px;
}
.testimonianze-modal__title { margin:0 0 16px;font-size:1.2rem;font-weight:800; }
.testimonianze-modal__list { overflow-y:auto;display:flex;flex-direction:column;gap:18px;padding-right:4px; }
.testimonianze-modal__loading { text-align:center;padding:40px 0;color:var(--malghe-muted,#6B6356); }
.testimonianze-modal__close, .testimonianza-foto-modal__close {
    position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;border:0;
    background:#F2EFE8;cursor:pointer;font-size:1rem;
}

/* ── Popup: galleria foto singola testimonianza ────────────── */
.testimonianza-foto-modal__inner {
    position:relative;max-width:720px;margin:6vh auto;padding:20px;
}
.testimonianza-foto-modal__inner img {
    width:100%;max-height:78vh;object-fit:contain;border-radius:8px;background:#000;
}
.testimonianza-foto-modal__nav {
    display:flex;align-items:center;justify-content:center;gap:20px;margin-top:14px;color:#fff;
}
.testimonianza-foto-modal__nav button {
    background:rgba(255,255,255,.15);border:0;color:#fff;width:38px;height:38px;border-radius:50%;cursor:pointer;
}
.testimonianza-foto-modal__close { background:rgba(255,255,255,.15);color:#fff; }
@media (max-width:600px) {
    .testimonianze-modal__inner { margin:0;max-width:100%;height:100%;max-height:100%;border-radius:0; }
}

.custode-hero__photo {
    width:160px;height:160px;border-radius:50%;overflow:hidden;flex-shrink:0;
    border:4px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.1);
}
.custode-hero__photo img { width:100%;height:100%;object-fit:cover;display:block; }
.custode-hero__eyebrow {
    display:inline-flex;align-items:center;gap:7px;
    font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
    color:rgba(255,255,255,.6);margin-bottom:8px;
}
.custode-hero__nome {
    font-size:clamp(1.6rem,4vw,2.4rem);font-weight:900;
    color:#fff;letter-spacing:-.02em;line-height:1.1;margin-bottom:6px;
}
.custode-hero__ruolo { font-size:1rem;color:rgba(255,255,255,.7);margin-bottom:12px; }
.custode-hero__meta {
    display:flex;flex-wrap:wrap;gap:8px 20px;
    font-size:.82rem;color:rgba(255,255,255,.7);margin-bottom:14px;
}
.custode-hero__meta i { opacity:.7; }
.custode-hero__social { display:flex;flex-wrap:wrap;gap:8px; }
.custode-social-btn {
    display:inline-flex;align-items:center;gap:7px;
    padding:.32rem .9rem;border-radius:999px;font-size:.82rem;font-weight:600;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
    color:#fff;text-decoration:none;transition:background .15s;
}
.custode-social-btn:hover { background:rgba(255,255,255,.22);color:#fff; }

/* Corpo custode */
.custode-body { padding:52px 0 80px; }
.custode-bio-section { max-width:760px;margin-bottom:48px; }
.custode-section-title {
    font-size:1.25rem;font-weight:800;letter-spacing:-.01em;
    margin-bottom:20px;color:var(--malghe-text,#1A1A1A);
}
.custode-bio-text { font-size:.97rem;line-height:1.9;color:#3a3632; }
.custode-bio-text p { margin-bottom:.9em; }
.custode-malghe-section { margin-top:48px;padding-top:40px;border-top:1px solid #EAE5DC; }

/* ── Pin mappa con foto ─────────────────────────────────────── */
.malga-map-pin-photo {
    background: transparent !important;
    border: none !important;
}
.malga-map-pin-photo img {
    transition: transform .2s ease, box-shadow .2s ease;
}
.malga-map-pin-photo:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,.4) !important;
}
/* Leaflet rimuove il default marker background */
.malga-map-pin-photo::before,
.malga-map-pin-photo::after { display: none; }

/* ══════════════════════════════════════════════════════════════
   PERCORSO — cover satellitare, dots, timeline, grafico
══════════════════════════════════════════════════════════════ */

/* Page header senza foto — sfondo verde scuro standard */
.page-header--solid {
    background: linear-gradient(150deg, #003d35 0%, #005F56 100%) !important;
}

/* Pallini difficoltà — sempre su sfondo chiaro ora che l'header
   colorato non esiste più. Stile light-mode di base, niente più
   varianti scure da gestire. */
.malgheit-header-dots {
    display: inline-flex; align-items: center; gap: 8px;
}
.malgheit-dots-display { display: inline-flex; gap: 4px; vertical-align: middle; }
.malgheit-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--malghe-border-lt,#EAE5DC);
    display: inline-block;
}
.malgheit-dot.is-on { background: var(--malghe-green,#005F56); }


/* Cover mappa satellitare */
.percorso-cover-map {
    width: 100%;
    height: clamp(280px, 42vw, 460px);
    border-radius: 16px;
    margin-top: 24px;
    overflow: hidden;
    background: #1a3c2a; /* placeholder mentre carica */
}
.percorso-cover-actions {
    display: flex; justify-content: flex-end;
    margin-top: 12px;
}

/* Grafico altimetrico */
.perc-elevation-chart {
    height: 240px;
    background: #fff;
    border: 1px solid var(--malghe-border-lt,#EAE5DC);
    border-radius: 12px;
    padding: 18px 18px 10px;
}

/* ── Timeline "Cosa trovi nel percorso" ──────────────────────── */
.perc-timeline { display: flex; flex-direction: column; }
.perc-timeline__item {
    display: flex; gap: 16px;
}
.perc-timeline__marker {
    display: flex; flex-direction: column; align-items: center;
    flex-shrink: 0; width: 36px;
}
.perc-timeline__dot {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--malghe-green,#005F56);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .92rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.perc-timeline__dot--malga { background: var(--malghe-accent,#C4862A); }
.perc-timeline__line {
    flex: 1; width: 2px; min-height: 28px;
    background-image: linear-gradient(var(--malghe-border,#D9D2C7) 60%, transparent 0%);
    background-size: 2px 9px;
    background-repeat: repeat-y;
    margin: 4px 0;
}
.perc-timeline__item:last-child .perc-timeline__line { display: none; }
.perc-timeline__content { flex: 1; padding-bottom: 22px; min-width: 0; }

.perc-timeline__plain { padding-top: 5px; }
.perc-timeline__nome { font-weight: 800; font-size: .94rem; color: var(--malghe-text,#1A1A1A); }
.perc-timeline__meta { font-size: .78rem; color: var(--malghe-muted,#6B6356); margin-top: 2px; }
.perc-timeline__desc { font-size: .84rem; color: var(--malghe-muted,#6B6356); margin-top: 5px; line-height: 1.6; }

.perc-timeline__card {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.perc-timeline__card:hover {
    border-color: var(--malghe-accent,#C4862A);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.perc-timeline__thumb {
    width: 84px; height: 84px; border-radius: 12px;
    overflow: hidden; flex-shrink: 0;
}
.perc-timeline__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perc-timeline__info { flex: 1; min-width: 0; }
.perc-timeline__link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .8rem; font-weight: 700; color: var(--malghe-accent,#C4862A);
    margin-top: 4px;
}

/* Variante card timeline non cliccabile (punto generico con foto) */
.perc-timeline__card--plain {
    cursor: default;
}
.perc-timeline__card--plain:hover {
    border-color: var(--malghe-border-lt,#EAE5DC);
    box-shadow: none;
}

/* ── Popup mappa percorso (foto + dettagli) ───────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: auto !important;
}
.perc-map-popup { width: 220px; }
.perc-map-popup__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.perc-map-popup__body { padding: 10px 12px 12px; }
.perc-map-popup__nome {
    font-weight: 800;
    font-size: .9rem;
    color: var(--malghe-text,#1A1A1A);
    line-height: 1.3;
}
.perc-map-popup__quota {
    font-size: .76rem;
    color: var(--malghe-muted,#6B6356);
    margin-top: 2px;
}
.perc-map-popup__desc {
    font-size: .8rem;
    color: var(--malghe-muted,#6B6356);
    margin-top: 6px;
    line-height: 1.5;
}
.perc-map-popup__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--malghe-green,#005F56);
    margin-top: 8px;
    text-decoration: none;
}
.perc-map-popup__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   PERCORSO — sidebar "Scheda tecnica" stile dark green
══════════════════════════════════════════════════════════════ */
.perc-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 991px) {
    .perc-sidebar { position: static; }
}
.perc-tech-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.perc-tech-card__head {
    background: linear-gradient(150deg, #003d35 0%, #005F56 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 18px 22px;
}
.perc-tech-card__body { padding: 8px 22px; }
.perc-tech-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC);
    font-size: .88rem;
}
.perc-tech-row:last-child { border-bottom: none; }
.perc-tech-row span {
    color: var(--malghe-muted,#6B6356);
    display: flex;
    align-items: center;
    gap: 6px;
}
.perc-tech-row span i { font-size: .8rem; opacity: .7; }
.perc-tech-row strong {
    font-weight: 800;
    color: var(--malghe-text,#1A1A1A);
    text-align: right;
}
.perc-tech-card__footer { padding: 16px 22px 20px; }
.perc-tech-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--malghe-green,#005F56);
    color: #fff;
    padding: .8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s;
}
.perc-tech-cta:hover { background: var(--malghe-green-dark,#004840); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   COVER MAPPA — pulsante espandi + fullscreen modal
══════════════════════════════════════════════════════════════ */
.percorso-cover-wrap { position: relative; }
.percorso-map-expand-btn {
    position: absolute;
    bottom: 16px; right: 16px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.95);
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    transition: all .15s;
}
.percorso-map-expand-btn:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.percorso-map-expand-btn i { color: var(--malghe-green,#005F56); }

.percorso-map-fullscreen {
    position: fixed; inset: 0; z-index: 99998;
    background: #0a1f1a;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
}
.percorso-map-fullscreen.is-open { opacity: 1; pointer-events: auto; }
.percorso-map-fullscreen-inner { width: 100%; height: 100%; }
.percorso-map-fullscreen-close {
    position: absolute !important;
    top: 18px !important; right: 18px !important;
    z-index: 999999 !important;   /* sopra qualunque pannello/controllo Leaflet */
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(10,25,20,.78);
    border: 3px solid #fff;       /* cornice bianca — visibile su qualunque sfondo satellitare */
    color: #fff; font-size: 20px;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
    display: flex !important; align-items: center; justify-content: center;
}
.percorso-map-fullscreen-close:hover {
    background: var(--malghe-green,#005F56);
    transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE — refinement + pulsante "vedi tutti" + modal
══════════════════════════════════════════════════════════════ */
.perc-timeline-more-btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}
.perc-timeline-modal {
    position: fixed; inset: 0; z-index: 99000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s;
    padding: 24px;
}
.perc-timeline-modal.is-open { opacity: 1; pointer-events: auto; }
.perc-timeline-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.perc-timeline-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.perc-timeline-modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC);
    font-weight: 800; font-size: 1rem;
}
.perc-timeline-modal__close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--malghe-cream,#F5F0E8); border: none;
    cursor: pointer; font-size: .85rem;
}
.perc-timeline-modal__body { padding: 22px 24px; overflow-y: auto; }

/* Popup eyebrow per marker partenza/arrivo */
.perc-map-popup__eyebrow {
    font-size: .68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--malghe-muted,#6B6356); margin-bottom: 2px;
}

/* ── Mini-mappa anteprima nelle card percorso ──────────────── */
.percorso-card__img-wrap { position: relative; }
.percorso-card-map {
    width: 100%; height: 100%;
    pointer-events: none;        /* il click passa al link <a> sotto */
    background: #1a3c2a;         /* placeholder mentre carica */
}
.percorso-card-map .leaflet-control-attribution { display: none; }

/* ══════════════════════════════════════════════════════════════
   MODAL: dettaglio waypoint/malga (timeline)
══════════════════════════════════════════════════════════════ */
.perc-popup-modal {
    position: fixed; inset: 0; z-index: 99500;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s;
    padding: 20px;
}
.perc-popup-modal.is-open { opacity: 1; pointer-events: auto; }
.perc-popup-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.perc-popup-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.perc-popup-modal__close {
    position: absolute; top: 14px; right: 14px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none; color: var(--malghe-text,#1A1A1A);
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
}
.perc-popup-modal__photo {
    width: 100%; aspect-ratio: 4/3;
    background: var(--malghe-cream,#F5F0E8);
}
.perc-popup-modal__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perc-popup-modal__body { padding: 20px 24px 24px; }
.perc-popup-modal__body h3 {
    font-size: 1.15rem; font-weight: 800; margin-bottom: 6px;
    color: var(--malghe-text,#1A1A1A);
}
.perc-popup-modal__quota {
    font-size: .82rem; color: var(--malghe-muted,#6B6356); margin-bottom: 10px;
}
.perc-popup-modal__desc {
    font-size: .9rem; line-height: 1.7; color: var(--malghe-muted,#6B6356);
    margin-bottom: 18px;
}
.perc-popup-modal__body .malgheit-btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   PERCORSO — intestazione minimale (senza header colorato)
══════════════════════════════════════════════════════════════ */
.percorso-minimal-head {
    padding-top: 180px !important;
    padding-bottom: 8px;
}
@media (max-width: 767px) {
    .percorso-minimal-head { padding-top: 164px !important; }
}
html.is-pwa-app .percorso-minimal-head { padding-top: 16px !important; }
.percorso-minimal-head .malgheit-breadcrumb {
    margin-top: 0;
    margin-bottom: 14px;
}
.percorso-minimal-head .malgheit-breadcrumb ol { color: var(--malghe-muted,#6B6356); }
.percorso-minimal-head .malgheit-breadcrumb a { color: var(--malghe-muted,#6B6356); }
.percorso-minimal-head .malgheit-breadcrumb li:last-child { color: var(--malghe-text,#1A1A1A); }
.percorso-minimal-head__title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--malghe-text,#1A1A1A);
    line-height: 1.15;
    margin-bottom: 8px;
}
.percorso-minimal-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: .88rem;
    color: var(--malghe-muted,#6B6356);
}
.percorso-minimal-head__meta i { opacity: .65; margin-right: 3px; }

/* ═══════════════════════════════════════════════
   CUSTODE CARD v2 (sostituisce .custode-card)
   ═══════════════════════════════════════════════ */
.custode-card2 {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.custode-card2__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
}
.custode-card2__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--malghe-cream, #F5F0E8);
}
.custode-card2__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.custode-card2__nome {
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}
.custode-card2__ruolo {
    font-size: .78rem;
    color: #888;
}
.custode-card2__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.custode-card2__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.custode-card2__photo-caption {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: .72rem;
    color: rgba(255,255,255,.88);
    background: rgba(0,0,0,.32);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}
.custode-card2__body {
    padding: 18px 22px;
}
.custode-card2__bio {
    font-size: .875rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 14px;
}
.custode-card2__link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--malghe-green, #005F56);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .15s;
}
.custode-card2__link:hover { gap: 10px; }
.custode-card2__social {
    display: flex;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid #f0f0f0;
}
.custode-card2__social a {
    color: var(--malghe-green, #005F56);
    font-size: 1.15rem;
    line-height: 1;
    transition: color .15s;
}
.custode-card2__social a:hover { color: var(--malghe-gold, #C4862A); }

/* ═══════════════════════════════════════════════
   MALGA ITEM ROW (cucina + prodotti)
   ═══════════════════════════════════════════════ */
.malga-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.malga-item-row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .18s;
}
.malga-item-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.malga-item-photo {
    flex-shrink: 0;
    width: 110px;
    min-height: 90px;
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--malghe-cream, #F5F0E8);
    overflow: hidden;
}
.malga-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.malga-item-photo:hover img { transform: scale(1.05); }
.malga-item-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity .18s;
}
.malga-item-photo:hover .malga-item-zoom { opacity: 1; }
.malga-item-content {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.malga-item-nome {
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
}
.malga-item-desc {
    font-size: .825rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
.malga-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--malghe-gold, #C4862A);
    margin-top: 4px;
}
@media (max-width: 480px) {
    .malga-item-photo { width: 80px; min-height: 72px; }
    .malga-item-content { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════
   ITEM PHOTO POPUP (lightbox semplice)
   ═══════════════════════════════════════════════ */
.item-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.item-popup-overlay.is-open { display: flex; }
.item-popup-inner {
    position: relative;
    max-width: 820px;
    width: 100%;
}
.item-popup-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
.item-popup-caption {
    text-align: center;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-top: 10px;
}
.item-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: background .15s;
}
.item-popup-close:hover { background: var(--malghe-cream, #F5F0E8); }

/* ═══════════════════════════════════════════════
   METEO WIDGET
   ═══════════════════════════════════════════════ */
.malga-meteo-widget { font-size: .875rem; }
.malga-meteo-loading { color: #888; padding: 12px 0; }
.malga-meteo-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 480px) { .malga-meteo-day { padding: 10px 6px; } }
@media (max-width: 480px) {
    .malga-meteo-day__label { font-size: .64rem; margin-bottom: 5px; }
    .malga-meteo-day__icon { font-size: 1.5rem; margin-bottom: 5px; }
    .malga-meteo-day__desc { font-size: .68rem; min-height: 2em; margin-bottom: 5px; }
    .malga-meteo-day__temps { font-size: .78rem; gap: 6px; }
    .malga-meteo-day__rain { font-size: .66rem; margin-top: 5px; }
}
.malga-meteo-day {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.malga-meteo-day__label {
    font-size: .75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.malga-meteo-day__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}
.malga-meteo-day__desc {
    font-size: .78rem;
    color: #555;
    margin-bottom: 8px;
    min-height: 2.4em;
    line-height: 1.3;
}
.malga-meteo-day__temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: .88rem;
}
.malga-meteo-day__max { font-weight: 700; color: #1a1a1a; }
.malga-meteo-day__min { color: #888; }
.malga-meteo-day__rain {
    margin-top: 8px;
    font-size: .75rem;
    color: #5b8fc4;
}
.malga-meteo-day__rain i { margin-right: 3px; }
.malga-meteo-credit {
    margin-top: 10px;
    font-size: .72rem;
    color: #bbb;
    text-align: right;
}
.malga-meteo-credit a { color: #bbb; }

/* ═══════════════════════════════════════════════
   CAI LEGENDA (single-percorso)
   ═══════════════════════════════════════════════ */
.perc-cai-legenda {
    padding: 10px 14px;
    background: var(--malghe-cream-pale, #faf8f4);
    border-radius: 6px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.perc-cai-legenda__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: .78rem;
    color: #666;
    opacity: .65;
}
.perc-cai-legenda__row--active {
    opacity: 1;
    font-weight: 500;
    color: #1a1a1a;
}
.perc-cai-legenda__pill {
    flex-shrink: 0;
    display: inline-block;
    width: 30px;
    text-align: center;
    padding: 1px 0;
    border-radius: 3px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
}
.perc-cai-legenda__label { line-height: 1.3; }

/* ═══════════════════════════════════════════════
   ADMIN — descrizione CAI radio
   ═══════════════════════════════════════════════ */
.malgheit-radio-desc {
    margin: -6px 0 10px 28px;
    font-size: .78rem;
    color: #777;
    font-style: italic;
}

/* ═══════════════════════════════════════════════
   CUSTODE PROFILE PAGE (author.php)
   ═══════════════════════════════════════════════ */
.custode-page { padding: 0 0 64px; }

.custode-profile-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 48px;
}
.custode-profile-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
}
.custode-profile-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--malghe-cream, #F5F0E8);
}
.custode-profile-card__identity {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.custode-profile-card__nome {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}
.custode-profile-card__ruolo {
    font-size: .8rem;
    color: #888;
}
.custode-profile-card__count {
    font-size: .78rem;
    color: #aaa;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.custode-profile-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.custode-profile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.custode-profile-card__photo-caption {
    position: absolute;
    bottom: 14px;
    right: 16px;
    font-size: .75rem;
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.3);
    padding: 2px 10px;
    border-radius: 4px;
    pointer-events: none;
}
.custode-profile-card__body {
    padding: 24px 28px;
}
.custode-profile-card__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.custode-profile-card__bio {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
}
.custode-profile-card__bio p { margin: 0 0 .75em; }
.custode-profile-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 28px;
    border-top: 1px solid #f0f0f0;
}
.custode-profile-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: .84rem;
    color: #333;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.custode-profile-social-btn:hover {
    border-color: var(--malghe-green, #005F56);
    color: var(--malghe-green, #005F56);
}
.custode-profile-malghe__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

/* ═══════════════════════════════════════════════
   MALGA ITEM LIST (cucina + prodotti) — flat list
   ═══════════════════════════════════════════════ */
.malga-item-list {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.malga-item-list__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.malga-item-list__row:last-child { border-bottom: none; }
.malga-item-list__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: var(--malghe-cream, #F5F0E8);
    transition: opacity .15s;
}
.malga-item-list__thumb:hover { opacity: .85; }
.malga-item-list__thumb:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}
.malga-item-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.malga-item-list__thumb--empty {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.1rem;
}
.malga-item-list__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.malga-item-list__nome {
    font-size: .93rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}
.malga-item-list__desc {
    font-size: .82rem;
    color: #888;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.malga-item-list__badge {
    font-size: .75rem;
    color: var(--malghe-gold, #C4862A);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════
   CAI POPUP (pill cliccabile)
   ═══════════════════════════════════════════════ */
.malgheit-diff-pill-sm {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}
.cai-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cai-popup-overlay.is-open { display: flex; }
.cai-popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}
.cai-popup-box__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #555;
}
.cai-popup-box__pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: .04em;
}
.cai-popup-box__label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.cai-popup-box__desc {
    font-size: .87rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   LUOGHI VICINO A TE
   ═══════════════════════════════════════════════ */
.vicino-page { padding: 32px 0 64px; }
.vicino-intro { text-align: center; padding: 24px 0; }
.vicino-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--malghe-green, #005F56);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.vicino-btn:hover { background: var(--malghe-green-dark, #004840); }
.vicino-disclaimer {
    max-width: 620px;
    margin: 20px auto 0;
    font-size: .85rem;
    color: var(--malghe-muted, #6B6356);
    line-height: 1.6;
}
.vicino-disclaimer i { color: var(--malghe-accent, #C4862A); margin-right: 4px; }
.vicino-loading { text-align: center; padding: 30px; color: var(--malghe-muted, #6B6356); }
.vicino-errore {
    max-width: 620px;
    margin: 20px auto;
    padding: 16px 20px;
    background: var(--malghe-cream, #F5F0E8);
    border-radius: 10px;
    color: var(--malghe-text, #1A1A1A);
    font-size: .9rem;
    line-height: 1.6;
    text-align: center;
}
.vicino-lista {
    max-width: 640px;
    margin: 24px auto 32px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.vicino-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.vicino-item:last-child { border-bottom: none; }
.vicino-item:hover { background: var(--malghe-cream, #F5F0E8); }
.vicino-item__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--malghe-cream, #F5F0E8);
}
.vicino-item__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vicino-item__thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--malghe-light, #9B948A);
}
.vicino-item__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vicino-item__nome { font-weight: 600; color: var(--malghe-text, #1A1A1A); }
.vicino-item__tipo { font-size: .8rem; color: var(--malghe-muted, #6B6356); text-transform: capitalize; }
.vicino-item__dist {
    flex-shrink: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--malghe-green, #005F56);
    white-space: nowrap;
}
.vicino-vuoto { text-align: center; padding: 24px; color: var(--malghe-muted, #6B6356); }
.vicino-map {
    height: 460px;
    max-width: 900px;
    margin: 24px auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Alert prossimità */
.vicino-alert {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 9998;
    width: calc(100% - 32px);
    max-width: 440px;
}
.vicino-alert__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}
.vicino-alert__close {
    position: absolute;
    top: 8px; right: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--malghe-light, #9B948A); font-size: .9rem;
}
.vicino-alert__text { flex: 1; font-size: .92rem; line-height: 1.4; color: var(--malghe-text, #1A1A1A); }
.vicino-alert__text span { display: block; font-size: .82rem; color: var(--malghe-muted, #6B6356); }
.vicino-alert__cta {
    flex-shrink: 0;
    background: var(--malghe-green, #005F56);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: .88rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   HERO CARD — linguaggio comune percorso + malga
   ═══════════════════════════════════════════════ */
.hero-card {
    background:#fff;
    border-radius:22px;
    box-shadow:0 6px 26px rgba(0,0,0,.10);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
    position:relative;
}
.hero-card__top {
    position:relative;
    aspect-ratio:16/11;
    overflow:hidden;
    margin:10px 10px 0;
    border-radius:16px;
}
.hero-card__cover { width:100%;height:100%;object-fit:cover;display:block; }
.hero-card__cover--empty {
    width:100%;height:100%;
    display:flex;align-items:center;justify-content:center;
    background:#e8e2d8;color:#b7ae9e;font-size:2.4rem;
}
.hero-card__overlay {
    position:absolute;left:0;right:0;bottom:0;
    padding:16px 16px 14px;
    display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
    background:linear-gradient(to top, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 45%);
}
.hero-card__titles { display:flex;flex-direction:column;gap:2px;min-width:0; }
a.hero-card__title.hero-card__title {
    color:#005F56;font-weight:800;font-size:1.05rem;line-height:1.2;text-decoration:none;
    text-shadow:0 1px 3px rgba(255,255,255,.6);
    max-height: 2.4em; overflow: hidden; display: block;
}
.hero-card__title:hover { text-decoration:underline; }
.hero-card__sub { color:rgba(30,28,24,.75);font-size:.8rem;text-shadow:0 1px 2px rgba(255,255,255,.5); }
.hero-card__btn {
    flex-shrink:0;
    display:inline-flex;align-items:center;gap:7px;
    background:#fff;
    color:#005F56;text-decoration:none;
    font-size:.82rem;font-weight:700;
    padding:9px 15px;border-radius:999px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    transition:background .15s;
}
.hero-card__btn:hover { background:#f2efe8; color:#005F56; }
.hero-card__prem {
    position:absolute; top:22px; right:22px;
    background:rgba(255,255,255,.85); border-radius:50%;
    width:28px;height:28px;display:flex;align-items:center;justify-content:center;
    font-size:.85rem;
}

.hero-card__bottom {
    display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
    padding:16px 20px 18px;
    flex-wrap: wrap; /* se lo spazio reale è poco (es. accanto alla sidebar), il riquadro va a capo invece di sovrapporsi */
}
.hero-card__info { flex:1;min-width:150px; }
.hero-card__diff { display:flex;align-items:center;gap:8px;margin-bottom:10px; }
.hero-card__diff-pill {
    color:#fff;font-weight:700;font-size:.72rem;
    padding:2px 9px;border-radius:6px;letter-spacing:.03em;
}
.hero-card__diff-label { font-size:.8rem;color:var(--malghe-muted,#6B6356); }
.hero-card__stats { display:flex;gap:20px;flex-wrap:wrap; }
.hero-card__stat { display:flex;flex-direction:column;gap:1px; }
.hero-card__stat-val { font-weight:800;font-size:.95rem;color:var(--malghe-text,#1A1A1A); }
.hero-card__stat-lab { font-size:.68rem;color:var(--malghe-muted,#6B6356);text-transform:uppercase;letter-spacing:.04em; }

.hero-card__chips { display:flex;flex-wrap:wrap;gap:6px; }
.hero-card__chip {
    display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:600;
    background:var(--malghe-green-pale,#E8F4F2);color:var(--malghe-green,#005F56);
    padding:.28rem .6rem;border-radius:999px;
}

.hero-card__box {
    flex-shrink:0;
    width:86px;height:86px;
    background:#f2efe8;
    border-radius:16px;
    display:flex;align-items:center;justify-content:center;
    padding:6px;
    text-decoration:none;
    overflow:hidden;
}
.hero-card__box .perc-sagoma { width:100%;height:100%;display:block; }
.hero-card__box-ph { color:#b7ae9e;font-size:1.6rem; }

.hero-card__custode-wrap {
    display:flex;flex-direction:column;align-items:center;gap:6px;
    flex-shrink:0;
}
.hero-card__box--custode {
    padding:0; /* la foto riempie tutto il riquadro, nessun bordo interno */
}
.hero-card__custode-foto {
    width:100%;height:100%;object-fit:cover;display:block;border-radius:16px;
}
.hero-card__custode-foto--empty {
    width:100%;height:100%;
    display:flex;align-items:center;justify-content:center;
    background:#e8e2d8;color:#b7ae9e;font-size:1.6rem;border-radius:16px;
}
.hero-card__custode-caption {
    font-size:.7rem;font-weight:600;color:var(--malghe-text,#1A1A1A);
    text-align:center;line-height:1.2;max-width:86px;
}

/* Etichetta tipologia percorso (anello / andata e ritorno / traversata) */
.hero-card__tipo-label {
    display:inline-flex;align-items:center;gap:5px;
    font-size:.78rem;color:var(--malghe-muted,#6B6356);
}

/* ═══════════════════════════════════════════════
   BOTTOM NAV — visibile solo nella PWA installata
   ═══════════════════════════════════════════════ */
.app-bottom-nav { display:none; } /* nascosta di default: sito/browser normale */

html.is-pwa-app .app-bottom-nav {
    display:flex;
    position:fixed;left:0;right:0;bottom:0;z-index:9500;
    background:#fff;
    border-top:1px solid var(--malghe-border-lt,#EAE5DC);
    box-shadow:0 -4px 16px rgba(0,0,0,.08);
    padding:6px 4px max(6px, env(safe-area-inset-bottom));
}
.app-bottom-nav__item {
    flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
    padding:6px 2px;text-decoration:none;
    color:var(--malghe-muted,#6B6356);
    font-size:.66rem;font-weight:600;
}
.app-bottom-nav__item i { font-size:1.15rem; }
.app-bottom-nav__icon-wrap { position: relative; display: inline-flex; }
.app-bottom-nav__dot {
    position: absolute; top: -2px; right: -2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #c0392b; border: 1.5px solid #fff;
}
.app-bottom-nav__item.is-active { color:var(--malghe-green,#005F56); }

/* Altezza di riferimento della bottom-nav, usata per sollevare altri elementi fissi */
:root { --app-bottom-nav-h: 70px; }

/* La barra "chiama/chiedi info" della pagina malga si solleva sopra la
   bottom-nav quando siamo nella PWA, per non sovrapporsi. */
html.is-pwa-app .malga-mobile-cta {
    bottom: calc(var(--app-bottom-nav-h) + env(safe-area-inset-bottom));
}

/* ═══════════════════════════════════════════════
   MODALITÀ APP — nasconde l'header nativo per intero
   (menu, logo, hamburger): nell'app c'è la bottom-nav.
   ═══════════════════════════════════════════════ */
html.is-pwa-app .ekit-template-content-header,
html.is-pwa-app .ekit-template-content-footer,
html.is-pwa-app .responsive-menu,
html.is-pwa-app #wpadminbar {
    display:none !important;
}
html.is-pwa-app body.admin-bar { margin-top:0 !important; }

/* ═══════════════════════════════════════════════
   ARCHIVI (malghe/percorsi) — spazio sotto l'header
   trasparente del tema, solo fuori dall'app: l'header
   di Wildex è position:absolute finché non scorri,
   quindi si sovrappone al primo elemento della pagina.
   Regolabile: cambia --malgheit-header-h se lo spazio
   non risultasse preciso.
   ═══════════════════════════════════════════════ */
.malgheit-archive--app,
.racconto-single {
    --malgheit-header-h: 185px;
    padding-top: var(--malgheit-header-h);
}
@media (max-width: 767px) {
    .malgheit-archive--app,
    .racconto-single { --malgheit-header-h: 170px; }
}
/* Nell'app l'header è assente: nessuno spazio da riservare */
html.is-pwa-app .malgheit-archive--app,
html.is-pwa-app .racconto-single { padding-top: 16px; }

/* ═══════════════════════════════════════════════
   BARRA DI RICERCA PLACEHOLDER
   ═══════════════════════════════════════════════ */
h2.search-heading {
    font-size: 1.5rem; font-weight: 800; color: #1A1A1A !important;
    letter-spacing: -.02em; margin: 28px 0 14px; line-height: 1.25;
}
.search-trigger {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    height:56px;
    background:#FCFCFC !important;
    background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    border:none !important;
    border-radius:999px;
    padding:0 22px;
    /* Neumorfismo: luce in alto a sinistra (bianco, sottile) +
       ombra diffusa in basso a destra (grigio tenue ma visibile) — le
       due insieme danno la sensazione di rilievo leggero sulla pagina. */
    box-shadow:
        -6px -6px 14px rgba(255,255,255,.9),
        8px 8px 22px rgba(0,0,0,.14),
        0 3px 10px rgba(0,0,0,.1) !important;
    color:#1A1A1A !important;
    cursor:pointer;
    margin-bottom:40px;
    transition:box-shadow .2s, transform .2s;
}
.search-trigger:hover {
    box-shadow:
        -6px -6px 14px rgba(255,255,255,.95),
        10px 10px 26px rgba(0,0,0,.17),
        0 2px 6px rgba(0,0,0,.07) !important;
    transform:translateY(-2px);
}
.search-trigger__placeholder { font-size:.92rem; color:#B8B8B8 !important; font-weight:500; }
.search-trigger__icon {
    color:#005F56 !important;background:#FCFCFC !important;
    background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    width:44px;height:44px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:1rem;flex-shrink:0;
    /* Stesso principio neumorfico, in scala più piccola, sul pulsante */
    box-shadow:
        -3px -3px 8px rgba(255,255,255,.9),
        4px 4px 10px rgba(0,0,0,.1) !important;
}

/* ═══════════════════════════════════════════════
   POPUP DI RICERCA — quasi fullscreen
   ═══════════════════════════════════════════════ */
.search-popup {
    position:fixed;inset:0;z-index:9700;
    background:rgba(20,18,15,.5);
    display:flex;align-items:flex-end;justify-content:center;
}
.search-popup__panel {
    background:#fff !important;width:100%;max-width:640px;
    max-height:92vh;overflow-y:auto;
    border-radius:22px 22px 0 0;
    padding:22px 22px max(22px, env(safe-area-inset-bottom));
    position:relative;
}
@media (min-width:768px) {
    .search-popup { align-items:center; }
    .search-popup__panel { border-radius:22px; max-height:80vh; }
}
.search-popup__close {
    position:absolute;top:14px;right:14px;
    background:#FCFCFC !important;background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    border:none !important;border-radius:50%;
    width:38px;height:38px;display:flex;align-items:center;justify-content:center;
    cursor:pointer;color:#1A1A1A !important;
    box-shadow:
        -2px -2px 6px rgba(255,255,255,.9),
        2px 2px 8px rgba(0,0,0,.1) !important;
}
.search-popup__tabs { display:flex;gap:10px;margin:6px 0 24px;padding:6px 40px 10px 4px; }
.search-popup__tab {
    flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
    background:#FCFCFC !important;background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    border:none !important;border-radius:999px;
    padding:12px 14px;font-size:.85rem;font-weight:600;color:#6B6356 !important;
    cursor:pointer;
    box-shadow:
        -3px -3px 8px rgba(255,255,255,.9),
        3px 3px 10px rgba(0,0,0,.08),
        0 1px 3px rgba(0,0,0,.04) !important;
}
.search-popup__tab i { color:#6B6356 !important; }
.search-popup__tab.is-active {
    color:#005F56 !important;background:#E8F4F2 !important;background-image:none !important;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,.06),
        inset -2px -2px 5px rgba(255,255,255,.7) !important;
}
.search-popup__tab.is-active i { color:#005F56 !important; }
.search-popup__tab--vicino.is-active {
    color:#C4862A !important;background:#FBF2E3 !important;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,.06),
        inset -2px -2px 5px rgba(255,255,255,.7) !important;
}
.search-popup__tab--vicino.is-active i { color:#C4862A !important; }

.search-popup__field { margin-bottom:20px;position:relative; }
.search-popup__field label { display:block;font-size:.82rem;font-weight:700;margin-bottom:10px;color:#1A1A1A !important; }
.search-popup__location-input,
.search-popup__field input[type="text"] {
    width:100%;padding:14px 18px;border-radius:16px;border:none !important;
    background:#FCFCFC !important;font-size:.95rem;color:#1A1A1A !important;
    /* Campo di testo: incassato, non sollevato — è un contenitore, non un pulsante */
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,.06),
        inset -2px -2px 6px rgba(255,255,255,.8) !important;
}
.search-popup__location-input::placeholder { color:#B8B8B8 !important; }
.search-popup__location-results {
    display:none;position:absolute;left:0;right:0;top:100%;z-index:10;
    background:#fff !important;border:none !important;
    border-radius:16px;margin-top:8px;max-height:220px;overflow-y:auto;
    box-shadow:0 10px 28px rgba(0,0,0,.12) !important;
}
.search-popup__location-row { padding:12px 16px;font-size:.9rem;cursor:pointer;color:#1A1A1A !important; }
.search-popup__location-row:hover { background:#F5F0E8 !important; }

/* I tre box "cosa cerchi" — stesso rilievo morbido, "premuti" se attivi */
.search-popup__boxes { display:grid;grid-template-columns:repeat(3, 1fr);gap:12px; }
.search-popup__box {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
    background:#FCFCFC !important;background-image:linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    border:none !important;border-radius:16px;
    padding:18px 8px;font-size:.78rem;font-weight:600;color:#1A1A1A !important;
    text-align:center;cursor:pointer;
    box-shadow:
        -3px -3px 8px rgba(255,255,255,.9),
        3px 3px 10px rgba(0,0,0,.08),
        0 1px 3px rgba(0,0,0,.04) !important;
}
.search-popup__box i { font-size:1.3rem;color:#6B6356 !important; }
.search-popup__box.is-active {
    background:#E8F4F2 !important;background-image:none !important;color:#005F56 !important;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,.06),
        inset -2px -2px 5px rgba(255,255,255,.7) !important;
}
.search-popup__box.is-active i { color:#005F56 !important; }

.search-popup__raggio { width:100%; }
.search-popup__hint { font-size:.82rem;color:#6B6356 !important;line-height:1.5;margin:14px 0; }
.search-popup__hint i { color:#C4862A !important; }

.search-popup__submit {
    width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
    background:#005F56 !important;color:#fff !important;border:none !important;border-radius:999px;
    padding:16px;font-size:.95rem;font-weight:700;cursor:pointer;margin-top:8px;
    /* Resta un verde pieno (è l'azione principale, deve distinguersi dal
       resto), ma con la stessa ombra morbida degli altri elementi. */
    box-shadow:
        0 6px 16px rgba(0,95,86,.25),
        0 2px 6px rgba(0,95,86,.15) !important;
}
.search-popup__submit:disabled { opacity:.6 !important;cursor:default;box-shadow:none !important; }

/* ═══════════════════════════════════════════════
   MINI-MAPPA IN CIMA AGLI ARCHIVI
   ═══════════════════════════════════════════════ */
.archive-nearby-map {
    height:220px;border-radius:16px;overflow:hidden;
    margin-bottom:16px;background:var(--malghe-cream,#F5F0E8);
}
.malgheit-vicino-label {
    font-size:.88rem;color:var(--malghe-muted,#6B6356);margin-bottom:14px;
}
.malgheit-vicino-label i { color:var(--malghe-green,#005F56); }
.malgheit-vicino-label a { color:var(--malghe-green,#005F56);font-weight:600; }

/* ═══════════════════════════════════════════════
   RACCONTO SINGOLO — pagina link-only
   ═══════════════════════════════════════════════ */
.racconto-single { padding-bottom: 64px; max-width: 720px; margin: 0 auto; }
html.is-pwa-app .racconto-single {
    padding-bottom: calc(var(--app-bottom-nav-h) + env(safe-area-inset-bottom) + 40px);
}
.racconto-single__back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15);
    color: var(--malghe-text,#1A1A1A); font-size: .95rem;
    margin-bottom: 20px; cursor: pointer;
}
.racconto-single__back:hover { color: var(--malghe-green,#005F56); }

.racconto-single__owner-actions {
    display: flex; gap: 10px; margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.racconto-single__owner-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--malghe-cream,#F5F0E8); border-radius: 999px; padding: 8px 16px;
    font-size: .82rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); text-decoration: none;
    cursor: pointer;
}
.racconto-single__owner-btn--danger { background: #fdecea; color: #c0392b; }

.racconto-single__body { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.racconto-single__autore { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.racconto-single__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.racconto-single__autore-testo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.racconto-single__nome { font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.racconto-single__badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--malghe-green,#005F56); }
.racconto-single__badge img { width: 14px; height: 14px; object-fit: contain; }
.racconto-single__data { font-size: .78rem; color: var(--malghe-muted,#6B6356); white-space: nowrap; }
.racconto-single__titolo { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.racconto-single__testo { font-size: .96rem; line-height: 1.75; color: var(--malghe-text,#1A1A1A); margin-bottom: 16px; }
.racconto-single__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.racconto-single__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 8px; }
.racconto-single__gallery-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: block; }
.racconto-single__gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.racconto-single__comments { margin-top: 32px; }
.racconto-single__comments-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════
   RACCONTO SINGOLO — riferimento malga + conferma
   ═══════════════════════════════════════════════ */
.racconto-single__malga-ref {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 14px; padding: 12px 16px;
    margin-bottom: 20px; text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.racconto-single__malga-ref-img {
    width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.racconto-single__malga-ref-img--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356);
}
.racconto-single__malga-ref-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.racconto-single__malga-ref-label { font-size: .72rem; color: var(--malghe-muted,#6B6356); text-transform: uppercase; letter-spacing: .04em; }
.racconto-single__malga-ref-nome { font-weight: 700; color: var(--malghe-text,#1A1A1A); font-size: .94rem; }
.racconto-single__malga-ref-arrow { color: var(--malghe-muted,#6B6356); font-size: .82rem; }

.racconto-single__confirm {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; font-weight: 600; font-size: .92rem;
}
.racconto-single__confirm-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.racconto-single__confirm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--malghe-green,#005F56) !important; color: #fff !important;
    border-radius: 999px; padding: 9px 16px; font-size: .84rem; font-weight: 700; text-decoration: none;
}
.racconto-single__confirm-btn--ghost {
    background: #fff !important; color: var(--malghe-green,#005F56) !important; border: 1.5px solid var(--malghe-green,#005F56);
}

/* Modulo commenti nativo, vestito coi colori del sito */
.racconto-single__comments #commentform { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.racconto-single__comments .comment-form-comment label,
.racconto-single__comments .comment-notes,
.racconto-single__comments .logged-in-as { display: none; }
.racconto-single__comments textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; font-size: .92rem; resize: vertical;
}
.racconto-single__comments .form-submit input[type="submit"] {
    background: var(--malghe-green,#005F56); color: #fff; border: none;
    border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.racconto-single__comments .comment-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.racconto-single__comments .comment-list .comment-body {
    background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* ═══════════════════════════════════════════════
   RACCONTO THREAD MODAL — stile Instagram
   ═══════════════════════════════════════════════ */
.testimonianza-card.js-testimonianza-open { cursor: pointer; }

.racconto-thread-modal { position: fixed; inset: 0; z-index: 9800; display: none; }
.racconto-thread-modal.is-open { display: block; }
.racconto-thread-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.85); }
.racconto-thread-modal__inner {
    position: relative; margin: 3vh auto; max-width: 980px; height: 94vh;
    background: #fff; border-radius: 16px; overflow: hidden;
    display: flex;
}
.racconto-thread-modal__close {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.92); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.racconto-thread-modal__media {
    flex: 1.2; background: #000; position: relative;
    display: flex; align-items: center; justify-content: center; min-width: 0;
}
.racconto-thread-modal__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.racconto-thread-modal__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
}
.racconto-thread-modal__nav--prev { left: 12px; }
.racconto-thread-modal__nav--next { right: 12px; }
.racconto-thread-modal__foto-count {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.7); font-size: .78rem;
}
.racconto-thread-modal__panel {
    flex: 1; min-width: 320px; max-width: 420px;
    display: flex; flex-direction: column; overflow-y: auto; padding: 20px;
}
.racconto-thread-modal__loading { text-align: center; padding: 60px 0; color: var(--malghe-muted,#6B6356); }

@media (max-width: 767px) {
    .racconto-thread-modal__inner { flex-direction: column; margin: 0; height: 100vh; border-radius: 0; max-width: 100%; }
    .racconto-thread-modal__media { flex: none; height: 42vh; }
    .racconto-thread-modal__panel { max-width: 100%; flex: 1; }
}

/* Intestazione racconto dentro il popup */
.racconto-thread__autore { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.racconto-thread__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.racconto-thread__autore-testo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.racconto-thread__nome { font-weight: 700; font-size: .92rem; }
.racconto-thread__badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--malghe-green,#005F56); }
.racconto-thread__badge img { width: 13px; height: 13px; object-fit: contain; }
.racconto-thread__data { font-size: .76rem; color: var(--malghe-muted,#6B6356); }
.racconto-thread__titolo { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.racconto-thread__testo { font-size: .9rem; line-height: 1.65; color: var(--malghe-text,#1A1A1A); margin-bottom: 12px; }
.racconto-thread__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.racconto-thread__qa-title {
    font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    color: var(--malghe-muted,#6B6356); border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding-top: 14px; margin-bottom: 10px;
}

/* Thread domande/risposte */
.racconto-thread__list { display: flex; flex-direction: column; gap: 16px; }
.racconto-thread__domanda { display: flex; flex-direction: column; gap: 6px; }
.racconto-thread__reply-link {
    align-self: flex-start; margin-left: 44px;
    background: none; border: none; color: var(--malghe-muted,#6B6356);
    font-size: .76rem; font-weight: 700; cursor: pointer; padding: 0;
}
.racconto-thread__reply-link:hover { color: var(--malghe-green,#005F56); }
.racconto-thread__risposte { display: flex; flex-direction: column; gap: 8px; margin-left: 30px; margin-top: 4px; }

.racconto-thread__commento { display: flex !important; gap: 10px; width: 100%; }
.racconto-thread__c-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.racconto-thread__c-avatar--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356);
}
.racconto-thread__commento--risposta .racconto-thread__c-avatar { width: 28px; height: 28px; }
.racconto-thread__c-body { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; }
.racconto-thread__c-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.racconto-thread__c-nome { font-weight: 700; font-size: .84rem; color: var(--malghe-text,#1A1A1A); }
.racconto-thread__c-autore-tag {
    background: var(--malghe-green,#005F56); color: #fff; font-size: .64rem; font-weight: 800;
    padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.racconto-thread__c-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; color: var(--malghe-green,#005F56); }
.racconto-thread__c-badge img { width: 12px; height: 12px; }
.racconto-thread__c-data { font-size: .7rem; color: var(--malghe-muted,#6B6356); margin-left: auto; }
.racconto-thread__c-testo { font-size: .86rem; line-height: 1.5; color: var(--malghe-text,#1A1A1A); }

.racconto-thread__more-btn {
    align-self: center; background: none; border: 1.5px solid var(--malghe-border-lt,#EAE5DC);
    border-radius: 999px; padding: 8px 18px; font-size: .82rem; font-weight: 700;
    color: var(--malghe-muted,#6B6356); cursor: pointer; margin: 14px auto 0;
}

/* Box scrittura */
.racconto-thread__write { border-top: 1px solid var(--malghe-border-lt,#EAE5DC); padding-top: 14px; margin-top: 16px; }
.racconto-thread__replying-to {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--malghe-muted,#6B6356); margin-bottom: 8px;
}
.racconto-thread__replying-to button {
    background: none; border: none; color: var(--malghe-green,#005F56); font-weight: 700; cursor: pointer; font-size: .78rem;
}
.racconto-thread__inputbar {
    display: flex; align-items: center; gap: 8px;
    background: var(--malghe-cream,#F5F0E8); border-radius: 999px;
    padding: 6px 6px 6px 16px;
}
.racconto-thread__textarea {
    flex: 1; min-width: 0; border: none; background: none; resize: none;
    font: inherit; font-size: .88rem; line-height: 1.4; padding: 6px 0;
    max-height: 90px; overflow-y: auto;
}
.racconto-thread__textarea:focus { outline: none; }
.racconto-thread__send-btn {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--malghe-green,#005F56); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer;
}
.racconto-thread__send-btn i { margin-left: -1px; } /* l'icona aereo carta sembra più centrata leggermente a sinistra */
.racconto-thread__send-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.racconto-thread__login-hint { font-size: .84rem; color: var(--malghe-muted,#6B6356); }
.racconto-thread__login-hint a { color: var(--malghe-green,#005F56); font-weight: 700; }
.racconto-thread__errore { color: #c0392b; padding: 20px 0; }

/* ═══════════════════════════════════════════════
   BOTTOM NAV — icone SVG personalizzate
   (mask-image: permette di colorarle via CSS come le
   icone Font Awesome, invece di file a colore fisso)
   ═══════════════════════════════════════════════ */
.app-bottom-nav__svg-img {
    width: 22px; height: 22px;
    display: inline-block;
}

/* L'icona Home (logo) è più "densa" visivamente delle altre (linea semplice):
   la lasciamo leggermente più grande così spicca, come richiesto. */
.app-bottom-nav__item--home .app-bottom-nav__svg-img { width: 25px; height: 25px; }

.app-bottom-nav__avatar-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: inline-block; }
.app-bottom-nav__item--disabled { opacity: .4; pointer-events: none; }

/* ═══════════════════════════════════════════════
   PROFILO VIANDANTE — dashboard
   ═══════════════════════════════════════════════ */
.profilo-page { max-width: 640px; margin: 0 auto; padding-bottom: 60px; }

.profilo-guest { text-align: center; padding: 60px 20px; }
.profilo-guest__icon { font-size: 2.6rem; color: var(--malghe-green,#005F56); margin-bottom: 14px; }
.profilo-guest__titolo { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.profilo-guest__testo { color: var(--malghe-muted,#6B6356); margin-bottom: 20px; font-size: .92rem; }

.profilo-saved-msg {
    background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: .88rem;
}

/* Card profilo — testa (foto+nome), poi statistiche in riga su tutta la
   larghezza: Testimonianze | Viandante dal | Badge. Per le prime due,
   etichetta sopra e numero sotto; per il badge, immagine sopra e nome
   sotto (è un'icona, non un numero). L'intera card è cliccabile. */
.profilo-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    margin-bottom: 20px; box-shadow: 0 2px 14px rgba(0,0,0,.06);
    cursor: pointer;
}
.profilo-card__banner { position: relative; height: 110px; background: var(--malghe-cream,#F5F0E8); }
.profilo-card__banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profilo-card__avatar--banner {
    position: absolute; left: 24px; bottom: -32px;
    width: 76px; height: 76px;
}
.profilo-card__head { display: flex; align-items: center; gap: 16px; padding: 40px 24px 0; margin-bottom: 20px; }
.profilo-card__avatar {
    width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 3px solid #fff; box-shadow: 0 0 0 1px var(--malghe-border-lt,#EAE5DC);
}
.profilo-card__head-testo { display: flex; flex-direction: column; gap: 3px; }
.profilo-card__nome { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.profilo-card__localita { font-size: .85rem; color: var(--malghe-muted,#6B6356); }

.profilo-card__stats-row {
    display: flex; align-items: flex-start;
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding: 16px 24px 20px;
}
.profilo-card__stat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center; border-right: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.profilo-card__stat:last-child { border-right: none; }
.profilo-card__stat-lab { font-size: .72rem; color: var(--malghe-muted,#6B6356); font-weight: 600; }
.profilo-card__stat-num { font-size: 1.2rem; font-weight: 900; color: var(--malghe-text,#1A1A1A); }
.profilo-card__stat--badge .profilo-card__stat-lab { margin-top: 2px; }
.profilo-card__badge-img {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8);
}
.profilo-card__badge-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.profilo-card__badge-img i { font-size: 1.1rem; color: var(--malghe-accent,#C4862A); }

/* Dettagli — righe con icona, sola lettura, ora dentro lo stesso box della card */
.profilo-details {
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px 24px 22px; border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.profilo-detail-row { display: flex; align-items: flex-start; gap: 14px; font-size: .95rem; color: var(--malghe-text,#1A1A1A); }
.profilo-detail-row i { color: var(--malghe-text,#1A1A1A); font-size: 1.05rem; width: 20px; text-align: center; margin-top: 2px; }

/* Modulo di modifica, nascosto finché non premi "Modifica" */
.profilo-form {
    background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    flex-direction: column; gap: 14px;
}
.profilo-form__field { display: flex; flex-direction: column; gap: 6px; }
.profilo-form__field label { font-size: .82rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.profilo-form__field input[type="text"],
.profilo-form__field input[type="file"],
.profilo-form__field textarea {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--malghe-border-lt,#EAE5DC);
    font: inherit; font-size: .9rem;
}
.profilo-form__field textarea { resize: vertical; }
.profilo-form__actions { display: flex; gap: 10px; }
.profilo-form__submit {
    width: 100%; background: var(--malghe-green,#005F56); color: #fff; border: none;
    border-radius: 999px; padding: .85rem; font-size: .95rem; font-weight: 700; cursor: pointer;
}

.profilo-section-title {
    font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em;
    margin: 36px 0 18px; padding-top: 32px;
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.profilo-subsection-title { font-size: .95rem; font-weight: 800; color: var(--malghe-muted,#6B6356); text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 10px; }
.profilo-empty { color: var(--malghe-muted,#6B6356); font-size: .9rem; }

/* Elenco testimonianze raggruppate per anno — stile "Viaggi passati" */
.profilo-anno-group { margin-bottom: 22px; }
.profilo-anno-label {
    display: block; font-size: .8rem; font-weight: 800; color: var(--malghe-muted,#6B6356);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.profilo-viaggio-row {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 8px;
    text-decoration: none; box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.profilo-viaggio-row__thumb-wrap { position: relative; flex-shrink: 0; }
.profilo-viaggio-row__thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; display: block; }
.profilo-viaggio-row__thumb--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: 1.2rem;
    width: 56px; height: 56px; border-radius: 12px;
}
.profilo-viaggio-row__notifica {
    position: absolute; top: -3px; right: -3px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--malghe-accent,#C4862A); border: 2px solid #fff;
}
.profilo-viaggio-row__badge-nuovo {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    background: var(--malghe-accent-pale,#FDF3E3); color: var(--malghe-accent,#C4862A);
    font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.profilo-viaggio-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profilo-viaggio-row__nome { font-weight: 700; color: var(--malghe-text,#1A1A1A); font-size: .95rem; }
.profilo-viaggio-row__data { font-size: .8rem; color: var(--malghe-muted,#6B6356); }

/* Box di modifica inline nella pagina racconto */
.racconto-single__edit-box { margin-bottom: 16px; }
.racconto-single__edit-box textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; font-size: .92rem; resize: vertical;
}
.racconto-single__edit-actions { display: flex; gap: 10px; margin-top: 8px; }

.racconto-edit-field { margin-bottom: 16px; }
.racconto-edit-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); margin-bottom: 6px; }
.racconto-edit-field input[type="text"] {
    width: 100%; padding: 10px 12px; border-radius: 12px;
    border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; font-size: .92rem;
}
.racconto-edit-foto-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.racconto-edit-foto-item { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.racconto-edit-foto-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.racconto-edit-foto-item.is-removed img { opacity: .3; }
.racconto-edit-foto-rm {
    position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,.65); color: #fff; font-size: .7rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.racconto-edit-foto-item.is-removed .racconto-edit-foto-rm { background: var(--malghe-green,#005F56); }
.racconto-edit-foto-hint { font-size: .76rem; color: var(--malghe-muted,#6B6356); margin-top: 6px; }

/* ═══════════════════════════════════════════════
   "SEI STATO QUI? RACCONTACI" — invito + modulo
   ═══════════════════════════════════════════════ */
.racconta-invito { margin-top: 22px; }
.racconta-riga {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: 14px; background: var(--malghe-cream,#F5F0E8);
    border: 1.5px solid var(--malghe-border-lt,#EAE5DC);
    text-decoration: none; cursor: pointer; transition: border-color .15s;
}
.racconta-riga:hover { border-color: var(--malghe-green,#005F56); }
.racconta-riga__icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--malghe-green,#005F56); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.racconta-riga__testo { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.racconta-riga__titolo { font-weight: 800; color: var(--malghe-text,#1A1A1A); font-size: .94rem; }
.racconta-riga__sub { font-size: .82rem; color: var(--malghe-muted,#6B6356); }
.racconta-riga__arrow { color: var(--malghe-muted,#6B6356); font-size: .82rem; flex-shrink: 0; }

.racconta-msg {
    margin-top: 12px; padding: 12px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600;
}
.racconta-msg--ok { background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56); }
.racconta-msg--err { background: #fde8e8; color: #c0392b; }

.racconta-modal { position: fixed; inset: 0; z-index: 9750; display: none; }
.racconta-modal.is-open { display: block; }
.racconta-modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.racconta-modal__panel {
    position: relative; margin: 4vh auto; max-width: 560px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: 20px; padding: 26px;
}
@media (max-width: 600px) {
    .racconta-modal__panel { margin: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
.racconta-modal__close {
    position: absolute; top: 16px; right: 16px; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%; background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center;
}
.racconta-modal__titolo { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; padding-right: 40px; }
.racconta-modal__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.racconta-modal__field label { font-size: .82rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.racconta-modal__field input[type="text"],
.racconta-modal__field input[type="file"],
.racconta-modal__field textarea {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--malghe-border-lt,#EAE5DC);
    font: inherit; font-size: .9rem;
}
.racconta-modal__field textarea { resize: vertical; }
.racconta-modal__voci { display: flex; flex-direction: column; gap: 8px; }
.racconta-modal__voce-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.racconta-modal__submit { width: 100%; justify-content: center; margin-top: 6px; }
.racconta-modal__disclaimer { font-size: .74rem; color: var(--malghe-muted,#6B6356); line-height: 1.5; margin-top: 12px; }

/* ═══════════════════════════════════════════════
   TESTIMONIANZE — carosello di schede verticali
   ═══════════════════════════════════════════════ */
.testimonianze-carosello {
    display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
    .testimonianze-carosello { gap: 20px; }
}
.testimonianze-carosello::-webkit-scrollbar { height: 6px; }
.testimonianze-carosello::-webkit-scrollbar-thumb { background: var(--malghe-border-lt,#EAE5DC); border-radius: 999px; }

.testimonianza-card2 {
    flex: 0 0 240px; scroll-snap-align: start;
    background: #fff; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--malghe-border-lt,#EAE5DC);
    box-shadow: 0 4px 18px rgba(0,0,0,.08); cursor: pointer;
    display: flex; flex-direction: column;
}
.testimonianza-card2__foto { aspect-ratio: 4/3; overflow: hidden; }
.testimonianza-card2__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonianza-card2__foto-empty {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: 1.6rem;
}
.testimonianza-card2__body { padding: 14px 14px 4px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.testimonianza-card2__autore { display: flex; align-items: center; gap: 8px; }
.testimonianza-card2__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonianza-card2__nome { font-size: .8rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testimonianza-card2__badge { flex-shrink: 0; width: 18px; height: 18px; }
.testimonianza-card2__badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.testimonianza-card2__badge i { font-size: .8rem; color: var(--malghe-accent,#C4862A); }
.testimonianza-card2__titolo { font-size: .88rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); margin: 0; }
.testimonianza-card2__testo {
    font-size: .82rem; line-height: 1.5; color: var(--malghe-muted,#6B6356); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.testimonianza-card2__leggi { font-size: .76rem; font-weight: 700; color: var(--malghe-green,#005F56); }
.testimonianza-card2__cta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; padding: 11px 12px; border-radius: 0 0 18px 18px;
    background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56);
    font-size: .76rem; font-weight: 700; text-align: center;
}

/* ═══════════════════════════════════════════════
   DESCRIZIONE MALGA — troncata con sfumatura + "Leggi tutto"
   ═══════════════════════════════════════════════ */
.malga-desc-clamp {
    position: relative; max-height: 130px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}
.malga-desc-clamp.is-expanded {
    max-height: none;
    -webkit-mask-image: none; mask-image: none;
}
.malga-desc-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; font-size: .84rem; font-weight: 700;
    color: var(--malghe-green,#005F56); cursor: pointer;
}
.malga-desc-toggle i { font-size: .7rem; transition: transform .2s; }
.malga-desc-toggle.is-open i { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════
   POPUP CUSTODE — foto grande + bio completa,
   resta sulla pagina malga invece di navigare altrove
   ═══════════════════════════════════════════════ */
.custode-popup { position: fixed; inset: 0; z-index: 9760; display: none; }
.custode-popup.is-open { display: block; }
.custode-popup__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.custode-popup__panel {
    position: relative; margin: 6vh auto; max-width: 440px; max-height: 88vh; overflow-y: auto;
    background: #fff; border-radius: 20px; padding: 28px; text-align: center;
}
@media (max-width: 500px) { .custode-popup__panel { margin: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; } }
.custode-popup__close {
    position: absolute; top: 16px; right: 16px; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%; background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center;
}
.custode-popup__foto { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.custode-popup__eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
    color: var(--malghe-green,#005F56); margin-bottom: 6px;
}
.custode-popup__nome { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.custode-popup__bio { font-size: .9rem; line-height: 1.75; color: var(--malghe-muted,#6B6356); margin-top: 14px; text-align: left; }

/* ═══════════════════════════════════════════════
   comments.php — elenco risposte nella pagina racconto
   (stesso stile del popup, classi racconto-thread__c-*)
   ═══════════════════════════════════════════════ */
.racconto-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.racconto-comment-list li.comment {
    list-style: none !important; float: none !important; width: auto !important;
    margin: 0 !important; padding: 0 !important; max-width: none !important;
}
.racconto-comment-list ul.children { list-style: none; padding: 0; margin: 10px 0 0 42px; display: flex; flex-direction: column; gap: 12px; }
.racconto-thread__reply-link-wrap { margin-top: 4px; }
.racconto-thread__reply-link-wrap a.comment-reply-link {
    background: none; border: none; color: var(--malghe-muted,#6B6356);
    font-size: .76rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.racconto-thread__reply-link-wrap a.comment-reply-link:hover { color: var(--malghe-green,#005F56); }
.racconto-comment-nav { display: flex; justify-content: space-between; margin-top: 16px; font-size: .84rem; }
.racconto-comment-nav a { color: var(--malghe-green,#005F56); font-weight: 700; text-decoration: none; }
.racconto-comment-closed { color: var(--malghe-muted,#6B6356); font-size: .88rem; margin-top: 16px; }

/* Il modulo "Rispondi a X" (quando clicchi Rispondi su una risposta
   specifica) è generato da WordPress in un contenitore proprio: lo
   vestiamo con lo stesso stile del modulo principale. */
#respond { margin-top: 16px; }
#respond .comment-reply-title { font-size: .92rem; font-weight: 800; margin-bottom: 10px; display: block; color: var(--malghe-text,#1A1A1A); }
#respond .comment-reply-title small a { font-size: .78rem; font-weight: 600; color: var(--malghe-muted,#6B6356); margin-left: 8px; }
.racconto-single__comments .required-field-message { display: none; }

/* ═══════════════════════════════════════════════
   THREAD DOMANDE/RISPOSTE — versione pagina intera
   (stesso motore del popup, stesse classi racconto-thread__*,
   qui solo gli stati specifici della pagina)
   ═══════════════════════════════════════════════ */
.racconto-thread-page__loading { text-align: center; padding: 30px 0; color: var(--malghe-muted,#6B6356); }
.racconto-thread-page__vuoto { color: var(--malghe-muted,#6B6356); font-size: .9rem; padding: 8px 0 16px; }
.racconto-thread-page__write { border-top: none; padding-top: 0; margin-top: 20px; }

/* ═══════════════════════════════════════════════
   POPUP MODIFICA PROFILO
   ═══════════════════════════════════════════════ */
.malghe-profilo-edit-modal { position: fixed; inset: 0; z-index: 9850; display: none; }
.malghe-profilo-edit-modal.is-open { display: block; }
.malghe-profilo-edit-modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.malghe-profilo-edit-modal__panel {
    position: relative; margin: 4vh auto; max-width: 480px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: 20px; padding: 28px;
}
@media (max-width: 560px) {
    .malghe-profilo-edit-modal__panel { margin: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
.malghe-profilo-edit-modal__close {
    position: absolute; top: 16px; right: 16px; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%; background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center; color: var(--malghe-text,#1A1A1A);
}
.malghe-profilo-edit-modal__panel .profilo-form { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }

/* ═══════════════════════════════════════════════
   PROFILO — "Le tue malghe" (card foto-grande +
   pannello presentazione custode)
   ═══════════════════════════════════════════════ */
.profilo-malghe-intro { font-size: .88rem; color: var(--malghe-muted,#6B6356); line-height: 1.5; margin: 0 0 16px; }
.profilo-malghe-intro a { color: var(--malghe-green,#005F56); font-weight: 700; }
.profilo-malghe-list { display: flex; flex-direction: column; gap: 18px; }

.profilo-malga-card {
    background: #fff; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--malghe-border-lt,#EAE5DC);
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.profilo-malga-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--malghe-cream,#F5F0E8); }
.profilo-malga-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profilo-malga-card__media--empty {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    color: var(--malghe-muted,#6B6356); font-size: 2rem;
}
.profilo-malga-card__body { padding: 14px 16px 16px; }
.profilo-malga-card__nome { font-size: 1.15rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); margin: 0 0 4px; }
.profilo-malga-card__loc { font-size: .85rem; color: var(--malghe-muted,#6B6356); margin-bottom: 12px; }
.profilo-malga-card__loc i { color: var(--malghe-green,#005F56); }
.profilo-malga-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profilo-malga-card__btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--malghe-green,#005F56); color: #fff; border-radius: 999px;
    padding: 9px 16px; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.profilo-malga-card__btn--ghost {
    background: #fff; color: var(--malghe-green,#005F56); border: 1.5px solid var(--malghe-green,#005F56);
}

.profilo-malga-pres {
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding: 16px; background: var(--malghe-cream,#F5F0E8);
}
.profilo-malga-pres__choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.profilo-malga-pres__radio { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--malghe-text,#1A1A1A); cursor: pointer; }
.profilo-malga-pres__label { display: block; font-size: .78rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); margin: 12px 0 5px; }
.profilo-malga-pres__input {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; font-size: .9rem; background: #fff;
}
.profilo-malga-pres__foto-row { display: flex; align-items: center; gap: 12px; }
.profilo-malga-pres__foto-preview {
    width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--malghe-border-lt,#EAE5DC); color: var(--malghe-muted,#6B6356);
}
.profilo-malga-pres__foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.profilo-malga-pres__save-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.profilo-malga-pres__save {
    background: var(--malghe-green,#005F56); color: #fff; border-radius: 999px;
    padding: 10px 24px; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.profilo-malga-pres__save[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.profilo-malga-pres__msg { font-size: .82rem; color: var(--malghe-muted,#6B6356); }
.profilo-malga-pres__msg.is-ok { color: var(--malghe-green,#005F56); }
.profilo-malga-pres__msg.is-error { color: #c0392b; }

/* ═══════════════════════════════════════════════
   INBOX GESTORE — "Racconti sulle tue malghe"
   ═══════════════════════════════════════════════ */
.gestione-inbox { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.gestione-riga {
    display: flex; align-items: center; gap: 12px; padding: 12px 10px;
    border-radius: 12px; text-decoration: none; color: inherit; transition: background .12s;
    border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.gestione-riga:last-child { border-bottom: none; }
.gestione-riga:hover { background: var(--malghe-cream,#F5F0E8); }
.gestione-riga--novita { background: rgba(0,95,86,.05); }
.gestione-riga__avatar-wrap { position: relative; flex-shrink: 0; }
.gestione-riga__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; }
.gestione-riga__avatar--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356);
}
.gestione-riga__dot {
    position: absolute; top: -1px; right: -1px; width: 13px; height: 13px;
    border-radius: 50%; background: #c0392b; border: 2px solid #fff;
}
.gestione-riga__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gestione-riga__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gestione-riga__autore { font-size: .82rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); }
.gestione-riga__malga {
    font-size: .7rem; color: var(--malghe-green,#005F56); font-weight: 700;
    background: rgba(0,95,86,.08); padding: 1px 8px; border-radius: 999px;
}
.gestione-riga__titolo { font-size: .9rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gestione-riga--novita .gestione-riga__titolo { font-weight: 800; }
.gestione-riga__preview { font-size: .82rem; color: var(--malghe-muted,#6B6356); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gestione-riga__arrow { color: var(--malghe-muted,#6B6356); font-size: .8rem; flex-shrink: 0; }
.gestione-inbox__more {
    display: inline-block; margin: 0 auto 18px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--malghe-green,#005F56); color: var(--malghe-green,#005F56);
    border-radius: 999px; padding: 9px 22px; font-size: .85rem; font-weight: 700;
}
.gestione-inbox__more[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* ═══════════════════════════════════════════════
   PROFILO PUBBLICO (popup) — viandante o custode
   ═══════════════════════════════════════════════ */
.profilo-pub { position: fixed; inset: 0; z-index: 9950; display: none; }
.profilo-pub.is-open { display: block; }
.profilo-pub__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.profilo-pub__panel {
    position: relative; margin: 5vh auto; max-width: 440px; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 20px; padding: 26px;
}
@media (max-width: 560px) {
    .profilo-pub__panel { margin: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
.profilo-pub__close {
    position: absolute; top: 14px; right: 14px; cursor: pointer; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center; color: var(--malghe-text,#1A1A1A);
}
.profilo-pub__loading { text-align: center; padding: 60px 0; color: var(--malghe-muted,#6B6356); font-size: 1.5rem; }
.profilo-pub__errore { text-align: center; padding: 40px 0; color: #c0392b; }

.profilo-pub__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profilo-pub__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profilo-pub__avatar--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: 1.6rem;
}
.profilo-pub__nome { font-size: 1.3rem; font-weight: 900; color: var(--malghe-text,#1A1A1A); margin: 0 0 3px; }
.profilo-pub__dal { font-size: .82rem; color: var(--malghe-muted,#6B6356); }

.profilo-pub__stats {
    display: flex; gap: 24px; padding: 14px 0; margin-bottom: 6px;
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC); border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.profilo-pub__stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.profilo-pub__stat-num { font-size: 1.15rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); }
.profilo-pub__stat-lab { font-size: .72rem; color: var(--malghe-muted,#6B6356); }
.profilo-pub__badge-img { width: 26px; height: 26px; object-fit: contain; }
.profilo-pub__badge-ico { font-size: 1.15rem; color: var(--malghe-gold,#C4862A); }

.profilo-pub__sez { padding: 14px 0; border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC); }
.profilo-pub__sez:last-child { border-bottom: none; }
.profilo-pub__lab { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--malghe-muted,#6B6356); margin-bottom: 8px; }
.profilo-pub__bio { font-size: .92rem; line-height: 1.6; color: var(--malghe-text,#1A1A1A); margin: 0; }
.profilo-pub__sez p { font-size: .9rem; color: var(--malghe-text,#1A1A1A); margin: 0; }

.profilo-pub__malghe, .profilo-pub__racconti { display: flex; flex-direction: column; gap: 8px; }
.profilo-pub__malga, .profilo-pub__racc {
    display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
    padding: 6px; border-radius: 10px; transition: background .12s;
}
.profilo-pub__malga:hover, .profilo-pub__racc:hover { background: var(--malghe-cream,#F5F0E8); }
.profilo-pub__malga img, .profilo-pub__racc img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.profilo-pub__malga-empty, .profilo-pub__racc-empty {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356);
}
.profilo-pub__malga span { font-size: .9rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.profilo-pub__racc-info { display: flex; flex-direction: column; gap: 2px; }
.profilo-pub__racc-malga { font-size: .88rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.profilo-pub__racc-data { font-size: .76rem; color: var(--malghe-muted,#6B6356); }

/* ═══════════════════════════════════════════════
   MODULO CONTATTI MALGA — esito inline (via AJAX)
   ═══════════════════════════════════════════════ */
.malga-contact-form__msg {
    font-size: .86rem; padding: 10px 14px; border-radius: 10px; margin: 4px 0;
}
.malga-contact-form__msg.is-ok { background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56); }
.malga-contact-form__msg.is-error { background: #fdecea; color: #c0392b; }

/* ═══════════════════════════════════════════════
   MODULO CONTATTI — campo trappola anti-spam
   (fuori schermo, non display:none: alcuni bot
   controllano proprio quello per aggirarlo)
   ═══════════════════════════════════════════════ */
.malga-hp-field {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}

/* ═══════════════════════════════════════════════
   ARCHIVIO MALGHE — pulsante e pannello Filtri
   ═══════════════════════════════════════════════ */
.malgheit-filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; padding: 8px 4px 14px; flex-wrap: wrap; }
.malgheit-filtri-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    background: #FCFCFC !important; background-image: linear-gradient(135deg, #FFFFFF, #FAFAFA) !important;
    border: none !important; text-decoration: none;
    border-radius: 999px; padding: 10px 18px; font-size: .85rem; font-weight: 600;
    color: #1A1A1A !important; cursor: pointer; white-space: nowrap;
    box-shadow:
        -3px -3px 8px rgba(255,255,255,.9),
        3px 3px 10px rgba(0,0,0,.08),
        0 1px 3px rgba(0,0,0,.04) !important;
}
.malgheit-filtri-btn i { color: #005F56 !important; font-size: .82rem; }
.malgheit-filtri-btn.is-active {
    color: #005F56 !important;
    background: #E8F4F2 !important; background-image: none !important;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,.06),
        inset -2px -2px 5px rgba(255,255,255,.7) !important;
}
.malgheit-filtri-btn.is-active i { color: #005F56 !important; }

.malgheit-filtri-panel { position: fixed; inset: 0; z-index: 9700; display: none; }
.malgheit-filtri-panel.is-open { display: block; }
.malgheit-filtri-panel__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.5); }
.malgheit-filtri-panel__sheet {
    position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
    border-radius: 20px 20px 0 0; padding: 20px; max-height: 80vh; overflow-y: auto;
}
@media (min-width: 700px) {
    .malgheit-filtri-panel__sheet {
        position: relative; margin: 6vh auto; max-width: 480px; border-radius: 20px;
    }
}
.malgheit-filtri-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.malgheit-filtri-panel__title { font-size: 1.1rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); }
.malgheit-filtri-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.malgheit-filtri-panel__check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--malghe-text,#1A1A1A); }
.malgheit-filtri-panel__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.malgheit-filtri-panel__reset { font-size: .86rem; font-weight: 700; color: var(--malghe-muted,#6B6356); text-decoration: none; }
.malgheit-filtri-panel__apply {
    flex: 1; background: var(--malghe-green,#005F56); color: #fff; border: none;
    border-radius: 999px; padding: 12px; font-size: .92rem; font-weight: 700; cursor: pointer;
}

/* ═══════════════════════════════════════════════
   CARD MALGA COMPATTA — restyling archivio.
   Tutto scoperto sotto .hero-card--compact: non tocca
   in alcun modo la card percorso, che riusa .hero-card
   di base con l'overlay foto originale.
   ═══════════════════════════════════════════════ */
.hero-card--compact .hero-card__top { display: block; cursor: pointer; }
.hero-card--compact .hero-card__bottom {
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 14px 14px;
}

.hero-card__badge-quota {
    position: absolute; top: 18px; left: 18px; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
}
.hero-card__badge-quota--prem { background: var(--malghe-gold,#C4862A); }

.hero-card__heart {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center; color: var(--malghe-text,#1A1A1A);
    font-size: .9rem; cursor: pointer;
}
.hero-card__heart:hover i { font-weight: 900; }
.hero-card__heart.is-active { background: #fff; }
.hero-card__heart.is-active i { color: #c0392b; }

a.hero-card__title-below {
    color: var(--malghe-text,#1A1A1A); font-weight: 800; font-size: 1rem; line-height: 1.25;
    text-decoration: none; display: block;
}
a.hero-card__title-below:hover { text-decoration: underline; }
.hero-card__sub-below {
    color: var(--malghe-muted,#6B6356); font-size: .8rem; display: flex; align-items: center; gap: 5px; margin-top: 1px;
}
.hero-card__sub-below i { color: var(--malghe-gold,#C4862A); font-size: .74rem; }

.hero-card__chips-compact { display: flex; gap: 6px; margin-top: 8px; }
.hero-card__chip-ico {
    width: 26px; height: 26px; border-radius: 50%; background: var(--malghe-green-pale,#E8F4F2);
    color: var(--malghe-green,#005F56); display: flex; align-items: center; justify-content: center; font-size: .72rem;
}

.hero-card__custode-compact {
    display: flex; align-items: center; gap: 7px; margin-top: 10px;
    padding-top: 9px; border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.hero-card__custode-compact img,
.hero-card__custode-compact-empty {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.hero-card__custode-compact-empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: .6rem;
}
.hero-card__custode-compact span {
    font-size: .76rem; color: var(--malghe-muted,#6B6356); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   GRIGLIA ARCHIVIO MALGHE — 2 colonne fisse su
   mobile, più colonne su schermi larghi
   ═══════════════════════════════════════════════ */
.malgheit-card-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px;
}
@media (min-width: 700px)  { .malgheit-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; } }
@media (min-width: 1100px) { .malgheit-card-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.malgheit-card-grid__empty { grid-column: 1/-1; text-align: center; color: var(--malghe-muted,#6B6356); padding: 40px 0; }


/* ═══════════════════════════════════════════════
   CARD PERCORSO — due versioni nello stesso file.
   Di norma sempre quella grande (anche nell'app, nelle
   pagine di ricerca/archivio). Quella piccola compare
   SOLO dentro l'app, e SOLO nelle sezioni che la
   richiedono esplicitamente (avvolte in
   .malgheit-percorsi-compatti). Regola unica e semplice:
   sotto 600px larghezza schermo → piccola. Sopra → grande.
   Nessun'altra condizione.
   ═══════════════════════════════════════════════ */
.hero-card--percorso-mobile { display: none; }

/* Foto un po' più alta, solo per la card percorso grande: più spazio
   sicuro per titoli lunghi, senza toccare la proporzione della card malga
   (che condivide la stessa regola di base .hero-card__top). */
.hero-card--desktop-only .hero-card__top { aspect-ratio: 4/3; }

/* Griglie percorsi: sempre due colonne, mai di più — così la card
   grande ha sempre spazio comodo, non si accartoccia mai. */
.malgheit-percorsi-compatti { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }

@media (max-width: 600px) {
    .malgheit-percorsi-compatti .hero-card--desktop-only { display: none !important; }
    .malgheit-percorsi-compatti .hero-card--percorso-mobile { display: block !important; }
}

.hero-card--percorso-mobile .hero-card__top {
    position: relative;
    aspect-ratio: 4/5; /* prima ereditava 16/11 dalla card grande: tagliava l'anteprima */
}
.hero-card__sagoma-mobile {
    width: 100%; height: 100%; border-radius: 16px; overflow: hidden;
    background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center; padding: 14px;
}
.hero-card__sagoma-mobile svg,
.hero-card__sagoma-mobile .perc-sagoma { width: 100%; height: 100%; display: block; }
.hero-card--percorso-mobile .hero-card__bottom {
    display: block; padding: 12px 14px 14px;
}

/* ═══════════════════════════════════════════════
   PANNELLO "DATI E ORARI" (gestore premium)
   ═══════════════════════════════════════════════ */
.profilo-malga-dati {
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding: 16px; background: var(--malghe-cream,#F5F0E8);
}
.profilo-malga-dati__titolo { font-size: .88rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); margin: 16px 0 8px; }
.profilo-malga-dati__titolo:first-child { margin-top: 0; }
.profilo-malga-dati__date-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.profilo-malga-dati__date-row label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; color: var(--malghe-muted,#6B6356); font-weight: 700; }
.profilo-malga-dati__date-row input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; }

.profilo-malga-dati__orario-riga { display: flex; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC); }
.profilo-malga-dati__giorno { font-size: .82rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); width: 78px; flex-shrink: 0; }
.profilo-malga-dati__fasce { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profilo-malga-dati__fasce input[type="time"] { padding: 5px 6px; border-radius: 6px; border: 1px solid var(--malghe-border-lt,#EAE5DC); font: inherit; font-size: .78rem; width: 90px; }
.profilo-malga-dati__fasce small { font-size: .68rem; color: var(--malghe-muted,#6B6356); margin: 0 2px; }
.profilo-malga-dati__copia {
    width: 26px; height: 26px; border-radius: 50%; background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--malghe-green,#005F56); font-size: .7rem; cursor: pointer; margin-left: 4px;
}
.profilo-malga-dati__copia:hover { background: var(--malghe-green,#005F56); color: #fff; }

/* ═══════════════════════════════════════════════
   ORARI SETTIMANALI — pagina malga pubblica
   ═══════════════════════════════════════════════ */
.malga-orari-list { list-style: none; margin: 0; padding: 0; }
.malga-orari-riga {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC); font-size: .9rem;
}
.malga-orari-riga:last-child { border-bottom: none; }
.malga-orari-riga.is-oggi { font-weight: 800; color: var(--malghe-green,#005F56); }
.malga-orari-riga.is-oggi em { font-style: normal; font-size: .74rem; opacity: .8; }
.malga-orari-giorno { color: var(--malghe-text,#1A1A1A); }
.malga-orari-riga.is-oggi .malga-orari-giorno { color: var(--malghe-green,#005F56); }
.malga-orari-valore { color: var(--malghe-text,#1A1A1A); font-weight: 600; }
.malga-orari-valore--chiuso { color: var(--malghe-muted,#6B6356); font-weight: 400; }
.malga-dormi-cin { font-size: .76rem; color: var(--malghe-muted,#6B6356); margin-top: 10px; }

/* ═══════════════════════════════════════════════
   RIEPILOGO RACCONTI — profilo (lista compatta)
   ═══════════════════════════════════════════════ */
.profilo-section-title__link { float: right; font-size: .8rem; font-weight: 700; color: var(--malghe-green,#005F56); text-decoration: none; }
.profilo-racconti-riepilogo { background: #fff; border: 1px solid var(--malghe-border-lt,#EAE5DC); border-radius: 16px; overflow: hidden; }
.profilo-racconti-riepilogo__riga {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border-bottom: 1px solid #F0ECE3; text-decoration: none; color: inherit;
}
.profilo-racconti-riepilogo__riga:last-child { border-bottom: none; }
.profilo-racconti-riepilogo__foto { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.profilo-racconti-riepilogo__foto--vuota { display: flex; align-items: center; justify-content: center; background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: .8rem; }
.profilo-racconti-riepilogo__testo { flex: 1; min-width: 0; }
.profilo-racconti-riepilogo__titolo { display: block; font-size: .86rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profilo-racconti-riepilogo__sub { display: block; font-size: .74rem; color: var(--malghe-muted,#6B6356); margin-top: 1px; }
.profilo-racconti-riepilogo__chevron { color: #9B948A; font-size: .78rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   "LE TUE MALGHE" — badge premium, voci "presto",
   banner di invito a passare a premium
   ═══════════════════════════════════════════════ */
.profilo-malga-card__nome-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profilo-malga-card__premium-badge {
    background: var(--malghe-gold,#C4862A); color: #fff; font-size: .68rem; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}
.profilo-malga-card__prossimamente { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.profilo-malga-card__btn--soon { opacity: .55; cursor: default; }
.profilo-malga-card__btn--soon em { font-style: normal; font-size: .68rem; margin-left: 3px; }

/* ═══════════════════════════════════════════════
   MENU A QUADRATINI — schermata di gestione struttura
   ═══════════════════════════════════════════════ */
.gestione-menu-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 18px;
}
.gestione-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: #fff; border: 1px solid var(--malghe-border-lt,#EAE5DC); border-radius: 16px;
    padding: 18px 8px; text-decoration: none; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.gestione-tile__icon {
    width: 42px; height: 42px; border-radius: 50%; background: var(--malghe-green-pale,#E8F4F2);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--malghe-green,#005F56);
}
.gestione-tile__label { font-size: .74rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); text-align: center; line-height: 1.25; }
.gestione-tile--locked { background: var(--malghe-cream,#F5F0E8); }
.gestione-tile--locked .gestione-tile__icon { background: #fff; color: var(--malghe-muted,#6B6356); }
.gestione-tile--locked .gestione-tile__label { color: var(--malghe-muted,#6B6356); }
.gestione-tile__star {
    position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--malghe-gold,#C4862A); color: #fff; font-size: .55rem;
    display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════
   NAVIGAZIONE GESTIONE STRUTTURA — freccia indietro
   e scelta struttura (quando ce n'è più di una)
   ═══════════════════════════════════════════════ */
.gestione-indietro {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .84rem; font-weight: 700; color: var(--malghe-green,#005F56);
    cursor: pointer; padding: 14px 16px 0;
}
#gestione-vista-scelta {
    background: #fff; border: 1px solid var(--malghe-border-lt,#EAE5DC);
    border-radius: 18px; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.gestione-scelta__titolo { font-size: 1.05rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); padding: 12px 16px 4px; }
.gestione-scelta__riga {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC); cursor: pointer;
}
.gestione-scelta__riga:last-child { border-bottom: none; }
.gestione-scelta__riga img,
.gestione-scelta__riga-ph {
    width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356);
}
.gestione-scelta__riga-nome { flex: 1; font-size: .9rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); }
.gestione-scelta__riga > .fa-chevron-right { color: #ADA593; font-size: .8rem; }

/* Pulsante Premium non ancora sbloccato — visibile ma marcato, non nascosto */
.profilo-malga-card__btn--locked { background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); }
.profilo-malga-card__lock-star { color: var(--malghe-gold,#C4862A); font-size: .68rem; margin-left: 2px; }

/* ═══════════════════════════════════════════════
   POPUP "SBLOCCA PREMIUM" — condiviso
   ═══════════════════════════════════════════════ */
.premium-upsell { position: fixed; inset: 0; z-index: 9800; }
.premium-upsell__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.premium-upsell__sheet {
    position: relative; max-width: 380px; margin: 20vh auto 0;
    background: linear-gradient(135deg, var(--malghe-green,#005F56), #0A4A44);
    border-radius: 20px; padding: 30px 26px; color: #fff; text-align: center;
}
@media (max-width: 480px) {
    .premium-upsell__sheet { margin: auto 16px; position: fixed; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
}
.premium-upsell__x {
    position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
}
.premium-upsell__badge {
    display: inline-flex; align-items: center; gap: 6px; background: var(--malghe-gold,#C4862A); color: #fff;
    font-size: .74rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.premium-upsell__titolo { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.premium-upsell__testo { font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.6; margin-bottom: 22px; }
.premium-upsell__cta {
    display: inline-block; background: #fff; color: var(--malghe-green,#005F56); font-weight: 700; font-size: .88rem;
    padding: 12px 26px; border-radius: 999px; text-decoration: none;
}

.profilo-premium-banner {
    display: flex; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--malghe-border-lt,#EAE5DC);
    border-radius: 18px; overflow: hidden; margin-bottom: 20px;
    text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.profilo-premium-banner__img {
    flex: 0 0 110px; background: var(--malghe-cream,#F5F0E8);
    display: flex; align-items: center; justify-content: center;
}
.profilo-premium-banner__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profilo-premium-banner__img i { font-size: 1.8rem; color: var(--malghe-gold,#C4862A); }
.profilo-premium-banner__testo { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; min-width: 0; }
.profilo-premium-banner__titolo { font-size: .95rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); }
.profilo-premium-banner__sub { font-size: .78rem; color: var(--malghe-muted,#6B6356); line-height: 1.45; }
.profilo-premium-banner__cta {
    margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--malghe-green,#005F56);
    display: inline-flex; align-items: center; gap: 6px;
}
.profilo-premium-banner__cta i { font-size: .68rem; }

/* ═══════════════════════════════════════════════
   BANNER "DIVENTA GESTORE" — profilo viandante
   ═══════════════════════════════════════════════ */
.profilo-diventa-gestore-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 1.5px dashed var(--malghe-green,#005F56);
    border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; text-decoration: none;
}
.profilo-diventa-gestore-banner__testo { display: flex; flex-direction: column; gap: 4px; }
.profilo-diventa-gestore-banner__titolo { font-size: .92rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); display: flex; align-items: center; gap: 8px; }
.profilo-diventa-gestore-banner__titolo i { color: var(--malghe-green,#005F56); }
.profilo-diventa-gestore-banner__sub { font-size: .78rem; color: var(--malghe-muted,#6B6356); line-height: 1.4; }
.profilo-diventa-gestore-banner > i { color: var(--malghe-green,#005F56); flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   PAGINA "DIVENTA GESTORE"
   ═══════════════════════════════════════════════ */
.dg-hero { background: var(--malghe-cream,#F5F0E8); padding: 180px 0 48px; text-align: center; }
.dg-hero__eyebrow { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--malghe-gold,#C4862A); margin: 0 0 10px; }
.dg-hero__title { font-size: 1.8rem; font-weight: 900; color: var(--malghe-text,#1A1A1A); margin: 0 0 14px; letter-spacing: -.02em; max-width: 680px; margin-left: auto; margin-right: auto; }
.dg-hero__sub { font-size: 1rem; color: var(--malghe-muted,#6B6356); max-width: 560px; margin: 0 auto; line-height: 1.5; }

.dg-hero--photo { min-height: 380px; display: flex; align-items: flex-end; padding-bottom: 40px; }
.dg-hero--photo .dg-hero__title,
.dg-hero--photo .dg-hero__eyebrow { color: #fff; }
.dg-hero--photo .dg-hero__sub { color: rgba(255,255,255,.88); }

.dg-premium { padding: 48px 0; }
.dg-premium__card {
    max-width: 560px; margin: 0 auto; background: linear-gradient(135deg, var(--malghe-green,#005F56), #0A4A44);
    border-radius: 24px; padding: 36px 32px; color: #fff; text-align: center;
}
.dg-premium__badge {
    display: inline-block; background: var(--malghe-gold,#C4862A); color: #fff; font-size: .74rem; font-weight: 700;
    padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.dg-premium__titolo { font-size: 1.4rem; font-weight: 900; margin: 0 0 14px; color: #fff; }
.dg-premium__prezzo { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 16px; }
.dg-premium__prezzo-vecchio { font-size: 1.1rem; color: rgba(255,255,255,.55); text-decoration: line-through; }
.dg-premium__prezzo-nuovo { font-size: 2.2rem; font-weight: 900; color: #fff; }
.dg-premium__nota { font-size: .84rem; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 22px; }
.dg-premium__lista { list-style: none; margin: 0; padding: 0; text-align: left; display: inline-block; }
.dg-premium__lista li { font-size: .88rem; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.dg-premium__lista i { color: var(--malghe-gold,#C4862A); flex-shrink: 0; }

.dg-form-section { padding: 20px 0 60px; }
html.is-pwa-app .dg-form-section {
    padding-bottom: calc(var(--app-bottom-nav-h) + 60px + env(safe-area-inset-bottom));
}
.dg-form-section__titolo { font-size: 1.2rem; font-weight: 900; color: var(--malghe-text,#1A1A1A); text-align: center; margin: 0 0 8px; }
.dg-form-section__sub { font-size: .86rem; color: var(--malghe-muted,#6B6356); text-align: center; max-width: 460px; margin: 0 auto 28px; }

.dg-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.dg-form__label { font-size: .78rem; font-weight: 700; color: var(--malghe-text,#1A1A1A); margin-top: 12px; }
.dg-form__input {
    padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--malghe-border-lt,#EAE5DC);
    background: var(--malghe-input-bg,#F7FBFA); font: inherit; font-size: .92rem; resize: vertical;
}
.dg-form__premium {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px;
    background: var(--malghe-cream,#F5F0E8); border-radius: 12px; font-size: .86rem; color: var(--malghe-text,#1A1A1A); cursor: pointer;
}
.dg-form__premium input { margin-top: 3px; }
.dg-form__msg { font-size: .86rem; padding: 10px 14px; border-radius: 10px; margin-top: 4px; }
.dg-form__msg.is-ok { background: var(--malghe-green-pale,#E8F4F2); color: var(--malghe-green,#005F56); }
.dg-form__msg.is-error { background: #fdecea; color: #c0392b; }
.dg-form button { margin-top: 16px; }

.dg-form__login-cta { text-align: center; max-width: 420px; margin: 0 auto; }
.dg-form__login-cta p { font-size: .9rem; color: var(--malghe-muted,#6B6356); margin-bottom: 16px; }

.dg-premium-offer {
    max-width: 480px; margin: 20px auto 0; text-align: center;
    background: linear-gradient(135deg, var(--malghe-green,#005F56), #0A4A44);
    border-radius: 18px; padding: 22px 24px; color: #fff;
}
.dg-premium-offer__titolo { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.dg-premium-offer__titolo i { color: var(--malghe-gold,#C4862A); }
.dg-premium-offer__testo { font-size: .84rem; color: rgba(255,255,255,.85); margin: 8px 0 16px; line-height: 1.5; }
.dg-premium-offer__btn {
    display: inline-block; background: #fff; color: var(--malghe-green,#005F56); font-weight: 700; font-size: .88rem;
    padding: 11px 22px; border-radius: 999px; cursor: pointer;
}

/* ═══════════════════════════════════════════════
   GESTIONE MENU/PRODOTTI/EVENTI — pannello app
   ═══════════════════════════════════════════════ */
.profilo-malga-items {
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding: 16px; background: var(--malghe-cream,#F5F0E8);
}
.profilo-malga-items__loading { font-size: .82rem; color: var(--malghe-muted,#6B6356); padding: 10px 0; }
.profilo-malga-items__riga {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--malghe-border-lt,#EAE5DC);
}
.profilo-malga-items__riga:last-child { border-bottom: none; }
.profilo-malga-items__riga img,
.profilo-malga-items__riga-ph {
    width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; background: #fff; color: var(--malghe-muted,#6B6356); font-size: .8rem;
}
.profilo-malga-items__riga-testo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profilo-malga-items__riga-testo strong { font-size: .84rem; color: var(--malghe-text,#1A1A1A); }
.profilo-malga-items__riga-testo small { font-size: .74rem; color: var(--malghe-muted,#6B6356); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profilo-malga-items__riga-edit { color: var(--malghe-green,#005F56); cursor: pointer; padding: 6px; flex-shrink: 0; }
.profilo-malga-items__riga-del { color: #c0392b; cursor: pointer; padding: 6px; flex-shrink: 0; margin-left: 10px; }

.profilo-malga-items__form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--malghe-border-lt,#EAE5DC); display: flex; flex-direction: column; gap: 8px; }
.profilo-malga-items__acquistabile-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--malghe-text,#1A1A1A); }
.profilo-malga-items__evento-data-riga { display: flex; flex-direction: column; gap: 6px; }

.profilo-malga-items__msg { font-size: .8rem; }
.profilo-malga-items__msg.is-ok { color: var(--malghe-green,#005F56); }
.profilo-malga-items__msg.is-error { color: #c0392b; }
.profilo-malga-items__annulla {
    display: inline-block; font-size: .82rem; font-weight: 700; color: var(--malghe-muted,#6B6356);
    cursor: pointer; padding: 8px 4px;
}
.profilo-malga-items__annulla:hover { color: var(--malghe-text,#1A1A1A); text-decoration: underline; }

/* ═══════════════════════════════════════════════
   GALLERIA FOTO GESTORE — pannello app (base)
   ═══════════════════════════════════════════════ */
.profilo-malga-galleria {
    border-top: 1px solid var(--malghe-border-lt,#EAE5DC);
    padding: 16px; background: var(--malghe-cream,#F5F0E8);
}
.profilo-malga-galleria__hint { font-size: .78rem; color: var(--malghe-muted,#6B6356); line-height: 1.5; margin: 0 0 14px; }
.profilo-malga-galleria__loading { font-size: .82rem; color: var(--malghe-muted,#6B6356); padding: 10px 0; grid-column: 1/-1; }
.profilo-malga-galleria__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.profilo-malga-galleria__cella { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.profilo-malga-galleria__cella img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profilo-malga-galleria__stella,
.profilo-malga-galleria__del {
    position: absolute; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
    font-size: .68rem; cursor: pointer;
}
.profilo-malga-galleria__stella { top: 5px; left: 5px; color: #B8B8B8; }
.profilo-malga-galleria__stella.is-cover { color: var(--malghe-gold,#C4862A); }
.profilo-malga-galleria__del { top: 5px; right: 5px; color: #c0392b; }
.profilo-malga-galleria__upload {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; border: 1.5px dashed var(--malghe-green,#005F56); border-radius: 12px;
    padding: 12px; font-size: .85rem; font-weight: 700; color: var(--malghe-green,#005F56); cursor: pointer;
}
.profilo-malga-galleria__msg { font-size: .78rem; color: var(--malghe-muted,#6B6356); margin: 10px 0 0; text-align: center; }

/* ═══════════════════════════════════════════════
   CARD LOCATION — archivio "Esplora per area"
   ═══════════════════════════════════════════════ */
.loc-card { display: block; text-decoration: none; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--malghe-border-lt,#EAE5DC); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.loc-card__top { position: relative; aspect-ratio: 4/3; }
.loc-card__cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-card__cover--empty { display: flex; align-items: center; justify-content: center; background: var(--malghe-cream,#F5F0E8); color: var(--malghe-muted,#6B6356); font-size: 1.8rem; }
.loc-card__badge {
    position: absolute; top: 10px; left: 10px; background: rgba(0,95,86,.85); color: #fff;
    font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.loc-card__bottom { padding: 12px 14px 14px; }
.loc-card__nome { display: block; font-size: .95rem; font-weight: 800; color: var(--malghe-text,#1A1A1A); }
.loc-card__sub { display: block; font-size: .76rem; color: var(--malghe-muted,#6B6356); margin-top: 2px; }
.loc-card__conteggio { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--malghe-green,#005F56); font-weight: 700; margin-top: 8px; }

/* ═══════════════════════════════════════════════
   BANNER "SEI TU IL GESTORE?" — pagina malga
   ═══════════════════════════════════════════════ */
.malga-claim-banner {
    display: flex; align-items: center; gap: 14px;
    background: var(--malghe-cream,#F5F0E8); border: 1.5px dashed var(--malghe-green,#005F56);
    border-radius: 14px; padding: 16px 18px; text-decoration: none;
}
.malga-claim-banner > .fa-hand-holding-heart { font-size: 1.3rem; color: var(--malghe-green,#005F56); flex-shrink: 0; }
.malga-claim-banner__testo { flex: 1; font-size: .84rem; color: var(--malghe-text,#1A1A1A); line-height: 1.5; }
.malga-claim-banner__testo strong { display: block; margin-bottom: 2px; }
.malga-claim-banner > .fa-chevron-right { color: var(--malghe-green,#005F56); font-size: .78rem; }

/* Struttura già determinata (arrivo da pulsante su una malga specifica) */
.dg-form__struttura-fissa {
    display: flex; align-items: center; gap: 10px;
    background: var(--malghe-green-pale,#E8F4F2); border-radius: 12px; padding: 12px 14px;
    font-size: .86rem; color: var(--malghe-text,#1A1A1A); margin-bottom: 4px;
}
.dg-form__struttura-fissa i { color: var(--malghe-green,#005F56); }
