: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 + safe area top) */
  padding-top: calc(6.75rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 900px) {
  .rv-body {
    padding-top: calc(7.5rem + env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 1200px) {
  .rv-body {
    padding-top: calc(8.25rem + env(safe-area-inset-top, 0px));
  }
}

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

@media (max-width: 480px) {
  .rv-body {
    padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
  }
}

/**
 * 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.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.75rem, 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(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
}

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

.rv-header {
  --rv-header-h: 6.75rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  padding-top: env(safe-area-inset-top, 0px);
  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-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(140, 123, 96, 0.4);
  background: rgba(140, 123, 96, 0.06);
  color: var(--rv-gold);
  text-decoration: none;
  margin: 0 .3rem;
}
.rv-bell:hover { background: rgba(140, 123, 96, 0.14); }
.rv-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c54c4c;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .25rem;
  line-height: 1;
}

.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;
  overflow: visible; /* Evita che le barre ruotate vengano tagliate */
}

.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;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center; /* Assicura rotazione simmetrica */
}

body.rv-nav-open .rv-nav-toggle-bar:nth-child(1) {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
body.rv-nav-open .rv-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.rv-nav-open .rv-nav-toggle-bar:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.rv-nav-open .rv-header {
  z-index: 200; /* Superiore a .rv-nav (190) per non coprire il tasto X */
}

.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: calc(50% - 0.5rem);
  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;
}

/* Rimosse posizioni assolute dirette */

.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);
}

/* Variante "inline" sotto la barra di ricerca: piu compatta, niente bordo pesante */
.rv-catalog-sector-panel--inline {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rv-border);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.rv-catalog-sector-panel--inline .rv-catalog-sector-heading {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rv-catalog-sector-panel--inline .rv-catalog-sector-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid var(--rv-border);
  background: rgba(0, 0, 0, 0.04);
  color: var(--rv-muted);
}

.rv-tag--ai {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.05));
  color: var(--rv-gold);
  border-color: rgba(197, 160, 89, 0.55);
}

.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 var(--rv-gold);
  background: rgba(28, 27, 26, 0.97);
  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: #fff;
  font-size: 0.95rem;
  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;
}

.rv-fab--ai {
  background: linear-gradient(135deg, #a39786 0%, #8a7d6a 100%);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(163, 151, 134, 0.45), 0 0 0 0 rgba(163, 151, 134, 0.6);
  animation: rv-fab-ai-pulse 2.4s ease-out infinite;
  cursor: pointer;
}

.rv-fab--ai:hover {
  background: linear-gradient(135deg, #c2b69f 0%, #a39786 100%);
  color: #000;
}

.rv-fab-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.55rem;
}

.rv-fab-ai-spark {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: rv-fab-ai-spark 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes rv-fab-ai-pulse {
  0% { box-shadow: 0 8px 24px rgba(163, 151, 134, 0.45), 0 0 0 0 rgba(163, 151, 134, 0.65); }
  70% { box-shadow: 0 8px 24px rgba(163, 151, 134, 0.45), 0 0 0 14px rgba(163, 151, 134, 0); }
  100% { box-shadow: 0 8px 24px rgba(163, 151, 134, 0.45), 0 0 0 0 rgba(163, 151, 134, 0); }
}

@keyframes rv-fab-ai-spark {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 0.9; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.4); }
}

.rv-voice-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}

.rv-voice-overlay .rv-voice-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(6px);
}

.rv-voice-overlay .rv-voice-card {
  position: relative;
  width: min(28rem, 92vw);
  background: var(--rv-bg2, #1a1a1a);
  border: 1px solid var(--rv-border, #2a2a2a);
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.3rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  text-align: center;
}

.rv-voice-orb {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,151,134,0.35) 0%, rgba(163,151,134,0.05) 70%);
  display: flex; align-items: center; justify-content: center;
}

.rv-voice-orb .rv-voice-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(163,151,134,0.55);
  animation: rv-voice-ring 1.8s ease-out infinite;
}

.rv-voice-orb .rv-voice-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #d6c8a8;
  box-shadow: 0 0 16px rgba(214, 200, 168, 0.85);
  animation: rv-voice-dot 1.4s ease-in-out infinite;
}

