:root {
  --rv-bg: #fdfcfb;
  --rv-bg2: #f8f6f2;
  --rv-border: rgba(166, 124, 0, 0.15);
  --rv-cream: #1c1b1a; /* Testo principale */
  --rv-muted: #6b645a;
  --rv-gold: #c5a059; /* Oro lussuoso (accattivante ma elegante) */
  --rv-gold-h: #a6843d;
  --rv-gold-soft: rgba(197, 160, 89, 0.1);
  --font-sans: "Inter", "Outfit", system-ui, sans-serif;
  --font-display: "Lora", "Playfair Display", serif;
  
  /* Glass effects */
  --rv-glass-tint: rgba(255, 255, 255, 0.88);
  --rv-glass-tint-deep: rgba(253, 252, 251, 0.95);
  --rv-glass-edge: rgba(197, 160, 89, 0.25);
  --rv-glass-inner: rgba(255, 255, 255, 0.5);
  --rv-label-field: #2d2a26;

  /* Shadows */
  --rv-shadow-soft: 0 10px 30px -5px rgba(28, 27, 26, 0.04);
  --rv-shadow-gold: 0 12px 40px -10px rgba(197, 160, 89, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
.rv-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--rv-bg);
  color: var(--rv-cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}

.rv-body {
  padding-bottom: max(5rem, env(safe-area-inset-bottom, 0));
  /* clip orizzontale senza forzare overflow-y: auto (hidden tagliava il logo che esce dalla barra) */
  overflow-x: clip;
  overflow-y: visible;
  /* Spazio sotto header fixed (allineato a --rv-header-h della barra) */
  padding-top: 6.75rem;
}

@media (min-width: 900px) {
  .rv-body {
    padding-top: 7.5rem;
  }
}

@media (min-width: 1200px) {
  .rv-body {
    padding-top: 8.25rem;
  }
}

/* Mobile: altezza header compatta (menu a hamburger) — vedi blocco @768px sotto */
@media (max-width: 768px) {
  .rv-body {
    padding-top: 3.75rem;
  }
}

@media (max-width: 480px) {
  .rv-body {
    padding-top: 3.5rem;
  }
}

/**
 * Home (index): sfondo stratificato elegante — solo .rv-home (no :has).
 */
.rv-home {
  position: relative;
  isolation: isolate;
  background-color: #fcfbf9;
  background-image:
    radial-gradient(ellipse 135% 78% at 50% -18%, rgba(140, 123, 96, 0.08) 0%, transparent 56%),
    radial-gradient(ellipse 70% 55% at 96% 8%, rgba(140, 123, 96, 0.04) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 4% 22%, rgba(226, 223, 218, 0.3) 0%, transparent 50%),
    linear-gradient(168deg, #fdfdfc 0%, #f9f8f6 28%, #f5f4f1 62%, #efede9 100%);
  box-shadow: inset 0 0 100px rgba(140, 123, 96, 0.03);
}

.rv-home .rv-hero {
  border-bottom-color: rgba(226, 223, 218, 0.6);
}

.rv-home .rv-hero-bg {
  background:
    radial-gradient(ellipse 110% 62% at 50% -4%, rgba(140, 123, 96, 0.07) 0%, transparent 56%),
    radial-gradient(ellipse 52% 40% at 82% 28%, rgba(140, 123, 96, 0.03) 0%, transparent 52%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6) 0%,
      transparent 46%,
      rgba(242, 239, 234, 0.6) 100%
    );
}

.rv-home .rv-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(163, 151, 134, 0.1) 18%,
    rgba(163, 151, 134, 0.32) 50%,
    rgba(163, 151, 134, 0.1) 82%,
    transparent 100%
  );
}

.rv-home .rv-section:not(.rv-section-alt) {
  position: relative;
}

.rv-home .rv-section:not(.rv-section-alt)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 88% 58% at 50% 0%, rgba(163, 151, 134, 0.055) 0%, transparent 64%);
}

.rv-home .rv-section:not(.rv-section-alt) > .rv-inner {
  position: relative;
  z-index: 1;
}

/* Piattaforme: fusione morbida con il blocco superiore */
.rv-home .rv-section-alt {
  border-top-color: rgba(46, 44, 40, 0.45);
  background: linear-gradient(180deg, rgba(26, 25, 23, 0.55) 0%, var(--rv-bg2) 14%, var(--rv-bg2) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.rv-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(1.35rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.35rem, env(safe-area-inset-right, 0px));
}

/* Telefoni grandi (es. iPhone Pro Max): colonna più “stretta”, margini più simmetrici */
@media (min-width: 390px) and (max-width: 767px) {
  .rv-inner {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 768px) {
  .rv-inner {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.rv-header {
  --rv-header-h: 6.75rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rv-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  overflow: visible;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.rv-header.rv-header--hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .rv-header {
    transition: none;
  }
}

@media (min-width: 900px) {
  .rv-header {
    --rv-header-h: 7.5rem;
  }
}

@media (min-width: 1200px) {
  .rv-header {
    --rv-header-h: 8.25rem;
  }
}

/*
 * Barra menu: altezza fissa moderata; il logo è sempre intero (object-fit: contain, height 100%).
 * Così non viene tagliato da overflow sul body / dal contenitore.
 */
.rv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--rv-header-h);
  min-height: var(--rv-header-h);
  max-height: var(--rv-header-h);
  padding: 0;
  box-sizing: border-box;
}

.rv-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--rv-header-h, 6.75rem);
  max-height: var(--rv-header-h, 6.75rem);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.rv-logo .rv-logo-svg {
  display: block;
  width: clamp(9.5rem, 32vw, 14rem);
  height: auto;
  max-height: 5.65rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Logo PNG: altezza = barra (grande, pieno), max-width alto così il quadrato non resta stretto */
.rv-logo .rv-logo-img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: min(24rem, 62vw);
  min-height: 0;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.15)) brightness(0.12) sepia(1) hue-rotate(5deg) saturate(0.8); /* Forza visibilità su bianco */
}

