/* ════════════════════════════════════════════════════════════
   ULTIMOKM — TEMA STAGIONALE: NATALE
   ════════════════════════════════════════════════════════════

   Si attiva da solo dal 15 novembre al 6 gennaio. Vedi js/theme.js
   per il calendario e TEMI.md per la spiegazione completa.

   ─── OGNI REGOLA PARTE DA [data-tema="natale"] ───
   Stesso schema di theme-halloween.css: senza quell'attributo
   sull'elemento <html> questo file non fa assolutamente nulla. Si può
   caricare tutto l'anno, e il 7 gennaio il sito torna com'era.

   ─── PERCHÉ ROSSO E ORO E NON ROSSO E VERDE ───
   Rosso e verde insieme sono il Natale del supermercato — e su un sito
   ultras ricordano subito la maglia di qualcun altro. Rosso e oro sono
   le luminarie delle vie del centro e delle sciarpe in curva: lo stesso
   Natale, raccontato dalla strada invece che dal volantino.

   L'oro fa il lavoro che a Halloween faceva l'arancione: è l'accento
   chiaro, quello che si legge sul nero (11,7:1). Il rosso è troppo scuro
   per stare da solo come testo sul nero, quindi si usa come FONDO
   (pulsanti, etichette) con il testo bianco sopra (5,7:1).

   ─── COSA NON TOCCA ───
   Non cambia i testi, non cambia il layout, non sposta niente. Solo
   colori, bagliori, neve e luminarie.
   ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   1. LA TAVOLOZZA
   ═══════════════════════════════════ */
html[data-tema="natale"] {
  /* Oro luminaria. Contrasto sul fondo nero: 11,7:1 — passa WCAG AAA,
     quindi si può usare sui prezzi e sul testo piccolo. */
  --nt-oro:       #e5c46b;
  --nt-oro-cal:   #f0d78f;   /* variante chiara, per i bagliori */

  /* Rosso Natale. NON va usato come testo sul nero (3,5:1): è un colore
     di fondo, con testo bianco sopra (5,7:1, AA). Per un rosso da
     leggere sul nero c'è --nt-rosso-cal (6,5:1). */
  --nt-rosso:     #c8202d;
  --nt-rosso-cal: #ff5a62;

  --nt-neve:      #f4f6f8;

  /* I neri diventano appena più freddi, come una notte d'inverno: due
     punti di blu in più, non di più. Stessa regola di Halloween — se te
     ne accorgi guardandolo, è troppo. */
  --black:    #090b0d;
  --black2:   #0f1215;
  --black3:   #171b1f;

  --accent:   var(--nt-oro);
}

/* ═══════════════════════════════════
   2. GLI ACCENTI
   Gli stessi punti di Halloween, e per lo stesso motivo: sono quelli
   che l'occhio guarda per primi.
   ═══════════════════════════════════ */

html[data-tema="natale"] .hero-divider {
  background: linear-gradient(90deg, transparent, var(--nt-oro), transparent);
  box-shadow: 0 0 24px rgba(229, 196, 107, 0.5);
}

html[data-tema="natale"] .logo-sub,
html[data-tema="natale"] .hero-title span {
  color: var(--nt-oro-cal);
}

/* Pulsante principale rosso con testo bianco: 5,7:1. Il bordo oro lo
   stacca dal fondo scuro senza bisogno di schiarire il rosso (che
   farebbe scendere il contrasto del testo). */
html[data-tema="natale"] .btn-primary {
  background: var(--nt-rosso);
  color: #ffffff;
  border-color: var(--nt-oro);
  box-shadow: 0 0 26px rgba(200, 32, 45, 0.35);
}
html[data-tema="natale"] .btn-primary:hover {
  box-shadow: 0 0 38px rgba(200, 32, 45, 0.55), 0 0 0 1px var(--nt-oro);
}

html[data-tema="natale"] .filter-btn.active {
  background: var(--nt-rosso);
  color: #ffffff;
  border-color: var(--nt-rosso);
}

html[data-tema="natale"] .card-price,
html[data-tema="natale"] .product-hero-price {
  color: var(--nt-oro);
}
html[data-tema="natale"] .card-price .currency,
html[data-tema="natale"] .product-hero-price .currency {
  color: var(--nt-oro-cal);
}

html[data-tema="natale"] .card-badge {
  background: var(--nt-rosso);
  color: #ffffff;
}

html[data-tema="natale"] .product-card:hover {
  border-color: rgba(229, 196, 107, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(229, 196, 107, 0.12),
              0 0 60px rgba(229, 196, 107, 0.07);
}

html[data-tema="natale"] .header {
  border-bottom: 1px solid rgba(229, 196, 107, 0.2);
}

/* Avatar: rosso con il bordo oro. La lettera resta visibile — a
   differenza del fantasmino di Halloween qui non c'è una sagoma da
   mettere al suo posto che valga più dell'iniziale. */
html[data-tema="natale"] .user-avatar {
  background: var(--nt-rosso);
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--nt-oro);
}
html[data-tema="natale"] .account-avatar-big,
html[data-tema="natale"] .review-avatar {
  background-color: rgba(200, 32, 45, 0.22);
  border-color: rgba(229, 196, 107, 0.45);
  color: var(--nt-oro-cal);
}