@keyframes rv-voice-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes rv-voice-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.rv-voice-status {
  color: var(--rv-cream, #eee);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

.rv-voice-transcript {
  max-height: 11rem;
  overflow-y: auto;
  text-align: left;
  font-size: 0.86rem;
  color: var(--rv-muted, #aaa);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
}

.rv-voice-transcript .rv-voice-line {
  margin: 0.15rem 0;
  line-height: 1.45;
}

.rv-voice-line-user { color: #d6c8a8; }
.rv-voice-line-ai { color: var(--rv-cream, #eee); }

.rv-voice-stop {
  margin-top: 0.2rem;
}

.rv-voice-overlay[data-state="error"] .rv-voice-status { color: #f99; }
.rv-voice-overlay[data-state="done"] .rv-voice-status { color: #9ec; }

/* Marketplace shortcuts (fallback ricerca esterna) */
.rv-catalog-market-shortcuts {
  margin: 1.6rem 0 1rem;
}

.rv-catalog-market-shortcuts-header h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--rv-cream, #eee);
}

.rv-catalog-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.rv-catalog-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--rv-border, #2a2a2a);
  border-radius: 12px;
  background: var(--rv-bg2, #1a1a1a);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.rv-catalog-shortcut:hover {
  border-color: rgba(163, 151, 134, 0.6);
  transform: translateY(-1px);
}

.rv-catalog-shortcut-label {
  font-weight: 600;
  margin: 0 0 0.1rem;
  color: var(--rv-cream, #eee);
}

.rv-catalog-shortcut-query {
  margin: 0;
  font-size: 0.82rem;
  color: var(--rv-muted, #aaa);
}

.rv-catalog-shortcut-reason {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  color: rgba(245, 200, 90, 0.85);
  line-height: 1.35;
}

.rv-catalog-shortcut-cta {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(163, 151, 134, 0.18);
  color: var(--rv-gold, #d6c8a8);
  font-size: 0.78rem;
  font-weight: 600;
}

/* 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;
    align-items: center; /* Centra orizzontalmente le barre */
    position: relative;
    z-index: 210; /* Sopra anche al pannello menu */
  }

  .rv-nav {
    position: fixed;
    top: var(--rv-header-h);
    left: 0;
    right: 0;
    z-index: 190;
    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);
}

/* Carousel Component */
.rv-product-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  background: var(--rv-bg2);
  user-select: none;
}

.rv-carousel-track-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0.85rem;
  background: rgba(163, 151, 134, 0.05);
  position: relative;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.rv-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.rv-carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  position: relative;
}

.rv-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Catalog Hero Carousel (catalogo.php) */
.rv-catalog-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--rv-bg2);
}

.rv-catalog-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rv-catalog-carousel-track::-webkit-scrollbar {
  display: none;
}

.rv-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.rv-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(163, 151, 134, 0.2);
  border-radius: 50%;
  color: var(--rv-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rv-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--rv-gold);
  border-color: var(--rv-gold);
  transform: translateY(-50%) scale(1.05);
}

.rv-carousel-btn--prev { left: 1rem; }
.rv-carousel-btn--next { right: 1rem; }

.rv-carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.rv-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rv-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Thumbnails enhancement for carousel */
.rv-product-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  padding: 0;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.6;
}

.rv-product-thumb.active {
  border-color: var(--rv-gold);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(163, 151, 134, 0.2);
}

/* Rivando marketplace layer */
.rv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rv-nav-seller {
  color: var(--rv-gold) !important;
  font-weight: 700;
}

.rv-new-home {
  background:
    radial-gradient(circle at 18% 8%, rgba(197, 160, 89, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(19, 26, 39, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfaf7 0%, #f4f0e8 48%, #14120f 100%);
}

.rv-new-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3.5rem, 8vw, 7rem);
}

.rv-new-hero-glow {
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(40rem, 72vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(197, 160, 89, 0.28), transparent 58%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.72), transparent 24%);
  filter: blur(6px);
  opacity: 0.95;
  pointer-events: none;
}

.rv-new-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.rv-new-hero-copy .rv-h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.rv-new-hero-copy .rv-lead {
  max-width: 46rem;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}

.rv-new-search {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  width: min(100%, 58rem);
  padding: 0.45rem;
  margin-top: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 80px rgba(29, 24, 15, 0.11);
  backdrop-filter: blur(18px);
}

.rv-new-search-label {
  flex: 1;
  min-width: 12rem;
  margin: 0;
}

.rv-new-search input {
  width: 100%;
  min-height: 3.2rem;
  border: 0;
  background: transparent;
  padding: 0 1rem;
  color: var(--rv-cream);
  font: inherit;
  outline: none;
}

.rv-new-search .rv-btn-primary,
.rv-new-search .rv-btn-secondary {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
}

.rv-new-actions {
  margin-top: 1.35rem;
}

.rv-new-hero-panel {
  position: relative;
  min-height: 28rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2.2rem;
  background:
    linear-gradient(145deg, rgba(25, 23, 20, 0.9), rgba(60, 49, 31, 0.86)),
    radial-gradient(circle at top right, rgba(197, 160, 89, 0.34), transparent 42%);
  color: #fff8e8;
  box-shadow: 0 34px 110px rgba(31, 24, 12, 0.28);
  overflow: hidden;
}

.rv-new-orbit {
  position: relative;
  width: min(18rem, 72vw);
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 230, 159, 0.96) 0 17%, transparent 18%),
    radial-gradient(circle, rgba(197, 160, 89, 0.14), transparent 62%);
  border: 1px solid rgba(255, 230, 159, 0.18);
}

