/* Tema Halloween Rivando — auto off 2026-11-02 */
:root {
  --rv-hw-orange: #ff8c00;
  --rv-hw-amber: #ffb347;
  --rv-hw-gold: #e8c547;
  --rv-hw-blood: #8b1e1e;
  --rv-hw-night: #0c0a09;
  --rv-hw-wood: #2a1a12;
  --rv-hw-mist: rgba(255, 140, 0, 0.12);
}

body.rv-theme-halloween {
  --rv-bg: #120e0c;
  --rv-bg2: #1a1410;
  --rv-border: rgba(232, 197, 71, 0.28);
  --rv-cream: #faf3e6;
  --rv-text: #faf3e6;
  --rv-text-inverse: #1a1008;
  --rv-white: #1c1510;
  --rv-muted: #d4c4a8;
  --rv-label-field: #e8dcc4;
  --rv-gold: var(--rv-hw-gold);
  --rv-gold-h: var(--rv-hw-orange);
  --rv-gold-soft: rgba(255, 140, 0, 0.14);
  --rv-shadow-soft: 0 12px 36px -8px rgba(0, 0, 0, 0.55);
  --rv-shadow-gold: 0 14px 40px -10px rgba(255, 140, 0, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 140, 0, 0.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(139, 30, 30, 0.2), transparent 35%),
    var(--rv-bg);
  color: var(--rv-cream);
}

body.rv-theme-halloween .rv-header {
  background: rgba(18, 12, 10, 0.92);
  border-bottom-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.rv-theme-halloween .rv-logo-img {
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.45));
  border-radius: 50%;
}

body.rv-theme-halloween .rv-btn-primary {
  background: linear-gradient(135deg, #ff8c00, #c45a00);
  color: #1a1008;
  border: 0;
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.35), 0 8px 22px rgba(255, 140, 0, 0.25);
}

body.rv-theme-halloween .rv-btn-primary:hover {
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: #120e0c;
}

body.rv-theme-halloween .rv-product-card,
body.rv-theme-halloween .rv-home-shop,
body.rv-theme-halloween .rv-card-body {
  border-color: rgba(232, 197, 71, 0.22);
  background: rgba(26, 20, 16, 0.92);
}

body.rv-theme-halloween .rv-home--shop-only,
body.rv-theme-halloween .rv-home-shop {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 140, 0, 0.16), transparent 28rem),
    linear-gradient(180deg, #15110e 0%, #1a1410 72%, #120e0c 100%);
  color: var(--rv-cream);
}

body.rv-theme-halloween .rv-home-shop__marquee-item {
  opacity: 0.9;
  filter: saturate(1.05) contrast(1.05);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.2);
}

body.rv-theme-halloween .rv-footer {
  background: #0a0807;
  border-top: 1px solid rgba(255, 140, 0, 0.25);
}