html[data-tema="natale"] .social-link:hover,
html[data-tema="natale"] .social-link:focus-visible {
  color: var(--nt-oro);
  border-color: rgba(229, 196, 107, 0.5);
  box-shadow: 0 0 22px rgba(229, 196, 107, 0.16);
}

/* ═══════════════════════════════════
   3. IL LOGO CHE BRILLA
   L'equivalente della candela di Halloween: un bagliore oro che
   respira, lentissimo (6 secondi), e di ampiezza minima.
   ═══════════════════════════════════ */
@keyframes nt-bagliore {
  0%, 100% { text-shadow: 0 0 14px rgba(229, 196, 107, 0.35); }
  50%      { text-shadow: 0 0 24px rgba(229, 196, 107, 0.6); }
}
html[data-tema="natale"] .logo-text {
  animation: nt-bagliore 6s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════
   4. LE SAGOME
   Come a Halloween, sono SVG dentro il CSS come data URI: nessun file
   in più da caricare o da ricordarsi di cancellare a gennaio.
   Ricorda: dentro un data URI il # si scrive %23.
   ════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────
   4.1 LE LUMINARIE SOTTO L'INTESTAZIONE

   Un filo di lampadine appeso al bordo dell'intestazione, come quelle
   tese da un palazzo all'altro nelle vie del centro. È un'immagine sola
   ripetuta in orizzontale (rossa, oro, bianca, oro): si adatta da sola a
   qualunque larghezza di schermo.

   Sta FUORI dall'intestazione (top: 100%), sopra il contenuto, ma con
   pointer-events: none — non ruba un clic ai pulsanti che finiscono
   sotto.
   ───────────────────────────────── */
html[data-tema="natale"] .header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 96px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18'%3E%3Cpath d='M0 2Q12 8 24 2T48 2T72 2T96 2' fill='none' stroke='%23384048' stroke-width='1'/%3E%3Cg%3E%3Crect x='10.5' y='4' width='3' height='2.5' fill='%23384048'/%3E%3Cellipse cx='12' cy='10' rx='3' ry='4.2' fill='%23ff5a62'/%3E%3Crect x='34.5' y='4' width='3' height='2.5' fill='%23384048'/%3E%3Cellipse cx='36' cy='10' rx='3' ry='4.2' fill='%23e5c46b'/%3E%3Crect x='58.5' y='4' width='3' height='2.5' fill='%23384048'/%3E%3Cellipse cx='60' cy='10' rx='3' ry='4.2' fill='%23f4f6f8'/%3E%3Crect x='82.5' y='4' width='3' height='2.5' fill='%23384048'/%3E%3Cellipse cx='84' cy='10' rx='3' ry='4.2' fill='%23e5c46b'/%3E%3C/g%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(229, 196, 107, 0.55));
  animation: nt-luci 3.2s ease-in-out infinite;
}
/* Le lampadine "respirano" tutte insieme: un'intermittenza vera
   (accesa/spenta) sarebbe più realistica, ma un lampeggio sul bordo
   dello schermo è la cosa che più disturba la lettura — e per alcune
   persone è un problema serio, non solo un fastidio. */
@keyframes nt-luci {
  0%, 100% { opacity: 1;    filter: drop-shadow(0 0 5px rgba(229, 196, 107, 0.6)); }
  50%      { opacity: 0.78; filter: drop-shadow(0 0 2px rgba(229, 196, 107, 0.3)); }
}

/* ─────────────────────────────────
   4.2 LA NEVE SULLE CARD
   Un bordo di neve appoggiato sul lato alto di ogni card prodotto.
   Fermo, sottile: deve sembrare che abbia nevicato sulla vetrina, non
   coprire la foto.
   ───────────────────────────────── */
html[data-tema="natale"] .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  z-index: 2;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 60px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 9'%3E%3Cpath d='M0 0H60V3.5C55 3.5 54 7 49 7S43 4 38 4 33 8.5 27 8.5 21 4.5 15 4.5 9 7 5 7 1 4 0 4Z' fill='%23f4f6f8' fill-opacity='.92'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* ─────────────────────────────────
   4.3 L'ALBERO NELL'ETICHETTA DELL'EROE
   Un solo tocco, nel punto più visto della home — come la zucca.
   ───────────────────────────────── */