.rv-new-orbit span {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 32px rgba(197, 160, 89, 0.35);
}

.rv-new-orbit span:nth-child(1) { top: 12%; left: 18%; }
.rv-new-orbit span:nth-child(2) { top: 42%; right: 8%; }
.rv-new-orbit span:nth-child(3) { bottom: 12%; left: 34%; }

.rv-new-trust-label {
  margin: 0 0 0.5rem;
  color: var(--rv-gold);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rv-new-trust-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 248, 232, 0.86);
}

.rv-new-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.rv-new-stat-row div {
  padding: 1rem 0.75rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rv-new-stat-row strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.rv-new-stat-row span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 248, 232, 0.65);
  font-size: 0.76rem;
}

.rv-new-cards,
.rv-new-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rv-new-card,
.rv-new-flow-grid > div {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(197, 160, 89, 0.18);
  box-shadow: 0 18px 70px rgba(30, 25, 16, 0.06);
}

.rv-new-card--gold {
  background:
    linear-gradient(145deg, rgba(197, 160, 89, 0.95), rgba(151, 113, 43, 0.94));
  color: #fff8e8;
}

.rv-new-card-num {
  color: var(--rv-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rv-new-card--gold .rv-new-card-num,
.rv-new-card--gold p {
  color: rgba(255, 248, 232, 0.82);
}

.rv-new-card h2 {
  margin: 0.75rem 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.rv-new-card p,
.rv-new-flow-grid p {
  margin: 0;
  color: var(--rv-muted);
}

.rv-new-card--gold p {
  color: rgba(255, 248, 232, 0.82);
}

.rv-new-card a {
  display: inline-flex;
  margin-top: 1.25rem;
  color: #fff;
  font-weight: 800;
}

.rv-new-section-head {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.rv-new-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2.25rem;
}

.rv-new-section-head--center .rv-lead {
  margin-left: auto;
  margin-right: auto;
}

.rv-new-channels .rv-platform-list {
  justify-content: center;
}

.rv-new-flow-grid > div {
  text-align: center;
}

.rv-new-flow-grid span {
  margin-left: auto;
  margin-right: auto;
}

.rv-new-flow {
  background: #15130f;
  color: #fff8e8;
}

.rv-new-flow .rv-h2,
.rv-new-flow .rv-kicker {
  color: #fff8e8;
}

.rv-new-flow-grid > div {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.rv-new-flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--rv-gold);
  color: #15130f;
  font-weight: 900;
}

.rv-new-flow-grid p {
  color: rgba(255, 248, 232, 0.78);
}

.rv-new-channels {
  background: #100f0c !important;
  color: #fff8e8;
}

.rv-new-channels .rv-lead,
.rv-new-channels .rv-h2 {
  color: #fff8e8;
}

.rv-new-catalog-hero,
.rv-new-page-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 90% 12%, rgba(197, 160, 89, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 235, 0.82));
  box-shadow: 0 24px 80px rgba(30, 25, 16, 0.08);
  overflow: hidden;
  text-align: center;
}