.rv-halloween-banner {
  --rv-hw-banner-h: 2.65rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-height: var(--rv-hw-banner-h);
  padding: 0.45rem 1rem;
  padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1008;
  background: linear-gradient(90deg, #ff8c00, #e8c547 45%, #ff8c00);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.25);
}

/* Header sotto il banner Halloween; body lascia spazio a entrambi */
body.rv-theme-halloween {
  --rv-hw-banner-h: 2.65rem;
  padding-top: calc(var(--rv-hw-banner-h) + 4.25rem) !important;
}
body.rv-theme-halloween .rv-header {
  top: var(--rv-hw-banner-h);
  padding-top: 0;
}
@media (min-width: 1200px) {
  body.rv-theme-halloween {
    padding-top: calc(var(--rv-hw-banner-h) + 4.75rem) !important;
  }
}
@media (max-width: 768px) {
  body.rv-theme-halloween {
    --rv-hw-banner-h: 2.85rem;
    padding-top: calc(var(--rv-hw-banner-h) + 3.625rem) !important;
  }
}
@media (max-width: 480px) {
  body.rv-theme-halloween {
    padding-top: calc(var(--rv-hw-banner-h) + 3.5rem) !important;
  }
}

.rv-halloween-banner__ico {
  font-size: 1.05rem;
  line-height: 1;
}

.rv-halloween-banner strong {
  font-weight: 800;
}

body.rv-theme-halloween .rv-nav a:hover,
body.rv-theme-halloween .rv-nav-home:hover {
  color: var(--rv-hw-amber);
}

body.rv-theme-halloween .rv-product-card-price,
body.rv-theme-halloween .rv-home-card__price {
  color: var(--rv-hw-amber);
}

/* ——— Leggibilità scheda prodotto / testi (compromesso Halloween) ——— */
body.rv-theme-halloween .rv-product-title,
body.rv-theme-halloween .rv-product-card-title,
body.rv-theme-halloween .rv-home-card__title,
body.rv-theme-halloween .rv-page-title,
body.rv-theme-halloween h1,
body.rv-theme-halloween h2,
body.rv-theme-halloween h3 {
  color: var(--rv-cream);
}

body.rv-theme-halloween .rv-muted,
body.rv-theme-halloween .rv-product-back__link,
body.rv-theme-halloween .rv-breadcrumb,
body.rv-theme-halloween .rv-breadcrumb a {
  color: var(--rv-muted);
}

body.rv-theme-halloween .rv-breadcrumb a:hover {
  color: var(--rv-hw-amber);
}

body.rv-theme-halloween .rv-store-form label > span,
body.rv-theme-halloween .rv-label-label,
body.rv-theme-halloween .rv-variant-group > span {
  color: #e8dcc4 !important;
  text-shadow: none !important;
}

/* Taglie: contrasto chiaro, badge PRE leggibile */
body.rv-theme-halloween .rv-variant-btn {
  background: rgba(255, 243, 220, 0.1);
  border-color: rgba(232, 197, 71, 0.45);
  color: #faf3e6;
}
body.rv-theme-halloween .rv-variant-btn.active,
body.rv-theme-halloween .rv-variant-btn.rv-variant-btn--active {
  background: linear-gradient(135deg, #ff8c00, #e8c547);
  color: #1a1008;
  border-color: transparent;
}
body.rv-theme-halloween .rv-variant-btn[data-preorder="1"]::after {
  color: #1a1008;
  background: #e8c547;
  border-color: rgba(0, 0, 0, 0.12);
}
body.rv-theme-halloween .rv-variant-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 243, 230, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
  text-decoration: line-through;
}

body.rv-theme-halloween .rv-qty-input-group,
body.rv-theme-halloween .rv-glass-qty {
  background: rgba(255, 243, 220, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: 0.55rem;
}
body.rv-theme-halloween .rv-qty-btn,
body.rv-theme-halloween .rv-qty-input-group .rv-cart-qty {
  color: var(--rv-cream);
}

/* Accordion dettagli: niente #1c1b1a su fondo scuro */
body.rv-theme-halloween .rv-pdp-specs,
body.rv-theme-halloween .rv-pdp-specs__item,
body.rv-theme-halloween .rv-pdp-production {
  border-color: rgba(232, 197, 71, 0.22);
}
body.rv-theme-halloween .rv-pdp-specs__summary,
body.rv-theme-halloween .rv-pdp-specs__title,
body.rv-theme-halloween .rv-pdp-specs__row dd,
body.rv-theme-halloween .rv-pdp-specs__link a,
body.rv-theme-halloween .rv-pdp-production__title {
  color: var(--rv-cream) !important;
}
body.rv-theme-halloween .rv-pdp-specs__index {
  color: var(--rv-hw-amber) !important;
}
body.rv-theme-halloween .rv-pdp-specs__row dt,
body.rv-theme-halloween .rv-pdp-specs__note {
  color: var(--rv-muted) !important;
}
body.rv-theme-halloween .rv-pdp-specs__row,
body.rv-theme-halloween .rv-pdp-specs__note,
body.rv-theme-halloween .rv-pdp-production {
  border-color: rgba(232, 197, 71, 0.14);
}
body.rv-theme-halloween .rv-pdp-specs__chev::before,
body.rv-theme-halloween .rv-pdp-specs__chev::after {
  background: #faf3e6 !important;
}
body.rv-theme-halloween .rv-pdp-specs__link a {
  border-bottom-color: rgba(232, 197, 71, 0.45);
}
body.rv-theme-halloween .rv-pdp-specs__link a:hover {
  color: var(--rv-hw-amber) !important;
  border-bottom-color: var(--rv-hw-amber);
}
body.rv-theme-halloween .rv-pdp-specs__item[open],
body.rv-theme-halloween .rv-pdp-specs__item--composition[open],
body.rv-theme-halloween .rv-pdp-specs__item--details[open],
body.rv-theme-halloween .rv-pdp-specs__item--fit[open] {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.07) 0%, transparent 55%);
}

