/* ===========================
   LAYOUT PAGINE STATICHE
   =========================== */

.nbs-page-main {
  padding: 2.5rem 0 3rem;
  background: #f6f8fa;
}

.nbs-page-article {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  padding: 2rem 2.3rem 2.3rem;
}

/* Header pagina */

.nbs-page-header {
  margin-bottom: 1.6rem;
  text-align: center;
}

.nbs-page-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* Thumb (immagine in evidenza) */

.nbs-page-thumb {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.nbs-page-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Corpo pagina */

.nbs-page-body {
  margin-top: 1.4rem;
}

.nbs-page-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nbs-color-text);
}

/* Tipografia interna della pagina */

.nbs-page-content > *:first-child {
  margin-top: 0;
}

.nbs-page-content p {
  margin: 0 0 1.2rem;
}

.nbs-page-content h2,
.nbs-page-content h3,
.nbs-page-content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.nbs-page-content ul,
.nbs-page-content ol {
  margin: 0 0 1.2rem 1.5rem;
}

.nbs-page-content li {
  margin-bottom: 0.3rem;
}

.nbs-page-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* Blockquote */

.nbs-page-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid #5f9ea0;
  background: #f5f7fb;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

/* Immagini e media nel contenuto */

.nbs-page-content img {
  border-radius: 12px;
}

.nbs-page-content figure {
  margin: 1.5rem 0;
}

.nbs-page-content figcaption {
  font-size: 0.85rem;
  color: var(--nbs-color-text-muted);
  text-align: center;
  margin-top: 0.4rem;
}

/* Tabelle */

.nbs-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.nbs-page-content th,
.nbs-page-content td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
}

.nbs-page-content th {
  background: #f5f7fb;
  font-weight: 600;
}

/* Pagine multiple (wp_link_pages) */

.page-links {
  margin-top: 1.8rem;
  font-size: 0.92rem;
}

.page-links > a,
.page-links > span {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #dde3ea;
}

.page-links > span {
  background: #5f9ea0;
  color: #ffffff;
  border-color: #5f9ea0;
}

/* Footer pagina (link modifica) */

.nbs-page-footer {
  margin-top: 1.4rem;
  border-top: 1px solid #edf1f7;
  padding-top: 0.9rem;
  text-align: right;
}

.nbs-page-edit-link a {
  font-size: 0.85rem;
  color: var(--nbs-color-text-muted);
}

.nbs-page-edit-link a:hover {
  color: #5f9ea0;
}

/* Commenti su pagine */

.nbs-page-comments {
  max-width: 880px;
  margin: 2rem auto 0;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nbs-page-article {
    padding: 1.6rem 1.4rem 1.8rem;
    border-radius: 14px;
  }

  .nbs-page-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .nbs-page-article {
    padding: 1.4rem 1rem 1.6rem;
  }

  .nbs-page-title {
    font-size: 1.5rem;
  }

  .nbs-page-content {
    font-size: 0.97rem;
  }
}

/* ===========================
   DARK MODE - PAGE
   =========================== */

html[data-theme="dark"] .nbs-page-main {
  background: #020617;
}

html[data-theme="dark"] .nbs-page-article {
  background: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .nbs-page-content {
  color: var(--nbs-color-text);
}

html[data-theme="dark"] .nbs-page-content blockquote {
  background: #020617;
  border-color: #60a5fa;
}

html[data-theme="dark"] .nbs-page-content table th,
html[data-theme="dark"] .nbs-page-content table td {
  border-color: #1f2937;
}

html[data-theme="dark"] .nbs-page-content table th {
  background: #020617;
}

html[data-theme="dark"] .page-links > a,
html[data-theme="dark"] .page-links > span {
  border-color: #1f2937;
}

html[data-theme="dark"] .nbs-page-footer {
  border-top-color: #111827;
}