/* Christmas campaign 2026: the layer natale.js draws on the Roadmap page and the strip on the home. Every class is prefixed nxc- and exists only
   while the campaign is on (html[data-campagna="natale"], set by launch.js); outside the window this file styles nothing. */
:root { --nxc-night: #061636; --nxc-alba: hsl(33 86% 84%); --nxc-alba-ink: #8a4a12; }

/* ---------- the strip (the site's own .px-banner) ---------- */
.nxc-strip .nxc-short { display: none; }
@media (max-width: 860px) {
  .nxc-strip .nxc-long { display: none; }
  .nxc-strip .nxc-short { display: inline; }
  .nxc-strip .px-banner-link { margin-left: auto; white-space: nowrap; }
}

/* ---------- the row: the night sky, compact, with the gift's photo ---------- */
.nxc-row { position: relative; isolation: isolate; scroll-margin-top: calc(96px + var(--px-bh, 0px)); color: #fff; --nxc-line: rgb(255 255 255 / 0.18); background: linear-gradient(180deg, var(--nxc-night) 0%, hsl(224 70% 21%) 55%, hsl(246 42% 36%) 84%, hsl(20 60% 58%) 100%); }
.nxc-row::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.9; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 9%, rgb(255 255 255 / 0.8) 50%, transparent 51%), radial-gradient(1.4px 1.4px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 91% 11%, #fff 50%, transparent 51%); mask-image: linear-gradient(180deg, #000 0%, transparent 60%); }
.nxc-row-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.nxc-eyebrow { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: hsl(33 90% 80%); }
.nxc-row .nxc-h { margin: 0; max-width: 13em; text-wrap: balance; color: #fff; }
.nxc-lead { margin: 16px 0 0; max-width: 30em; font-size: 18px; line-height: 28px; text-wrap: pretty; color: rgb(255 255 255 / 0.82); }
.nxc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.nxc-btn { min-width: 200px; padding-inline: 28px; }
.nxc-price { margin: 0; font-size: 15px; line-height: 22px; color: rgb(255 255 255 / 0.82); }
.nxc-price b { font-weight: 600; color: #fff; }
.nxc-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.nxc-facts li { display: grid; gap: 4px; align-content: start; padding-top: 16px; border-top: 1px solid var(--nxc-line); font-size: 15px; line-height: 22px; }
.nxc-facts b { font-weight: 500; font-size: 16px; line-height: 24px; color: #fff; }
.nxc-facts span { color: rgb(255 255 255 / 0.82); }
.nxc-obj { margin: 0; }
@media (max-width: 860px) {
  .nxc-row-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 48px; }
  .nxc-lead { font-size: 16px; line-height: 24px; }
  .nxc-buy { display: grid; justify-items: stretch; margin-top: 24px; }
  .nxc-btn { width: 100%; }
  .nxc-price { text-align: center; }
  .nxc-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nxc-facts li { padding-top: 12px; }
}

/* ---------- a light seasonal layer on the whole page ---------- */
.nxc-sky, .nxc-sky::after { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.nxc-sky { background-image:
  radial-gradient(1.4px 1.4px at 7% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 27% 12%, rgb(255 255 255 / 0.9) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 49% 17%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 66% 9%, rgb(255 255 255 / 0.85) 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 88% 19%, #fff 50%, transparent 51%),
  radial-gradient(120% 46% at 50% 108%, hsl(22 70% 62% / 0.5) 0%, hsl(250 42% 40% / 0.28) 46%, transparent 72%);
}
/* the fainter stars that stay still; the twinkling ones (one in three) are spans natale.js adds, see «stars that twinkle» below */
.nxc-sky::after { content: ""; z-index: 0; background-image:
  radial-gradient(1px 1px at 16% 61%, rgb(255 255 255 / 0.7) 50%, transparent 51%), radial-gradient(1px 1px at 78% 33%, rgb(255 255 255 / 0.7) 50%, transparent 51%);
}
.nxc-sky--close { background-image:
  radial-gradient(1.4px 1.4px at 9% 12%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 41% 8%, rgb(255 255 255 / 0.9) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 63% 16%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 93% 10%, #fff 50%, transparent 51%); }
.nxc-sky--close::after { content: none; }

/* ---------- stars that twinkle (vote ar-natale-sito B, 1/12) ----------
   One star in three changes brightness slowly, each on its own phase (a negative delay) of a 3.6 s cycle, gentle at both ends; opacity only.
   They run only while their sky is on screen and the tab is visible (natale.js sets data-tw="on"); under reduced motion they never move. */
.nxc-row-sky { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.nxc-tw { position: absolute; border-radius: 50%; background: #fff; opacity: var(--a); }
@media (prefers-reduced-motion: no-preference) {
  .nxc-tw { animation: nxc-tw 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite paused; }
  [data-tw="on"] > .nxc-tw { animation-play-state: running; }
  @keyframes nxc-tw { 0%, 100% { opacity: var(--a); } 50% { opacity: var(--p, 1); } }
}

/* ---------- the row's photo: composition C, one booklet becomes two, once (votes rb-sito-regalo B and ar-sito-riga B, 1/12) ----------
   The app's scene pieces (natale.js, PIECES) on a slab of the photo's own paper; the slab keeps the scene's ratio and holds the space, the
   pieces are absolute, in % of the scene. natale.js arms the motion only when motion is allowed (.is-armed, .is-folded until it plays), the
   app's «dopo il pagamento» in CSS: the gift and your copy, one over the other in the middle, slide 321/1536 of the scene apart in 560 ms
   (from 100 ms); the envelope rises 42/1536 with its opacity in 420 ms (from 500 ms); the cord fades in on the gift in 320 ms (from 800 ms);
   the pencil arrives from 72/1536 to the left in 280 ms (from 880 ms). All in place at 1.16 s. Only transform and opacity.
   Under reduced motion, or before natale.js arms it: the composed photo, still. */
.nxc-photo { position: relative; overflow: hidden; aspect-ratio: 1536 / 1032; border-radius: 16px; background: linear-gradient(135deg, #f6e7d9 0%, #f4e2d6 50%, #eeddd1 100%); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7); }
.nxc-photo img { display: block; height: auto; pointer-events: none; user-select: none; }
.nxc-l { position: absolute; display: block; }
.nxc-l-regalo :is(.nxc-bare, .nxc-cord) { position: absolute; left: 0; top: 0; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .nxc-photo.is-armed :is(.nxc-l-copia, .nxc-l-regalo) { transition: transform 560ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; }
  .nxc-photo.is-armed :is(.nxc-l-busta, .nxc-l-tasca) { transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1) 500ms, opacity 420ms cubic-bezier(0.23, 1, 0.32, 1) 500ms; }
  .nxc-photo.is-armed .nxc-cord { transition: opacity 320ms cubic-bezier(0.65, 0, 0.35, 1) 800ms; }
  .nxc-photo.is-armed .nxc-l-matita { transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1) 880ms, opacity 280ms cubic-bezier(0.23, 1, 0.32, 1) 880ms; }
  /* in % of each piece: 321/633 of your copy, 321/525 of the gift, 42/978 and 42/411 of the envelope pieces, 72/576 of the pencil */
  .nxc-photo.is-folded .nxc-l-copia { transform: translateX(50.711%); }
  .nxc-photo.is-folded .nxc-l-regalo { transform: translateX(-61.143%); }
  .nxc-photo.is-folded .nxc-l-busta { transform: translateY(4.294%); opacity: 0; }
  .nxc-photo.is-folded .nxc-l-tasca { transform: translateY(10.219%); opacity: 0; }
  .nxc-photo.is-folded .nxc-cord { opacity: 0; }
  .nxc-photo.is-folded .nxc-l-matita { transform: translateX(-12.5%); opacity: 0; }
}

.nxc-chip { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 8px 14px 8px 10px; border-radius: 12px; background: rgb(255 214 170 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 214 170 / 0.34); color: #fff; text-decoration: none; }
.nxc-chip-img { flex: none; width: 28px; }
.nxc-chip-img img { display: block; width: 100%; height: auto; }
.nxc-chip b { display: block; font: 500 15px/20px var(--font-sans); color: #ffe6c8; }
.nxc-chip span span { display: block; font-size: 13px; line-height: 18px; color: rgb(255 255 255 / 0.78); }
.nxc-chip i { flex: none; font-style: normal; margin-left: 4px; color: #ffd9b0; }
.nxc-chip:focus-visible { outline: 2px solid #ffd9b0; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .nxc-chip { transition: background-color 150ms ease-out; } .nxc-chip:hover { background: rgb(255 214 170 / 0.18); } }
.rl-plan:has(.nxc-tag) { position: relative; }
.nxc-tag { position: absolute; z-index: 2; right: -12px; top: -16px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 10px; border-radius: 6px 3px 3px 6px; background: var(--nxc-alba); color: #5a2d06; font: 500 13px/18px var(--font-sans); transform: rotate(3deg); box-shadow: 0 8px 16px -8px rgb(6 22 54 / 0.5); }
.nxc-tag-hole { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgb(90 45 6 / 0.35); }
html[data-campagna="natale"] .rl-value-buy { display: grid; justify-items: start; gap: 12px; }
@media (max-width: 860px) { html[data-campagna="natale"] .rl-value-buy { justify-items: stretch; } }
.nxc-also { margin: 0; font-size: 15px; line-height: 22px; color: #3d5270; }
.nxc-also--dark { margin-top: 14px; color: rgb(255 255 255 / 0.84); }
html[data-campagna="natale"] .rl-thought { color: var(--nxc-alba-ink); }
html[data-campagna="natale"] :is(.rl-story, .rl-close) .rl-thought { color: #ffd9b0; }
@media (max-width: 860px) {
  .nxc-tag { right: 8px; top: -14px; }
  .nxc-chip { width: 100%; }
  .nxc-chip i { margin-left: auto; }
}