html[data-tema="natale"] .hero-badge::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: -2px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l1.1 2.3 2.5.3-1.8 1.7.5 2.5L12 7.1 9.7 8.3l.5-2.5-1.8-1.7 2.5-.3z' fill='%23e5c46b'/%3E%3Cpath d='M12 8l-4.5 5.5h2.4L6 18.5h4.6V21h2.8v-2.5H18l-3.9-5h2.4z' fill='%23e5c46b' fill-opacity='.85'/%3E%3Ccircle cx='10.6' cy='12.6' r='.9' fill='%23ff5a62'/%3E%3Ccircle cx='13.6' cy='16.4' r='.9' fill='%23ff5a62'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════
   5. LA NEVE CHE CADE
   Gli elementi li crea js/theme-natale.js. Qui c'è solo il moto.
   ═══════════════════════════════════ */
html[data-tema="natale"] .nt-neve {
  position: fixed;
  inset: 0;
  pointer-events: none;   /* non deve rubare un solo clic */
  z-index: 0;             /* dietro a tutto il contenuto */
  overflow: hidden;
}
html[data-tema="natale"] .nt-fiocco {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: var(--nt-neve);
  opacity: 0;
  animation: nt-caduta linear infinite;
}
/* I fiocchi grandi sono sagome a sei punte invece che puntini: pochi,
   per dare profondità alla nevicata (i grandi "vicini", i piccoli
   "lontani"). */
html[data-tema="natale"] .nt-fiocco.grande {
  border-radius: 0;
  background: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6f8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3Cpath d='M9.5 3.8L12 6.2l2.5-2.4M9.5 20.2L12 17.8l2.5 2.4M3.6 10.2L6.9 9.3 6 6M20.4 13.8l-3.3.9.9 3.3M3.6 13.8l3.3.9-.9 3.3M20.4 10.2l-3.3-.9.9-3.3'/%3E%3C/svg%3E");
}
@keyframes nt-caduta {
  0%   { transform: translateY(0)      translateX(0)     rotate(0deg);   opacity: 0; }
  8%   { opacity: var(--nt-opacita, 0.7); }
  /* L'ondeggiare laterale distingue un fiocco che cade nell'aria da un
     puntino che scorre in verticale — come la deriva delle braci. */
  30%  { transform: translateY(30vh)   translateX(14px)  rotate(60deg); }
  60%  { transform: translateY(62vh)   translateX(-10px) rotate(130deg); }
  88%  { opacity: var(--nt-opacita, 0.7); }
  100% { transform: translateY(104vh)  translateX(8px)   rotate(200deg); opacity: 0; }
}

/* ═══════════════════════════════════
   6. ACCESSIBILITÀ E BUON SENSO
   Le stesse quattro regole di Halloween.
   ═══════════════════════════════════ */

/* Meno animazioni: niente neve, niente bagliore, luminarie accese e
   ferme. Restano colori, neve sulle card e albero, che sono fermi. */
@media (prefers-reduced-motion: reduce) {
  html[data-tema="natale"] .logo-text      { animation: none; }
  html[data-tema="natale"] .header::after  { animation: none; }
  html[data-tema="natale"] .nt-neve        { display: none; }
}

/* Telefono: metà dei fiocchi e luminarie più piccole. */
@media (max-width: 700px) {
  html[data-tema="natale"] .nt-fiocco:nth-child(2n) { display: none; }
  html[data-tema="natale"] .header::after {
    height: 14px;
    background-size: 74px 14px;
  }
}

