/* =========================================================
   Black Star Service — Homepage proposta
   Self-contained landing-page CSS — drop into the WP plugin.
   No header / footer (handled by site theme).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bss-bg:           #050b16;
  --bss-bg-2:         #081224;
  --bss-panel:        #0d1728;
  --bss-panel-2:      rgba(13, 23, 40, .72);
  --bss-panel-3:      rgba(13, 23, 40, .9);
  --bss-blue:         #1677FF;
  --bss-blue-strong:  #0d5fd6;
  --bss-blue-soft:    rgba(22, 119, 255, .20);
  --bss-blue-glow:    rgba(22, 119, 255, .55);
  --bss-blue-edge:    rgba(22, 119, 255, .40);
  --bss-cyan:         #4FC3F7;
  --bss-ice:          #C9E5FF;
  --bss-success:      #25d366;
  --bss-fg:           #ffffff;
  --bss-fg-1:         #d1d5db;
  --bss-fg-2:         #bac4d2;
  --bss-fg-3:         #aeb8c7;
  --bss-fg-4:         #9ca3af;
  --bss-border:       rgba(255, 255, 255, .10);
  --bss-border-strong:rgba(39, 71, 110, .90);
  --bss-border-blue:  rgba(22, 119, 255, .55);
  --bss-font-display: "Space Grotesk", Inter, system-ui, Arial, sans-serif;
  --bss-font-body:    Inter, system-ui, Arial, Helvetica, sans-serif;
  --bss-glow-blue:        0 0 50px rgba(22, 119, 255, .25);
  --bss-glow-blue-soft:   0 0 26px rgba(22, 119, 255, .20);
  --bss-glow-blue-strong: 0 0 60px rgba(22, 119, 255, .45);
  --bss-glow-text:        0 0 10px rgba(22, 119, 255, .80), 0 0 30px rgba(22, 119, 255, .45);
  --bss-shadow-cta:       0 18px 34px rgba(0, 0, 0, .32), 0 0 26px rgba(22, 119, 255, .36);
  --bss-ease:    cubic-bezier(.2, .7, .3, 1);
  --bss-ease-out: cubic-bezier(.16, 1, .3, 1);
  --bss-page-x: clamp(18px, 5vw, 72px);
}

/* Scope everything under .bss-prop so we never collide with the host theme */
.bss-prop, .bss-prop * { box-sizing: border-box; }
.bss-prop {
  background: var(--bss-bg);
  color: var(--bss-fg);
  font-family: var(--bss-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

.bss-prop a { color: inherit; text-decoration: none; }
.bss-prop button { font-family: inherit; }

.bss-prop h1, .bss-prop h2, .bss-prop h3, .bss-prop h4 {
  font-family: var(--bss-font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--bss-fg);
}
.bss-prop p { margin: 0; color: var(--bss-fg-3); }

.bss-prop__container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--bss-page-x);
  padding-right: var(--bss-page-x);
}

.bss-prop__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--bss-font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bss-blue);
  padding: 6px 12px;
  border: 1px solid var(--bss-border-blue);
  border-radius: 999px;
  background: rgba(22, 119, 255, .08);
  text-shadow: 0 0 14px rgba(22,119,255,.4);
}
.bss-prop__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bss-blue); box-shadow: 0 0 8px var(--bss-blue);
  animation: bss-pulse 2.4s var(--bss-ease) infinite;
}
@keyframes bss-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

/* =========================================================
   Buttons
   ========================================================= */
.bss-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--bss-font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--bss-ease) 220ms, box-shadow var(--bss-ease) 220ms,
              background var(--bss-ease) 220ms, border-color var(--bss-ease) 220ms;
  white-space: nowrap;
}
.bss-btn svg { width: 18px; height: 18px; }
.bss-btn:hover { transform: translateY(-2px); }
.bss-btn:active { transform: translateY(0); }

.bss-btn--primary {
  background: linear-gradient(180deg, #2486ff 0%, var(--bss-blue) 60%, var(--bss-blue-strong) 100%);
  color: #fff;
  box-shadow: var(--bss-shadow-cta);
}
.bss-btn--primary:hover {
  box-shadow: 0 22px 44px rgba(0,0,0,.4), 0 0 40px rgba(22,119,255,.6);
}
.bss-btn--ghost {
  background: rgba(13, 23, 40, .6);
  color: var(--bss-fg);
  border-color: var(--bss-border-strong);
  backdrop-filter: blur(6px);
}
.bss-btn--ghost:hover {
  border-color: var(--bss-border-blue);
  box-shadow: var(--bss-glow-blue-soft);
}
.bss-btn--whatsapp {
  background: rgba(37, 211, 102, .12);
  color: #6df09a;
  border-color: rgba(37, 211, 102, .35);
}
.bss-btn--whatsapp:hover {
  background: rgba(37, 211, 102, .22);
  border-color: #25d366;
  box-shadow: 0 0 24px rgba(37, 211, 102, .35);
}
.bss-btn--lg { padding: 18px 28px; font-size: 16px; min-height: 60px; box-sizing: border-box; line-height: 1; }
.bss-btn--lg > svg { width: 20px; height: 20px; flex-shrink: 0; }
.bss-btn .bss-btn__arrow {
  transition: transform var(--bss-ease) 220ms;
}
.bss-btn:hover .bss-btn__arrow { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.bss-hero {
  position: relative;
  padding: clamp(48px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  isolation: isolate;
  overflow: hidden;
}
/* Hero background image variant: photo fills entire hero, copy overlays */
.bss-hero--bg-image { padding: clamp(80px, 12vw, 160px) 0 clamp(72px, 10vw, 130px); min-height: clamp(560px, 78vh, 820px); }
.bss-hero--bg-image .bss-hero__bg { z-index: 0; }
.bss-hero--bg-image .bss-hero__bg::before,
.bss-hero--bg-image .bss-hero__bg::after { display: none; }
.bss-hero--bg-image .bss-hero__beams { z-index: 1; opacity: .35; mix-blend-mode: screen; }
.bss-hero--bg-image .bss-prop__container { position: relative; z-index: 2; }
.bss-hero__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.bss-hero__bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,22,.55) 0%, rgba(5,11,22,.35) 35%, rgba(5,11,22,.85) 85%, var(--bss-bg) 100%),
    linear-gradient(90deg, rgba(5,11,22,.85) 0%, rgba(5,11,22,.45) 55%, rgba(5,11,22,.2) 100%);
}
/* Hero text panel — barely transparent card behind the headline & CTAs.
   Triggered only when the hero is rendered as `--single` (the layout we use). */
.bss-hero__grid--single { grid-template-columns: minmax(0, 980px) !important; }
.bss-hero__grid--single > .bss-reveal {
  background: rgba(8, 16, 30, .88);
  border: 1px solid rgba(180, 220, 255, .12);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 40px) clamp(28px, 4vw, 52px);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 24px 60px rgba(0, 0, 0, .45);
}
.bss-hero__grid--single .bss-hero__title { max-width: 880px !important; }
.bss-hero__grid--single .bss-hero__sub   { max-width: 820px; }

/* =========================================================
   REUSABLE: framed glass panel for any section.
   Add `bss-section--framed` to a <section> and its inner
   `.bss-prop__container` becomes a semi-transparent dark
   card with rounded corners + faint border + soft shadow —
   same visual language as the hero text panel. Use this on
   any section that needs to stand out from the 3D background
   (es. "I nostri servizi", "Domande frequenti", ecc.).
   ========================================================= */