.rv-new-page-hero .rv-page-title,
.rv-new-catalog-hero .rv-page-title {
  margin: 0.45rem auto;
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  letter-spacing: -0.05em;
}

.rv-new-page-hero .rv-kicker {
  color: var(--rv-gold);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rv-new-page-hero .rv-lead,
.rv-new-page-hero .rv-muted {
  max-width: 44rem;
  margin: 0.75rem auto 0;
}

.rv-new-page-hero .rv-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

.rv-new-page {
  position: relative;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.rv-new-prose-wrap {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 60px rgba(30, 25, 16, 0.06);
}

.rv-new-prose-wrap .rv-prose,
.rv-new-prose-wrap .rv-about-prose {
  max-width: none;
}

.rv-new-prose-wrap section + section,
.rv-new-prose-wrap .rv-faq-item + .rv-faq-item {
  margin-top: 2rem;
}

.rv-new-prose-wrap h2,
.rv-new-prose-wrap h3 {
  font-family: var(--font-display, "Lora", serif);
  color: var(--rv-gold);
  letter-spacing: -0.01em;
}

.rv-new-prose-wrap ul {
  padding-left: 1.25rem;
}

.rv-new-prose-wrap p,
.rv-new-prose-wrap li {
  line-height: 1.7;
  color: var(--rv-cream);
}

.rv-new-page .rv-new-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 0;
  flex-wrap: wrap;
}

.rv-new-payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.rv-new-payment-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rv-new-payment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 18px 50px rgba(30, 25, 16, 0.1);
}

.rv-new-payment-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.rv-new-payment-card p {
  margin: 0;
  color: var(--rv-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.rv-new-payment-card .rv-new-payment-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.18);
  width: fit-content;
}

.rv-new-payment-card .rv-new-payment-icon img {
  height: 1.4rem;
  width: auto;
}

