/* ==============================================================
 * Nexim Foundation — COMPONENTS (Mission Control)
 * Status bar, network bar, header, footer, breadcrumb, post list.
 * ============================================================== */

/* ========================================================================
 * Status bar (live, in cima a TUTTI i siti)
 * ===================================================================== */
.nx-statusbar {
  background: #000; color: var(--nx-ink-soft);
  font-family: var(--nx-font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  height: 34px; position: relative; z-index: 5;
  border-bottom: 1px solid var(--nx-line);
}
.nx-statusbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 18px; padding: 0 24px;
  max-width: var(--nx-maxw); margin: 0 auto;
}
.nx-statusbar__left, .nx-statusbar__right {
  display: flex; align-items: center; gap: 18px;
}
.nx-statusbar__item {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; color: var(--nx-ink-soft);
}
.nx-statusbar__item--live { color: var(--nx-ink); }
.nx-statusbar__sep { color: var(--nx-ink-dim); }
.nx-statusbar__clock { color: var(--nx-accent); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .nx-statusbar__right { display: none; }
  .nx-statusbar__left { gap: 12px; font-size: 10px; }
}

/* ========================================================================
 * Network bar (ecosistema)
 * ===================================================================== */
.nx-netbar {
  background: #0a0b0f;
  color: var(--nx-ink-soft);
  font-family: var(--nx-font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--nx-line);
  position: relative; z-index: 4;
}
.nx-netbar__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 38px; padding: 6px 24px;
  overflow-x: auto; scrollbar-width: thin;
  max-width: var(--nx-maxw); margin: 0 auto;
}
.nx-netbar__home {
  color: var(--nx-ink); font-weight: 600;
  border-inline-end: 1px solid var(--nx-line-2);
  padding-inline-end: 14px;
}
.nx-netbar a { color: var(--nx-ink-soft); transition: color .15s; white-space: nowrap; }
.nx-netbar a:hover { color: var(--nx-ink); }
.nx-netbar a.is-current { color: var(--nx-brand); }
.nx-netbar__sep { color: var(--nx-line-2); }
.nx-netbar__group {
  color: var(--nx-ink-dim); margin-inline-start: 6px;
  font-size: 10.5px; letter-spacing: .14em;
}

/* ========================================================================
 * Main header (su Obsidian)
 * ===================================================================== */
.nx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,15,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nx-line);
}
.nx-header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.nx-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nx-logo svg { height: 30px; width: auto; }
.nx-logo-img {
  height: 30px; width: auto; max-width: 280px; display: block;
  object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1); /* logo bianco su Obsidian */
}
.nx-logo-text { font-family: var(--nx-font-display); font-weight: 700; font-size: 18px; color: var(--nx-ink); }

.nx-nav { flex: 1; margin-inline-start: 8px; }
.nx-nav__list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0; flex-wrap: wrap;
}
.nx-nav__list li { list-style: none; }
.nx-nav__list a {
  display: inline-block; padding: 8px 11px; border-radius: var(--nx-radius);
  color: var(--nx-ink-2); font-weight: 500; font-size: 13.5px;
  transition: color .15s, background .15s;
}
.nx-nav__list a:hover { color: var(--nx-ink); background: rgba(255,255,255,.04); }
.nx-nav__list .current-menu-item > a,
.nx-nav__list .current_page_item > a { color: var(--nx-brand); }

.nx-header__right { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nx-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--nx-line-2);
  border-radius: var(--nx-radius); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nx-burger span { display: block; width: 18px; height: 2px; background: var(--nx-ink); border-radius: 2px; }
@media (max-width: 1180px) {
  .nx-nav { display: none; }
  .nx-burger { display: inline-flex; }
}