.bss-section--framed > .bss-prop__container {
  background: rgba(8, 16, 30, .88);
  border: 1px solid rgba(180, 220, 255, .12);
  border-radius: 22px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 52px);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 24px 60px rgba(0, 0, 0, .45);
}
@media (max-width: 720px) {
  .bss-section--framed > .bss-prop__container {
    padding: 28px 18px;
    border-radius: 16px;
  }
}
.bss-hero--bg-image .bss-hero__title { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.bss-hero--bg-image .bss-hero__sub { text-shadow: 0 1px 12px rgba(0,0,0,.55); }

.bss-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(22, 119, 255, .25) 0%, transparent 60%),
    radial-gradient(40% 60% at 10% 80%, rgba(79, 195, 247, .12) 0%, transparent 70%),
    linear-gradient(180deg, #050b16 0%, #081224 100%);
}
.bss-hero__bg::before, .bss-hero__bg::after {
  content: ""; position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: bss-float 14s var(--bss-ease) infinite alternate;
}
.bss-hero__bg::before {
  top: -150px; right: -150px;
  background: radial-gradient(closest-side, rgba(22, 119, 255, .9), transparent);
}
.bss-hero__bg::after {
  bottom: -300px; left: -200px;
  background: radial-gradient(closest-side, rgba(79, 195, 247, .35), transparent);
  animation-delay: -7s;
}
@keyframes bss-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.08); }
}
/* Hero visual blend variant — fade edges into background instead of hard frame */
.bss-hero__visual--blend {
  border: 0;
  box-shadow: 0 0 80px rgba(22,119,255,.20);
  background: transparent;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 55%, transparent 92%);
          mask-image: radial-gradient(120% 100% at 50% 50%, #000 55%, transparent 92%);
}
.bss-hero__visual--blend::after { display: none; }
.bss-hero__visual--blend img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