@media (min-width: 900px) {
  .rv-logo .rv-logo-img {
    max-width: min(26rem, 38vw);
  }
}

@media (min-width: 1200px) {
  .rv-logo .rv-logo-img {
    max-width: min(28rem, 34vw);
  }
}

/* Sotto 768px l’header è gestito dal blocco menu hamburger (altezza compatta). */

.rv-logo:focus-visible {
  outline: 2px solid var(--rv-gold);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

/* Fallback testuale se manca logo-rivando.svg */
.rv-logo-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  color: var(--rv-gold);
}

.rv-logo-sub {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--rv-muted);
}

.rv-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rv-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.25rem;
  padding-right: 0.65rem;
  border-right: 1px solid var(--rv-border);
}

.rv-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rv-muted);
  border: 1px solid transparent;
  text-transform: none;
}

.rv-lang-btn:hover {
  color: var(--rv-gold-h);
  border-color: rgba(163, 151, 134, 0.35);
  background: rgba(163, 151, 134, 0.08);
}

.rv-lang-btn--current {
  color: var(--rv-bg);
  background: var(--rv-gold);
  border-color: var(--rv-gold);
}

.rv-lang-btn--current:hover {
  color: var(--rv-bg);
  background: var(--rv-gold-h);
  border-color: var(--rv-gold-h);
}

.rv-nav a:hover {
  color: var(--rv-gold);
}

.rv-nav-home {
  font-weight: 600;
  color: var(--rv-cream);
}

.rv-nav-home:hover {
  color: var(--rv-gold-h);
}

.rv-btn-cart {
  border: 1px solid rgba(140, 123, 96, 0.5);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--rv-gold);
  background: rgba(140, 123, 96, 0.05);
}

.rv-btn-cart:hover {
  background: rgba(140, 123, 96, 0.12);
  border-color: var(--rv-gold);
}

/* Pulsante menu mobile (desktop nascosto) */
.rv-nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(163, 151, 134, 0.45);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--rv-cream);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rv-nav-toggle:hover {
  background: rgba(163, 151, 134, 0.12);
  border-color: rgba(163, 151, 134, 0.65);
}

.rv-nav-toggle:focus-visible {
  outline: 2px solid var(--rv-gold);
  outline-offset: 3px;
}

.rv-nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 3px auto;
  border-radius: 1px;
  background: currentColor;
}

.rv-nav-backdrop {
  position: fixed;
  top: var(--rv-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

body.rv-nav-open .rv-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rv-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--rv-gold);
  color: var(--rv-bg);
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
}

.rv-main {
  flex: 1;
}

.rv-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rv-border);
  padding: 4rem 0 5rem;
}

.rv-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(90, 98, 92, 0.22) 0%, transparent 58%);
}

.rv-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--rv-gold);
  text-align: center;
}

.rv-h1 {
  margin: 1.25rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 40rem;
  text-align: center;
}

.rv-lead {
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--rv-muted);
  max-width: 45rem;
  text-align: center;
}

.rv-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.rv-btn-primary {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  background: var(--rv-gold);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 14px rgba(140, 123, 96, 0.35);
  transition: all 0.25s ease;
}

.rv-btn-primary:hover {
  background: var(--rv-gold-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 123, 96, 0.45);
}

.rv-btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--rv-border);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rv-muted);
  transition: all 0.25s ease;
}

.rv-btn-ghost:hover {
  border-color: var(--rv-gold);
  color: var(--rv-gold);
  background: rgba(140, 123, 96, 0.04);
}

/** Secondario: ben visibile su sfondo scuro (es. «Aggiorna carrello») */
.rv-btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--rv-gold);
  color: var(--rv-cream);
  background: rgba(163, 151, 134, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.rv-btn-secondary:hover {
  background: rgba(163, 151, 134, 0.26);
  border-color: var(--rv-gold-h);
}

.rv-section {
  padding: 4rem 0;
}

.rv-grid-3 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .rv-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rv-block {
  border-left: 2px solid rgba(163, 151, 134, 0.35);
  padding-left: 1.25rem;
}

.rv-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.rv-block p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--rv-muted);
}

.rv-section-alt {
  border-top: 1px solid var(--rv-border);
  background: var(--rv-bg2);
}

.rv-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
}

.rv-section-alt p.rv-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rv-platform-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.rv-platform-list a,
.rv-platform-list .rv-pl-inactive {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--rv-cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rv-platform-list a:hover {
  border-color: var(--rv-gold);
  transform: translateY(-5px);
  background: var(--rv-bg);
  box-shadow: 0 12px 30px rgba(163, 151, 134, 0.15);
}

.rv-pl-inactive {
  border-style: dashed;
  color: var(--rv-muted);
  opacity: 0.7;
}

.rv-platform-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rv-border);
  flex-shrink: 0;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.rv-platform-logo-vinted {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%2300b9bc' d='M85 20l-30 60-10-20 10-20h-20l-10 20-5-10 10-20h15l15-30h10z'/%3E%3C/svg%3E");
  background-size: 70%;
}

.rv-platform-logo-subito {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23ff4400'/%3E%3Ctext x='50%25' y='55%25' fill='white' font-family='Arial' font-weight='900' font-size='50' text-anchor='middle' dominant-baseline='middle'%3ES%3C/text%3E%3C/svg%3E");
}

.rv-platform-logo-amazon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' fill='%23ff9900' font-family='Arial' font-weight='900' font-size='60' text-anchor='middle' dominant-baseline='middle'%3EA%3C/text%3E%3C/svg%3E");
}

.rv-platform-logo-ebay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' fill='%23e53238' font-family='Arial' font-weight='900' font-size='60' text-anchor='middle' dominant-baseline='middle'%3EE%3C/text%3E%3C/svg%3E");
}

.rv-platform-name {
  flex-grow: 1;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.rv-pl-go {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rv-gold);
}