/* Klarna: pannello chiaro → testo scuro (non eredita cream Halloween) */
body.rv-theme-halloween .rv-klarna,
body.rv-theme-halloween .rv-klarna__summary,
body.rv-theme-halloween .rv-klarna__panel {
  background: #fff8f0;
  color: #1c1b1a;
}
body.rv-theme-halloween .rv-klarna__label {
  color: #6b645a !important;
}
body.rv-theme-halloween .rv-klarna__price-line,
body.rv-theme-halloween .rv-klarna__logo-fallback,
body.rv-theme-halloween .rv-klarna__intro,
body.rv-theme-halloween .rv-klarna__when,
body.rv-theme-halloween .rv-klarna__amt,
body.rv-theme-halloween .rv-klarna__total,
body.rv-theme-halloween .rv-klarna__total span,
body.rv-theme-halloween .rv-klarna__total strong {
  color: #1c1b1a !important;
}
body.rv-theme-halloween .rv-klarna__cta {
  color: #1a1008;
}

body.rv-theme-halloween .rv-btn-glass-primary {
  color: #1a1008;
  background: linear-gradient(135deg, #ff8c00, #e8c547);
}
body.rv-theme-halloween .rv-btn-glass-primary:hover {
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: #120e0c;
}

body.rv-theme-halloween .rv-product-fitting-cta__note,
body.rv-theme-halloween .rv-btn-fitting {
  color: var(--rv-cream);
}
body.rv-theme-halloween .rv-btn-fitting {
  border-color: rgba(232, 197, 71, 0.4);
  background: rgba(255, 243, 220, 0.06);
}

body.rv-theme-halloween .rv-product-card-info,
body.rv-theme-halloween .rv-home-card__info {
  color: var(--rv-cream);
}
body.rv-theme-halloween .rv-product-card-info .rv-muted,
body.rv-theme-halloween .rv-home-card__brand {
  color: var(--rv-muted);
}

/* Pipistrelli decorativi leggeri (CSS only) */
body.rv-theme-halloween .rv-main::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #ffb347 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, #ff8c00 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 42% 8%, #e8c547 50%, transparent 51%);
  background-size: 100% 100%;
}

body.rv-theme-halloween .rv-main {
  position: relative;
  z-index: 1;
}

/* Video nascosto: display:block sulla classe batteva [hidden] */
body.rv-theme-halloween .rv-product-main-video[hidden],
.rv-product-main-video[hidden] {
  display: none !important;
}

/* Decori DENTRO la foto, agli angoli — non fuori, non sul capo al centro */
body.rv-theme-halloween .rv-hw-media {
  position: relative;
  overflow: hidden;
}

body.rv-theme-halloween .rv-home-shop__marquee-item.rv-hw-media {
  position: relative;
  overflow: hidden;
}

.rv-hw-decos {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.rv-hw-deco {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transform:
    translate(var(--rv-hw-nudge-x, 0), var(--rv-hw-nudge-y, 0))
    rotate(var(--rv-hw-rot, 0deg))
    scale(var(--rv-hw-scale, 1));
  transform-origin: center;
  opacity: 1;
}

/* Alone chiaro: leggibili anche su foto scure, senza coprire il prodotto */
.rv-hw-deco::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 230, 0.72) 0%, rgba(255, 248, 230, 0.2) 55%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.rv-hw-deco svg {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  display: block;
  overflow: visible;
}