/* In stampa il tema sparisce del tutto. */
@media print {
  html[data-tema="natale"] .nt-neve,
  html[data-tema="natale"] .header::after,
  html[data-tema="natale"] .product-card::before { display: none; }
  html[data-tema="natale"] .logo-text { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   7. LA GHIRLANDA SUL TITOLO DELLA HOME
   ════════════════════════════════════════════════════════════
   Una ghirlanda attorno alla O di ULTIMOKM — la lettera rotonda, quella
   che una ghirlanda la "indossa" da sola — e due rametti di agrifoglio
   appoggiati sulla U e sulla K.

   Le lettere le avvolge js/theme-natale.js in uno <span class="nt-lettera">
   SOLO quando il tema è attivo: l'HTML della home resta "ULTIMOKM" come
   sempre, e il titolo continua a leggersi come una parola sola.

   Tutte le misure sono in em: la ghirlanda segue la grandezza del titolo,
   da 72px sul telefono a 160px sul monitor grande.
   ════════════════════════════════════════════════════════════ */

/* Annulla le regole di `.hero-title span`, che nel CSS di base sono
   pensate per il sottotitolo (blocco, carattere piccolo, a capo). */
html[data-tema="natale"] .hero-title .nt-lettera {
  display: inline;
  position: relative;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
}
html[data-tema="natale"] .hero-title .nt-lettera::before {
  content: '';
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ─── La ghirlanda attorno alla O ───
   Dietro alla lettera (z-index -1) e larga abbastanza da non toccarla:
   la O resta perfettamente leggibile, la ghirlanda le fa da cornice.

   Le misure vengono dalla O di Bebas Neue misurata nel browser, in em
   dal bordo alto dello <span>: il disegno va da 0,174em a 0,926em, quindi
   il suo centro verticale è a 0,55em ed è alto 0,75em.
   Nell'SVG (100×140) il centro dell'anello è a y=65, cioè al 46,4%
   dell'altezza: con 1,4em di altezza cade 0,65em sotto il bordo del
   riquadro, da cui top = 0,55 − 0,65 = −0,10em. A questa scala l'anello
   interno è alto circa 0,85em: 0,05em di respiro sopra e sotto la O.

   In orizzontale il centro è a metà dello span MENO metà della
   spaziatura fra le lettere (8px, tutta a destra del carattere). */
html[data-tema="natale"] .hero-title .nt-ghirlanda::before {
  width: 1em;
  height: 1.4em;
  left: calc(50% - 4px - 0.5em);
  top: -0.1em;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cellipse cx='82.5' cy='65.0' rx='6.2' ry='2.4' transform='rotate(103 82.5 65.0)' fill='%231f5536'/%3E%3Cellipse cx='87.9' cy='68.1' rx='6.2' ry='2.4' transform='rotate(58 87.9 68.1)' fill='%232c6e45'/%3E%3Cellipse cx='93.2' cy='71.9' rx='6.2' ry='2.4' transform='rotate(103 93.2 71.9)' fill='%233f8a57'/%3E%3Cellipse cx='81.9' cy='73.5' rx='6.2' ry='2.4' transform='rotate(122 81.9 73.5)' fill='%232c6e45'/%3E%3Cellipse cx='86.9' cy='77.6' rx='6.2' ry='2.4' transform='rotate(78 86.9 77.6)' fill='%233f8a57'/%3E%3Cellipse cx='91.5' cy='82.3' rx='6.2' ry='2.4' transform='rotate(123 91.5 82.3)' fill='%2324603d'/%3E%3Cellipse cx='80.3' cy='81.8' rx='6.2' ry='2.4' transform='rotate(142 80.3 81.8)' fill='%233f8a57'/%3E%3Cellipse cx='84.5' cy='86.7' rx='6.2' ry='2.4' transform='rotate(98 84.5 86.7)' fill='%2324603d'/%3E%3Cellipse cx='88.4' cy='92.0' rx='6.2' ry='2.4' transform='rotate(143 88.4 92.0)' fill='%231f5536'/%3E%3Cellipse cx='77.6' cy='89.5' rx='6.2' ry='2.4' transform='rotate(126 77.6 89.5)' fill='%2324603d'/%3E%3Cellipse cx='81.1' cy='95.0' rx='6.2' ry='2.4' transform='rotate(82 81.1 95.0)' fill='%231f5536'/%3E%3Cellipse cx='84.0' cy='100.9' rx='6.2' ry='2.4' transform='rotate(128 84.0 100.9)' fill='%232c6e45'/%3E%3Cellipse cx='74.0' cy='96.3' rx='6.2' ry='2.4' transform='rotate(148 74.0 96.3)' fill='%231f5536'/%3E%3Cellipse cx='76.5' cy='102.3' rx='6.2' ry='2.4' transform='rotate(104 76.5 102.3)' fill='%232c6e45'/%3E%3Cellipse cx='78.4' cy='108.5' rx='6.2' ry='2.4' transform='rotate(150 78.4 108.5)' fill='%233f8a57'/%3E%3Cellipse cx='69.6' cy='102.1' rx='6.2' ry='2.4' transform='rotate(170 69.6 102.1)' fill='%232c6e45'/%3E%3Cellipse cx='71.0' cy='108.3' rx='6.2' ry='2.4' transform='rotate(126 71.0 108.3)' fill='%233f8a57'/%3E%3Cellipse cx='71.9' cy='114.7' rx='6.2' ry='2.4' transform='rotate(172 71.9 114.7)' fill='%2324603d'/%3E%3Cellipse cx='64.5' cy='106.6' rx='6.2' ry='2.4' transform='rotate(158 64.5 106.6)' fill='%233f8a57'/%3E%3Cellipse cx='64.9' cy='112.9' rx='6.2' ry='2.4' transform='rotate(114 64.9 112.9)' fill='%2324603d'/%3E%3Cellipse cx='64.6' cy='119.2' rx='6.2' ry='2.4' transform='rotate(160 64.6 119.2)' fill='%231f5536'/%3E%3Cellipse cx='58.9' cy='109.7' rx='6.2' ry='2.4' transform='rotate(183 58.9 109.7)' fill='%2324603d'/%3E%3Cellipse cx='58.2' cy='115.8' rx='6.2' ry='2.4' transform='rotate(139 58.2 115.8)' fill='%231f5536'/%3E%3Cellipse cx='56.8' cy='121.8' rx='6.2' ry='2.4' transform='rotate(184 56.8 121.8)' fill='%232c6e45'/%3E%3Cellipse cx='53.0' cy='111.3' rx='6.2' ry='2.4' transform='rotate(209 53.0 111.3)' fill='%231f5536'/%3E%3Cellipse cx='51.2' cy='117.0' rx='6.2' ry='2.4' transform='rotate(165 51.2 117.0)' fill='%232c6e45'/%3E%3Cellipse cx='48.8' cy='122.5' rx='6.2' ry='2.4' transform='rotate(210 48.8 122.5)' fill='%233f8a57'/%3E%3Cellipse cx='47.0' cy='111.3' rx='6.2' ry='2.4' transform='rotate(-159 47.0 111.3)' fill='%232c6e45'/%3E%3Cellipse cx='44.2' cy='116.4' rx='6.2' ry='2.4' transform='rotate(-205 44.2 116.4)' fill='%233f8a57'/%3E%3Cellipse cx='40.8' cy='121.2' rx='6.2' ry='2.4' transform='rotate(-160 40.8 121.2)' fill='%2324603d'/%3E%3Cellipse cx='41.1' cy='109.7' rx='6.2' ry='2.4' transform='rotate(-133 41.1 109.7)' fill='%233f8a57'/%3E%3Cellipse cx='37.4' cy='114.1' rx='6.2' ry='2.4' transform='rotate(-179 37.4 114.1)' fill='%2324603d'/%3E%3Cellipse cx='33.2' cy='118.0' rx='6.2' ry='2.4' transform='rotate(-134 33.2 118.0)' fill='%231f5536'/%3E%3Cellipse cx='35.5' cy='106.6' rx='6.2' ry='2.4' transform='rotate(-108 35.5 106.6)' fill='%2324603d'/%3E%3Cellipse cx='31.1' cy='110.1' rx='6.2' ry='2.4' transform='rotate(-154 31.1 110.1)' fill='%231f5536'/%3E%3Cellipse cx='26.1' cy='113.0' rx='6.2' ry='2.4' transform='rotate(-110 26.1 113.0)' fill='%232c6e45'/%3E%3Cellipse cx='30.4' cy='102.1' rx='6.2' ry='2.4' transform='rotate(-120 30.4 102.1)' fill='%231f5536'/%3E%3Cellipse cx='25.3' cy='104.5' rx='6.2' ry='2.4' transform='rotate(-166 25.3 104.5)' fill='%232c6e45'/%3E%3Cellipse cx='19.8' cy='106.4' rx='6.2' ry='2.4' transform='rotate(-122 19.8 106.4)' fill='%233f8a57'/%3E%3Cellipse cx='26.0' cy='96.3' rx='6.2' ry='2.4' transform='rotate(-98 26.0 96.3)' fill='%232c6e45'/%3E%3Cellipse cx='20.4' cy='97.7' rx='6.2' ry='2.4' transform='rotate(-144 20.4 97.7)' fill='%233f8a57'/%3E%3Cellipse cx='14.6' cy='98.4' rx='6.2' ry='2.4' transform='rotate(-100 14.6 98.4)' fill='%2324603d'/%3E%3Cellipse cx='22.4' cy='89.5' rx='6.2' ry='2.4' transform='rotate(-76 22.4 89.5)' fill='%233f8a57'/%3E%3Cellipse cx='16.6' cy='89.7' rx='6.2' ry='2.4' transform='rotate(-122 16.6 89.7)' fill='%2324603d'/%3E%3Cellipse cx='10.5' cy='89.2' rx='6.2' ry='2.4' transform='rotate(-78 10.5 89.2)' fill='%231f5536'/%3E%3Cellipse cx='19.7' cy='81.8' rx='6.2' ry='2.4' transform='rotate(-92 19.7 81.8)' fill='%2324603d'/%3E%3Cellipse cx='13.8' cy='80.8' rx='6.2' ry='2.4' transform='rotate(-138 13.8 80.8)' fill='%231f5536'/%3E%3Cellipse cx='7.8' cy='79.2' rx='6.2' ry='2.4' transform='rotate(-93 7.8 79.2)' fill='%232c6e45'/%3E%3Cellipse cx='18.1' cy='73.5' rx='6.2' ry='2.4' transform='rotate(-72 18.1 73.5)' fill='%231f5536'/%3E%3Cellipse cx='12.3' cy='71.5' rx='6.2' ry='2.4' transform='rotate(-118 12.3 71.5)' fill='%232c6e45'/%3E%3Cellipse cx='6.6' cy='68.7' rx='6.2' ry='2.4' transform='rotate(-73 6.6 68.7)' fill='%233f8a57'/%3E%3Cellipse cx='17.5' cy='65.0' rx='6.2' ry='2.4' transform='rotate(-53 17.5 65.0)' fill='%232c6e45'/%3E%3Cellipse cx='12.1' cy='61.9' rx='6.2' ry='2.4' transform='rotate(-98 12.1 61.9)' fill='%233f8a57'/%3E%3Cellipse cx='6.8' cy='58.1' rx='6.2' ry='2.4' transform='rotate(-53 6.8 58.1)' fill='%2324603d'/%3E%3Cellipse cx='18.1' cy='56.5' rx='6.2' ry='2.4' transform='rotate(-70 18.1 56.5)' fill='%233f8a57'/%3E%3Cellipse cx='13.1' cy='52.4' rx='6.2' ry='2.4' transform='rotate(-114 13.1 52.4)' fill='%2324603d'/%3E%3Cellipse cx='8.5' cy='47.7' rx='6.2' ry='2.4' transform='rotate(-69 8.5 47.7)' fill='%231f5536'/%3E%3Cellipse cx='19.7' cy='48.2' rx='6.2' ry='2.4' transform='rotate(-50 19.7 48.2)' fill='%2324603d'/%3E%3Cellipse cx='15.5' cy='43.3' rx='6.2' ry='2.4' transform='rotate(-94 15.5 43.3)' fill='%231f5536'/%3E%3Cellipse cx='11.6' cy='38.0' rx='6.2' ry='2.4' transform='rotate(-49 11.6 38.0)' fill='%232c6e45'/%3E%3Cellipse cx='22.4' cy='40.5' rx='6.2' ry='2.4' transform='rotate(-30 22.4 40.5)' fill='%231f5536'/%3E%3Cellipse cx='18.9' cy='35.0' rx='6.2' ry='2.4' transform='rotate(-74 18.9 35.0)' fill='%232c6e45'/%3E%3Cellipse cx='16.0' cy='29.1' rx='6.2' ry='2.4' transform='rotate(-28 16.0 29.1)' fill='%233f8a57'/%3E%3Cellipse cx='26.0' cy='33.7' rx='6.2' ry='2.4' transform='rotate(-44 26.0 33.7)' fill='%232c6e45'/%3E%3Cellipse cx='23.5' cy='27.7' rx='6.2' ry='2.4' transform='rotate(-88 23.5 27.7)' fill='%233f8a57'/%3E%3Cellipse cx='21.6' cy='21.5' rx='6.2' ry='2.4' transform='rotate(-42 21.6 21.5)' fill='%2324603d'/%3E%3Cellipse cx='30.4' cy='27.9' rx='6.2' ry='2.4' transform='rotate(-22 30.4 27.9)' fill='%233f8a57'/%3E%3Cellipse cx='29.0' cy='21.7' rx='6.2' ry='2.4' transform='rotate(-66 29.0 21.7)' fill='%2324603d'/%3E%3Cellipse cx='28.1' cy='15.3' rx='6.2' ry='2.4' transform='rotate(-20 28.1 15.3)' fill='%231f5536'/%3E%3Cellipse cx='35.5' cy='23.4' rx='6.2' ry='2.4' transform='rotate(2 35.5 23.4)' fill='%2324603d'/%3E%3Cellipse cx='35.1' cy='17.1' rx='6.2' ry='2.4' transform='rotate(-42 35.1 17.1)' fill='%231f5536'/%3E%3Cellipse cx='35.4' cy='10.8' rx='6.2' ry='2.4' transform='rotate(4 35.4 10.8)' fill='%232c6e45'/%3E%3Cellipse cx='41.1' cy='20.3' rx='6.2' ry='2.4' transform='rotate(-9 41.1 20.3)' fill='%231f5536'/%3E%3Cellipse cx='41.8' cy='14.2' rx='6.2' ry='2.4' transform='rotate(-53 41.8 14.2)' fill='%232c6e45'/%3E%3Cellipse cx='43.2' cy='8.2' rx='6.2' ry='2.4' transform='rotate(-8 43.2 8.2)' fill='%233f8a57'/%3E%3Cellipse cx='47.0' cy='18.7' rx='6.2' ry='2.4' transform='rotate(17 47.0 18.7)' fill='%232c6e45'/%3E%3Cellipse cx='48.8' cy='13.0' rx='6.2' ry='2.4' transform='rotate(-27 48.8 13.0)' fill='%233f8a57'/%3E%3Cellipse cx='51.2' cy='7.5' rx='6.2' ry='2.4' transform='rotate(18 51.2 7.5)' fill='%2324603d'/%3E%3Cellipse cx='53.0' cy='18.7' rx='6.2' ry='2.4' transform='rotate(45 53.0 18.7)' fill='%233f8a57'/%3E%3Cellipse cx='55.8' cy='13.6' rx='6.2' ry='2.4' transform='rotate(-1 55.8 13.6)' fill='%2324603d'/%3E%3Cellipse cx='59.2' cy='8.8' rx='6.2' ry='2.4' transform='rotate(44 59.2 8.8)' fill='%231f5536'/%3E%3Cellipse cx='58.9' cy='20.3' rx='6.2' ry='2.4' transform='rotate(35 58.9 20.3)' fill='%2324603d'/%3E%3Cellipse cx='62.6' cy='15.9' rx='6.2' ry='2.4' transform='rotate(-11 62.6 15.9)' fill='%231f5536'/%3E%3Cellipse cx='66.8' cy='12.0' rx='6.2' ry='2.4' transform='rotate(34 66.8 12.0)' fill='%232c6e45'/%3E%3Cellipse cx='64.5' cy='23.4' rx='6.2' ry='2.4' transform='rotate(60 64.5 23.4)' fill='%231f5536'/%3E%3Cellipse cx='68.9' cy='19.9' rx='6.2' ry='2.4' transform='rotate(14 68.9 19.9)' fill='%232c6e45'/%3E%3Cellipse cx='73.9' cy='17.0' rx='6.2' ry='2.4' transform='rotate(58 73.9 17.0)' fill='%233f8a57'/%3E%3Cellipse cx='69.6' cy='27.9' rx='6.2' ry='2.4' transform='rotate(84 69.6 27.9)' fill='%232c6e45'/%3E%3Cellipse cx='74.7' cy='25.5' rx='6.2' ry='2.4' transform='rotate(38 74.7 25.5)' fill='%233f8a57'/%3E%3Cellipse cx='80.2' cy='23.6' rx='6.2' ry='2.4' transform='rotate(82 80.2 23.6)' fill='%2324603d'/%3E%3Cellipse cx='74.0' cy='33.7' rx='6.2' ry='2.4' transform='rotate(70 74.0 33.7)' fill='%233f8a57'/%3E%3Cellipse cx='79.6' cy='32.3' rx='6.2' ry='2.4' transform='rotate(24 79.6 32.3)' fill='%2324603d'/%3E%3Cellipse cx='85.4' cy='31.6' rx='6.2' ry='2.4' transform='rotate(68 85.4 31.6)' fill='%231f5536'/%3E%3Cellipse cx='77.6' cy='40.5' rx='6.2' ry='2.4' transform='rotate(92 77.6 40.5)' fill='%2324603d'/%3E%3Cellipse cx='83.4' cy='40.3' rx='6.2' ry='2.4' transform='rotate(46 83.4 40.3)' fill='%231f5536'/%3E%3Cellipse cx='89.5' cy='40.8' rx='6.2' ry='2.4' transform='rotate(90 89.5 40.8)' fill='%232c6e45'/%3E%3Cellipse cx='80.3' cy='48.2' rx='6.2' ry='2.4' transform='rotate(112 80.3 48.2)' fill='%231f5536'/%3E%3Cellipse cx='86.2' cy='49.2' rx='6.2' ry='2.4' transform='rotate(66 86.2 49.2)' fill='%232c6e45'/%3E%3Cellipse cx='92.2' cy='50.8' rx='6.2' ry='2.4' transform='rotate(111 92.2 50.8)' fill='%233f8a57'/%3E%3Cellipse cx='81.9' cy='56.5' rx='6.2' ry='2.4' transform='rotate(96 81.9 56.5)' fill='%232c6e45'/%3E%3Cellipse cx='87.7' cy='58.5' rx='6.2' ry='2.4' transform='rotate(50 87.7 58.5)' fill='%233f8a57'/%3E%3Cellipse cx='93.4' cy='61.3' rx='6.2' ry='2.4' transform='rotate(95 93.4 61.3)' fill='%2324603d'/%3E%3Ccircle cx='85.5' cy='76.3' r='2' fill='%23e0313d'/%3E%3Ccircle cx='88.7' cy='77.8' r='2' fill='%23e0313d'/%3E%3Ccircle cx='86.3' cy='79.7' r='2' fill='%23e0313d'/%3E%3Ccircle cx='84.9' cy='75.7' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='13.6' cy='83.2' r='2' fill='%23e0313d'/%3E%3Ccircle cx='16.8' cy='84.7' r='2' fill='%23e0313d'/%3E%3Ccircle cx='14.4' cy='86.6' r='2' fill='%23e0313d'/%3E%3Ccircle cx='13.0' cy='82.6' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='14.6' cy='40.4' r='2' fill='%23e0313d'/%3E%3Ccircle cx='17.8' cy='41.9' r='2' fill='%23e0313d'/%3E%3Ccircle cx='15.4' cy='43.8' r='2' fill='%23e0313d'/%3E%3Ccircle cx='14.0' cy='39.8' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='35.2' cy='14.8' r='2' fill='%23e0313d'/%3E%3Ccircle cx='38.4' cy='16.3' r='2' fill='%23e0313d'/%3E%3Ccircle cx='36.0' cy='18.2' r='2' fill='%23e0313d'/%3E%3Ccircle cx='34.6' cy='14.2' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='68.2' cy='18.7' r='2' fill='%23e0313d'/%3E%3Ccircle cx='71.4' cy='20.2' r='2' fill='%23e0313d'/%3E%3Ccircle cx='69.0' cy='22.1' r='2' fill='%23e0313d'/%3E%3Ccircle cx='67.6' cy='18.1' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='85.2' cy='48.9' r='2' fill='%23e0313d'/%3E%3Ccircle cx='88.4' cy='50.4' r='2' fill='%23e0313d'/%3E%3Ccircle cx='86.0' cy='52.3' r='2' fill='%23e0313d'/%3E%3Ccircle cx='84.6' cy='48.3' r='.7' fill='%23ffd6d9'/%3E%3Ccircle cx='75.5' cy='92.8' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='52.3' cy='110.9' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='27.5' cy='97.7' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='18.1' cy='62.3' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='29.1' cy='30.2' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='52.8' cy='19.2' r='1.3' fill='%23f0d78f'/%3E%3Ccircle cx='75.8' cy='37.8' r='1.3' fill='%23f0d78f'/%3E%3Cpath d='M50 118 C40 107 29 111 33 120 C36 126 45 122 50 118 Z' fill='%23c8202d' stroke='%238f1520' stroke-width='.8'/%3E%3Cpath d='M50 118 C60 107 71 111 67 120 C64 126 55 122 50 118 Z' fill='%23c8202d' stroke='%238f1520' stroke-width='.8'/%3E%3Cpath d='M48 119 L41 133 L45 131.5 L47 135 L50 120 Z' fill='%23b51d2a'/%3E%3Cpath d='M52 119 L59 133 L55 131.5 L53 135 L50 120 Z' fill='%23b51d2a'/%3E%3Cellipse cx='50' cy='118' rx='3.6' ry='3.2' fill='%23e0313d' stroke='%238f1520' stroke-width='.8'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 0.06em rgba(229, 196, 107, 0.25));
  animation: nt-ghirlanda-entra 1s 0.5s cubic-bezier(.2, .9, .3, 1.25) both;
}
@keyframes nt-ghirlanda-entra {
  from { transform: scale(0.6) rotate(-25deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0);      opacity: 1; }
}

/* Il sottotitolo scende di 0,2em (del titolo) per far posto alla parte
   bassa dell'anello e al fiocco, che altrimenti toccherebbero "Ultras
   Sticker Brand". Il margine è scritto nelle em del sottotitolo, che è
   0,38 volte il titolo: 0,2 / 0,38 ≈ 0,53em. Vale solo quando la
   ghirlanda c'è davvero (lo :has), quindi le altre pagine non cambiano. */
html[data-tema="natale"] .hero-title:has(.nt-ghirlanda) > span:not(.nt-lettera) {
  margin-top: calc(8px + 0.53em);
}

/* ─── L'agrifoglio sulla U e sull'ultima M ───
   Appoggiato sull'angolo alto della lettera, un po' inclinato: deve
   sembrare posato lì, non stampato sopra. */
html[data-tema="natale"] .hero-title .nt-agrifoglio::before {
  width: 0.36em;
  height: 0.25em;
  top: -0.13em;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M19 15C15 13 12 9 4 10c2 2 0 4 2 5-2 1-1 3-3 4 6 3 11 0 16-4z' fill='%232c6e45' stroke='%231f5536' stroke-width='.8'/%3E%3Cpath d='M21 15c4-2 7-6 15-5-2 2 0 4-2 5 2 1 1 3 3 4-6 3-11 0-16-4z' fill='%233f8a57' stroke='%231f5536' stroke-width='.8'/%3E%3Cpath d='M5 11.5C10 12 15 13.5 19 15M35 11.5C30 12 25 13.5 21 15' fill='none' stroke='%231a4a2e' stroke-width='.6'/%3E%3Ccircle cx='17.5' cy='16' r='3' fill='%23e0313d'/%3E%3Ccircle cx='22.5' cy='16' r='3' fill='%23c8202d'/%3E%3Ccircle cx='20' cy='12.2' r='3' fill='%23e0313d'/%3E%3Ccircle cx='19' cy='11.2' r='.9' fill='%23ffd6d9'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0.02em 0.03em rgba(0, 0, 0, 0.5));
  animation: nt-ghirlanda-entra 0.9s 0.8s cubic-bezier(.2, .9, .3, 1.25) both;
}
html[data-tema="natale"] .hero-title .nt-agrifoglio.sx::before {
  left: -0.12em;
  transform: rotate(-18deg);
  animation-name: nt-agrifoglio-sx;
}
html[data-tema="natale"] .hero-title .nt-agrifoglio.dx::before {
  right: -0.04em;
  transform: rotate(16deg);
  animation-name: nt-agrifoglio-dx;
}
@keyframes nt-agrifoglio-sx {
  from { transform: scale(0.4) rotate(-50deg); opacity: 0; }
  to   { transform: scale(1)   rotate(-18deg); opacity: 1; }
}
@keyframes nt-agrifoglio-dx {
  from { transform: scale(0.4) rotate(50deg); opacity: 0; }
  to   { transform: scale(1)   rotate(16deg); opacity: 1; }
}

/* Meno animazioni: ghirlanda e agrifoglio ci sono subito, fermi. */
@media (prefers-reduced-motion: reduce) {
  html[data-tema="natale"] .hero-title .nt-lettera::before { animation: none; }
}
@media print {
  html[data-tema="natale"] .hero-title .nt-lettera::before { display: none; }
}