/* Service grid: enforce desktop 5x2 / mobile 2x5 + perfect icon centering */
.bss-services {
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 900px) {
  .bss-services { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}
.bss-svc {
  align-items: center !important;
  text-align: center !important;
  padding: 22px 14px 18px !important;
  min-height: 200px;
}
.bss-svc__icon {
  margin: 0 auto;
}
.bss-svc__copy { text-align: center; }
.bss-svc__cta { margin-left: auto; margin-right: auto; }
@media (max-width: 540px) {
  .bss-svc { min-height: 168px; padding: 16px 10px 14px !important; }
  .bss-svc__icon { width: 48px; height: 48px; }
  .bss-svc__icon svg { width: 26px; height: 26px; }
  .bss-svc__label { font-size: 14px; }
  .bss-svc__copy { font-size: 12px; }
}

/* Contattaci popover */
.bss-contact-pop { position: relative; display: inline-block; }
.bss-contact-pop__trigger { position: relative; z-index: 2; }
.bss-contact-pop__panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  background: rgba(8, 16, 32, .96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bss-border-blue);
  border-radius: 16px;
  box-shadow: 0 -30px 80px rgba(0,0,0,.5), 0 0 40px rgba(22,119,255,.35);
  padding: 8px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 240ms var(--bss-ease), transform 240ms var(--bss-ease);
  z-index: 30;
}
.bss-contact-pop.is-open .bss-contact-pop__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: bss-pop-explode 420ms var(--bss-ease-out);
}
@keyframes bss-pop-explode {
  0%   { transform: translateY(6px) scale(.85); filter: blur(4px); }
  60%  { transform: translateY(0) scale(1.03); filter: blur(0); }
  100% { transform: translateY(0) scale(1); }
}
.bss-contact-pop.is-open .bss-contact-pop__item {
  animation: bss-pop-item 360ms var(--bss-ease-out) backwards;
}
.bss-contact-pop.is-open .bss-contact-pop__item:nth-last-child(1) { animation-delay: 60ms; }
.bss-contact-pop.is-open .bss-contact-pop__item:nth-last-child(2) { animation-delay: 120ms; }
.bss-contact-pop.is-open .bss-contact-pop__item:nth-last-child(3) { animation-delay: 180ms; }
.bss-contact-pop.is-open .bss-contact-pop__item:nth-last-child(4) { animation-delay: 240ms; }
@keyframes bss-pop-item {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bss-contact-pop__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--bss-fg);
  text-decoration: none;
  transition: background 200ms var(--bss-ease);
}
.bss-contact-pop__item:hover {
  background: rgba(22, 119, 255, .14);
}
.bss-contact-pop__item svg {
  width: 18px; height: 18px;
  color: var(--bss-blue);
  flex-shrink: 0;
}
.bss-contact-pop__item span {
  display: flex; flex-direction: column;
  font-size: 14px;
  font-family: var(--bss-font-display);
  font-weight: 600;
}
.bss-contact-pop__item span strong {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bss-blue);
  font-weight: 700;
  margin-bottom: 2px;
}
.bss-contact-pop__item--wa svg { color: #6df09a; }
.bss-contact-pop__item--wa span strong { color: #6df09a; }
@media (max-width: 540px) {
  /* On phones the trigger may sit close to the viewport edge — anchor the panel
     to the viewport center instead of the trigger so it never gets clipped. */
  .bss-contact-pop__panel {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(320px, calc(100vw - 32px));
    min-width: 0;
    transform: translate(-50%, -50%) scale(.96);
  }
  .bss-contact-pop.is-open .bss-contact-pop__panel {
    transform: translate(-50%, -50%) scale(1);
  }
  /* Keep the per-item entrance animation but anchored on the fixed panel */
  .bss-contact-pop.is-open .bss-contact-pop__item {
    animation: bss-pop-item-mobile 360ms var(--bss-ease-out) backwards;
  }

  /* Hero "Contattaci" button only — its mobile popover was reading too far
     to the left. Nudge ~50px to the right (mobile only). */
  .bss-hero__cta .bss-contact-pop__panel {
    left: calc(50% + 50px);
  }
  /* Make the hero card padding lighter on small screens */
  .bss-hero__grid--single > .bss-reveal {
    padding: 22px 18px;
    border-radius: 16px;
  }
  /* Reduce hero title size further on small screens */
  .bss-hero__title { font-size: clamp(28px, 8vw, 44px) !important; }
  .bss-hero__sub   { font-size: 15px !important; }

  /* Service grid: stay 2 cols even on very small screens */
  .bss-services { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .bss-svc { min-height: 150px; padding: 16px 14px 14px; }
  .bss-svc__icon { width: 46px; height: 46px; }
  .bss-svc__icon svg { width: 26px; height: 26px; }
  .bss-svc__label { font-size: 14px; }
  .bss-svc__copy  { font-size: 12px; }

  /* Headlines tightened */
  .bss-section__head h2 { font-size: clamp(22px, 6vw, 32px); }
  .bss-section__head p  { font-size: 15px; }

  /* CTAs stack full-width on mobile so they're always tappable */
  .bss-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .bss-hero__cta .bss-btn,
  .bss-hero__cta .bss-contact-pop { width: 100%; }
  .bss-hero__cta .bss-contact-pop__trigger { width: 100%; justify-content: center; }

  .bss-cta__actions { flex-direction: column; align-items: stretch; }
  .bss-cta__actions .bss-btn,
  .bss-cta__actions .bss-contact-pop { width: 100%; }
  .bss-cta__actions .bss-contact-pop__trigger { width: 100%; justify-content: center; }

  /* Pillars stacked, padding tighter */
  .bss-pillar { padding: 22px 20px; }
  /* Flow cards single column */
  .bss-flow { grid-template-columns: 1fr !important; }
  /* Stats: 2x2 instead of 4 across */
  .bss-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* FAQ summary easier to tap */
  .bss-faq__item summary { padding: 16px 18px; }
  /* Audience section stack */
  .bss-audience { grid-template-columns: 1fr !important; }
  .bss-audience__divider { display: none; }

  /* Tiny CAD HUD takes less room */
  .bss-bg-hud { font-size: 10px; gap: 8px; left: 12px; bottom: 12px; }
  /* On very small screens we hide the secondary HUD label so it doesn't
     compete with the sticky CTA bar. */
}

@media (max-width: 420px) {
  .bss-bg-hud i + span,
  #bss-bg-hud-meta { display: none; }
}
  @keyframes bss-pop-item-mobile {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Workflow: branch step 3 into 3A + 3B */
.bss-workflow--split {
  grid-template-columns: 1fr 1fr 2.8fr 1fr;
}
@media (max-width: 900px) {
  .bss-workflow--split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .bss-workflow--split { grid-template-columns: 1fr; }
}
/* ===========================================================
   FLOW DIAGRAM (1 → 2 → 3A/3B → 4) — horizontal w/ neon dashed connectors
   =========================================================== */
.bss-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 20px 0;
}
.bss-flow__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.bss-flow__lines path {
  fill: none;
  stroke: var(--bss-blue);
  stroke-width: .35;
  stroke-dasharray: 1.2 1;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(22,119,255,.7));
  vector-effect: non-scaling-stroke;
  animation: bss-flow-dash 22s linear infinite;
}
@keyframes bss-flow-dash {
  to { stroke-dashoffset: -100; }
}
.bss-flow__col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bss-flow__col--1 .bss-flow-card,
.bss-flow__col--2 .bss-flow-card,
.bss-flow__col--4 .bss-flow-card {
  height: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bss-flow__col--1 .bss-flow-card h4,
.bss-flow__col--2 .bss-flow-card h4,
.bss-flow__col--4 .bss-flow-card h4 {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bss-flow__col--branch {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  height: 100%;
}
.bss-flow-card {
  background: linear-gradient(180deg, rgba(13,23,40,.85), rgba(8,16,32,.85));
  border: 1px solid var(--bss-border);
  border-radius: 18px;
  padding: 18px 16px 16px;
  text-align: center;
  position: relative;
  transition: border-color .3s var(--bss-ease), transform .3s var(--bss-ease), box-shadow .3s var(--bss-ease);
}
.bss-flow-card:hover {
  border-color: var(--bss-border-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 24px rgba(22,119,255,.25);
}
.bss-flow-card__num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2486ff, var(--bss-blue-strong));
  color: #fff;
  font-family: var(--bss-font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--bss-bg);
  box-shadow: 0 0 20px rgba(22,119,255,.6);
  white-space: nowrap;
}
.bss-flow-card__icon {
  width: 52px; height: 52px;
  margin: 14px auto 12px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(22,119,255,.10);
  border: 1px solid var(--bss-border-blue);
  color: var(--bss-blue);
}
.bss-flow-card__icon svg { width: 26px; height: 26px; }
.bss-flow-card h4 {
  font-family: var(--bss-font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--bss-fg);
  line-height: 1.25;
}
.bss-flow-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--bss-fg-2);
  margin: 0;
}
.bss-flow-card--sm { padding: 14px 12px 12px; }
.bss-flow-card--sm .bss-flow-card__icon { width: 44px; height: 44px; margin: 12px auto 10px; }
.bss-flow-card--sm .bss-flow-card__icon svg { width: 22px; height: 22px; }
.bss-flow-card--sm h4 { font-size: 14px; }
.bss-flow-card--sm p { font-size: 12px; }

/* Mobile: vertical stack, connector becomes a single dashed line down the center */
@media (max-width: 820px) {
  .bss-flow {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 8px 0;
  }
  .bss-flow__lines { display: none; }
  .bss-flow__col--branch {
    flex-direction: row;
    gap: 10px;
    height: auto;
  }
  .bss-flow__col--branch .bss-flow-card { flex: 1; }
  /* vertical dashed connector between cards */
  .bss-flow__col + .bss-flow__col::before {
    content: "";
    display: block;
    width: 0;
    height: 22px;
    margin: -22px auto 0;
    border-left: 2px dashed var(--bss-blue);
    filter: drop-shadow(0 0 4px rgba(22,119,255,.6));
  }
}
@media (max-width: 480px) {
  .bss-flow__col--branch { flex-direction: column; gap: 22px; }
}
.bss-step__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
@media (max-width: 540px) {
  .bss-step__pair { grid-template-columns: 1fr; gap: 28px; }
}
.bss-step--a, .bss-step--b { padding: 0 8px; }
.bss-step--a .bss-step__num,
.bss-step--b .bss-step__num { font-size: 13px; padding: 0 8px; width: auto; min-width: 44px; border-radius: 22px; }
/* override main connector to skip the branch column */
.bss-workflow--split::before {
  display: none !important;
}
.bss-workflow--split::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--bss-border-blue) 50%, transparent 50%);
  background-size: 8px 1px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 22%, transparent 22% 78%, #000 78% 100%);
          mask-image: linear-gradient(90deg, #000 0 22%, transparent 22% 78%, #000 78% 100%);
  z-index: 0;
}
@media (max-width: 900px) {
  .bss-workflow--split::after { display: none; }
}
/* branching dotted lines that fork from step 2 to 3A/3B and rejoin at 4 */
.bss-step__pair::before,
.bss-step__pair::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 50%;
  border-top: 1px dashed var(--bss-border-blue);
  z-index: 0;
}
.bss-step__pair::before {
  left: -10%;
  border-bottom: 1px dashed var(--bss-border-blue);
  border-top: 0;
  border-left: 1px dashed var(--bss-border-blue);
  height: 22px;
  border-bottom-left-radius: 12px;
  width: 26%;
  top: 18px;
}
.bss-step__pair::after {
  right: -10%;
  border-bottom: 1px dashed var(--bss-border-blue);
  border-top: 0;
  border-right: 1px dashed var(--bss-border-blue);
  height: 22px;
  border-bottom-right-radius: 12px;
  width: 26%;
  top: 18px;
}
@media (max-width: 900px) {
  .bss-step__pair::before, .bss-step__pair::after { display: none; }
}
.bss-hero__beams {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 40%, rgba(22, 119, 255, .12) 50%, transparent 60%),
    linear-gradient(95deg, transparent 60%, rgba(79, 195, 247, .08) 70%, transparent 80%);
  mix-blend-mode: screen;
  opacity: .8;
}

.bss-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 960px) { .bss-hero__grid { grid-template-columns: 1fr; } }

