/* ==========================================================================
   Black Friday Drako 2026 (black_friday.php) - namespace bf-*
   Landing scura a sé: verde Drako + lime, nastri di sicurezza, biglietto perforato.
   Registro PERSUADE: respiro, immagini, movimento. Il movimento si ferma col pulsante
   «Pausa animazioni» e con prefers-reduced-motion.
   ========================================================================== */
:root {
  --bf-bg: #07090a;
  --bf-panel: #0e1310;
  --bf-panel2: #131b16;
  --bf-line: rgba(209, 237, 214, .12);
  --bf-line2: rgba(181, 246, 0, .28);
  --bf-text: #f4f7f3;
  --bf-muted: #a4b0a6;
  --bf-brand: #239635;
  --bf-acid: #b5f600;
  --bf-acid-d: #98d300;
  --bf-amber: #ffb224;
  --bf-display: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  --bf-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bf-top: 64px;
  --bf-nav: 56px;
  --bf-wrap: 1360px;
  --bf-ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bf-top) + var(--bf-nav) + 12px); color-scheme: dark; }
body.bf-body { margin: 0; background: var(--bf-bg); color: var(--bf-text); font: 15px/1.6 var(--bf-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.bf-body h1, .bf-body h2, .bf-body h3, .bf-body p, .bf-body ol, .bf-body ul, .bf-body dl, .bf-body dd { margin: 0; padding: 0; }
.bf-body ol, .bf-body ul { list-style: none; }
:where(.bf-body) a { color: inherit; text-decoration: none; }
:where(.bf-body) button, :where(.bf-body) input { font: inherit; color: inherit; }
.bf-body button { cursor: pointer; }
.bf-body img { display: block; max-width: 100%; height: auto; }
.bf-body [hidden] { display: none !important; }
.bf-body :focus-visible { outline: 2px solid var(--bf-acid); outline-offset: 3px; }
.bf-body ::selection { background: var(--bf-acid); color: #0c1304; }
.bf-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-skip { position: fixed; top: 10px; left: 12px; z-index: 200; padding: 12px 18px; background: var(--bf-acid); color: #0b1205; font-weight: 700; transform: translateY(-160%); }
.bf-skip:focus { transform: none; }
.bf-wrap { width: min(var(--bf-wrap), calc(100% - 64px)); margin-inline: auto; }
.bf-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bf-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-acid); }
.bf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-acid); }
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-acid); box-shadow: 0 0 14px var(--bf-acid); animation: bf-pulse 2.4s ease-in-out infinite; }