.rv-pl-soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rv-page-title {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.rv-catalog-page header p.rv-muted {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Chi siamo */
.rv-about-page .rv-about-prose {
  margin-top: 2rem;
  max-width: 44rem;
}

.rv-about-story-title,
.rv-about-why-title {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.rv-about-page .rv-about-prose > p {
  margin: 1rem 0 0;
  color: var(--rv-muted);
}

.rv-about-page .rv-about-prose .rv-lead {
  margin-top: 1rem;
  max-width: none;
  color: var(--rv-cream);
  font-size: 1.08rem;
}

.rv-about-values,
.rv-about-why {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--rv-muted);
}

.rv-about-values li,
.rv-about-why li {
  margin: 0.65rem 0 0;
}

.rv-about-values li:first-child,
.rv-about-why li:first-child {
  margin-top: 0;
}

.rv-about-cta {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.rv-block-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 151, 134, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rv-block-title-link:hover {
  color: var(--rv-gold-h);
  border-bottom-color: rgba(181, 168, 150, 0.55);
}

/* Checkout: conferma ordine */
.rv-order-success {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.rv-success-info-box {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--rv-glass-tint);
  border: 1px solid var(--rv-border);
  border-radius: 1rem;
  box-shadow: var(--rv-shadow-soft);
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rv-success-info-box h3,
.rv-success-info-box .rv-box-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rv-gold);
}

.rv-success-info-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rv-muted);
}

.rv-success-info-box a {
  color: var(--rv-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.rv-order-success-title {
  margin-top: 0.5rem;
}

.rv-order-success-lead {
  margin-top: 1rem;
  max-width: none;
}

.rv-order-success-ref {
  margin: 1.75rem auto 0;
  padding: 1.15rem 1.35rem;
  max-width: 20rem;
  border-radius: 0.65rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.rv-order-success-ref-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rv-muted);
  margin-bottom: 0.5rem;
}

.rv-order-success-ref-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--rv-gold);
}

.rv-order-success-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.rv-order-success-outro {
  margin-top: 1.5rem;
}

.rv-order-success-actions {
  margin-top: 2rem;
}

.rv-muted {
  color: var(--rv-muted);
}

/* Vecchia griglia rimossa per conflitto col nuovo sistema Soft Luxury */

/* Catalogo: pannello più venduti / sconti settimana + filtro merceologia */
.rv-catalog-hero-wrap {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rv-catalog-hero-block--promo .rv-catalog-hero-h {
  color: var(--rv-gold-h);
}

.rv-catalog-hero-h {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: 0.03em;
  color: var(--rv-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.rv-catalog-hero-h::before,
.rv-catalog-hero-h::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rv-gold));
}

.rv-catalog-hero-h::after {
  background: linear-gradient(to left, transparent, var(--rv-gold));
}

.rv-catalog-carousel {
  position: relative;
  border-radius: 0.5rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-white);
  padding: 0.65rem 0.5rem;
  overflow: hidden;
  box-shadow: var(--rv-shadow-soft);
}

.rv-catalog-carousel:focus-visible {
  outline: 2px solid var(--rv-gold);
  outline-offset: 2px;
}

.rv-catalog-carousel-track {
  display: flex;
  flex-direction: row;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.35rem 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rv-catalog-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.rv-catalog-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(163, 151, 134, 0.35);
  border-radius: 3px;
}

.rv-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 10;
}

.rv-carousel-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rv-border);
  color: var(--rv-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
}

.rv-catalog-carousel:hover .rv-carousel-arrow {
  opacity: 1;
}

@media (max-width: 768px) {
  .rv-carousel-arrow {
    opacity: 0.8;
    width: 2rem;
    height: 2rem;
  }
}

.rv-carousel-arrow:hover {
  background: var(--rv-white);
  color: var(--rv-gold-h);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(140, 123, 96, 0.2);
}

.rv-carousel-arrow--left svg {
  transform: translateX(-1px);
}

.rv-carousel-arrow--right svg {
  transform: translateX(1px);
}

.rv-catalog-hero-slide {
  flex: 0 0 min(11.5rem, 72vw);
  scroll-snap-align: start;
  min-width: 0;
}

.rv-catalog-hero-slide-link {
  display: block;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.rv-catalog-hero-slide-link:hover {
  border-color: rgba(163, 151, 134, 0.4);
  transform: translateY(-2px);
}

.rv-catalog-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--rv-bg2);
}

.rv-catalog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rv-catalog-hero-slide-link:hover .rv-catalog-hero-img img {
  transform: scale(1.05);
}

.rv-catalog-hero-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.rv-badge-promo {
  background: #c5a059; /* Un oro più carico e visibile */
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
}

.rv-badge-hot {
  background: #111111;
  color: #c5a059 !important;
  border: 1.5px solid #c5a059;
  display: inline-block;
}

.rv-catalog-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  z-index: 5;
}

.rv-catalog-badges .rv-catalog-hero-badge {
  position: relative;
  top: auto;
  right: auto;
}

.rv-catalog-hero-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.5rem 0.15rem 0.15rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-catalog-hero-price {
  margin: 0 0.15rem 0.35rem;
  font-size: 0.88rem;
  color: var(--rv-gold-h);
  font-variant-numeric: tabular-nums;
}

.rv-catalog-sector-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg2);
  box-shadow: var(--rv-shadow-soft);
}

.rv-catalog-sector-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rv-muted);
  margin: 0 0 1.25rem;
}

.rv-catalog-sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rv-catalog-sector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rv-cream);
  border-radius: 0.5rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-white);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.rv-catalog-sector-btn:hover {
  border-color: var(--rv-gold);
  background: var(--rv-white);
  color: var(--rv-gold);
  transform: translateY(-2px);
  box-shadow: var(--rv-shadow-gold);
}

.rv-catalog-sector-btn:focus-visible {
  outline: 2px solid var(--rv-gold);
  outline-offset: 2px;
}

