/* BN Technologies – tema scuro "Battito" */
:root {
  --bg: #070d1a;          /* fondo pagina */
  --bg-alt: #0b1426;      /* sezioni alternate */
  --surface: #0e1830;     /* pannelli */
  --border: #1e2b47;
  --border-strong: #3a4a6b;
  --text: #eef2f8;
  --muted: #9aa6bc;
  --soft: #b4bed0;
  --primary: #4d8bff;     /* accento: leggibile su fondo scuro */
  --primary-light: #8fb4ff;
  --accent: #2de0c4;      /* teal del logo */
  --warn: #ffb547;
  --radius: 28px;
  --max: 1200px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

a { color: var(--primary); }
a:hover { color: var(--primary-light); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Segnaposto da completare: rimuovere la classe quando il testo è definitivo */
.todo { background: #fff3a8; color: #6b5200; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Etichette */
.kicker, .eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.eyebrow { color: var(--accent); margin-bottom: 12px; letter-spacing: 0.06em; }
.hero .kicker { color: var(--accent); margin-bottom: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand em { font-style: normal; font-weight: 500; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: #c9d2e3; font-weight: 500; font-size: 0.9375rem; padding: 10px 14px; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav a.nav-cta { color: var(--bg); background: #fff; font-weight: 600; padding: 10px 18px; border-radius: 999px; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--primary-light); color: var(--bg); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--primary); color: var(--bg);
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--primary-light); color: var(--bg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #34425f; }
.btn-outline:hover { background: transparent; color: #fff; border-color: var(--soft); }
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: var(--primary-light); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover { color: var(--primary-light); }
.link-arrow svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 96px 0 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.035em; max-width: 940px;
}
.hero-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.hero-row p { max-width: 520px; font-size: 1.1875rem; line-height: 1.55; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pulse { display: block; width: 100%; height: 140px; margin-top: 64px; }

/* Sezioni */
section { padding: 120px 0 112px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.125rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.section-lead { max-width: 460px; font-size: 1.125rem; color: var(--muted); }

/* Servizi */
.services { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--border-strong); }
.service { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 16px; }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-top svg { width: 28px; height: 28px; color: var(--primary); }
.service-top span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.service p { color: var(--muted); }

/* Prodotti */
.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.product + .product { margin-top: 32px; }
.product-reverse { flex-wrap: wrap-reverse; }
.product-body { flex: 1 1 440px; min-width: 0; }
.product-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.product-lead { font-size: 1.125rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; margin-bottom: 36px; }
.features li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.features strong { color: var(--text); font-weight: 600; font-size: 1rem; }

/* Anteprime app (decorative) */
.mock {
  flex: 0 1 380px; min-width: 0; margin: 0 auto; background: var(--bg); color: #fff;
  border: 1px solid var(--border); border-radius: 24px; padding: 32px;
}
.mock-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ring { position: relative; width: 180px; height: 180px; margin: 28px auto 20px; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-value b { font-family: var(--font-display); font-weight: 600; font-size: 3.5rem; line-height: 1; letter-spacing: -0.03em; }
.ring-value small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.mock-status { text-align: center; color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; }
.metrics small { display: block; font-size: 0.75rem; color: var(--muted); }
.metrics b { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500; }
.sc-list { list-style: none; margin: 12px 0 20px; }
.sc-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sc-list div { flex: 1; min-width: 0; }
.sc-list b { display: block; font-weight: 600; font-size: 0.9375rem; }
.sc-list small { font-size: 0.8125rem; color: var(--muted); }
.sc-list em { font-style: normal; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.sc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sc-dot.ok { background: var(--accent); }
.sc-dot.warn { background: var(--warn); }
.sc-dot.due { background: var(--primary); }

/* Contatti */
.contact-mail {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 5vw, 4rem);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--text); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 3px; text-underline-offset: 10px;
}
.contact-mail:hover { color: var(--primary-light); }
.contatti .section-lead { margin: 20px 0 40px; max-width: 520px; }
.contact-box { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; border-top: 1px solid var(--border); padding-top: 32px; }
.contact-item h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-item p { font-size: 1.0625rem; }
.contact-item a { font-weight: 500; }

/* Footer */
.site-footer { background: #04080f; border-top: 1px solid var(--border); color: var(--muted); padding: 40px 0; font-size: 0.875rem; line-height: 1.7; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; font-weight: 500; }
.site-footer .todo { color: #6b5200; }

/* Pagine legali */
.legal { padding: 72px 0 112px; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p, .legal li { margin-bottom: 10px; color: #d3dae6; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 0.9375rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }
.lang-switch { display: flex; gap: 10px; margin-bottom: 30px; }
.lang-switch a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 500; text-decoration: none; }
.lang-switch a:hover { border-color: var(--primary); color: var(--primary-light); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 70px 0 50px; }
.notice { background: var(--surface); border: 1px solid var(--border); padding: 18px 22px; border-radius: 14px; margin: 18px 0; }

@media (max-width: 820px) {
  .product { padding: 28px 24px; gap: 32px; }
  .product + .product { margin-top: 16px; }
  .mock { padding: 24px; }
  .ring { width: 140px; height: 140px; }
  .ring-value b { font-size: 2.75rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-header .container { min-height: 64px; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: 0; }
  .nav a { padding: 10px 8px; font-size: 0.875rem; }
  .nav a.nav-cta { padding: 10px 14px; margin-left: 4px; }
  .nav .hide-mobile { display: none; }
  .hero { padding-top: 56px; }
  .hero-row { gap: 28px; }
  .actions, .actions .btn { width: 100%; justify-content: center; }
  .pulse { height: 90px; margin-top: 40px; }
  section { padding: 72px 0 64px; }
  .section-head { margin-bottom: 36px; gap: 16px; }
  .service { padding: 24px 0 8px; }
  .contact-box { margin-top: 40px; }
}
