/* Promo LED: ancorata sotto l'header e autonoma, rimovibile senza toccare il layout interno. */
:root {
  --promo-neon-height: 52px;
  --promo-neon-gap: 8px;
  --promo-neon-page-space: calc(var(--promo-neon-height) + var(--promo-neon-gap));
}

/* Lo spazio riservato alla promo continua visivamente il fondo bianco della pagina. */
html.led-promotion-active body.personalizza-page {
  background-color: #fff;
}

[data-led-promotion][hidden] {
  display: none !important;
}

.promo-neon-bar {
  position: absolute !important;
  top: 84px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  z-index: 9000;
  width: calc(100% - 24px);
  max-width: 1500px;
  height: var(--promo-neon-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 !important;
  transform: translate3d(-50%, 0, 0) !important;
  pointer-events: none;
  isolation: isolate;
}

.page-home .promo-neon-bar {
  top: 128px !important;
}

.promo-neon-copy {
  margin: 0;
  max-width: 100%;
  font-family: "Orbitron", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(16px, 1.48vw, 20px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .018em;
  text-align: center;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.promo-neon-offer,
.promo-neon-action {
  display: inline;
}

.promo-neon-discount {
  color: #00bddd;
  text-shadow: 0 0 1px #008ca8, 0 0 4px rgba(0, 189, 221, .78), 0 1px 0 rgba(0, 57, 68, .22);
}

.promo-neon-warm {
  color: #df9900;
  text-shadow: 0 0 1px #b37400, 0 0 4px rgba(255, 178, 0, .72), 0 1px 0 rgba(83, 53, 0, .2);
}

.promo-neon-pink {
  color: #e000ad;
  text-shadow: 0 0 1px #ad0085, 0 0 4px rgba(224, 0, 173, .76), 0 1px 0 rgba(80, 0, 61, .2);
}

.promo-neon-violet {
  color: #842ee0;
  text-shadow: 0 0 1px #5f16ad, 0 0 4px rgba(132, 46, 224, .8), 0 1px 0 rgba(45, 0, 91, .2);
}

.promo-neon-cyan {
  color: #00a997;
  text-shadow: 0 0 1px #007f72, 0 0 4px rgba(0, 195, 174, .76), 0 1px 0 rgba(0, 66, 59, .2);
}

.promo-neon-separator {
  color: #ee6f00;
  text-shadow: 0 0 1px #b95100, 0 0 4px rgba(238, 111, 0, .76), 0 1px 0 rgba(84, 35, 0, .2);
}

.promo-neon-cta {
  position: relative;
  color: #ed3f57;
  text-decoration: none;
  text-shadow: 0 0 1px #b91f39, 0 0 4px rgba(237, 63, 87, .8), 0 1px 0 rgba(91, 0, 19, .2);
  pointer-events: auto;
  transition: color .18s ease, text-shadow .18s ease;
}

.promo-neon-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
  opacity: .72;
}

.promo-neon-cta:hover,
.promo-neon-cta:focus-visible {
  color: #f05f00;
  text-shadow: 0 0 1px #b94000, 0 0 5px rgba(240, 95, 0, .86);
  outline: none;
}

/* Un solo offset sul primo blocco: tutto ciò che segue scende nello stesso flusso. */
html.led-promotion-active body.personalizza-page #configuratore-led {
  margin-top: var(--promo-neon-page-space) !important;
  scroll-margin-top: calc(84px + var(--promo-neon-page-space));
}

@media (max-width: 768px) {
  :root {
    --promo-neon-height: 50px;
    --promo-neon-gap: 6px;
  }

  .promo-neon-bar,
  .page-home .promo-neon-bar {
    top: 57px !important;
    width: calc(100% - 8px);
    padding: 4px 8px;
  }

  .promo-neon-copy {
    font-size: clamp(12px, 3.48vw, 14px);
    line-height: 1.22;
    letter-spacing: 0;
    white-space: normal;
  }

  .promo-neon-offer,
  .promo-neon-action {
    display: block;
    white-space: nowrap;
  }

  html.led-promotion-active body.personalizza-page #configuratore-led {
    scroll-margin-top: calc(57px + var(--promo-neon-page-space));
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-neon-cta {
    transition: none;
  }
}

/* Solo tipografia interna: geometria, sfondo e posizione della card prezzo restano invariati. */
#prezzo .price-promotion {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: clamp(7px, .72em, 11px);
  white-space: nowrap;
}

#prezzo .price-promotion-saving {
  display: block;
  margin-top: .34em;
  font-size: .62em;
  font-weight: 750;
  line-height: 1.25;
}

.purchase-assurances {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 6px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.purchase-assurances > span {
  white-space: nowrap;
}

@media (min-width: 1181px) {
  body.personalizza-page #configuratore-led .purchase-assurances {
    grid-column: 2;
    justify-self: start;
    position: relative;
    left: var(--desk-addcart-x);
    top: var(--desk-addcart-y);
    width: var(--desk-addcart-width);
  }
}

#prezzo .price-promotion-label {
  font-size: .68em;
  font-weight: 700;
}

#prezzo .price-promotion-original {
  font-size: .70em;
  font-weight: 600;
  opacity: .78;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, .88);
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
}

#prezzo .price-promotion-final {
  font-size: 1.10em;
  font-weight: 950;
  letter-spacing: .01em;
}

#prezzo .price-promotion-badge {
  margin-left: .16em;
  padding: .12em .42em;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: .52em;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .045em;
}

@media (max-width: 768px) {
  body.personalizza-page #configuratore-led .purchase-assurances {
    order: 11;
    margin: 0 auto 2px;
    gap: 5px 12px;
    font-size: 12px;
  }

  #prezzo .price-promotion {
    gap: 5px;
  }

  #prezzo .price-promotion-label {
    font-size: .62em;
  }

  #prezzo .price-promotion-original {
    font-size: .64em;
  }

  #prezzo .price-promotion-final {
    font-size: .96em;
  }

  #prezzo .price-promotion-badge {
    margin-left: 2px;
    font-size: .48em;
  }
}

@media (min-width: 700px) and (max-width: 1180px) {
  body.personalizza-page #configuratore-led .purchase-assurances {
    order: 10 !important;
    width: min(100%, 520px) !important;
    margin: 0 auto 4px !important;
  }
}