.rv-catalog-sector-btn--active {
  background: var(--rv-gold);
  border-color: var(--rv-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.rv-catalog-sector-btn--active:hover {
  background: var(--rv-gold-h);
  border-color: var(--rv-gold-h);
  color: #fff;
}

.rv-catalog-pick-sector {
  margin-top: 1.25rem;
  max-width: 40rem;
}

/* Vecchia struttura card rimossa per restyling Soft Luxury */


/* iOS / Apple-style liquid glass — select nel catalogo e scheda prodotto */
.rv-glass-select {
  position: relative;
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(140, 123, 96, 0.15);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: all 0.22s ease;
}

.rv-glass-select:focus-within {
  border-color: rgba(181, 168, 150, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px rgba(163, 151, 134, 0.28),
    0 12px 36px rgba(0, 0, 0, 0.42);
}

.rv-catalog-page .rv-glass-select:active {
  transform: scale(0.992);
}

.rv-glass-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rv-cream);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.rv-glass-select select option,
.rv-glass-select select optgroup {
  background: var(--rv-bg2);
  color: var(--rv-cream);
}

/* Lista tendina nativa: forza tema scuro (Safari/Chrome/Firefox — dove supportato) */
.rv-catalog-page .rv-glass-select,
.rv-store-form .rv-glass-select {
  color-scheme: dark;
}

.rv-catalog-page .rv-glass-select select,
.rv-store-form .rv-glass-select select {
  color-scheme: dark;
  background-color: rgba(16, 15, 13, 0.94) !important;
  -webkit-text-fill-color: var(--rv-cream);
}

.rv-catalog-page .rv-glass-select select option,
.rv-catalog-page .rv-glass-select select optgroup,
.rv-store-form .rv-glass-select select option,
.rv-store-form .rv-glass-select select optgroup {
  background-color: #141311;
  color: var(--rv-cream);
}

.rv-glass-select select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-glass-select-chevron {
  position: absolute;
  right: 0.78rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.22rem;
  border-right: 2px solid rgba(181, 168, 150, 0.95);
  border-bottom: 2px solid rgba(181, 168, 150, 0.95);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.rv-glass-select--qty select {
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 2rem;
}

/* Catalogo: lista nativa del select (tema coerente, leggibile) */
.rv-catalog-page .rv-catalog-select {
  color-scheme: dark;
}

.rv-catalog-page .rv-catalog-native-select {
  min-height: 2.35rem;
  border-radius: 0.65rem;
  accent-color: var(--rv-gold);
  background-color: rgba(16, 15, 13, 0.94) !important;
  color: var(--rv-cream);
  -webkit-text-fill-color: var(--rv-cream);
}

.rv-catalog-page .rv-catalog-native-select option,
.rv-catalog-page .rv-catalog-native-select optgroup {
  background-color: #141311;
  color: var(--rv-cream);
  padding: 0.4rem 0.5rem;
}

.rv-card-cart .rv-card-qty {
  max-width: 100%;
}

/* Pulsante acquisto — vetro (stile iOS / Apple) */
.rv-btn-glass-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rv-gold);
  box-shadow: 0 4px 12px rgba(140, 123, 96, 0.3);
  transition: all 0.2s ease;
  border: none;
}

.rv-btn-glass-primary:hover {
  background: var(--rv-gold-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140, 123, 96, 0.4);
}

.rv-btn-glass-primary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 14px 40px rgba(0, 0, 0, 0.45);
}

.rv-btn-glass-primary:active {
  transform: scale(0.988);
}

.rv-card-add-btn.rv-btn-glass-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.rv-card-cart button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Catalog Card Quantity Controls */
.rv-card-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(140, 123, 96, 0.05);
  border-radius: 0.65rem;
  border: 1px solid var(--rv-border);
  padding: 0.25rem;
  gap: 0.5rem;
}

.rv-qty-btn {
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  color: var(--rv-gold);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.rv-qty-btn:hover {
  background: var(--rv-white);
  border-color: var(--rv-gold);
  color: var(--rv-gold-h);
}

.rv-qty-input {
  width: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rv-cream);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rv-qty-input::-webkit-outer-spin-button,
.rv-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Catalogo: modal quantità (sostituisce alert) */
body.rv-modal-open {
  overflow: hidden;
}

.rv-modal[hidden] {
  display: none !important;
}

.rv-modal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

.rv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.52);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.rv-modal-panel--verify-email {
  width: min(26rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2rem);
}

.rv-modal-panel {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-glass-tint-deep); /* Sfondo chiaro satinato */
  backdrop-filter: blur(22px) last-of-type(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 56px rgba(166, 124, 0, 0.12);
  animation: rv-catalog-modal-in 0.24s ease;
  color: var(--rv-cream);
}

/* Admin magazzino: modal anagrafica fornitori — largo, basso scroll interno, azioni sempre visibili */
.rv-modal-panel--suppliers {
  width: min(52rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(88vh, calc(100dvh - 2rem));
  padding: 1rem 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.rv-suppliers-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.2rem;
  margin-right: -0.2rem;
}

.rv-suppliers-modal-scroll .rv-form label {
  margin-bottom: 0.5rem;
}

.rv-suppliers-modal-scroll .rv-form label:last-of-type {
  margin-bottom: 0;
}

.rv-supplier-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
}

@media (max-width: 36rem) {
  .rv-supplier-form-cols {
    grid-template-columns: 1fr;
  }
}

.rv-suppliers-modal-actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0 0;
  margin-top: 0.65rem;
  border-top: 1px solid var(--rv-border);
}

.rv-suppliers-modal-actions .rv-btn-primary {
  margin: 0;
}

@media (max-width: 28rem) {
  .rv-suppliers-modal-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes rv-catalog-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rv-modal-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--rv-cream);
}

.rv-modal-msg {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--rv-muted);
  line-height: 1.45;
}

.rv-modal-ok {
  width: 100%;
  border: 0;
  cursor: pointer;
}

