/* ============================================================================
   RIVANDO MALL — Hub / topbar / vetrine
   ========================================================================== */

/* ---------- Topbar ---------- */
.rv-topbar{
  position:sticky; top:0; z-index:var(--rv-z-hud);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 26px; gap:18px;
  background:linear-gradient(180deg, rgba(15,14,12,.96), rgba(15,14,12,.7) 70%, transparent);
  backdrop-filter:blur(10px);
}
.rv-top-logo{ display:flex; align-items:center; gap:11px; background:none; border:0; cursor:pointer; color:var(--rv-ink); }
.rv-top-logo-mark{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  font-weight:800;font-size:20px;color:#1a1610;
  background:linear-gradient(145deg,var(--rv-gold-soft),var(--rv-gold-deep));
  box-shadow:var(--rv-shadow-glow);
}
.rv-top-logo-txt{ font-size:20px; letter-spacing:.01em; }
.rv-top-nav{ display:flex; align-items:center; gap:8px; }
.rv-top-link{
  padding:9px 14px; border-radius:10px; border:0; background:none; cursor:pointer;
  color:var(--rv-ink-soft); font-size:14px; font-weight:600; transition:.2s;
}
.rv-top-link:hover{ color:var(--rv-ink); background:rgba(255,255,255,.05); }
.rv-top-ai{ color:var(--rv-gold-soft); }
.rv-top-cart{
  position:relative; display:flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:10px; border:1px solid var(--rv-line-strong);
  background:rgba(0,0,0,.25); cursor:pointer; color:var(--rv-ink); font-size:16px;
}
.rv-top-cart:hover{ border-color:var(--rv-gold-deep); }
.rv-cart-count{
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;font-size:12px;font-weight:800;
  display:grid;place-items:center;background:var(--rv-gold);color:#1a1610;
}

/* ---------- View ---------- */
.rv-view{ display:block; }
.rv-view--mall{ animation:rvFade .5s var(--rv-ease) both; }
@keyframes rvFade{ from{opacity:0} to{opacity:1} }

/* ---------- Hero ---------- */
.rv-mall-hero{ position:relative; padding:54px 26px 30px; overflow:hidden; }
.rv-mall-hero::before{
  content:""; position:absolute; inset:-40% -10% auto; height:520px;
  background:
    radial-gradient(60% 70% at 30% 0%, rgba(200,164,92,.18), transparent 60%),
    radial-gradient(50% 60% at 80% 10%, rgba(74,108,140,.16), transparent 60%);
  filter:blur(10px); pointer-events:none;
}
.rv-mall-hero-in{ position:relative; max-width:980px; }
.rv-mall-title{ font-size:clamp(38px,6vw,72px); line-height:1.02; margin:.18em 0 .12em; font-weight:600; }
.rv-mall-sub{ color:var(--rv-ink-soft); font-size:clamp(15px,2vw,19px); margin:0 0 22px; max-width:640px; }
.rv-mall-searchwrap{ display:flex; gap:10px; flex-wrap:wrap; max-width:720px; }
.rv-mall-search{
  flex:1 1 320px; padding:15px 18px; border-radius:14px;
  background:var(--rv-bg-3); border:1px solid var(--rv-line-strong); color:var(--rv-ink);
  font-size:15px; outline:none; transition:.2s;
}
.rv-mall-search:focus{ border-color:var(--rv-gold-deep); box-shadow:0 0 0 4px rgba(200,164,92,.12); }
.rv-mall-stats{ display:flex; gap:30px; flex-wrap:wrap; margin-top:28px; }
.rv-mall-stat{ display:flex; flex-direction:column; }
.rv-mall-stat b{ font-size:30px; font-family:var(--rv-serif); color:var(--rv-gold-soft); line-height:1; }
.rv-mall-stat span{ font-size:12px; color:var(--rv-ink-mute); letter-spacing:.06em; text-transform:uppercase; margin-top:5px; }

/* ---------- Directory grid ---------- */
.rv-mall-dir{ padding:18px 26px 90px; }
.rv-mall-dir-head{ display:flex; align-items:baseline; justify-content:space-between; margin:18px 0 20px; }
.rv-mall-dir-head h2{ font-size:28px; margin:0; }
.rv-mall-dir-hint{ color:var(--rv-ink-mute); font-size:13px; }
.rv-mall-grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(auto-fill, minmax(290px,1fr));
}

/* ---------- Storefront card ---------- */
.rv-front{
  position:relative; border-radius:var(--rv-r-lg); overflow:hidden; cursor:pointer;
  background:var(--rv-bg-2); border:1px solid var(--rv-line);
  transition:transform .35s var(--rv-ease), box-shadow .35s var(--rv-ease), border-color .35s;
  opacity:0;
}
.rv-front-in{ animation:rvFrontIn .6s var(--rv-ease) both; }
@keyframes rvFrontIn{ from{opacity:0; transform:translateY(22px) scale(.98)} to{opacity:1; transform:none} }
.rv-front:hover{ transform:translateY(-6px); border-color:var(--store-accent); box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 1px var(--store-accent) inset; }
.rv-front:focus-visible{ outline:2px solid var(--store-accent); outline-offset:3px; }
.rv-front-spot{ transform:translateY(-6px) scale(1.02); box-shadow:0 0 0 3px var(--store-accent), 0 30px 70px rgba(0,0,0,.6); z-index:2; }

