/* ─── SHELL: ticker, nav, footer ─────────────────────
   Importa solo i componenti del guscio della pagina.
   Il contenuto interno usa Bootstrap 5 + style.css.
──────────────────────────────────────────────────── */

:root {
  --ink: #0E0C0B;
  --paper: #F6F3EC;
  --warm: #EAE5DA;
  --dark: #161210;
  --dark-2: #1F1C1A;
  --teal: #0BBDC2;
  --teal-d: #089BA0;
  --teal-glow: rgba(11, 189, 194, .12);
  --red: #C8351E;
  --gold: #B8963A;
  --muted: #857F77;
  --border: #DDD8CE;
  --border-dark: rgba(255, 255, 255, .07);
  --white: #FFFFFF;
  --f-d: 'Cabinet Grotesk', system-ui, sans-serif;
  --f-b: 'Satoshi', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-b);
  background: var(--paper);
  color: var(--ink);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Homepage: sfondo scuro sotto hero */
body.page-index {
  background: var(--dark);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* ── Tag pill ── */
.bn-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-d); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.bn-tag.teal { background: var(--teal-glow); color: var(--teal); }
.bn-tag.red  { background: rgba(200,53,30,.12); color: var(--red); }
.bn-tag.gold { background: rgba(184,150,58,.12); color: var(--gold); }

/* ══════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════ */
.bn-ticker {
  position: sticky; top: 0; z-index: 1050;
  background: var(--ink); height: 34px;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.bn-ticker__label {
  flex-shrink: 0; background: var(--red); color: var(--white);
  font-family: var(--f-d); font-size: 9px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0 14px; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
}
.bn-ticker__wrap {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}
.bn-ticker__track { display: flex; will-change: transform; }
.bn-ticker__item {
  flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; font-family: var(--f-b); font-size: 12px;
  color: rgba(255,255,255,.58); white-space: nowrap;
}
.bn-ticker__item::after {
  content: ''; display: block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--teal); opacity: .45;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
.bn-nav {
  position: sticky; top: 34px; z-index: 1000;
  padding: 13px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: background .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.bn-nav.scrolled {
  background: rgba(14,12,11,.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border-dark);
}
.bn-nav__logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.bn-nav__mark {
  width: 30px; height: 30px; border-radius: 7px; background: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bn-nav__mark svg { width: 15px; height: 15px; fill: var(--ink); }
.bn-nav__wordmark {
  font-family: var(--f-d); font-size: 16px; font-weight: 800;
  color: var(--white); letter-spacing: -.3px;
}
.bn-nav__wordmark span { color: var(--teal); }
.bn-nav__links {
  display: flex; align-items: center; gap: 2px; list-style: none;
  margin: 0; padding: 0;
}
.bn-nav__links a {
  font-family: var(--f-d); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.62); padding: 6px 11px; border-radius: 6px;
  text-decoration: none; transition: color .2s, background .2s;
}
.bn-nav__links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.bn-nav__actions { display: flex; align-items: center; gap: 8px; }
.bn-btn-ghost {
  font-family: var(--f-d); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.62); padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 100px;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: all .2s; display: inline-flex; align-items: center;
}
.bn-btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.bn-btn-teal {
  font-family: var(--f-d); font-size: 12px; font-weight: 700;
  color: var(--ink); background: var(--teal);
  padding: 8px 18px; border-radius: 100px; border: none;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: all .2s;
}
.bn-btn-teal:hover { background: var(--teal-d); transform: translateY(-1px); }
.bn-nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.bn-nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.7); border-radius: 2px;
  transition: all .25s;
}
/* Mobile nav drawer */
.bn-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(14,12,11,.96);
  backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
}
.bn-mobile-menu.open { display: flex; }
.bn-mobile-menu a {
  font-family: var(--f-d); font-size: 1.6rem; font-weight: 700;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .2s;
}
.bn-mobile-menu a:hover { color: var(--teal); }
.bn-mobile-close {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--f-d); font-size: 24px; font-weight: 300;
  color: rgba(255,255,255,.4); background: none; border: none;
  cursor: pointer; transition: color .2s;
}
.bn-mobile-close:hover { color: var(--white); }

/* ══════════════════════════════════════════════════
   CONTENUTO (layout shell)
══════════════════════════════════════════════════ */
.bn-main { min-height: 60vh; }

/* Content pages get a light background wrapper */
.bn-main.page-inner {
  background: var(--paper);
  padding-top: 32px; padding-bottom: 64px;
}

/* Page header inside content pages */
.bn-page-header {
  padding: 24px 0 20px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 28px;
}
.bn-page-header h1 {
  font-family: var(--f-d); font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--ink);
  letter-spacing: -.025em; line-height: 1.15;
}
.bn-page-header .bn-breadcrumb {
  font-family: var(--f-b); font-size: 12px;
  color: var(--muted); margin-top: 6px;
}
.bn-page-header .bn-breadcrumb a {
  color: var(--teal); text-decoration: none;
}
.bn-page-header .bn-breadcrumb a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   SECTION HEADINGS (inside content)
══════════════════════════════════════════════════ */
.bn-section-title {
  font-family: var(--f-d); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.bn-section-title a { color: var(--teal); text-decoration: none; float: right; font-size: 12px; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.bn-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 60px 40px 32px;
}
.bn-footer-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.bn-footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; text-decoration: none;
}
.bn-footer-logo-mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.bn-footer-logo-mark svg { width: 14px; height: 14px; fill: var(--ink); }
.bn-footer-wordmark {
  font-family: var(--f-d); font-size: 16px; font-weight: 800; color: var(--white);
}
.bn-footer-wordmark span { color: var(--teal); }
.bn-footer-tagline {
  font-family: var(--f-b); font-size: 13px;
  color: rgba(255,255,255,.3); line-height: 1.55; margin-bottom: 20px;
}
.bn-footer-social { display: flex; gap: 8px; }
.bn-footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-d); font-size: 10px; font-weight: 800;
  color: rgba(255,255,255,.32); text-decoration: none;
  transition: all .2s;
}
.bn-footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.bn-footer-col-title {
  font-family: var(--f-d); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.26); margin-bottom: 18px;
}
.bn-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bn-footer-links a {
  font-family: var(--f-b); font-size: 14px;
  color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s;
}
.bn-footer-links a:hover { color: var(--white); }
.bn-footer-bottom {
  max-width: 1320px; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.bn-footer-copy { font-family: var(--f-b); font-size: 12px; color: rgba(255,255,255,.18); }
.bn-footer-legal { display: flex; gap: 16px; }
.bn-footer-legal a {
  font-family: var(--f-b); font-size: 12px;
  color: rgba(255,255,255,.2); text-decoration: none; transition: color .2s;
}
.bn-footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bn-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .bn-nav { padding: 12px 20px; }
  .bn-nav__links { display: none; }
  .bn-nav__actions .bn-btn-ghost { display: none; }
  .bn-nav__hamburger { display: flex; }
  .bn-footer { padding: 48px 20px 28px; }
  .bn-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