/* Toast “aggiunto al carrello” (catalogo, senza ricaricare) */
.rv-catalog-toast {
  position: fixed;
  z-index: 250;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
  transform: translate3d(-50%, calc(100% + 2rem), 0);
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.8rem 1.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(34, 32, 29, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color: var(--rv-cream);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-catalog-toast--visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* Carrello: rimuovi riga */
.rv-btn-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--rv-muted);
  background: rgba(163, 151, 134, 0.08);
  border: 1px solid rgba(163, 151, 134, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-btn-cart-remove:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--rv-gold);
  color: var(--rv-gold);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

/* Carrello: input quantità — glass minimale (allineato al catalogo) */
.rv-table td.rv-table-qty {
  vertical-align: middle;
  white-space: nowrap;
}

.rv-glass-qty {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 4.25rem;
  max-width: 5.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--rv-glass-edge);
  background:
    linear-gradient(155deg, var(--rv-glass-inner) 0%, transparent 42%),
    linear-gradient(0deg, var(--rv-glass-tint-deep) 0%, rgba(40, 38, 35, 0.55) 100%),
    var(--rv-glass-tint);
  backdrop-filter: blur(28px) saturate(1.75);
  -webkit-backdrop-filter: blur(28px) saturate(1.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-qty-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rv-border);
  border-radius: 0.5rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.rv-qty-input-group:focus-within {
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 2px rgba(163, 151, 134, 0.15);
}

.rv-qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--rv-cream);
  font-size: 1.1rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.rv-qty-btn:hover {
  background: rgba(163, 151, 134, 0.12);
  color: var(--rv-gold);
}

.rv-qty-btn:active {
  background: rgba(163, 151, 134, 0.2);
}

.rv-qty-input-group .rv-cart-qty {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rv-cream);
  font-size: 0.95rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: normal;
  appearance: textfield;
  -moz-appearance: textfield;
}

.rv-qty-input-group .rv-cart-qty::-webkit-outer-spin-button,
.rv-qty-input-group .rv-cart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rv-glass-qty {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rv-border);
  border-radius: 0.4rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rv-glass-qty .rv-cart-qty {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.48rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rv-cream);
  font-family: inherit;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.35;
}

.rv-glass-qty .rv-cart-qty::placeholder {
  color: var(--rv-muted);
}

.rv-glass-qty .rv-cart-qty::-webkit-outer-spin-button,
.rv-glass-qty .rv-cart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rv-glass-qty .rv-cart-qty[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.rv-product-layout {
  margin-top: 2rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .rv-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.rv-product-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.rv-product-img {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--rv-border);
  background: #0003;
}

.rv-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-product-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rv-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-product-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.rv-product-thumb.active {
  border-color: var(--rv-gold);
}

.rv-product-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.rv-admin-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rv-admin-gallery-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rv-border);
}

.rv-admin-product-table thead th {
  background: var(--rv-bg);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rv-muted);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.rv-admin-product-table tbody td {
  vertical-align: middle;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.rv-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Admin modifica prodotto: interruttore catalogo online (non usare checkbox grezzo) */
.rv-product-publish {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rv-border);
}

.rv-form .rv-product-publish label.rv-switch {
  position: relative;
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
}