/* Posizioni interne (padding dal bordo) */
.rv-hw-deco--tl { top: 0.28rem; left: 0.28rem; }
.rv-hw-deco--tr { top: 0.28rem; right: 0.28rem; }
.rv-hw-deco--bl { bottom: 0.28rem; left: 0.28rem; }
.rv-hw-deco--br { bottom: 0.28rem; right: 0.28rem; }
.rv-hw-deco--tl2 { top: 0.35rem; left: 2.35rem; }
.rv-hw-deco--tr2 { top: 0.35rem; right: 2.35rem; }
.rv-hw-deco--bl2 { bottom: 0.35rem; left: 2.35rem; }
.rv-hw-deco--br2 { bottom: 0.35rem; right: 2.35rem; }

.rv-hw-deco--cobweb {
  width: 2.85rem;
  height: 2.85rem;
}
.rv-hw-deco--cobweb::before {
  display: none;
}

.rv-hw-deco--lolli,
.rv-hw-deco--vampire,
.rv-hw-deco--pumpkin {
  width: 2.35rem;
  height: 2.35rem;
}

.rv-hw-deco--bone {
  width: 2.5rem;
  height: 1.15rem;
}
.rv-hw-deco--bone::before {
  inset: -20% -5%;
  border-radius: 999px;
}

/* PDP più grandi */
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco {
  width: 2.65rem;
  height: 2.65rem;
}
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco--cobweb {
  width: 3.4rem;
  height: 3.4rem;
}
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco--tl2 { left: 3rem; }
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco--tr2 { right: 3rem; }
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco--bl2 { left: 3rem; }
body.rv-theme-halloween .rv-product-img__frame > .rv-hw-decos .rv-hw-deco--br2 { right: 3rem; }

/* Marquee home: mini */
body.rv-theme-halloween .rv-home-shop__marquee-item > .rv-hw-decos .rv-hw-deco {
  width: 1.15rem;
  height: 1.15rem;
}
body.rv-theme-halloween .rv-home-shop__marquee-item > .rv-hw-decos .rv-hw-deco--tl2,
body.rv-theme-halloween .rv-home-shop__marquee-item > .rv-hw-decos .rv-hw-deco--tr2,
body.rv-theme-halloween .rv-home-shop__marquee-item > .rv-hw-decos .rv-hw-deco--bl2,
body.rv-theme-halloween .rv-home-shop__marquee-item > .rv-hw-decos .rv-hw-deco--br2 {
  display: none;
}

@media (max-width: 640px) {
  .rv-hw-deco {
    width: 1.75rem;
    height: 1.75rem;
  }
  .rv-hw-deco--tl2 { left: 1.85rem; }
  .rv-hw-deco--tr2 { right: 1.85rem; }
  .rv-hw-deco--bl2 { left: 1.85rem; }
  .rv-hw-deco--br2 { right: 1.85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .rv-hw-deco--bat,
  .rv-hw-deco--ghost,
  .rv-hw-deco--vampire {
    animation: rv-hw-float 3.6s ease-in-out infinite;
  }
  .rv-hw-deco--bat {
    animation-delay: 0.35s;
  }
  .rv-hw-deco--lolli,
  .rv-hw-deco--candy,
  .rv-hw-deco--candy2 {
    animation: rv-hw-wiggle 4.2s ease-in-out infinite;
  }
}

@keyframes rv-hw-float {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@keyframes rv-hw-wiggle {
  0%,
  100% { rotate: var(--rv-hw-rot, 0deg); }
  50% { rotate: calc(var(--rv-hw-rot, 0deg) + 5deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.rv-theme-halloween .rv-btn-primary {
    box-shadow: none;
  }
  .rv-hw-deco--bat,
  .rv-hw-deco--ghost,
  .rv-hw-deco--vampire,
  .rv-hw-deco--lolli,
  .rv-hw-deco--candy,
  .rv-hw-deco--candy2 {
    animation: none;
  }
}