.bss-hero__title {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  margin-top: 18px;
}
.bss-hero__title .accent {
  background: linear-gradient(180deg, #76b9ff 0%, var(--bss-blue) 60%, #0d5fd6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(22,119,255,.45);
  position: relative;
}
.bss-hero__sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--bss-fg-1);
  max-width: 560px;
  line-height: 1.6;
}
.bss-hero__cta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.bss-hero__meta {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 13px;
  color: var(--bss-fg-2);
}
.bss-hero__meta strong {
  display: block;
  font-family: var(--bss-font-display);
  font-size: 28px; font-weight: 800;
  color: var(--bss-fg);
  background: linear-gradient(180deg, #fff 0%, #76b9ff 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero visual: stage frame */
.bss-hero__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--bss-border-strong);
  box-shadow: var(--bss-glow-blue-strong), 0 30px 80px rgba(0,0,0,.5);
  aspect-ratio: 4/3.2;
  background: #07101e;
}
.bss-hero__visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bss-hero__visual::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(22, 119, 255, .22);
  border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,.6);
}
.bss-hero__visual .corner {
  position: absolute; width: 28px; height: 28px;
  border: 2px solid var(--bss-blue);
  filter: drop-shadow(0 0 6px var(--bss-blue));
  pointer-events: none;
}
.bss-hero__visual .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.bss-hero__visual .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.bss-hero__visual .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.bss-hero__visual .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.bss-hero__chip {
  position: absolute;
  background: rgba(13, 23, 40, .85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bss-border-blue);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--bss-fg-1);
  box-shadow: var(--bss-glow-blue-soft);
  animation: bss-floaty 6s var(--bss-ease) infinite alternate;
}
.bss-hero__chip svg { width: 18px; height: 18px; color: var(--bss-blue); filter: drop-shadow(0 0 6px var(--bss-blue)); }
.bss-hero__chip.c1 { top: 14%; left: -22px; animation-delay: -1s; }
.bss-hero__chip.c2 { bottom: 18%; right: -18px; }
@keyframes bss-floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
.bss-section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.bss-section--alt { background: var(--bss-bg-2); }
/* Smooth gradient blend between hero and first content section */
.bss-section--blend {
  position: relative;
}
.bss-section--blend::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, var(--bss-bg) 60%, var(--bss-bg) 100%);
  pointer-events: none;
  z-index: 1;
}
.bss-section--blend > * { position: relative; z-index: 2; }

/* Section with full-bleed background image (e.g. "I nostri servizi") */
.bss-section.bss-section--bg-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Kill the blend gradient that would sit on top of the image */
.bss-section.bss-section--bg-image.bss-section--blend::before { display: none; }
.bss-section.bss-section--bg-image > .bss-section__bg {
  position: absolute; inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}
.bss-section--bg-image > .bss-section__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.bss-section--bg-image > .bss-prop__container { position: relative; z-index: 2; }

/* Soft dark-blue separator between two consecutive bg-image sections.
   Sits at the very top of THIS section as a short, semi-transparent veil —
   does not extend far and does not hide the image underneath it. */
.bss-section--bg-blend-top { position: relative; }
.bss-section--bg-blend-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(180deg,
    rgba(7, 16, 30, .72) 0%,
    rgba(7, 16, 30, .35) 55%,
    rgba(7, 16, 30, 0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* mask the blur itself so it fades out smoothly */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.bss-section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.bss-section__head h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  margin-top: 18px;
}
.bss-section__head p {
  margin-top: 14px; font-size: 17px; color: var(--bss-fg-2);
  line-height: 1.65;
}

/* =========================================================
   SERVICE GRID — 10 tiles
   ========================================================= */
.bss-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .bss-services { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px)  { .bss-services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .bss-services { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.bss-svc {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--bss-border-strong);
  background:
    linear-gradient(180deg, rgba(22,119,255,.05) 0%, transparent 60%),
    var(--bss-panel);
  text-align: left;
  cursor: pointer;
  transition: transform 350ms var(--bss-ease), border-color 350ms var(--bss-ease),
              box-shadow 350ms var(--bss-ease), background 350ms var(--bss-ease);
  overflow: hidden;
  isolation: isolate;
  min-height: 168px;
}
.bss-svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, rgba(22,119,255,.18) 0%, transparent 60%);
  opacity: 0; transition: opacity 350ms var(--bss-ease);
}
.bss-svc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bss-blue), transparent);
  opacity: 0; transition: opacity 350ms var(--bss-ease);
}
.bss-svc:hover {
  transform: translateY(-4px);
  border-color: var(--bss-border-blue);
  box-shadow: var(--bss-glow-blue);
}
.bss-svc:hover::before { opacity: 1; }
.bss-svc:hover::after { opacity: 1; }

.bss-svc__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(closest-side, rgba(22,119,255,.18), transparent 70%),
    rgba(7, 16, 30, .8);
  border: 1px solid var(--bss-border-blue);
  color: var(--bss-blue);
  filter: drop-shadow(0 0 6px rgba(22,119,255,.35));
  transition: transform 350ms var(--bss-ease), filter 350ms var(--bss-ease);
}
.bss-svc__icon svg { width: 32px; height: 32px; }
.bss-svc:hover .bss-svc__icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(22,119,255,.7));
}

.bss-svc__label {
  font-family: var(--bss-font-display);
  font-weight: 700; font-size: 16px;
  color: var(--bss-fg);
}
.bss-svc__copy {
  font-size: 13px; color: var(--bss-fg-3);
  line-height: 1.5;
}
.bss-svc__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bss-font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--bss-blue);
}
.bss-svc__cta svg { width: 14px; height: 14px; transition: transform var(--bss-ease) 220ms; }
.bss-svc:hover .bss-svc__cta svg { transform: translateX(4px); }

/* =========================================================
   PILLARS (3 large cards)
   ========================================================= */
.bss-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .bss-pillars { grid-template-columns: 1fr; } }

.bss-pillar {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--bss-border-strong);
  background: var(--bss-panel);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 320ms var(--bss-ease), box-shadow 320ms var(--bss-ease), transform 320ms var(--bss-ease);
}
.bss-pillar:hover {
  border-color: var(--bss-border-blue);
  box-shadow: var(--bss-glow-blue);
  transform: translateY(-3px);
}
.bss-pillar__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(22, 119, 255, .12);
  border: 1px solid var(--bss-border-blue);
  color: var(--bss-blue);
}
.bss-pillar__icon svg { width: 28px; height: 28px; }
.bss-pillar h3 { font-size: 22px; }
.bss-pillar__link {
  margin-top: auto;
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--bss-blue); font-weight: 700; font-size: 14px;
}
.bss-pillar__link svg { width: 14px; height: 14px; transition: transform var(--bss-ease) 220ms; }
.bss-pillar:hover .bss-pillar__link svg { transform: translateX(4px); }

/* Centered (non-clickable) pillar — icon + heading + copy stacked and centered. */
.bss-pillar--center { text-align: center; align-items: center; }
.bss-pillar--center .bss-pillar__icon { margin-left: auto; margin-right: auto; }
.bss-pillar--center p { margin-left: auto; margin-right: auto; max-width: 38ch; }

/* =========================================================
   FEATURE BAND (LED wall in evidenza)
   ========================================================= */
.bss-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--bss-border-strong);
  background: linear-gradient(135deg, #0a1424 0%, #061021 100%);
  box-shadow: var(--bss-glow-blue);
}
@media (max-width: 900px) { .bss-feature { grid-template-columns: 1fr; } }
.bss-feature__copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.bss-feature__copy h3 { font-size: clamp(26px, 3vw, 40px); }
.bss-feature__list {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.bss-feature__list li {
  display: flex; gap: 10px; align-items: center;
  font-size: 15px; color: var(--bss-fg-1);
}
.bss-feature__list li svg {
  width: 18px; height: 18px;
  color: var(--bss-blue);
  filter: drop-shadow(0 0 6px var(--bss-blue));
  flex-shrink: 0;
}
.bss-feature__img {
  position: relative; min-height: 360px;
  background:
    linear-gradient(115deg, transparent 40%, rgba(22,119,255,.18) 60%, transparent 80%),
    radial-gradient(50% 60% at 50% 50%, rgba(22,119,255,.25), transparent 70%),
    #050a14;
}
.bss-feature__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bss-feature__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0a1424 0%, transparent 30%);
  pointer-events: none;
}