.rv-switch-input {
  position: absolute;
  left: 0;
  top: 0.12rem;
  z-index: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.rv-switch-track {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.12rem;
  width: 3.15rem;
  height: 1.78rem;
  border-radius: 999px;
  /* OFF state: sfondo che si vede bene sul card scuro */
  background: linear-gradient(180deg, #4a4540 0%, #35302c 100%);
  border: 1px solid rgba(200, 185, 165, 0.5);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-switch-track::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5f2ec 0%, #ddd8cf 100%);
  top: 0.18rem;
  left: 0.22rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-switch-input:checked + .rv-switch-track {
  /* ON state: verde brillante e riconoscibile */
  background: linear-gradient(180deg, #2e7d52 0%, #1e5c3b 100%);
  border-color: rgba(80, 200, 130, 0.85);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(30, 120, 70, 0.4),
    0 0 8px rgba(60, 180, 100, 0.25);
}

.rv-switch-input:checked + .rv-switch-track::after {
  transform: translateX(1.33rem);
}

.rv-switch-input:focus-visible + .rv-switch-track {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(163, 151, 134, 0.5);
}

.rv-form .rv-product-publish .rv-switch-text {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 0;
  color: var(--rv-cream); /* testo scuro su sfondo form chiaro, corretto */
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.4;
}

.rv-product-publish > .rv-switch-hint {
  margin: 0 0 0.85rem 0;
  padding-left: calc(3.15rem + 0.75rem);
  font-size: 0.78rem;
  color: var(--rv-muted);
  line-height: 1.45;
  max-width: 36rem;
  box-sizing: border-box;
}

.rv-product-publish:last-child > .rv-switch-hint:last-child {
  margin-bottom: 0;
}

/* Etichette campo (es. «Nome») — non applicare a .rv-switch (track+testo) o il toggle si sballa */
.rv-form label:not(.rv-switch) > span {
  display: block;
  color: var(--rv-muted);
  margin-bottom: 0.35rem;
}

/* Negozio: etichette (Taglia, Qtà) sempre visibili — non ereditare grigi/bianchi illeggibili sul vetro */
.rv-store-form label > span {
  color: var(--rv-label-field);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rv-catalog-page .rv-card-cart.rv-store-form .rv-card-cart-field > span {
  color: var(--rv-label-field);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rv-vinted-catalog-picker {
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.rv-vinted-catalog-picker__panel {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(140, 123, 96, 0.18);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.rv-vinted-catalog-picker__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rv-vinted-catalog-picker__title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-muted);
}

.rv-vinted-catalog-picker__back {
  appearance: none;
  border: 1px solid rgba(140, 123, 96, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rv-cream);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.rv-vinted-catalog-picker__back:hover {
  border-color: rgba(0, 119, 130, 0.55);
  background: rgba(0, 119, 130, 0.1);
}

.rv-vinted-catalog-picker__search-input {
  margin: 0;
}

.rv-vinted-catalog-picker__levels {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.rv-vinted-catalog-picker__level {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  min-height: 0;
  align-content: start;
}

.rv-vinted-catalog-picker__level-label {
  display: block;
  color: var(--rv-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-vinted-catalog-picker__level-select {
  width: 100%;
  margin: 0;
}

.rv-vinted-catalog-picker__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rv-vinted-catalog-picker__crumb {
  appearance: none;
  border: 1px solid rgba(0, 119, 130, 0.28);
  background: rgba(0, 119, 130, 0.1);
  color: #9ee4e7;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.rv-vinted-catalog-picker__crumb:hover {
  background: rgba(0, 119, 130, 0.16);
}

.rv-vinted-catalog-picker__list {
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
}

.rv-vinted-catalog-picker__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(140, 123, 96, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--rv-cream);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.rv-vinted-catalog-picker__item:hover {
  border-color: rgba(0, 119, 130, 0.55);
  background: rgba(0, 119, 130, 0.08);
}

.rv-vinted-catalog-picker__item.is-selected {
  border-color: rgba(0, 119, 130, 0.65);
  background: rgba(0, 119, 130, 0.12);
}

.rv-vinted-catalog-picker__item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.rv-vinted-catalog-picker__item-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.7rem;
  border: 1px solid rgba(140, 123, 96, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.rv-vinted-catalog-picker__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.rv-vinted-catalog-picker__item-icon.is-empty::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.rv-vinted-catalog-picker__item-text {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.rv-vinted-catalog-picker__item-title {
  color: var(--rv-cream);
  font-weight: 600;
  line-height: 1.3;
}

.rv-vinted-catalog-picker__item-detail {
  color: var(--rv-muted);
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: normal;
}

.rv-vinted-catalog-picker__item-suffix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-vinted-catalog-picker__item-suffix.is-chevron {
  color: var(--rv-muted);
  font-size: 1.45rem;
  line-height: 1;
}

.rv-vinted-catalog-picker__item-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 123, 96, 0.48);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rv-vinted-catalog-picker__item-radio.is-selected {
  border-color: #007782;
}

.rv-vinted-catalog-picker__item-radio.is-selected::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #007782;
}

.rv-vinted-catalog-picker__empty {
  padding: 1rem 0.9rem;
  border: 1px dashed rgba(140, 123, 96, 0.2);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--rv-muted);
  font-size: 0.82rem;
  text-align: center;
}

.rv-vinted-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-vinted-brand-picker {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.rv-vinted-brand-picker__list {
  width: 100%;
  min-height: 0;
  max-height: 9.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(140, 123, 96, 0.2);
  border-radius: 0.65rem;
  background: rgba(26, 23, 19, 0.96);
  color: var(--rv-cream);
  overflow: auto;
  display: grid;
  gap: 0.3rem;
}

.rv-vinted-brand-picker__item {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(140, 123, 96, 0.18);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--rv-cream);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.42rem 0.58rem;
  text-align: left;
}

.rv-vinted-brand-picker__item:hover {
  border-color: rgba(0, 119, 130, 0.45);
  background: rgba(0, 119, 130, 0.14);
}

.rv-vinted-brand-picker__item.is-selected {
  border-color: rgba(0, 119, 130, 0.7);
  background: rgba(0, 119, 130, 0.2);
}

.rv-vinted-brand-picker__action {
  appearance: none;
  width: 100%;
  border: 1px dashed rgba(181, 145, 94, 0.42);
  border-radius: 0.55rem;
  background: rgba(181, 145, 94, 0.1);
  color: var(--rv-cream);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.58rem;
  text-align: left;
}

.rv-vinted-brand-picker__action:hover {
  border-color: rgba(181, 145, 94, 0.65);
  background: rgba(181, 145, 94, 0.16);
}

.rv-vinted-brand-picker__empty {
  padding: 0.42rem 0.58rem;
  border-radius: 0.55rem;
  color: var(--rv-muted);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.03);
}

.rv-vinted-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(140, 123, 96, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.rv-vinted-option-pill:hover,
.rv-vinted-option-pill.is-selected {
  border-color: rgba(0, 119, 130, 0.45);
  background: rgba(0, 119, 130, 0.14);
}

.rv-vinted-option-pill input {
  margin: 0;
}

.rv-vinted-option-pill span {
  color: var(--rv-cream);
  font-size: 0.82rem;
  line-height: 1.2;
}

/* Escludi .rv-switch-input: altrimenti width:100% e padding rompono il layout del toggle */
.rv-form input:not(.rv-switch-input),
.rv-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rv-border);
  border-radius: 0.35rem;
  background: var(--rv-bg2);
  color: var(--rv-cream);
  font: inherit;
}

.rv-form label.rv-switch .rv-switch-input {
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
}

/* Admin: track ancora più leggibile sul card (evita fusione con --rv-bg2) */
.rv-body--admin .rv-form .rv-product-publish .rv-switch-track {
  background: linear-gradient(180deg, #454038 0%, #2e2b26 100%);
  border: 1px solid rgba(212, 200, 184, 0.5);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.rv-body--admin .rv-form .rv-product-publish .rv-switch-input:checked + .rv-switch-track {
  /* Admin ON: verde più caldo e intenso */
  background: linear-gradient(180deg, #2a7a4d 0%, #1a5c38 100%);
  border-color: rgba(70, 210, 120, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(30, 130, 70, 0.5),
    0 0 10px rgba(50, 180, 100, 0.3);
}

.rv-body--admin .rv-form .rv-product-publish .rv-switch-input:focus-visible + .rv-switch-track {
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(212, 184, 140, 0.65);
}

.rv-body--admin .rv-form .rv-product-publish .rv-switch-hint {
  color: #6e6b66 !important;
}

.rv-body--admin .rv-form .rv-product-publish .rv-switch-text {
  /* Il form admin ha sfondo chiaro (--rv-bg2 = #f8f6f2):
     il testo deve essere scuro come nel front. NON serve override. */
  color: var(--rv-cream) !important;
  font-weight: 600 !important;
}

.rv-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.rv-alert-error {
  background: #3d1818;
  color: #f5c2c2;
}

.rv-alert-ok {
  background: #1a2e1a;
  color: #c2f5c2;
}

.rv-alert-warn {
  background: #3d3010;
  color: #f5e6a8;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.rv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rv-table th,
.rv-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--rv-border);
  text-align: left;
}

.rv-footer {
  border-top: 1px solid var(--rv-border);
  background: var(--rv-bg2);
  margin-top: auto;
}

.rv-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .rv-footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.rv-footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--rv-gold);
}

.rv-footer-text {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  font-size: 0.9rem;
  color: var(--rv-muted);
}

.rv-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--rv-muted);
}

.rv-footer-links a:hover {
  color: var(--rv-gold);
}

.rv-footer-admin {
  font-size: 0.75rem;
  opacity: 0.6;
}

.rv-footer-legal {
  border-top: 1px solid var(--rv-border);
  padding-top: 1.5rem;
  padding-bottom: 0;
  display: grid;
  gap: 1.25rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--rv-muted);
}

@media (min-width: 768px) {
  .rv-footer-legal {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.rv-footer-legal-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rv-cream);
}

.rv-footer-legal-text {
  margin: 0;
}

.rv-footer-legal a {
  color: var(--rv-gold);
}

.rv-footer-legal a:hover {
  text-decoration: underline;
}

.rv-footer-copy {
  border-top: 1px solid var(--rv-border);
  padding: 1rem max(1.35rem, env(safe-area-inset-left, 0px)) 1rem max(1.35rem, env(safe-area-inset-right, 0px));
  text-align: center;
  font-size: 0.7rem;
  color: var(--rv-muted);
}

@media (min-width: 390px) and (max-width: 767px) {
  .rv-footer-copy {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 768px) {
  .rv-footer-copy {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

/* Pagina Contatti */
.rv-contact-page {
  padding-bottom: 3rem;
}

.rv-contact-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rv-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.rv-contact-card {
  border: 1px solid var(--rv-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: var(--rv-bg2);
}

.rv-contact-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--rv-gold);
}

.rv-contact-card-role {
  margin: 0.35rem 0 1rem;
  font-size: 0.8rem;
  color: var(--rv-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rv-contact-address {
  margin: 0 0 1rem;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rv-cream);
}

.rv-contact-line {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--rv-muted);
}

.rv-contact-line a {
  color: var(--rv-gold);
}

.rv-contact-line a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .rv-contact-grid--3 {
    grid-template-columns: 1.15fr 1fr 1fr;
    align-items: start;
  }
}

.rv-contact-card--form .rv-contact-form {
  margin-top: 0.5rem;
}

/* Floating contatti (telefono + WhatsApp) */
.rv-fab-wrap {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.rv-body--admin .rv-fab-wrap {
  display: none;
}

.rv-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rv-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.rv-fab-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.rv-fab-label {
  white-space: nowrap;
}

.rv-fab--phone {
  background: var(--rv-bg2);
  color: var(--rv-cream);
  border: 1px solid var(--rv-border);
}

.rv-fab--phone:hover {
  border-color: rgba(163, 151, 134, 0.45);
  color: var(--rv-gold-h);
}

.rv-fab--wa {
  background: #2d4f3f;
  color: #e8f0ec;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rv-fab--wa:hover {
  background: #355a48;
  color: #fff;
}

/* Admin — acquisto magazzino: select curati */
.rv-select-wrap {
  position: relative;
  display: block;
  min-width: 7rem;
  max-width: 100%;
}

.rv-select-wrap--wide {
  min-width: 11rem;
  max-width: 16rem;
}

/* Form admin (nuovo prodotto, modifica prodotto, fornitori): select a tutta larghezza etichetta */
.rv-body--admin .rv-form label .rv-select-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rv-body--admin .rv-form label .rv-select-wrap.rv-select-wrap--wide {
  max-width: 100%;
}

.rv-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--rv-gold);
  pointer-events: none;
  opacity: 0.8;
}

.rv-select-wrap select.rv-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg);
  color: var(--rv-cream);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-select-wrap select.rv-select:hover {
  border-color: rgba(163, 151, 134, 0.5);
}

.rv-select-wrap select.rv-select:focus {
  outline: none;
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 2px rgba(163, 151, 134, 0.2);
}

.rv-sp-input {
  width: 100%;
  max-width: 6.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg);
  color: var(--rv-cream);
  font-family: inherit;
  font-size: 0.82rem;
}

.rv-sp-input:focus {
  outline: none;
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 2px rgba(163, 151, 134, 0.15);
}

.rv-sp-input--num {
  max-width: 4rem;
}

.rv-sp-table td {
  vertical-align: middle;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Chosen-style: prodotto in acquisto fornitore */
.rv-combobox--wide {
  min-width: 12rem;
  max-width: 22rem;
}

.rv-chosen--size {
  min-width: 5.5rem;
  max-width: 11rem;
}

.rv-chosen {
  position: relative;
  width: 100%;
}

.rv-chosen-field {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 0.45rem;
  border: 1px solid var(--rv-border);
  background: var(--rv-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-chosen--open .rv-chosen-field,
.rv-chosen-field:focus-within {
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 2px rgba(163, 151, 134, 0.2);
}

.rv-chosen-input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 0.45rem 0.5rem 0.75rem !important;
  margin: 0;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--rv-cream);
  border-radius: 0.45rem;
}

.rv-chosen-input::placeholder {
  color: var(--rv-muted);
  opacity: 0.9;
}

.rv-chosen-input:focus {
  outline: none;
}

.rv-chosen-clear {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0;
  padding: 0;
  border: none;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--rv-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-chosen-clear:hover {
  color: #e8a0a0;
  background: rgba(102, 51, 51, 0.2);
}

.rv-chosen-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-right: 0.65rem;
  margin-left: 0.1rem;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--rv-gold);
  opacity: 0.75;
  pointer-events: none;
}

.rv-chosen--filled .rv-chosen-arrow {
  opacity: 0.45;
}

.rv-chosen-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  border-radius: 0.45rem;
  border: 1px solid rgba(163, 151, 134, 0.35);
  background: var(--rv-bg2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Magazzino: lista ancorata al viewport (evita clip da overflow-x sul contenitore tabella) */
.rv-chosen-dropdown.rv-chosen-dropdown--fixed {
  right: auto;
  z-index: 100000 !important;
}

/* Acquisto fornitore: campo prodotto leggibile; tendina sopra la tabella (JS append a body + fixed) */
.rv-sp-scroll-wrap {
  position: relative;
}

.rv-sp-table .rv-chosen[data-rv-chosen] {
  min-width: 15rem;
  max-width: 22rem;
}

.rv-sp-table .rv-chosen-field {
  min-height: 2.35rem;
  align-items: center;
}

.rv-sp-table .rv-chosen-input {
  font-size: 0.84rem;
  line-height: 1.35;
}

.rv-chosen-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  color: var(--rv-cream);
  border-left: 3px solid transparent;
}

.rv-chosen-option:hover {
  background: rgba(163, 151, 134, 0.08);
}

.rv-chosen-option--active {
  background: rgba(163, 151, 134, 0.18);
  border-left-color: var(--rv-gold);
}

.rv-chosen-line-name {
  font-weight: 500;
}

.rv-chosen-line-sep {
  color: var(--rv-muted);
  font-weight: 400;
}

.rv-chosen-line-sku {
  color: var(--rv-muted);
  font-size: 0.76rem;
  font-family: ui-monospace, monospace;
}

.rv-chosen-match {
  padding: 0 0.05em;
  margin: 0 -0.05em;
  border-radius: 0.15rem;
  background: rgba(163, 151, 134, 0.45);
  color: var(--rv-bg);
  font-weight: 600;
}

.rv-sp-vat-cell {
  min-width: 9.5rem;
}

.rv-sp-vat-out {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--rv-muted);
}

.rv-sp-vat-out strong {
  color: var(--rv-cream);
  font-weight: 600;
}

/* ========== Responsive (layout mobile / tablet) ========== */
.rv-checkout-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
  max-width: 900px;
}

@media (min-width: 900px) {
  .rv-checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}

.rv-form-row-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .rv-form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.rv-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}