/* Lang switcher (dark) */
.nx-lang { position: relative; }
.nx-lang__btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--nx-line-2);
  color: var(--nx-ink-2); padding: 7px 10px; border-radius: var(--nx-radius);
  cursor: pointer; font-family: var(--nx-font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.nx-lang__btn:hover { border-color: var(--nx-brand); color: var(--nx-ink); }
.nx-lang__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 170px; background: var(--nx-surf-2);
  border: 1px solid var(--nx-line-2); border-radius: var(--nx-radius);
  padding: 5px; box-shadow: var(--nx-shadow-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: .15s; z-index: 60;
}
.nx-lang.is-open .nx-lang__menu { opacity: 1; visibility: visible; transform: none; }
.nx-lang__menu li { list-style: none; }
.nx-lang__menu a { display: block; padding: 8px 12px; border-radius: var(--nx-radius); font-family: var(--nx-font-body); font-size: 13.5px; color: var(--nx-ink-2); font-weight: 500; }
.nx-lang__menu a:hover { background: rgba(255,255,255,.05); color: var(--nx-ink); }
.nx-lang__menu .current-lang a { color: var(--nx-brand); background: rgba(62,139,255,.08); }

/* Mobile menu */
.nx-mobile {
  position: fixed; inset: 102px 0 0 0;
  background: var(--nx-bg); padding: 24px;
  z-index: 49; overflow-y: auto;
  border-top: 1px solid var(--nx-line);
}
.nx-mobile[hidden] { display: none; }
.nx-mobile__nav { list-style: none; padding: 0; margin: 0; }
.nx-mobile__nav li { list-style: none; }
.nx-mobile__nav a {
  display: block; padding: 14px 4px;
  font-family: var(--nx-font-display); font-size: 17px; font-weight: 600;
  color: var(--nx-ink); border-bottom: 1px solid var(--nx-line);
}
.nx-mobile__cta { margin-top: 14px; }

/* ========================================================================
 * Footer (Mission Control style)
 * ===================================================================== */
.nx-footer { background: #000; color: var(--nx-ink-soft); border-top: 1px solid var(--nx-line); padding: 60px 0 0; }
.nx-footer h4 {
  font-family: var(--nx-font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nx-ink); font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--nx-line);
  margin: 0 0 18px;
}
.nx-footer a { color: var(--nx-ink-soft); transition: color .15s; }
.nx-footer a:hover { color: var(--nx-ink); }
.nx-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.nx-footer__brand .nx-logo-img { filter: brightness(0) invert(1); }
.nx-footer__tagline { color: var(--nx-ink-soft); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 16px 0 22px; }
.nx-footer__list, .nx-footer__langs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-footer__list a, .nx-footer__langs a { font-size: 13.5px; }
.nx-footer__bar {
  margin-top: 56px; padding: 22px 0;
  border-top: 1px solid var(--nx-line);
  color: var(--nx-ink-dim);
  font-family: var(--nx-font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.nx-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: var(--nx-maxw); margin: 0 auto; padding: 0 24px; }
.nx-footer__legal { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.nx-footer__offices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.nx-footer__offices li { padding: 12px 0; border-top: 1px solid var(--nx-line); font-size: 13px; line-height: 1.5; }
.nx-footer__offices strong { display: block; font-family: var(--nx-font-mono); color: var(--nx-brand); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.nx-footer__offices span { color: var(--nx-ink-2); font-size: 13px; }
@media (max-width: 980px) { .nx-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nx-footer__grid { grid-template-columns: 1fr; } .nx-footer__bar-inner { flex-direction: column; text-align: center; } }

/* ========================================================================
 * Breadcrumb (dark)
 * ===================================================================== */
.nx-breadcrumb { font-size: 12.5px; color: var(--nx-ink-soft); padding: 14px 0; font-family: var(--nx-font-mono); text-transform: uppercase; letter-spacing: .08em; }
.nx-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.nx-breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: 10px; color: var(--nx-ink-dim); }
.nx-breadcrumb a { color: var(--nx-ink-soft); }
.nx-breadcrumb a:hover { color: var(--nx-ink); }

/* ========================================================================
 * Post list / cards (dark)
 * ===================================================================== */
.nx-post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--nx-line); }
.nx-post-card { background: var(--nx-bg); padding: 28px; transition: background .2s; }
.nx-post-card:hover { background: var(--nx-surf); }
.nx-post-card__media img { aspect-ratio: 16/10; object-fit: cover; filter: grayscale(.2) contrast(1.05) brightness(.85); }
.nx-post-card__body { padding-top: 18px; }
.nx-post-card__title { font-size: 19px; margin-bottom: 8px; font-family: var(--nx-font-display); }
.nx-post-card__title a { color: var(--nx-ink); }
.nx-post-card__title a:hover { color: var(--nx-brand); }
.nx-post-card__meta { color: var(--nx-ink-dim); font-family: var(--nx-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.nx-post-card__excerpt { font-size: 14.5px; color: var(--nx-ink-soft); line-height: 1.6; }
@media (max-width: 980px) { .nx-post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nx-post-list { grid-template-columns: 1fr; } }

/* ========================================================================
 * SSO button
 * ===================================================================== */
.nx-sso-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--nx-line-2); border-radius: var(--nx-radius); font-family: var(--nx-font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-ink-2); }
.nx-sso-btn:hover { color: var(--nx-ink); border-color: var(--nx-brand); }