/* Desktop default: the carousel wrapper is invisible — its children
   (copy + img) become the direct grid items of .bss-feature again. */
.bss-feature__track { display: contents; }
.bss-feature__dots  { display: none; }

/* =========================================================
   FEATURE BAND — MOBILE SWIPE CAROUSEL
   ========================================================= */
@media (max-width: 900px) {
  .bss-feature {
    display: block !important;
    position: relative;
  }
  .bss-feature__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bss-feature__track::-webkit-scrollbar { display: none; }
  .bss-feature__copy,
  .bss-feature__img {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .bss-feature__img { min-height: 260px; }
  .bss-feature__dots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 8px;
    z-index: 3; pointer-events: auto;
  }
  .bss-feature__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(180, 220, 255, .35);
    border: 0; padding: 0; cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
  }
  .bss-feature__dot.is-active {
    background: var(--bss-blue);
    transform: scale(1.25);
  }
}

/* =========================================================
   AUDIENCE SPLIT (esperti vs principianti)
   ========================================================= */
.bss-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
@media (max-width: 800px) { .bss-audience { grid-template-columns: 1fr; } }
.bss-audience__divider {
  position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--bss-border-blue), transparent);
  transform: translateX(-.5px);
  pointer-events: none;
}
@media (max-width: 800px) { .bss-audience__divider { display: none; } }
.bss-aud {
  padding: 32px;
  border-radius: 20px;
  background: var(--bss-panel);
  border: 1px solid var(--bss-border-strong);
  display: flex; flex-direction: column; gap: 16px;
  transition: all 320ms var(--bss-ease);
}
.bss-aud:hover {
  border-color: var(--bss-border-blue);
  box-shadow: var(--bss-glow-blue);
}
.bss-aud__tag {
  align-self: flex-start;
  font-family: var(--bss-font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(22,119,255,.1);
  color: var(--bss-blue);
  border: 1px solid var(--bss-border-blue);
}
.bss-aud h3 { font-size: 24px; }

/* =========================================================
   WORKFLOW (4 steps with neon connector)
   ========================================================= */
.bss-workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding-top: 20px;
}
@media (max-width: 900px) { .bss-workflow { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 540px) { .bss-workflow { grid-template-columns: 1fr; } }

.bss-step {
  position: relative;
  padding: 0 18px;
  text-align: center;
}
.bss-step__num {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--bss-blue);
  color: #fff; border-radius: 50%;
  font-family: var(--bss-font-display);
  font-weight: 800; font-size: 16px;
  box-shadow: 0 0 0 6px rgba(22,119,255,.12), 0 0 24px rgba(22,119,255,.5);
  position: relative; z-index: 2;
}
.bss-step__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--bss-border-blue);
  background: rgba(13,23,40,.6);
  color: var(--bss-blue);
}
.bss-step__icon svg { width: 28px; height: 28px; }
.bss-step h4 {
  font-family: var(--bss-font-display);
  font-size: 17px; font-weight: 700;
  color: var(--bss-fg);
  margin-bottom: 8px;
}
.bss-step p { font-size: 14px; color: var(--bss-fg-3); }
/* dotted connector */
.bss-workflow::before {
  content: ""; position: absolute;
  left: 12.5%; right: 12.5%; top: 40px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--bss-border-blue) 50%, transparent 50%);
  background-size: 8px 1px;
  z-index: 0;
}
@media (max-width: 900px) { .bss-workflow::before { display: none; } }

/* =========================================================
   GALLERY
   ========================================================= */
.bss-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .bss-gallery { grid-template-columns: repeat(2, 1fr); } }
.bss-gallery__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--bss-border-strong);
  background: #07101e;
  cursor: pointer;
  transition: transform 320ms var(--bss-ease), box-shadow 320ms var(--bss-ease);
}
.bss-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms var(--bss-ease);
}
.bss-gallery__item:hover { transform: translateY(-3px); box-shadow: var(--bss-glow-blue); }
.bss-gallery__item:hover img { transform: scale(1.06); }
.bss-gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,11,22,.85) 100%);
  pointer-events: none;
}
.bss-gallery__cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 8px;
}
.bss-gallery__cap span:first-child {
  font-family: var(--bss-font-display);
  font-weight: 700; font-size: 14px; color: #fff;
}
.bss-gallery__cap span:last-child {
  font-size: 11px; color: var(--bss-fg-2);
  text-transform: uppercase; letter-spacing: .1em;
}

/* =========================================================
   STATS RIBBON
   ========================================================= */
.bss-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bss-border-strong);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bss-border-strong);
}
@media (max-width: 700px) { .bss-stats { grid-template-columns: repeat(2, 1fr); } }
.bss-stat {
  background: var(--bss-panel);
  padding: 28px 20px;
  text-align: center;
}
.bss-stat__num {
  font-family: var(--bss-font-display);
  font-weight: 900; font-size: clamp(32px, 4vw, 48px);
  background: linear-gradient(180deg, #fff 0%, var(--bss-blue) 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
  line-height: 1;
}
.bss-stat__label {
  margin-top: 8px;
  font-size: 13px; color: var(--bss-fg-2);
  text-transform: uppercase; letter-spacing: .08em;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.bss-cta {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--bss-border-blue);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(80% 100% at 0% 50%, rgba(22, 119, 255, .25), transparent 60%),
    linear-gradient(135deg, #08152e 0%, #050b16 100%);
  box-shadow: var(--bss-glow-blue-strong);
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  overflow: visible;
}
.bss-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(22,119,255,.05) 60px 61px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.bss-cta > * { position: relative; z-index: 1; }
.bss-cta h2 { font-size: clamp(26px, 3vw, 40px); max-width: 520px; }
.bss-cta p { color: var(--bss-fg-2); margin-top: 8px; font-size: 15px; }
.bss-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 5; }
/* Compact popover variant for in-card placement */
.bss-contact-pop--up .bss-contact-pop__panel {
  z-index: 80;
  min-width: 260px;
  padding: 6px;
}
.bss-contact-pop--up .bss-contact-pop__item {
  padding: 9px 12px;
  gap: 10px;
}
.bss-contact-pop--up .bss-contact-pop__item span { font-size: 13px; }
.bss-contact-pop--up .bss-contact-pop__item span strong { font-size: 10px; margin-bottom: 1px; }

/* =========================================================
   FAQ
   ========================================================= */
.bss-faq {
  display: flex; flex-direction: column; gap: 10px;
}
.bss-faq__item {
  border: 1px solid var(--bss-border-strong);
  border-radius: 14px;
  background: var(--bss-panel);
  overflow: hidden;
  transition: border-color 220ms var(--bss-ease);
}
.bss-faq__item[open] { border-color: var(--bss-border-blue); box-shadow: var(--bss-glow-blue-soft); }
.bss-faq__item summary {
  padding: 18px 22px;
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--bss-font-display);
  font-weight: 700; font-size: 16px;
  color: var(--bss-fg);
}
.bss-faq__item summary::-webkit-details-marker { display: none; }
.bss-faq__item summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--bss-border-blue);
  border-radius: 50%;
  color: var(--bss-blue);
  font-size: 16px; line-height: 1;
  flex-shrink: 0;
  transition: transform 220ms var(--bss-ease);
}
.bss-faq__item[open] summary::after { content: "−"; transform: rotate(180deg); }
.bss-faq__item p {
  padding: 0 22px 20px;
  color: var(--bss-fg-2);
  font-size: 14px; line-height: 1.65;
}

/* =========================================================
   SCROLL REVEAL — initial states
   ========================================================= */