.rv-cart-table {
  min-width: 580px;
}

.rv-cart-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 540px) {
  .rv-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rv-cart-actions .rv-btn-primary,
  .rv-cart-actions .rv-btn-secondary {
    text-align: center;
  }
}

/* Menu mobile: una riga compatta + link nel pannello */
@media (max-width: 768px) {
  .rv-header {
    --rv-header-h: 3.625rem;
  }

  .rv-header-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    height: var(--rv-header-h);
    min-height: var(--rv-header-h);
    max-height: var(--rv-header-h);
  }

  .rv-logo {
    flex: 1;
    min-width: 0;
    height: var(--rv-header-h);
    max-height: var(--rv-header-h);
  }

  .rv-logo .rv-logo-img {
    max-height: 3.15rem;
    max-width: min(10.5rem, 48vw);
    height: auto;
    width: auto;
  }

  .rv-logo .rv-logo-svg {
    width: clamp(7rem, 42vw, 10rem);
    max-height: 3rem;
  }

  .rv-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .rv-nav {
    position: fixed;
    top: var(--rv-header-h);
    left: 0;
    right: 0;
    z-index: 51;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(78vh, calc(100dvh - var(--rv-header-h)));
    padding: 0.65rem 0 0.85rem;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--rv-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
  }

  body.rv-nav-open .rv-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .rv-lang-switch {
    order: -1;
    width: 100%;
    justify-content: center;
    margin: 0 0 0.5rem;
    padding: 0 1rem 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--rv-border);
  }

  .rv-nav a {
    display: block;
    padding: 0.65rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(46, 44, 40, 0.85);
  }

  .rv-nav a:last-child {
    border-bottom: 0;
  }

  .rv-btn-cart {
    margin: 0.35rem 1rem 0;
    text-align: center;
    border-radius: 999px;
  }

  .rv-hero {
    padding: 2.5rem 0 3rem;
  }

  .rv-section {
    padding: 2.5rem 0;
  }

  .rv-page-title {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }
}

