/* MURO RECENSIONI */
.vxwall-app { font-size: 13px; color: var(--vx-text); max-width: 1100px; margin: 0 auto; padding: 0 14px; }

/* hero */
.vxwall-hero { text-align: center; padding: 28px 12px 22px; }
.vxwall-h1 {
    font-size: 26px; font-weight: 800; color: var(--vx-text);
    margin: 0 0 6px; letter-spacing: -.2px;
}
.vxwall-sub { font-size: 14px; color: var(--vx-text-2); margin: 0 0 14px; }
.vxwall-rating { display: inline-flex; align-items: center; gap: 8px; }
.vxwall-rating-stars {
    display: inline-block !important; position: relative !important;
    line-height: 0 !important; vertical-align: middle !important;
    width: 90px !important; height: 18px !important;   /* 5 × 18px */
    flex: 0 0 auto !important;
}
.vxwall-rating-base,
.vxwall-rating-fill {
    display: flex !important; gap: 0 !important;
    align-items: center !important;
    height: 18px !important; line-height: 0 !important;
}
.vxwall-rating-base {
    position: static !important;
    color: var(--vx-border) !important;
}
.vxwall-rating-fill {
    position: absolute !important; top: 0 !important; left: 0 !important;
    overflow: hidden !important; white-space: nowrap !important;
    color: var(--vx-warning) !important;
    pointer-events: none !important;
}
/* blocca qualsiasi svg { width:100% } globale del layout_front */
.vxwall-rating-base svg,
.vxwall-rating-fill svg {
    display: block !important;
    width: 18px !important; height: 18px !important;
    min-width: 18px !important; max-width: 18px !important;
    flex: 0 0 18px !important; margin: 0 !important;
    vertical-align: top !important;
}
.vxwall-rating-base svg { fill: none !important; }
.vxwall-rating-base svg path { fill: none !important; stroke: currentColor !important; }
.vxwall-rating-fill svg { fill: var(--vx-warning) !important; }
.vxwall-rating-fill svg path { fill: var(--vx-warning) !important; stroke: none !important; }
.vxwall-rating-num { font-size: 15px; font-weight: 800; color: var(--vx-text); }
.vxwall-rating-count { font-size: 12px; color: var(--vx-text-3); }

/* muro masonry-like via columns */
.vxwall-grid {
    column-count: 4; column-gap: 12px;
}
@media (max-width: 900px) { .vxwall-grid { column-count: 3; } }
@media (max-width: 640px) { .vxwall-grid { column-count: 2; column-gap: 8px; } }

.vxwall-card {
    break-inside: avoid; margin-bottom: 12px;
    background: var(--vx-bg-card); border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius); overflow: hidden; cursor: pointer;
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease, box-shadow .18s ease;
}
.vxwall-card.is-in { opacity: 1; transform: none; }
.vxwall-card:hover { box-shadow: var(--vx-shadow); }
.vxwall-photo { width: 100%; display: block; background: var(--vx-bg-hover); }
.vxwall-photo img { width: 100%; display: block; }
.vxwall-meta { padding: 10px 12px; }
.vxwall-meta-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vxwall-name { font-weight: 700; font-size: 13px; color: var(--vx-text); }
.vxwall-stars { display: inline-flex; gap: 1px; color: var(--vx-warning); }
.vxwall-stars svg { fill: var(--vx-warning); }
.vxwall-stars svg[fill="none"] { fill: none; }
.vxwall-product { font-size: 11px; color: var(--vx-primary); font-weight: 600; margin-bottom: 4px; }
.vxwall-comment { font-size: 12px; color: var(--vx-text-2); line-height: 1.4; }
.vxwall-date { font-size: 10px; color: var(--vx-text-3); margin-top: 6px; display: block; }

/* stato / fine */
.vxwall-status { text-align: center; padding: 18px; color: var(--vx-text-3); font-size: 13px; }
.vxwall-sentinel { height: 1px; }
.vxwall-empty { text-align: center; padding: 50px 20px; color: var(--vx-text-3); }

/* skeleton */
.vxwall-skel {
    break-inside: avoid; margin-bottom: 12px; border-radius: var(--vx-radius);
    background: var(--vx-bg-hover); height: 220px;
    animation: vxwall-pulse 1.2s ease-in-out infinite;
}
@keyframes vxwall-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* LIGHTBOX */
.vxwall-lb-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: var(--vx-overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.vxwall-lb-overlay.is-on { display: block; }
.vxwall-lb {
    display: none; position: fixed; z-index: 1001;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 32px); max-width: 460px; max-height: 92vh; overflow: hidden;
    flex-direction: column;
    background: var(--vx-bg-card); border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius); box-shadow: var(--vx-shadow);
}
.vxwall-lb.is-on { display: flex; }
.vxwall-lb-x {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: var(--vx-overlay); color: var(--vx-text-inv); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.vxwall-lb-photo img { width: 100%; display: block; max-height: 62vh; object-fit: cover; }
.vxwall-lb-info { padding: 14px 16px; overflow-y: auto; }
.vxwall-lb-info .vxwall-name { font-size: 15px; }
.vxwall-lb-info .vxwall-product { font-size: 13px; margin: 4px 0 8px; }
.vxwall-lb-info .vxwall-comment { font-size: 14px; line-height: 1.5; }

/* lightbox: hero info */
.vxwall-lb-hero {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 8px;
}
.vxwall-lb-hero-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vxwall-lb-hero .vxwall-name { font-size: 16px; }
.vxwall-lb-hero .vxwall-product { font-size: 13px; }

.vxwall-lb-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--vx-border);
}
.vxwall-lb-foot .vxwall-date { margin: 0; }

/* contenitore share centrato sotto la foto */
.vxwall-lb-share {
    display: flex; justify-content: center;
    padding: 14px 16px 0;
}
.vxwall-share {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    width: 100%; max-width: 280px;
    padding: 12px 18px;
    border: none; border-radius: 999px;
    background: linear-gradient(135deg, var(--vx-primary) 0%, var(--vx-primary-2) 100%);
    color: var(--vx-text-inv);
    font-size: 14px; font-weight: 700; letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--vx-primary-light);
    transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease, filter .16s ease;
}
.vxwall-share:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--vx-primary-light); filter: brightness(1.05); }
.vxwall-share:active { transform: translateY(0) scale(.97); }
.vxwall-share svg { flex: 0 0 auto; }

/* card: hover meno piatto */
.vxwall-card { will-change: transform; }
.vxwall-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vx-shadow-lg);
    border-color: var(--vx-primary-light);
}
.vxwall-photo img { transition: transform .4s cubic-bezier(.2,.6,.2,1); }
.vxwall-card:hover .vxwall-photo img { transform: scale(1.05); }

/* stelle piene: piccolo glow caldo */
.vxwall-stars svg { filter: drop-shadow(0 0 3px var(--vx-warning)); }

/* lightbox: entrata con pop invece del display secco */
.vxwall-lb {
    transition: opacity .22s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.vxwall-lb:not(.is-on) { opacity: 0; transform: translate(-50%, -48%) scale(.94); }
.vxwall-lb.is-on { opacity: 1; }
.vxwall-lb-overlay { transition: opacity .22s ease; }

/* hero titolo: leggera comparsa */
@keyframes vxwall-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.vxwall-hero { animation: vxwall-fade-up .5s ease both; }