.rv-front-top{ position:absolute; top:12px; left:12px; right:12px; z-index:3; display:flex; justify-content:space-between; }
.rv-front-badge{
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px; color:#10100e; background:var(--rv-ink-soft);
}
.rv-front-badge em{ font-style:normal; opacity:.7; }
.rv-front-badge--open{ background:var(--rv-state-open); }
.rv-front-badge--coming_soon{ background:var(--rv-state-soon); }
.rv-front-badge--under_construction{ background:var(--rv-state-construction); }
.rv-front-badge--seasonal{ background:var(--rv-state-seasonal); color:#fff; }
.rv-front-badge--closed{ background:var(--rv-state-closed); color:#fff; }
.rv-front-floor{ font-size:11px; color:var(--rv-ink); background:rgba(0,0,0,.5); padding:5px 10px; border-radius:999px; }

.rv-front-glass{ position:relative; height:200px; overflow:hidden; }
.rv-front-scene{ position:absolute; inset:0; background:
  linear-gradient(180deg, color-mix(in srgb, var(--store-accent) 26%, #14120e), #14120e 70%);
}
.rv-front-scene::after{ content:""; position:absolute; inset:0;
  background:radial-gradient(40% 60% at 50% 18%, color-mix(in srgb, var(--store-accent2) 40%, transparent), transparent 70%);
}
/* mini-scenografie nelle vetrine */
.rv-front-scene--boutique::before{ content:""; position:absolute; left:0; right:0; bottom:34%; height:3px; background:rgba(255,255,255,.18); box-shadow:0 26px 0 rgba(255,255,255,.14), 0 52px 0 rgba(255,255,255,.10); }
.rv-front-scene--showroom_tech::before{ content:""; position:absolute; inset:30% 20% 28%; border:1px solid var(--store-accent); border-radius:8px; box-shadow:0 0 26px var(--store-accent) inset, 0 0 22px color-mix(in srgb,var(--store-accent) 50%, transparent); }
.rv-front-scene--car_showroom::before{ content:""; position:absolute; left:18%; right:18%; bottom:30%; height:42px; border-radius:30px 30px 8px 8px; background:linear-gradient(180deg,var(--store-accent),#222); box-shadow:0 10px 24px rgba(0,0,0,.5); }
.rv-front-scene--vintage_market::before{ content:""; position:absolute; left:0; right:0; top:0; height:26px; background:repeating-linear-gradient(90deg,var(--store-accent) 0 18px, #2a241c 18px 36px); }
.rv-front-scene--beauty_bar::before{ content:""; position:absolute; inset:36% 26% 30%; border-radius:999px 999px 6px 6px; background:linear-gradient(180deg,var(--store-accent2),transparent); }
.rv-front-scene--home_rooms::before{ content:""; position:absolute; left:22%; right:22%; bottom:30%; height:40px; border-radius:8px; background:var(--store-accent); opacity:.5; }

.rv-front-preview{ position:absolute; left:0; right:0; bottom:0; display:flex; gap:8px; padding:12px; }
.rv-front-thumb{ flex:1; height:78px; border-radius:10px; overflow:hidden; background:#0c0b09; border:1px solid rgba(255,255,255,.12); }
.rv-front-thumb img{ width:100%; height:100%; object-fit:cover; }
.rv-front-thumb.out img{ filter:grayscale(.85) brightness(.5); }
.rv-front-teaser{ position:absolute; inset:auto 14px 14px; color:var(--rv-ink-soft); font-size:13px; font-style:italic; }

.rv-front-meta{ padding:16px 18px 18px; }
.rv-front-name{ font-size:21px; margin:0 0 3px; }
.rv-front-tag{ color:var(--rv-ink-mute); font-size:13px; margin:0 0 12px; }
.rv-front-cta{ display:flex; align-items:center; justify-content:space-between; }
.rv-front-count{ font-size:12px; color:var(--rv-ink-soft); }
.rv-front-enter{ font-size:14px; font-weight:700; color:var(--store-accent); }
.rv-front--coming_soon .rv-front-glass, .rv-front--under_construction .rv-front-glass{ filter:saturate(.7); }
.rv-front--coming_soon .rv-front-preview, .rv-front--under_construction .rv-front-preview{ filter:blur(2px) brightness(.8); }

@media (max-width:640px){
  .rv-top-nav .rv-top-link{ display:none; }
  .rv-top-nav .rv-top-ai{ display:inline-block; }
  .rv-mall-stats{ gap:18px; }
}