.bss-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--bss-ease-out), transform 720ms var(--bss-ease-out);
  will-change: opacity, transform;
}
.bss-reveal.is-in {
  opacity: 1; transform: translateY(0);
}
.bss-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--bss-ease-out), transform 600ms var(--bss-ease-out);
}
.bss-reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.bss-reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.bss-reveal-stagger.is-in > *:nth-child(2) { transition-delay: 60ms; }
.bss-reveal-stagger.is-in > *:nth-child(3) { transition-delay: 120ms; }
.bss-reveal-stagger.is-in > *:nth-child(4) { transition-delay: 180ms; }
.bss-reveal-stagger.is-in > *:nth-child(5) { transition-delay: 240ms; }
.bss-reveal-stagger.is-in > *:nth-child(6) { transition-delay: 300ms; }
.bss-reveal-stagger.is-in > *:nth-child(7) { transition-delay: 360ms; }
.bss-reveal-stagger.is-in > *:nth-child(8) { transition-delay: 420ms; }
.bss-reveal-stagger.is-in > *:nth-child(9) { transition-delay: 480ms; }
.bss-reveal-stagger.is-in > *:nth-child(10) { transition-delay: 540ms; }

@media (prefers-reduced-motion: reduce) {
  .bss-reveal, .bss-reveal-stagger > * {
    opacity: 1 !important; transform: none !important;
  }
  .bss-hero__bg::before, .bss-hero__bg::after,
  .bss-hero__chip, .bss-prop__eyebrow::before {
    animation: none !important;
  }
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.bss-sticky {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: none;
  padding: 10px var(--bss-page-x);
  background: linear-gradient(180deg, transparent, var(--bss-bg) 30%);
  backdrop-filter: blur(8px);
}
.bss-sticky__inner {
  display: flex; gap: 8px;
  border: 1px solid var(--bss-border-blue);
  border-radius: 14px;
  background: rgba(13,23,40,.92);
  padding: 8px;
  box-shadow: var(--bss-glow-blue-soft);
}
.bss-sticky .bss-btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 14px; }
@media (max-width: 700px) { .bss-sticky { display: block; } }

/* =========================================================
   BLUEPRINT 3D BACKGROUND (Three.js)
   The canvas is rendered into #bss-bg-canvas inside .bss-bg-stage.
   All page sections are transparent so the 3D scene reads as the
   page's environment. Cards use real glassmorphism.
   ========================================================= */
.bss-bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #030814; /* matches scene clear color */
}
#bss-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.bss-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 45%, rgba(0,0,0,.35) 85%, rgba(0,0,0,.6) 100%),
    linear-gradient(180deg, rgba(3,8,20,.55) 0%, transparent 12%, transparent 80%, rgba(3,8,20,.65) 100%);
}

/* Page stack above the background */
.bss-prop {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* All sections transparent */
.bss-section,
.bss-section--alt { background: transparent !important; }

/* Legacy decorations off — superseded by 3D scene */
.bss-section--blend::before { display: none !important; }
.bss-section--bg-blend-top::before { display: none !important; }
.bss-section--bg-image > .bss-section__bg { display: none !important; }
.bss-hero__bg { display: none !important; }
.bss-hero__beams { display: none !important; }

/* =========================================================
   GLASSMORPHISM CARDS — minimal hint only
   Cards keep their original solid panel look. A tiny amount
   of transparency lets the 3D bg breathe through without
   compromising legibility.
   ========================================================= */
.bss-svc,
.bss-pillar,
.bss-flow-card,
.bss-faq__item,
.bss-feature,
.bss-cta,
.bss-aud {
  /* Keep original borders & shadows from earlier CSS;
     just apply a faint backdrop blur so motion behind feels
     coherent. No transparent backgrounds. */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Gallery thumbnails can stay fully opaque (images) */
.bss-gallery__item { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Pop-over panels (contact menus) stay opaque-ish for legibility */
.bss-contact-pop__panel {
  background: rgba(6, 12, 24, .92) !important;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* Sticky mobile bar above the canvas */
.bss-sticky { z-index: 90; }

/* Tiny CAD-style chapter HUD (added by JS later if desired).
   Reserved hook — keeps CSS ready without breaking on absence. */
.bss-bg-hud {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--bss-font-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(180, 220, 255, .65);
  display: flex;
  gap: 14px;
  align-items: center;
}
.bss-bg-hud b { color: rgba(220, 240, 255, .9); font-weight: 700; }
.bss-bg-hud i { font-style: normal; opacity: .55; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bss-bg-stage { filter: saturate(.9); }
}


/* ============================================================
   BSS HOMEPAGE — Plugin additions: carousel + lightbox
   ============================================================ */

/* Featured carousel */
.bss-feature-carousel { position: relative; }
.bss-feature-carousel__viewport { position: relative; overflow: hidden; }
.bss-feature-carousel__track { display: grid; grid-template-columns: 1fr; }
.bss-feature-carousel__slide { grid-column: 1; grid-row: 1; opacity: 0; visibility: hidden; transition: opacity .55s ease; pointer-events: none; }
.bss-feature-carousel__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; position: relative; z-index: 1; }
.bss-feature-carousel__slide:not(.is-active) { position: absolute; inset: 0; }
.bss-feature-carousel--single .bss-feature-carousel__nav,
.bss-feature-carousel--single .bss-feature-carousel__dots { display: none; }

.bss-feature-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: #0b0c0f;
  border: 1px solid rgba(0,0,0,.08); cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 5; transition: transform .2s ease, background .2s ease;
}
.bss-feature-carousel__nav:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.bss-feature-carousel__nav--prev { left: -10px; }
.bss-feature-carousel__nav--next { right: -10px; }
.bss-feature-carousel__nav svg { width: 22px; height: 22px; }
@media (max-width: 720px){
  .bss-feature-carousel__nav--prev { left: 4px; }
  .bss-feature-carousel__nav--next { right: 4px; }
}

.bss-feature-carousel__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 18px;
}
.bss-feature-carousel__dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.25); transition: background .2s ease, transform .2s ease;
}
.bss-feature-carousel__dot.is-active { background: #fff; transform: scale(1.25); }

/* Featured price chip (optional) */
.bss-feature__price {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin: 0 0 14px;
  font-weight: 700; font-size: 18px; color: #fff;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}

/* Lightbox (gallery) */
.bss-gallery__item { cursor: zoom-in; }
.bss-lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(8,9,12,.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.bss-lightbox.is-open { display: flex; }
.bss-lightbox__img {
  max-width: min(92vw, 1400px); max-height: 86vh;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  object-fit: contain; background: #111;
}
.bss-lightbox__close,
.bss-lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(8px);
}
.bss-lightbox__close { top: 20px; right: 20px; font-size: 24px; }
.bss-lightbox__nav { top: 50%; transform: translateY(-50%); }
.bss-lightbox__nav--prev { left: 20px; }
.bss-lightbox__nav--next { right: 20px; }
.bss-lightbox__nav svg, .bss-lightbox__close svg { width: 22px; height: 22px; }
.bss-lightbox__cap {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  color: #fff; font-size: 14px; opacity: .85;
  background: rgba(0,0,0,.4); padding: 8px 14px; border-radius: 999px;
  display: flex; gap: 12px; align-items: center;
}


/* =========================================================
   v1.1.0 — MOBILE CAROUSEL FIX
   On <=900px the "In Evidenza" carousel switches from the
   desktop cross-fade overlay to a horizontal scroll-snap
   swiper, so users see ONE slide at a time and can swipe.
   Desktop behavior is untouched.
   Admin editing of slides is preserved — this is pure CSS/JS
   responsive behavior.
   ========================================================= */
@media (max-width: 900px) {
  .bss-feature-carousel__viewport { overflow: hidden; }

  .bss-feature-carousel__track {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .bss-feature-carousel__track::-webkit-scrollbar { display: none; height: 0; }

  /* Each slide is a full-width snap target — no fade overlay on mobile */
  .bss-feature-carousel__slide,
  .bss-feature-carousel__slide.is-active,
  .bss-feature-carousel__slide:not(.is-active) {
    position: relative !important;
    inset: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none;
  }

  /* Touch-first: hide the side arrows. Dots remain as a position hint
     and become tappable for jump-to-slide. */
  .bss-feature-carousel__nav { display: none !important; }

  /* Slightly bigger tap area on the dots for fingers */
  .bss-feature-carousel__dots { gap: 10px; margin-top: 14px; }
  .bss-feature-carousel__dot { width: 9px; height: 9px; padding: 8px; background-clip: content-box; }

  /* Inner feature image on mobile: cap height so the slide doesn't
     dominate the viewport when the next one peeks in via swipe */
  .bss-feature__img { min-height: 220px; }
}

/* =========================================================
   EVOLUZIONE v1.2 — AMBRA, PROFONDITÀ, CAROSELLO CILINDRICO
   Layer additivo: nessuna regola precedente è stata riscritta,
   qui si sovrascrive solo ciò che serve (ultimo in cascata).
   ---------------------------------------------------------
   1. Token ambra
   2. Tile servizi — luce calda + tilt 3D
   3. Tre fondamentali — icone ambra
   4. Statistiche — numeri oro
   5. Carosello "In evidenza" — cilindro 3D con anteprima
   6. Workflow — profondità sulle card
   7. CTA finale — cornice e bottone oro
   8. Riga di rassicurazione (preventivo gratuito)
   ========================================================= */

/* ---------- 1. Token ---------- */
:root {
  --bss-amber:        #FFB020;
  --bss-amber-soft:   #FFD27A;
  --bss-amber-deep:   #D98A0C;
  --bss-amber-ink:    #241504;
  --bss-amber-edge:   rgba(255, 176, 32, .42);
  --bss-amber-wash:   rgba(255, 176, 32, .12);
  --bss-glow-amber:       0 0 44px rgba(255, 176, 32, .22);
  --bss-glow-amber-strong:0 0 60px rgba(255, 176, 32, .40);
}

/* ---------- 2. Tile servizi: luce calda dall'alto + tilt 3D ---------- */
.bss-svc {
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--bss-rx, 0deg))
    rotateY(var(--bss-ry, 0deg))
    translateY(var(--bss-ty, 0px));
  transition:
    transform 240ms var(--bss-ease),
    border-color 350ms var(--bss-ease),
    box-shadow 350ms var(--bss-ease);
}
/* il tilt segue il mouse (vedi homepage.js) ma non deve mai coprire il testo */
.bss-svc > * { position: relative; z-index: 1; }
.bss-svc::before {
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% -12%, rgba(255, 176, 32, .26) 0%, rgba(255, 176, 32, .07) 42%, transparent 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(22, 119, 255, .14) 0%, transparent 62%);
}
.bss-svc::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bss-amber-soft), transparent);
  box-shadow: 0 0 16px rgba(255, 176, 32, .55);
  z-index: 2;
}
.bss-svc:hover {
  --bss-ty: -6px;
  border-color: var(--bss-amber-edge);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .48),
    0 0 42px rgba(255, 176, 32, .16),
    inset 0 1px 0 rgba(255, 210, 122, .20);
}
.bss-svc:hover .bss-svc__icon {
  transform: scale(1.06) translateZ(24px);
  color: var(--bss-amber-soft);
  border-color: rgba(255, 176, 32, .38);
  filter: drop-shadow(0 0 16px rgba(255, 176, 32, .60));
}
.bss-svc:hover .bss-svc__label { transform: translateZ(16px); }
.bss-svc:hover .bss-svc__cta   { color: var(--bss-amber-soft); }
.bss-svc__label { transition: transform 240ms var(--bss-ease); }
.bss-svc__cta   { transition: color 300ms var(--bss-ease); }