.rv-new-payment-card a {
  color: var(--rv-gold);
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rv-new-catalog-hero .rv-page-title {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
}

.rv-new-catalog-hero .rv-muted {
  max-width: 44rem;
  margin-top: 0.75rem;
}

.rv-new-catalog-search {
  margin-top: 1.6rem;
}

@media (max-width: 960px) {
  .rv-new-hero-grid,
  .rv-new-cards,
  .rv-new-flow-grid {
    grid-template-columns: 1fr;
  }

  .rv-new-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .rv-new-search {
    align-items: stretch;
    border-radius: 1.4rem;
    flex-direction: column;
  }

  .rv-new-search input {
    min-height: 3rem;
  }

  .rv-new-stat-row {
    grid-template-columns: 1fr;
  }
}

/* Rivando catalogo v2 · filtri avanzati + chips marketplace + card esterne */
.rv-catalog-adv-filters {
  margin: 1.25rem auto 0;
  max-width: 56rem;
  text-align: left;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
}
.rv-catalog-adv-filters > summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rv-gold);
  list-style: none;
}
.rv-catalog-adv-filters > summary::after {
  content: " ▾";
  opacity: 0.6;
}
.rv-catalog-adv-filters[open] > summary::after { content: " ▴"; }
.rv-catalog-adv-filters-row {
  padding: 0 1rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
}
.rv-catalog-adv-filters-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rv-cream);
}
.rv-catalog-adv-filters-row input {
  border: 1px solid var(--rv-border);
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.55rem;
  width: 10rem;
  font: inherit;
}
.rv-catalog-results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  margin: 1.5rem 0 1.25rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,244,235,0.85));
}
.rv-catalog-results-summary {
  font-size: 0.92rem;
}
.rv-catalog-results-internal { color: var(--rv-gold); font-weight: 700; }
.rv-catalog-results-external { color: #4a6ea8; font-weight: 700; }
.rv-catalog-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--rv-border);
  background: #fff;
  color: var(--rv-cream);
  transition: all .15s ease;
}
.rv-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,25,16,0.08); }
.rv-chip-count {
  display: inline-flex;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(197, 160, 89, 0.18);
  color: var(--rv-gold);
}
.rv-chip--active {
  background: var(--rv-gold);
  border-color: var(--rv-gold);
  color: #fff;
}
.rv-chip--active .rv-chip-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.rv-chip--rivando { border-color: rgba(0,128,96,0.35); color: #0b8b63; }
.rv-chip--rivando.rv-chip--active { background: #0b8b63; border-color: #0b8b63; color: #fff; }

.rv-product-card { position: relative; }
.rv-product-card-pill {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--rv-border);
}
.rv-pill-rivando { background: #0b8b63; color: #fff; border-color: #0b8b63; }
.rv-pill-external { background: rgba(74,110,168,0.95); color: #fff; border-color: rgba(74,110,168,0.95); }
.rv-product-card--external .rv-product-card-info { padding-bottom: 0.85rem; }
.rv-product-card-seller {
  font-size: 0.78rem;
  color: var(--rv-cream);
  opacity: 0.7;
  margin: 0.15rem 0 0.35rem;
}
.rv-product-card-external-cta {
  margin-top: 0.4rem;
}
.rv-btn-ghost--mini {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  border: 1px solid var(--rv-gold);
  color: var(--rv-gold);
  border-radius: 0.55rem;
}
.rv-catalog-errors {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--rv-cream);
  opacity: 0.85;
}
.rv-catalog-errors summary {
  cursor: pointer;
  font-weight: 600;
  color: #b06f00;
}
.rv-catalog-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

/* Rivando admin · refresh estetico generale (solo contesto admin via :has) */
.rv-inner.rv-section:has(.rv-admin-tabs) .rv-card,
.rv-inner.rv-section:has(.rv-admin-tabs) .rv-card-body {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(30, 25, 16, 0.05);
  border-color: rgba(197, 160, 89, 0.18) !important;
}

.rv-inner.rv-section:has(.rv-admin-tabs) h2.rv-h2 {
  font-family: var(--font-display, "Lora", serif);
  color: var(--rv-cream);
  letter-spacing: -0.01em;
}

.rv-inner.rv-section:has(.rv-admin-tabs) table tbody tr:hover td {
  background: rgba(197, 160, 89, 0.08);
  transition: background 0.12s ease;
}

.rv-inner.rv-section:has(.rv-admin-tabs) .rv-admin-tab {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rv-inner.rv-section:has(.rv-admin-tabs) .rv-admin-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.18);
}

.rv-inner.rv-section:has(.rv-admin-tabs) .rv-admin-tab--active {
  background: linear-gradient(145deg, #fdf9ef, #f0e6cf);
  border-color: rgba(197, 160, 89, 0.45) !important;
  color: var(--rv-cream);
}

.rv-inner.rv-section:has(.rv-admin-tabs) .rv-alert {
  border-radius: 0.85rem;
}

/* Rivando admin · Point Of Sale (vendita banco) */
.rv-admin-pos {
  margin-top: 1.5rem;
}

.rv-admin-pos-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.rv-admin-pos-card {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 160, 89, 0.10), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 235, 0.85));
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(30, 25, 16, 0.06);
}

.rv-admin-pos-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.rv-admin-pos-search-form input[type="text"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rv-border);
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.95rem;
}

.rv-admin-pos-results {
  display: grid;
  gap: 0.75rem;
  max-height: 28rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.rv-admin-pos-result {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 0.85rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rv-admin-pos-result:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 25, 16, 0.08);
}

.rv-admin-pos-result-media {
  width: 64px;
  height: 64px;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #fdf9ef, #f0e9d8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.rv-admin-pos-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-admin-pos-result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rv-admin-pos-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.4rem;
}

.rv-admin-pos-result-row label span {
  display: block;
  font-size: 0.7rem;
  color: var(--rv-muted);
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rv-admin-pos-result-row input,
.rv-admin-pos-result-row select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--rv-border);
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.85rem;
}

.rv-admin-pos-pill {
  background: var(--rv-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.rv-admin-pos-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 0.85rem;
}

.rv-admin-pos-lines th,
.rv-admin-pos-lines td {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.16);
}

.rv-admin-pos-lines th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rv-muted);
}

.rv-admin-pos-meta {
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(197, 160, 89, 0.28);
  border-radius: 0.75rem;
  padding: 0.9rem;
  margin-top: 0.4rem;
}