/* Pulsanti: mai sottolineati, nemmeno al passaggio del mouse */
.bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; border: 1px solid var(--bf-line); background: #151b17; color: var(--bf-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; transition: transform .24s var(--bf-ease), background .2s, border-color .2s, box-shadow .24s; }
.bf-btn:hover { transform: translateY(-2px); text-decoration: none !important; }
.bf-btn--primary { background: var(--bf-acid); border-color: var(--bf-acid); color: #0f1706; }
.bf-btn--primary:hover { background: #ccff3d; border-color: #ccff3d; box-shadow: 0 10px 34px rgba(181, 246, 0, .28); }
.bf-btn--ghost { background: rgba(7, 9, 10, .55); border-color: rgba(181, 246, 0, .42); }
.bf-btn--ghost:hover { border-color: var(--bf-acid); background: rgba(181, 246, 0, .09); }

/* ---------- barra fissa ---------- */
.bf-top { position: sticky; top: 0; z-index: 60; height: var(--bf-top); display: flex; align-items: center; gap: 18px; padding: 0 max(20px, calc((100vw - var(--bf-wrap)) / 2)); background: rgba(7, 9, 10, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--bf-line); }
.bf-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--bf-acid) 20%, var(--bf-brand) 60%, transparent); opacity: .7; }
.bf-top__logo img { width: 108px; height: auto; }
.bf-clock { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.bf-clock__lbl { white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-muted); font-weight: 600; }
.bf-clock__t { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--bf-display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-clock__t b { display: inline-block; min-width: 1.45ch; text-align: center; padding: 4px 6px; background: #121915; border: 1px solid var(--bf-line); border-radius: 4px; color: var(--bf-acid); font-weight: 700; }
.bf-clock__t i { font-style: normal; font-size: 12px; color: var(--bf-muted); margin-right: 5px; font-family: var(--bf-body); font-weight: 600; }
.bf-chipcode { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 14px; border: 1px dashed rgba(181, 246, 0, .6); background: #0a0f0b; color: var(--bf-acid); transition: background .2s, border-color .2s; }
.bf-chipcode:hover { background: #17210f; border-color: var(--bf-acid); }
.bf-chipcode__lbl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-muted); font-weight: 700; }
.bf-chipcode code { font: 700 20px/1 var(--bf-display); letter-spacing: .04em; }
.bf-top__act { display: flex; align-items: center; gap: 4px; }
.bf-iconbtn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid transparent; background: transparent; color: #c4cfc6; border-radius: 8px; transition: color .2s, border-color .2s; }
.bf-iconbtn:hover { color: #fff; border-color: var(--bf-line); }
.bf-cartn { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bf-acid); color: #0c1304; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* ---------- hero ---------- */
.bf-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 96px; }
.bf-hero__bg { position: absolute; inset: 0; z-index: -3; background: var(--bf-bg) url('../images/black-friday/bg_hero.webp') right center / cover no-repeat; opacity: .85; }
.bf-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bf-bg) 8%, rgba(7, 9, 10, .55) 48%, rgba(7, 9, 10, .1) 100%), linear-gradient(0deg, var(--bf-bg), transparent 28%); }
.bf-beam { position: absolute; z-index: -2; top: -30%; width: 2px; height: 170%; transform: rotate(32deg); background: linear-gradient(transparent, rgba(35, 150, 53, .4) 25%, var(--bf-acid) 50%, rgba(35, 150, 53, .4) 75%, transparent); box-shadow: 0 0 22px rgba(130, 198, 43, .6), 0 0 80px rgba(35, 150, 53, .3); animation: bf-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.bf-beam--1 { left: 44%; }
.bf-beam--2 { left: 93%; opacity: .55; animation-duration: 22s; animation-delay: -9s; }
.bf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 24px; min-height: 620px; }
.bf-hero__txt { position: relative; z-index: 2; }
.bf-title { margin: 18px 0 34px; font-family: var(--bf-display); font-weight: 700; text-transform: uppercase; line-height: .84; letter-spacing: -.01em; font-size: clamp(78px, 11.6vw, 176px); transform: skewX(-6deg); transform-origin: left bottom; }
.bf-title span { display: block; }
.bf-title__l1, .bf-title__l2 { color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.bf-title__tag { display: inline-block !important; margin-top: .04em; padding: .02em .16em .0em .1em; background: var(--bf-acid); color: #0b1205; box-shadow: 8px 8px 0 rgba(35, 150, 53, .55); }
.bf-lead { max-width: 520px; font-size: 18px; line-height: 1.55; color: #d9e2da; }
.bf-lead strong { color: var(--bf-acid); font-weight: 700; }
.bf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bf-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 38px; max-width: 560px; border-top: 1px solid var(--bf-line); }
.bf-stats div { flex: 1 1 0; min-width: 130px; padding: 16px 20px 0 0; }
.bf-stats div + div { padding-left: 20px; border-left: 1px solid var(--bf-line); }
.bf-stats dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-muted); font-weight: 600; }
.bf-stats dd { margin-top: 2px; font: 700 44px/1 var(--bf-display); color: #fff; font-variant-numeric: tabular-nums; }
.bf-hero__art { position: relative; z-index: 1; }
.bf-hero__art img { width: 100%; max-width: 760px; margin-left: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%); mask-composite: intersect; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); animation: bf-float 9s ease-in-out infinite; }
/* cartellino del prezzo */
.bf-tag { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 138px; height: 150px; padding-top: 20px; background: var(--bf-acid); color: #0b1205; clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); transform-origin: 50% 0; }
.bf-tag::before { content: ''; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bf-bg); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.bf-tag small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.bf-tag b { font: 700 50px/1 var(--bf-display); }
.bf-tag--a { top: 2%; left: 6%; transform: rotate(-9deg); animation: bf-swing 5.5s ease-in-out infinite; }
.bf-seal { position: absolute; right: 2%; bottom: 4%; width: 120px; height: 120px; animation: bf-spin 28s linear infinite; }
.bf-seal circle { fill: rgba(7, 9, 10, .82); stroke: var(--bf-acid); stroke-width: 1.2; stroke-dasharray: 2 3; }
.bf-seal text { font: 700 9.5px var(--bf-body); letter-spacing: 1.9px; fill: var(--bf-acid); text-transform: uppercase; }
.bf-seal__bolt { fill: var(--bf-acid); animation: bf-spin 28s linear infinite reverse; transform-origin: 60px 60px; }

/* ---------- nastro ---------- */
.bf-ticker { position: relative; z-index: 3; overflow: hidden; margin-top: -34px; padding: 10px 0; }
.bf-ticker__in { display: flex; width: max-content; transform: rotate(-1.2deg); background: var(--bf-acid); color: #0b1205; border-block: 3px solid #0b1205; box-shadow: 0 0 0 1px var(--bf-acid), 0 12px 40px rgba(0, 0, 0, .55); animation: bf-marquee 44s linear infinite; }
.bf-ticker__seq { display: flex; align-items: center; gap: 28px; padding: 10px 14px; white-space: nowrap; font: 700 22px/1 var(--bf-display); text-transform: uppercase; letter-spacing: .08em; }
.bf-ticker__seq i { font-style: normal; font-size: 16px; opacity: .85; }

/* ---------- codice + come funziona ---------- */
.bf-code { padding-top: 84px; }
.bf-code__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.bf-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; min-height: 230px; background: linear-gradient(125deg, #1f3314 0%, #101a0d 55%, #0b120b 100%); border-radius: 6px; -webkit-mask: radial-gradient(circle 16px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 16px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; box-shadow: inset 0 0 0 1px rgba(181, 246, 0, .35); overflow: hidden; }
.bf-ticket::before { content: '%'; position: absolute; right: 150px; top: -40px; font: 700 300px/1 var(--bf-display); color: rgba(181, 246, 0, .055); transform: rotate(-12deg); pointer-events: none; }
.bf-ticket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(220, 255, 140, .16) 50%, transparent 60%); transform: translateX(-120%); animation: bf-shine 6.5s ease-in-out infinite; pointer-events: none; }
.bf-ticket__main { position: relative; padding: 34px 34px 30px 44px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bf-ticket__code { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: #fff; text-align: left; }
.bf-ticket__code code { display: block; font: 700 clamp(32px, 4.4vw, 62px)/1 var(--bf-display); letter-spacing: .03em; color: var(--bf-acid); text-shadow: 0 0 34px rgba(181, 246, 0, .35); white-space: nowrap; }
.bf-ticket__code:hover code { color: #d6ff5a; }
.bf-ticket__meta { font-size: 14px; color: #c3cfc4; }
.bf-ticket__meta strong { color: #fff; font: 700 22px/1 var(--bf-display); margin-right: 2px; }
.bf-ticket__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 14px; border: 0; border-left: 2px dashed rgba(181, 246, 0, .4); background: rgba(181, 246, 0, .06); color: var(--bf-acid); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: background .2s; }
.bf-ticket__stub:hover { background: rgba(181, 246, 0, .14); }
.bf-ticket__stub .bf-i { width: 30px; height: 30px; }
.bf-steps { display: grid; gap: 14px; }
.bf-steps li { display: flex; gap: 18px; align-items: center; padding: 16px 20px; background: var(--bf-panel); border: 1px solid var(--bf-line); border-left: 3px solid var(--bf-brand); }
.bf-steps b { font: 700 42px/1 var(--bf-display); color: transparent; -webkit-text-stroke: 1.5px var(--bf-acid); min-width: 58px; }
.bf-steps h3 { font: 700 21px/1.15 var(--bf-display); text-transform: uppercase; letter-spacing: .02em; }
.bf-steps p { font-size: 13px; color: var(--bf-muted); margin-top: 2px; }
.bf-cond { display: flex; gap: 16px; margin-top: 30px; padding: 22px 26px; background: #141d13; border: 1px solid var(--bf-line2); border-left: 4px solid var(--bf-acid); }
.bf-cond > .bf-i { width: 26px; height: 26px; color: var(--bf-acid); margin-top: 3px; }
.bf-cond h3 { font: 700 24px/1.1 var(--bf-display); text-transform: uppercase; margin-bottom: 8px; }
.bf-cond p { font-size: 15px; color: #e8f0e6; }
.bf-cond strong { color: #fff; }
.bf-cond__no { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(181, 246, 0, .22); color: #f0fbd6 !important; }

/* ---------- ondate ---------- */
.bf-waves { position: relative; padding-top: 70px; }
.bf-waves__line { position: relative; height: 4px; margin: 0 6px; background: #19221b; border-radius: 2px; }
.bf-waves__line i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: linear-gradient(90deg, var(--bf-brand), var(--bf-acid)); border-radius: 2px; box-shadow: 0 0 16px rgba(181, 246, 0, .5); }
.bf-waves__line i::after { content: ''; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bf-acid); box-shadow: 0 0 0 5px rgba(181, 246, 0, .2), 0 0 20px var(--bf-acid); }
.bf-waves ol { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.bf-waves li { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.bf-waves li:last-child { text-align: right; align-items: flex-end; }
.bf-waves li:nth-child(2):not(:last-child) { text-align: center; align-items: center; }
.bf-waves b { font: 700 30px/1 var(--bf-display); color: var(--bf-muted); }
.bf-waves li.is-done b { color: var(--bf-acid); }
.bf-waves span { font-size: 13px; color: var(--bf-muted); }

/* ---------- navigazione per gruppo ---------- */
.bf-nav { position: sticky; top: var(--bf-top); z-index: 50; margin-top: 56px; background: rgba(7, 9, 10, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--bf-line); }
.bf-nav__in { display: flex; align-items: center; gap: 18px; width: min(var(--bf-wrap), calc(100% - 64px)); margin-inline: auto; min-height: var(--bf-nav); }
.bf-nav__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.bf-nav__chips::-webkit-scrollbar { display: none; }
.bf-nav__chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--bf-line); background: #0f1511; color: #b8c4ba; font-size: 13px; font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.bf-nav__chips a b { min-width: 22px; padding: 1px 6px; border-radius: 10px; background: #1a241d; color: var(--bf-acid); font-size: 11px; text-align: center; }
.bf-nav__chips a:hover { color: #fff; border-color: rgba(181, 246, 0, .5); }
.bf-nav__chips a.is-active { background: var(--bf-acid); border-color: var(--bf-acid); color: #0f1706; }
.bf-nav__chips a.is-active b { background: rgba(7, 9, 10, .18); color: #0f1706; }
.bf-search { flex: none; display: flex; align-items: center; gap: 8px; width: 250px; min-height: 40px; padding: 0 12px; border: 1px solid var(--bf-line); background: #0f1511; color: var(--bf-muted); transition: border-color .2s; }
.bf-search:focus-within { border-color: var(--bf-acid); }
.bf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--bf-text); }
.bf-search input::placeholder { color: #7f8b82; }

/* ---------- gruppi ---------- */
.bf-groups { padding-top: 12px; padding-bottom: 20px; }
.bf-group { padding-top: 52px; scroll-margin-top: -36px; }
.bf-group__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 176px; padding: 28px 32px; overflow: hidden; isolation: isolate; border: 1px solid var(--bf-line); background: #0b100d; }
.bf-group__head::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) right center / cover no-repeat; }
.bf-group__head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(11, 16, 13, .9) 0, rgba(11, 16, 13, 0) 24%), linear-gradient(90deg, #0b100d 22%, rgba(11, 16, 13, .72) 52%, rgba(11, 16, 13, 0) 90%); }
.bf-group__head--top::before { opacity: .9; }
.bf-group__head--next::before { background: repeating-linear-gradient(135deg, rgba(181, 246, 0, .05) 0 14px, transparent 14px 28px); }
.bf-group__txt h2 { margin: 8px 0 4px; font: 700 clamp(38px, 4.6vw, 62px)/.95 var(--bf-display); text-transform: uppercase; letter-spacing: -.005em; }
.bf-group__txt p { color: #bdc9bf; font-size: 15px; }
.bf-group__meta { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px 8px; text-align: right; font-size: 14px; color: var(--bf-muted); }
.bf-group__meta b { font: 700 46px/1 var(--bf-display); color: #fff; }
.bf-group__meta i { flex-basis: 100%; font-style: normal; font-weight: 700; color: var(--bf-acid); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; margin-top: 18px; }
.bf-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(160deg, #151c17, #0d120f 75%); border: 1px solid var(--bf-line); transition: transform .3s var(--bf-ease), border-color .3s, box-shadow .3s; }
.bf-card:hover, .bf-card:focus-within { transform: translateY(-5px); border-color: rgba(181, 246, 0, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 26px rgba(181, 246, 0, .08); }
.bf-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 10px 10px 0; padding: 14px; background: #fff; overflow: hidden; }
.bf-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--bf-ease); }
.bf-card:hover .bf-card__media img { transform: scale(1.06); }
.bf-badge { position: absolute; top: 0; left: 0; z-index: 2; padding: 4px 10px 3px; background: var(--bf-acid); color: #0b1205; font: 700 20px/1.1 var(--bf-display); letter-spacing: .01em; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-right: 16px; }
.bf-flag { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 8px; background: rgba(7, 9, 10, .88); color: #e6efe7; font-size: 11px; font-weight: 700; letter-spacing: .03em; border: 1px solid rgba(7, 9, 10, .1); }
.bf-flag--low { background: var(--bf-amber); color: #2a1a00; }
.bf-flag--when { background: #0b1205; color: var(--bf-acid); border-color: rgba(181, 246, 0, .5); }
.bf-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.bf-card__brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fa293; }
.bf-card__name { font: 600 15px/1.35 var(--bf-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 61px; }
.bf-card__name a:hover { color: var(--bf-acid); }
.bf-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.bf-price strong { font: 700 32px/1 var(--bf-display); letter-spacing: -.01em; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-price del { font-size: 13px; color: #8c998f; white-space: nowrap; }
.bf-save { font-size: 12px; font-weight: 700; color: var(--bf-acid); }
.bf-nocode, .bf-soon { font-size: 11.5px; color: #cdb170; }
.bf-soon { color: var(--bf-muted); margin-top: auto; padding-top: 8px; font-size: 13px; }
.bf-card__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 14px; background: #19231a; border: 1px solid rgba(107, 142, 64, .35); color: var(--bf-text); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
.bf-card__body .bf-save + .bf-card__cta, .bf-card__body .bf-nocode + .bf-card__cta { margin-top: 10px; }
.bf-card__cta:hover { background: var(--bf-acid); color: #0f1706; border-color: var(--bf-acid); text-decoration: none !important; }
.bf-card__cta.is-ok { background: var(--bf-brand); border-color: var(--bf-brand); color: #fff; }
.bf-card--next .bf-card__media img { filter: grayscale(.55) brightness(.92); }
.bf-card--next { border-style: dashed; }
html.bf-js .bf-group:not(.is-open) .bf-card.is-extra { display: none; }

/* ---------- prodotto in evidenza ---------- */
.bf-spot { padding-top: 40px; scroll-margin-top: -36px; }
.bf-spot__card { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; overflow: hidden; border: 1px solid var(--bf-line2); background: linear-gradient(135deg, #172013, #0b100d 70%); box-shadow: 0 0 60px rgba(181, 246, 0, .07); }
.bf-spot__media { position: relative; display: grid; place-items: center; min-height: 360px; padding: 28px; background: #fff; }
.bf-spot__media img { width: 100%; max-width: 460px; height: auto; max-height: 460px; object-fit: contain; }
.bf-spot__media .bf-badge { font-size: 28px; padding: 6px 14px 5px 12px; }
.bf-spot__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 36px clamp(24px, 4vw, 56px); }
.bf-spot__name { font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--bf-display); letter-spacing: -.005em; margin: 2px 0 0; }
.bf-spot__name a:hover { color: var(--bf-acid); }
.bf-spot__txt { max-width: 46ch; color: #c5d0c7; font-size: 15.5px; line-height: 1.55; }
.bf-price--spot { margin-top: 10px; }
.bf-price--spot strong { font-size: clamp(48px, 5.4vw, 72px); color: var(--bf-acid); }
.bf-spot__cta { align-self: stretch; max-width: 360px; margin-top: 12px; min-height: 54px; justify-content: center; font-size: 13px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; text-decoration: none !important; }
.bf-spot__cta.is-ok { background: var(--bf-brand); border-color: var(--bf-brand); color: #fff; }
html.bf-js .bf-group.is-search .bf-card.is-extra { display: flex; }
.bf-card.is-hidden { display: none !important; }
.bf-group.is-hidden { display: none; }
.bf-more { display: flex; justify-content: center; margin-top: 22px; }
.bf-more--txt { color: var(--bf-muted); }
.bf-noresults { padding: 60px 0; text-align: center; color: var(--bf-muted); font-size: 17px; }
.bf-empty { padding: 90px 0 40px; text-align: center; }
.bf-empty h2 { font: 700 clamp(40px, 5vw, 64px)/1 var(--bf-display); text-transform: uppercase; }
.bf-empty p { margin: 12px 0 26px; color: var(--bf-muted); font-size: 17px; }

/* ---------- altre promo attive nel negozio (non Black Friday) ---------- */
.bf-altre { padding-top: 76px; }
.bf-altre__intro { max-width: 760px; padding: 6px 0 4px; border-top: 1px solid var(--bf-line); padding-top: 38px; }
.bf-altre__intro h2 { margin: 8px 0 10px; font: 700 clamp(36px, 4.2vw, 56px)/1 var(--bf-display); text-transform: uppercase; }
.bf-altre__intro p { color: #c3cfc4; font-size: 16px; }
.bf-altre__intro a, .bf-noresults a { color: var(--bf-acid); text-decoration: underline !important; text-underline-offset: 3px; }
.bf-group--altre { padding-top: 34px; }
.bf-group--altre .bf-group__head { min-height: 112px; padding: 18px 28px; }
.bf-group--altre .bf-group__txt h2 { font-size: clamp(28px, 3.2vw, 42px); margin: 0 0 2px; }
.bf-group--altre .bf-group__meta b { font-size: 36px; }
.bf-altre__lista > .bf-more--txt { margin-top: 34px; }
/* Chiuse finché non si chiede (pulsante o voce della barra). Senza script la classe bf-js si toglie e restano aperte. */
.bf-altre__toggle { display: none; margin-top: 18px; }
html.bf-js .bf-altre__toggle { display: inline-flex; }
html.bf-js .bf-altre__lista:not(.is-open) { display: none; }

/* ---------- il codice sul resto del catalogo ---------- */
.bf-rest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: center; margin-top: 72px; padding: 36px 40px; background: linear-gradient(120deg, #172413, #0d130d 70%); border: 1px solid var(--bf-line2); border-left: 4px solid var(--bf-acid); }
.bf-rest h2 { margin: 8px 0 10px; font: 700 clamp(32px, 3.6vw, 50px)/1 var(--bf-display); text-transform: uppercase; }
.bf-rest p { color: #cdd8cf; max-width: 520px; }
.bf-rest p strong { color: var(--bf-acid); }
.bf-rest__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bf-rest__cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 16px; background: #0f1511; border: 1px solid var(--bf-line); font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.bf-rest__cats a:hover { border-color: var(--bf-acid); color: var(--bf-acid); background: #141d12; }
.bf-rest__cats .bf-i { width: 18px; height: 18px; color: var(--bf-acid); }

/* ---------- garanzie ---------- */
.bf-trust { padding-top: 76px; }
.bf-trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bf-line); background: var(--bf-panel); }
.bf-trust li { display: flex; gap: 14px; align-items: center; padding: 22px 22px; }
.bf-trust li + li { border-left: 1px solid var(--bf-line); }
.bf-trust .bf-i { width: 32px; height: 32px; color: var(--bf-acid); }
.bf-trust b { display: block; font: 700 19px/1.1 var(--bf-display); text-transform: uppercase; letter-spacing: .02em; }
.bf-trust span { font-size: 13px; color: var(--bf-muted); }

/* ---------- chiusura ---------- */
.bf-final { position: relative; isolation: isolate; overflow: hidden; margin-top: 84px; padding: 104px 0 96px; text-align: center; border-top: 1px solid var(--bf-line); }
.bf-final__bg { position: absolute; inset: 0; z-index: -2; background: var(--bf-bg) url('../images/black-friday/bg_cta.webp') center bottom / cover no-repeat; }
.bf-final__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bf-bg) 0%, rgba(7, 9, 10, .35) 50%, rgba(7, 9, 10, .55) 100%); }
.bf-final h2 { margin: 16px auto 30px; max-width: 900px; font: 700 clamp(46px, 7vw, 100px)/.92 var(--bf-display); text-transform: uppercase; letter-spacing: -.015em; }
.bf-final h2 em { font-style: normal; color: var(--bf-acid); }
.bf-final__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.bf-final__code { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 24px; border: 2px dashed rgba(181, 246, 0, .65); background: rgba(7, 9, 10, .75); color: var(--bf-acid); transition: background .2s, border-color .2s; }
.bf-final__code:hover { background: #17210f; border-color: var(--bf-acid); }
.bf-final__code code { font: 700 34px/1 var(--bf-display); letter-spacing: .05em; }
.bf-final__sub { margin-top: 34px; font-size: 13px; color: var(--bf-muted); }
.bf-final__sub a { text-decoration: underline !important; text-underline-offset: 3px; }
.bf-final__sub a:hover { color: #fff; }

/* ---------- piede ---------- */
.bf-foot { border-top: 1px solid var(--bf-line); background: #05070600; padding: 30px 0 40px; }
.bf-foot__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bf-foot__logo img { width: 100px; height: auto; }
.bf-foot p { flex: 1; max-width: 640px; font-size: 12px; color: #7f8b82; line-height: 1.6; }
.bf-foot nav { display: flex; gap: 22px; }
.bf-foot nav a { font-size: 13px; color: #aeb9b0; padding-block: 10px; }
.bf-foot nav a:hover { color: var(--bf-acid); }

/* ---------- avviso + finestra di riserva ---------- */
.bf-toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 14px 20px; background: #12200e; border: 1px solid rgba(181, 246, 0, .6); color: #effbd8; font-size: 14px; box-shadow: 0 18px 60px rgba(0, 0, 0, .7); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .24s var(--bf-ease); }
.bf-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bf-toast a { color: var(--bf-acid); font-weight: 700; white-space: nowrap; text-decoration: underline !important; text-underline-offset: 3px; }
.bf-dialog { width: min(420px, calc(100% - 40px)); padding: 26px; background: #111911; border: 1px solid var(--bf-acid); color: #fff; }
.bf-dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.bf-dialog h2 { font: 700 30px/1 var(--bf-display); text-transform: uppercase; }
.bf-dialog p { margin: 10px 0 14px; font-size: 14px; color: #c3cfc4; }
.bf-dialog input { width: 100%; margin-bottom: 16px; padding: 12px 14px; background: #07090a; border: 1px solid var(--bf-acid); color: var(--bf-acid); font: 700 26px var(--bf-display); }
.bf-dialog .bf-btn { width: 100%; }

/* ---------- comparsa: solo se lo script c'è (bf-js) ---------- */
html.bf-js .bf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--bf-ease), transform .6s var(--bf-ease); }
html.bf-js .bf-reveal.is-in { opacity: 1; transform: none; }
html.bf-js .bf-title.bf-reveal { transform: skewX(-6deg) translateY(22px); }
html.bf-js .bf-title.bf-reveal.is-in { transform: skewX(-6deg); }
.bf-copied .bf-ticket__code code { animation: bf-pop .5s var(--bf-ease); }

/* ---------- movimento ---------- */
@keyframes bf-pulse { 50% { box-shadow: 0 0 4px rgba(181, 246, 0, .4), 0 0 0 5px rgba(181, 246, 0, .1); } }
@keyframes bf-drift { from { translate: -40px -20px; opacity: .3; } to { translate: 50px 30px; opacity: .8; } }
@keyframes bf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bf-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-3deg); } }
@keyframes bf-spin { to { transform: rotate(360deg); } }
@keyframes bf-marquee { from { transform: translateX(0) rotate(-1.2deg); } to { transform: translateX(-50%) rotate(-1.2deg); } }
@keyframes bf-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes bf-pop { 40% { transform: scale(1.08); } }
html.bf-paused *, html.bf-paused *::before, html.bf-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.bf-js .bf-reveal { opacity: 1; transform: none; }
  html.bf-js .bf-title.bf-reveal { transform: skewX(-6deg); }
}

/* ---------- adattamento ---------- */
@media (max-width: 1199px) {
  .bf-rest { grid-template-columns: 1fr; padding: 28px 26px; margin-top: 56px; }
  .bf-ticket__code code { font-size: clamp(38px, 7vw, 72px); }
  .bf-wrap, .bf-nav__in { width: calc(100% - 48px); }
  .bf-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .bf-hero { padding: 40px 0 84px; }
  .bf-hero__art { max-width: 620px; margin: 26px auto 0; }
  .bf-hero__art img { margin-inline: auto; }
  .bf-code__grid { grid-template-columns: 1fr; }
  .bf-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-trust li:nth-child(3) { border-left: 0; }
  .bf-trust li:nth-child(n+3) { border-top: 1px solid var(--bf-line); }
}
@media (max-width: 767px) {
  :root { --bf-top: 56px; --bf-nav: 52px; }
  .bf-wrap, .bf-nav__in { width: calc(100% - 32px); }
  .bf-top { gap: 8px; padding: 0 12px; }
  .bf-top__logo img { width: 72px; }
  .bf-clock { margin-left: 0; gap: 6px; }
  .bf-clock__lbl { display: none; }
  .bf-clock__t { font-size: 20px; }
  .bf-clock__t b { padding: 3px 4px; }
  .bf-clock__t i { margin-right: 2px; font-size: 10px; }
  .bf-chipcode { min-height: 38px; padding: 4px 10px; gap: 6px; }
  .bf-chipcode__lbl { display: none; }
  .bf-chipcode code { font-size: 17px; }
  .bf-iconbtn { width: 38px; height: 38px; }
  #bf-pausa { display: none; }
  .bf-hero { padding: 28px 0 74px; }
  .bf-title { font-size: clamp(64px, 21vw, 110px); margin: 14px 0 16px; }
  .bf-lead { font-size: 16px; }
  .bf-cta .bf-btn { flex: 1 1 100%; }
  .bf-stats dd { font-size: 36px; }
  .bf-stats div { min-width: 96px; padding-right: 12px; }
  .bf-stats div + div { padding-left: 12px; }
  .bf-tag { width: 104px; height: 114px; padding-top: 14px; }
  .bf-tag b { font-size: 36px; }
  .bf-tag small { font-size: 9px; margin-top: 10px; }
  .bf-tag--a { left: 0; top: 0; }
  .bf-seal { width: 84px; height: 84px; }
  .bf-ticker__seq { font-size: 18px; gap: 20px; }
  .bf-code { padding-top: 56px; }
  .bf-ticket { grid-template-columns: minmax(0, 1fr); min-height: 0; -webkit-mask: radial-gradient(circle 14px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 14px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; }
  .bf-ticket::before { right: -10px; }
  .bf-ticket__main { padding: 26px 24px 20px 30px; }
  .bf-ticket__stub { flex-direction: row; border-left: 0; border-top: 2px dashed rgba(181, 246, 0, .4); padding: 14px; }
  .bf-ticket__stub .bf-i { width: 22px; height: 22px; }
  .bf-steps li { padding: 14px 16px; gap: 14px; }
  .bf-steps b { font-size: 34px; min-width: 46px; }
  .bf-cond { padding: 18px; gap: 12px; }
  .bf-waves { padding-top: 52px; }
  .bf-waves b { font-size: 24px; }
  .bf-waves span { font-size: 12px; }
  .bf-nav { margin-top: 40px; }
  .bf-nav__in { flex-wrap: wrap; gap: 0; padding-bottom: 8px; }
  .bf-nav__chips { flex: 1 1 100%; padding-bottom: 6px; }
  .bf-search { width: 100%; }
  .bf-group { padding-top: 40px; }
  .bf-group__head { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 150px; padding: 20px; }
  .bf-group__head::after { background: linear-gradient(90deg, #0b100d 10%, rgba(11, 16, 13, .8) 60%, rgba(11, 16, 13, .35) 100%); }
  .bf-group__meta { justify-content: flex-start; text-align: left; }
  .bf-group__meta b { font-size: 34px; }
  .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bf-card__media { margin: 8px 8px 0; padding: 8px; }
  .bf-card__body { padding: 12px 12px 14px; }
  .bf-card__name { font-size: 13.5px; min-height: 55px; }
  .bf-price strong { font-size: 26px; }
  .bf-badge { font-size: 17px; }
  .bf-card__cta { font-size: 11px; letter-spacing: .04em; padding: 10px 6px; }
  .bf-spot { padding-top: 28px; }
  .bf-spot__card { grid-template-columns: 1fr; }
  .bf-spot__media { min-height: 0; padding: 18px; }
  .bf-spot__media img { max-width: 300px; }
  .bf-spot__body { padding: 22px 18px 24px; }
  .bf-spot__cta { max-width: none; }
  .bf-rest { padding: 22px 18px; }
  .bf-rest__cats { grid-template-columns: 1fr; }
  .bf-trust { padding-top: 56px; }
  .bf-trust ul { grid-template-columns: 1fr; }
  .bf-trust li + li { border-left: 0; border-top: 1px solid var(--bf-line); }
  .bf-trust li:nth-child(3) { border-left: 0; }
  .bf-final { margin-top: 60px; padding: 72px 0 64px; }
  .bf-final__code code { font-size: 28px; }
  .bf-final__act .bf-btn, .bf-final__code { flex: 1 1 100%; justify-content: center; }
  .bf-foot__in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bf-foot nav { flex-wrap: wrap; gap: 4px 18px; }
}
@media (max-width: 479px) {
  .bf-top__logo { display: none; }
  .bf-top { gap: 6px; padding: 0 10px; }
  .bf-clock__t { font-size: 17px; gap: 2px; }
  .bf-clock__t b { padding: 3px 3px; min-width: 1.3ch; }
  .bf-clock__t i { margin-right: 1px; font-size: 9px; }
  .bf-chipcode { margin-left: auto; min-height: 36px; padding: 4px 8px; gap: 5px; }
  .bf-chipcode code { font-size: 15px; }
  .bf-chipcode .bf-i { width: 16px; height: 16px; }
  .bf-iconbtn { width: 34px; height: 34px; }
  .bf-title { font-size: clamp(56px, 18vw, 110px); }
}
@media (max-width: 359px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bf-chipcode code { font-size: 15px; }
}
@media print { .bf-top, .bf-nav, .bf-ticker, .bf-toast, .bf-beam { display: none !important; } }