/* ---------- 2b. Hero: prestigio (oro sull'accento e sul pannello) ---------- */
.bss-hero__title .accent {
  background: linear-gradient(180deg, #FFE7B8 0%, var(--bss-amber-soft) 45%, var(--bss-amber) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(255, 176, 32, .38));
}
.bss-hero .bss-prop__eyebrow {
  color: var(--bss-amber-soft);
  background: var(--bss-amber-wash);
  border: 1px solid rgba(255, 176, 32, .30);
  padding: 7px 15px;
  border-radius: 999px;
  text-shadow: none;
}
.bss-hero .bss-prop__eyebrow::before {
  background: var(--bss-amber);
  box-shadow: 0 0 10px rgba(255, 176, 32, .85);
}
.bss-hero__grid--single > .bss-reveal {
  border-color: rgba(255, 210, 122, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 122, .26),
    0 24px 60px rgba(0, 0, 0, .48),
    0 0 70px rgba(255, 176, 32, .07);
}
.bss-hero__grid--single > .bss-reveal::after {
  content: "";
  position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bss-amber-soft), transparent);
  box-shadow: 0 0 20px rgba(255, 176, 32, .45);
  pointer-events: none;
}
.bss-hero__grid--single > .bss-reveal { position: relative; }

/* ---------- 2c. Sezione servizi: un filo d'oro per togliere la piattezza ---------- */
.bss-section--blend.bss-section--framed > .bss-prop__container {
  position: relative;
  border-color: rgba(255, 210, 122, .13);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 122, .20),
    0 24px 60px rgba(0, 0, 0, .45);
}
.bss-section--blend.bss-section--framed > .bss-prop__container::after {
  content: "";
  position: absolute; left: 16%; right: 16%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 122, .75), transparent);
  box-shadow: 0 0 18px rgba(255, 176, 32, .32);
  pointer-events: none;
}
.bss-section--blend .bss-section__head .bss-prop__eyebrow {
  color: var(--bss-amber-soft);
  background: var(--bss-amber-wash);
  border: 1px solid rgba(255, 176, 32, .28);
  padding: 7px 15px;
  border-radius: 999px;
  text-shadow: none;
}
.bss-section--blend .bss-section__head .bss-prop__eyebrow::before {
  background: var(--bss-amber);
  box-shadow: 0 0 10px rgba(255, 176, 32, .85);
}
/* riposo: una punta di caldo sul bordo alto della tile, appena percettibile */
.bss-svc {
  box-shadow: inset 0 1px 0 rgba(255, 210, 122, .10);
}

/* ---------- 3. Tre fondamentali: icone ambra ---------- */
.bss-pillar__icon {
  color: var(--bss-amber);
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(255, 176, 32, .18), rgba(255, 176, 32, .06));
  border: 1px solid rgba(255, 176, 32, .30);
  box-shadow: 0 0 26px rgba(255, 176, 32, .12), inset 0 1px 0 rgba(255, 210, 122, .18);
}
.bss-pillar__icon svg { filter: drop-shadow(0 0 10px rgba(255, 176, 32, .45)); }
.bss-pillar:hover {
  border-color: var(--bss-amber-edge);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42), 0 0 46px rgba(255, 176, 32, .16);
}