@media (max-width: 380px) {
  .rv-header {
    --rv-header-h: 3.35rem;
  }

  .rv-logo .rv-logo-img {
    max-height: 2.85rem;
    max-width: min(9rem, 44vw);
  }
}

@media (max-width: 380px) {
  .rv-btn-primary,
  .rv-btn-ghost,
  .rv-btn-secondary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/**
 * Overhaul Bottone Varianti (Taglie/Colori)
 */
.rv-variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.rv-variant-btn {
  appearance: none;
  background: var(--rv-bg);
  border: 1px solid var(--rv-border);
  color: var(--rv-cream);
  padding: 0.8rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rv-variant-btn:hover:not(:disabled) {
  border-color: var(--rv-gold);
  background: var(--rv-white);
  box-shadow: var(--rv-shadow-gold);
}

.rv-variant-btn.active {
  background: var(--rv-gold);
  color: var(--rv-white);
  border-color: var(--rv-gold);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.rv-variant-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f0ede9;
  color: #a0978c;
  text-decoration: line-through;
  border-color: rgba(0,0,0,0.05);
}

/* Badge Sold Out */
.rv-badge-sold-out {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(46, 44, 42, 0.8);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Catalog Grid Improvements */
.rv-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .rv-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .rv-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.rv-product-card {
  background: var(--rv-white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--rv-border);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rv-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rv-shadow-gold);
}

.rv-product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: #fdfdfd;
}

.rv-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-product-card:hover .rv-product-card-img img {
  transform: scale(1.05);
}

.rv-product-card-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rv-product-card-cart {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rv-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rv-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-variant-btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  min-width: 2.25rem;
}

.rv-btn-primary--small {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  width: 100%;
}

.rv-product-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--rv-cream);
  line-height: 1.4;
  height: 3.1rem; /* Max 2 righe */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-product-card-price {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rv-gold);
}

.rv-catalog-hero-block {
  background: var(--rv-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-soft);
}

.rv-catalog-hero-block--promo {
  border-left: 4px solid var(--rv-gold);
}

/* Sold Out Overlay */
.rv-sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: grayscale(0.5);
}

.rv-sold-out-label {
  background: var(--rv-cream);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-5deg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