.rv-admin-pos-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.rv-admin-pos-meta-grid input,
.rv-admin-pos-meta-grid select,
.rv-admin-pos-meta-grid textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rv-border);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.88rem;
}

.rv-admin-pos-meta-grid label span {
  display: block;
  font-size: 0.7rem;
  color: var(--rv-muted);
  margin-bottom: 0.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rv-admin-pos-summary {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #fdf9ef, #f5edd9);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.rv-admin-pos-summary div {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.18rem 0;
}

.rv-admin-pos-summary .rv-admin-pos-total {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(197, 160, 89, 0.32);
  font-size: 1.15rem;
  color: var(--rv-cream);
}

.rv-admin-pos-summary .rv-admin-pos-total strong {
  color: var(--rv-gold);
}

.rv-admin-pos-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .rv-admin-pos-grid {
    grid-template-columns: 1fr;
  }
}

/* Rivando admin · hero coerente con il design pubblico */
.rv-admin-hero {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: clamp(1rem, 3vw, 1.75rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 160, 89, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 235, 0.86));
  box-shadow: 0 18px 48px rgba(30, 25, 16, 0.06);
  overflow: hidden;
}

.rv-admin-hero .rv-admin-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.rv-admin-hero .rv-admin-hero-text {
  max-width: 38rem;
}

.rv-admin-hero .rv-kicker {
  display: inline-block;
  color: var(--rv-gold);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 0.45rem;
}

.rv-admin-hero .rv-page-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.rv-admin-hero .rv-admin-hero-sub {
  margin: 0.45rem 0 0;
  color: var(--rv-cream);
  opacity: 0.7;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rv-admin-hero .rv-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-admin-hero + .rv-alert {
  margin-top: -0.5rem;
}

@media (max-width: 640px) {
  .rv-admin-hero .rv-admin-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rv-admin-hero .rv-admin-hero-actions {
    justify-content: flex-start;
  }
}

/* Rivando admin · tabs moderne */
.rv-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  margin: 0 0 1.5rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(30, 25, 16, 0.04);
  overflow-x: auto;
  scrollbar-width: thin;
}
.rv-admin-tabs::-webkit-scrollbar { height: 6px; }
.rv-admin-tabs::-webkit-scrollbar-thumb { background: rgba(197,160,89,0.4); border-radius: 999px; }
.rv-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-cream);
  opacity: 0.65;
  border-radius: 0.55rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.rv-admin-tab:hover { opacity: 1; background: rgba(197,160,89,0.08); }
.rv-admin-tab--active {
  opacity: 1;
  background: var(--rv-gold);
  color: #fff;
  border-color: var(--rv-gold);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

/* Rivando admin · card form moderne */
.rv-admin-card {
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 0 14px 38px rgba(30, 25, 16, 0.06);
  margin-bottom: 1.5rem;
}
.rv-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.2);
}
.rv-admin-card-head h2,
.rv-admin-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rv-gold);
}
.rv-admin-card-head .rv-muted { font-size: 0.85rem; }
.rv-admin-section-h {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-gold);
}
.rv-admin-section-h:first-child { margin-top: 0; }
.rv-admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.rv-admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.rv-admin-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 0.7rem;
  background: rgba(248, 244, 235, 0.6);
}
.rv-admin-toggle-card label.rv-switch {
  position: relative;
  display: grid !important;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: start;
  width: 100%;
  cursor: pointer;
}
.rv-admin-toggle-card .rv-switch-track {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.rv-admin-toggle-card .rv-switch-text {
  grid-column: 2;
  display: block;
  color: var(--rv-cream);
  font-weight: 650;
  line-height: 1.25;
}
.rv-admin-toggle-card .rv-switch-hint {
  grid-column: 2;
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
  color: var(--rv-muted);
}
.rv-admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.rv-admin-kpi {
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(197,160,89,0.18);
  background: linear-gradient(150deg, rgba(255,255,255,0.96), rgba(248,244,235,0.7));
  box-shadow: 0 12px 30px rgba(30,25,16,0.05);
}
.rv-admin-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-gold);
  margin: 0 0 0.3rem;
}
.rv-admin-kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.rv-admin-kpi-hint {
  font-size: 0.78rem;
  opacity: 0.7;
  margin: 0.25rem 0 0;
}