/* ---------- 4. Statistiche: numeri oro ---------- */
.bss-stat__num {
  background: linear-gradient(180deg, #ffffff 0%, var(--bss-amber-soft) 62%, var(--bss-amber) 118%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 176, 32, .22));
}
.bss-stat { transition: border-color 320ms var(--bss-ease), box-shadow 320ms var(--bss-ease); }
.bss-stat:hover {
  border-color: rgba(255, 176, 32, .28);
  box-shadow: 0 0 34px rgba(255, 176, 32, .12);
}

/* ---------- 5. Carosello "In evidenza": cilindro 3D ---------- */
/* Badge / prezzo / rifiniture ambra sulla card attiva */
.bss-feature__copy .bss-prop__eyebrow {
  color: var(--bss-amber-soft);
  background: var(--bss-amber-wash);
  border: 1px solid rgba(255, 176, 32, .28);
  padding: 7px 14px;
  border-radius: 999px;
  align-self: flex-start;
}
.bss-feature__copy .bss-prop__eyebrow::before {
  background: var(--bss-amber);
  box-shadow: 0 0 10px rgba(255, 176, 32, .85);
}
.bss-feature__price {
  color: var(--bss-amber-soft);
  border-color: rgba(255, 176, 32, .35) !important;
  background: linear-gradient(180deg, rgba(255, 176, 32, .16), rgba(255, 176, 32, .06)) !important;
}
.bss-feature-carousel__nav {
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.bss-feature-carousel__nav:hover {
  border-color: var(--bss-amber-edge);
  box-shadow: 0 0 26px rgba(255, 176, 32, .35);
}
.bss-feature-carousel__dot.is-active {
  background: var(--bss-amber);
  box-shadow: 0 0 12px rgba(255, 176, 32, .70);
}

@media (min-width: 901px) {
  .bss-feature-carousel__viewport {
    overflow: hidden;
    padding: 34px 0 40px;
    perspective: 2000px;
    perspective-origin: 50% 46%;
  }
  .bss-feature-carousel__track {
    position: relative;
    transform-style: preserve-3d;
  }

  /* Tutte le slide vivono nella stessa cella: nessuna è più assoluta,
     così la più alta detta l'altezza e le altre restano trasformabili. */
  .bss-feature-carousel__slide,
  .bss-feature-carousel__slide.is-active,
  .bss-feature-carousel__slide:not(.is-active) {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    width: 84%;
    justify-self: center;
    visibility: visible;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    transition:
      transform 780ms var(--bss-ease-out),
      opacity 520ms ease,
      filter 520ms ease;
    will-change: transform, opacity;
  }

  /* stato base = card lontana, dietro la scena */
  .bss-feature-carousel__track > .bss-feature-carousel__slide {
    transform: translateZ(-520px);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    filter: brightness(.42) saturate(.7);
  }
  /* le due adiacenti: ruotate sul cilindro, in ombra, visibili ai bordi.
     La geometria dell'anteprima è parametrica: --bss-peek-x/-z/-rot
     si possono ritoccare sul contenitore .bss-feature-carousel. */
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-next {
    transform:
      translateX(var(--bss-peek-x, 48%))
      translateZ(var(--bss-peek-z, -280px))
      rotateY(calc(-1 * var(--bss-peek-rot, 34deg)));
    opacity: .55;
    z-index: 1;
    filter: brightness(.38) saturate(.7) blur(1.4px);
  }
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-prev {
    transform:
      translateX(calc(-1 * var(--bss-peek-x, 48%)))
      translateZ(var(--bss-peek-z, -280px))
      rotateY(var(--bss-peek-rot, 34deg));
    opacity: .55;
    z-index: 1;
    filter: brightness(.38) saturate(.7) blur(1.4px);
  }
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-active {
    transform: translateZ(0);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    filter: none;
  }

  /* la card in primo piano guadagna rilievo e un filo di luce ambra */
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-active {
    border-color: rgba(255, 176, 32, .26);
    box-shadow:
      0 40px 90px rgba(0, 0, 0, .60),
      0 0 60px rgba(22, 119, 255, .18),
      inset 0 1px 0 rgba(255, 210, 122, .18);
  }
  .bss-feature-carousel__slide::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--bss-amber-soft), transparent);
    box-shadow: 0 0 18px rgba(255, 176, 32, .55);
    opacity: 0;
    transition: opacity 600ms ease;
    z-index: 4;
  }
  .bss-feature-carousel__slide.is-active::before { opacity: 1; }

  /* frecce dentro il padding, sopra le card di anteprima */
  .bss-feature-carousel__nav--prev { left: 2px; }
  .bss-feature-carousel__nav--next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .bss-feature-carousel__slide { transition: opacity 200ms linear !important; }
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-prev,
  .bss-feature-carousel__track > .bss-feature-carousel__slide.is-next { opacity: 0; }
}

/* ---------- 6. Workflow: profondità sulle card ---------- */
.bss-flow-card {
  transform-style: preserve-3d;
  transform:
    perspective(1000px)
    rotateX(var(--bss-rx, 0deg))
    rotateY(var(--bss-ry, 0deg))
    translateY(var(--bss-ty, 0px));
}
.bss-flow-card:hover {
  --bss-ty: -5px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .45),
    0 0 34px rgba(255, 176, 32, .16),
    0 0 26px rgba(22, 119, 255, .20);
}
/* alone caldo attorno alle card, molto tenue; i numeri restano blu */
.bss-flow-card {
  box-shadow:
    0 6px 44px rgba(255, 176, 32, .09),
    inset 0 1px 0 rgba(255, 210, 122, .10);
}
.bss-flow-card__num,
.bss-flow-card__icon { transition: transform 300ms var(--bss-ease); }
.bss-flow-card:hover .bss-flow-card__num  { transform: translateX(-50%) translateZ(34px); }
.bss-flow-card:hover .bss-flow-card__icon { transform: translateZ(18px); }

/* Utility: disattiva il tilt al mouse (es. ambienti a bassa potenza) */
.bss-no-tilt .bss-svc,
.bss-no-tilt .bss-flow-card { --bss-rx: 0deg !important; --bss-ry: 0deg !important; }

/* ---------- 7. CTA finale: cornice e bottone oro ---------- */
.bss-cta {
  border-color: rgba(255, 176, 32, .24);
  background:
    radial-gradient(70% 110% at 100% 50%, rgba(255, 176, 32, .16), transparent 60%),
    radial-gradient(80% 100% at 0% 50%, rgba(22, 119, 255, .25), transparent 60%),
    linear-gradient(135deg, #08152e 0%, #050b16 100%);
  box-shadow: 0 0 60px rgba(22, 119, 255, .24), 0 0 90px rgba(255, 176, 32, .10);
}
.bss-cta__actions .bss-btn--primary {
  background: linear-gradient(180deg, #FFC64D 0%, var(--bss-amber) 55%, var(--bss-amber-deep) 100%);
  color: var(--bss-amber-ink);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .38), 0 0 30px rgba(255, 176, 32, .38);
}
.bss-cta__actions .bss-btn--primary:hover {
  box-shadow: 0 24px 46px rgba(0, 0, 0, .45), 0 0 48px rgba(255, 176, 32, .62);
}

/* ---------- 8. Riga di rassicurazione ---------- */
.bss-reassure {
  flex-basis: 100%;
  display: flex; align-items: center; gap: 9px;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--bss-fg-2);
  letter-spacing: .01em;
}
.bss-reassure svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--bss-amber);
  filter: drop-shadow(0 0 8px rgba(255, 176, 32, .55));
}
@media (max-width: 540px) { .bss-reassure { font-size: 12.5px; } }
