/*
Theme Name: News Blog Seo
Theme URI: https://seowp.it/news-blog-seo
Author: Seo Wp
Author URI: https://seowp.it
Description: Tema WordPress leggero e SEO-friendly pensato per news, magazine e blog.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-blog-seo
Tags: blog, news, magazine, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, seo-friendly
*/

/* Font bello ma leggero (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ===========================
   Variabili base
   =========================== */

:root {
  --nbs-font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --nbs-color-text: #111111;
  --nbs-color-text-muted: #555555;
  --nbs-color-border: #e0e0e0;
  --nbs-color-bg-alt: #f5f5f7;
  --nbs-color-accent: #0f62fe;
  --nbs-line-height: 1.6;
  --nbs-spacing-sm: 0.75rem;
}

/* ===========================
   Reset leggero & base
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: var(--nbs-font-base);
  color: var(--nbs-color-text);
  font-size: 16px;
  line-height: var(--nbs-line-height);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Contenitore principale usato nell'header/footer */
.nbs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Links */

a {
  color: var(--nbs-color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Immagini */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Titoli */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
  color: var(--nbs-color-text);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

/* Testo */

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

/* Form */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 100%;
}

/* ===========================
   OVERLAY RICERCA HEADER
   =========================== */

/* blocca lo scroll quando la ricerca è aperta */
body.nbs-search-open {
  overflow: hidden;
}

#nbs-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;                /* nascosto di default */
  align-items: center;          /* centrare verticalmente */
  justify-content: center;      /* centrare orizzontalmente */
}

#nbs-search-overlay.is-active {
  display: flex;                /* mostrato quando JS aggiunge .is-active */
}

/* sfondo scuro dietro il box */
.nbs-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* pannello centrale */
.nbs-search-overlay__panel {
  position: relative;
  z-index: 2;
  width: min(620px, 92%);
  padding: 1.8rem 2rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

/* titolo opzionale */
.nbs-search-overlay__title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 600;
}

/* pulsante chiudi (X) */
.nbs-search-overlay__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* form di ricerca dentro l’overlay */
#nbs-search-overlay .search-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
}

#nbs-search-overlay .search-form .search-field,
#nbs-search-overlay .nbs-search-form__field {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--nbs-color-border);
  background: var(--nbs-color-bg-alt);
  font-size: 0.95rem;
  color: var(--nbs-color-text);
  outline: none;
}

#nbs-search-overlay .search-form .search-field::placeholder,
#nbs-search-overlay .nbs-search-form__field::placeholder {
  color: var(--nbs-color-text-muted);
}

#nbs-search-overlay .search-form .search-submit,
#nbs-search-overlay .nbs-search-form__submit {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: #5f9ea0;
  color: #ffffff;
  white-space: nowrap;
}

#nbs-search-overlay .search-form .search-submit:hover,
#nbs-search-overlay .nbs-search-form__submit:hover {
  background: #497c7f;
}

/* ===========================
   DARK MODE - VARIABILI
   =========================== */

html[data-theme="dark"] {
  --nbs-color-text: #f9fafb;
  --nbs-color-text-muted: #9ca3af;
  --nbs-color-border: #1f2937;
  --nbs-color-bg-alt: #020617;
  --nbs-color-accent: #60a5fa;
  background-color: #020617;
  color: var(--nbs-color-text);
}

html[data-theme="dark"] body {
  background-color: #020617;
  color: var(--nbs-color-text);
}

/* HEADER + TOPBAR in dark */

html[data-theme="dark"] .nbs-topbar {
  background-color: #020617;
  color: #e5e7eb;
}

html[data-theme="dark"] .nbs-header-main {
  background-color: #020617;
  border-bottom-color: #111827;
  color: #f9fafb;
}

html[data-theme="dark"] .nbs-header-main__branding,
html[data-theme="dark"] .main-navigation,
html[data-theme="dark"] .main-navigation a {
  color: #f9fafb;
}

html[data-theme="dark"] .main-navigation a:hover,
html[data-theme="dark"] .main-navigation .current-menu-item > a {
  background-color: #111827;
  border-color: #111827;
}

/* icone header che ereditano currentColor */
html[data-theme="dark"] .nbs-header-icon,
html[data-theme="dark"] .nbs-topbar__social {
  color: #f9fafb;
}

/* HOME / CARD / BOX in dark */

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

html[data-theme="dark"] .nbs-post-card,
html[data-theme="dark"] .nbs-featured-strip__inner,
html[data-theme="dark"] .nbs-home-sidebar__inner {
  background-color: #020617;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .nbs-featured-strip__label {
  background-color: #0f6266;
}

/* testi delle card */

html[data-theme="dark"] .nbs-post-card__title a {
  color: #f9fafb;
}

html[data-theme="dark"] .nbs-post-card__title a:hover {
  color: #60a5fa;
}

html[data-theme="dark"] .nbs-post-card__meta {
  color: #9ca3af;
}

html[data-theme="dark"] .nbs-post-card__excerpt {
  color: #e5e7eb;
}

/* featured grid overlay */

html[data-theme="dark"] .nbs-featured-grid__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 55%
  );
}

/* overlay ricerca in dark */

html[data-theme="dark"] .nbs-search-overlay__panel {
  background: #020617;
  border: 1px solid #1f2937;
}

html[data-theme="dark"] #nbs-search-overlay .search-form .search-field,
html[data-theme="dark"] #nbs-search-overlay .nbs-search-form__field {
  background: #020617;
  border-color: #1f2937;
  color: #f9fafb;
}

/* ===========================
   FOOTER
   =========================== */

/* Contenitore widget sopra il footer nero */
.nbs-footer-widgets {
  background-color: #f5f5f7;
  padding: 2rem 0;
}

.nbs-footer-widgets__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Barra colorata sopra il footer nero */
.nbs-footer-top-border {
  height: 3px;
  background-color: #5f9ea0;
}

/* Contenitore nero principale */
.nbs-footer-bottom {
  background-color: #000000;
  color: #f5f5f5;
}

/* Testo centrato verticalmente e orizzontalmente */
.nbs-footer-bottom__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nbs-footer-text {
  margin: 0;
  font-size: 0.9rem;
}

/* Pulsante "torna su" */
.nbs-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: #5f9ea0;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.nbs-back-to-top:hover,
.nbs-back-to-top:focus {
  outline: none;
  transform: translateY(-2px);
}

/* Mobile footer */
@media (max-width: 600px) {
  .nbs-footer-bottom__inner {
    min-height: 70px;
    padding: 0.75rem 0;
  }

  .nbs-back-to-top {
    width: 38px;
    height: 38px;
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

/* ===========================
   LAYOUT HOME / INDEX
   =========================== */

.nbs-container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

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

.nbs-home-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 2rem;
  align-items: flex-start;
  overflow: visible; /* importante per sticky sidebar */
}

/* ===========================
   SEARCH FORM SIDEBAR
   =========================== */

.nbs-home-sidebar .nbs-search-form {
  margin-top: 0.4rem;
}

.nbs-search-form__inner {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #f5f7fb;
  border-radius: 999px;
  border: 1px solid #dde3ea;
  padding: 0.2rem 0.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nbs-search-form__field {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: #111111;
  outline: none;
}

.nbs-search-form__field::placeholder {
  color: #a0a7b4;
}

/* bottone lente */

.nbs-search-form__submit {
  flex: 0 0 auto;
  border: none;
  background-color: #5f9ea0;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.nbs-search-form__submit:hover,
.nbs-search-form__submit:focus {
  background-color: #497c7f;
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.25);
  transform: translateY(-1px);
}

.nbs-search-form__icon svg {
  display: block;
}

/* stato focus del wrapper quando il campo è attivo */
.nbs-search-form__field:focus + .nbs-search-form__submit,
.nbs-search-form__field:focus-visible + .nbs-search-form__submit {
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.35);
}

.nbs-search-form__field:focus-visible {
  outline: none;
}

/* piccolo aggiustamento mobile */

@media (max-width: 600px) {
  .nbs-search-form__field {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .nbs-search-form__submit {
    width: 32px;
    height: 32px;
  }
}

/* ===========================
   PANEL MENU HEADER (TOGGLE)
   =========================== */

/* quando il pannello è aperto blocco lo scroll della pagina */
body.nbs-header-panel-open {
  overflow: hidden;
}

/* wrapper generale del pannello */
.nbs-header-panel {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none; /* di base "spento" */
  display: none;        /* nascosto finché non è .is-open */
}

/* overlay scuro dietro al pannello */
.nbs-header-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* contenuto che scorre da destra */
.nbs-header-panel__content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #ffffff;
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

/* quando JS aggiunge .is-open il pannello diventa attivo */
.nbs-header-panel.is-open {
  pointer-events: auto;
  display: block;
}

.nbs-header-panel.is-open .nbs-header-panel__overlay {
  opacity: 1;
}

.nbs-header-panel.is-open .nbs-header-panel__content {
  transform: translateX(0);
}

/* header del pannello (titolo opzionale ecc.) */
.nbs-header-panel__header {
  padding: 1.2rem 1.6rem 0.4rem;
}

.nbs-header-panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* bottone chiudi (X) */
.nbs-header-panel__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: #111827;
}

.nbs-header-panel__close:hover,
.nbs-header-panel__close:focus {
  background-color: rgba(15, 23, 42, 0.06);
}

/* contenuto scrollabile */
.nbs-header-panel__inner {
  padding: 1.6rem 1.8rem 1.8rem;
  flex: 1 1 auto;
  overflow-y: auto;
}

/* widget nel pannello header */
.nbs-header-panel-widget {
  margin-bottom: 1.5rem;
}

.nbs-header-panel-widget__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

/* stato "aperto" sul bottone quadrato, volendo puoi evidenziarlo */
body.nbs-header-panel-open .nbs-header-icon--menu {
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.3);
}

/* mobile: pannello a tutta larghezza */
@media (max-width: 720px) {
  .nbs-header-panel__content {
    width: 100%;
  }
}

/* ===========================
   MODULO CONTATTI DI DEFAULT
   =========================== */

.nbs-contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.nbs-contact-form p {
  margin: 0;
}

.nbs-contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--nbs-color-text-muted);
}

/* campi testo / email / textarea */
.nbs-contact-form input[type="text"],
.nbs-contact-form input[type="email"],
.nbs-contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dde3ea;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  resize: vertical;
  min-height: 42px;
}

.nbs-contact-form textarea {
  min-height: 90px;
}

/* placeholder */
.nbs-contact-form input::placeholder,
.nbs-contact-form textarea::placeholder {
  color: #a0a7b4;
}

/* stato focus */
.nbs-contact-form input[type="text"]:focus,
.nbs-contact-form input[type="email"]:focus,
.nbs-contact-form textarea:focus {
  border-color: #5f9ea0;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.22);
}

/* bottone invio */
.nbs-contact-form button,
.nbs-contact-form input[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #5f9ea0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.nbs-contact-form button:hover,
.nbs-contact-form button:focus,
.nbs-contact-form input[type="submit"]:hover,
.nbs-contact-form input[type="submit"]:focus {
  background-color: #497c7f;
  box-shadow: 0 8px 20px rgba(73, 124, 127, 0.35);
  transform: translateY(-1px);
}

/* messaggio piccolo sotto il form (es. nota privacy) */
.nbs-contact-form__note {
  font-size: 0.8rem;
  color: var(--nbs-color-text-muted);
  margin-top: 0.3rem;
}

/* ===========================
   DARK MODE - PANEL & FORM
   =========================== */

html[data-theme="dark"] .nbs-header-panel__overlay {
  background: rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .nbs-header-panel__content {
  background: #020617;
  color: #f9fafb;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .nbs-header-panel__close {
  color: #e5e7eb;
}

html[data-theme="dark"] .nbs-contact-form input[type="text"],
html[data-theme="dark"] .nbs-contact-form input[type="email"],
html[data-theme="dark"] .nbs-contact-form textarea {
  background: #020617;
  border-color: #1f2937;
  color: #f9fafb;
}

html[data-theme="dark"] .nbs-contact-form input::placeholder,
html[data-theme="dark"] .nbs-contact-form textarea::placeholder {
  color: #6b7280;
}

html[data-theme="dark"] .nbs-contact-form input[type="text"]:focus,
html[data-theme="dark"] .nbs-contact-form input[type="email"]:focus,
html[data-theme="dark"] .nbs-contact-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
  background: #020617;
}

/* ===========================
   SIDEBAR STICKY (collegate alla colonna centrale)
   =========================== */

.nbs-home-sidebar {
  position: sticky;
  top: 150px; /* più spazio sotto l’header */
  align-self: flex-start;
}

/* quando c’è la admin bar nera di WP */
body.admin-bar .nbs-home-sidebar {
  top: 150px;
}

.nbs-home-sidebar__inner {
  background: #ffffff;
  padding: 1.3rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* ===========================
   WIDGET
   =========================== */

/* Liste sidebar senza pallini */
.nbs-home-sidebar ul,
.nbs-home-sidebar ol,
.nbs-default-widget ul,
.nbs-default-widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nbs-home-sidebar li {
  margin-bottom: 0.4rem;
}

.nbs-default-widget {
  margin-bottom: 1.6rem;
}

.nbs-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e6edf2;
}

/* ===========================
   CONTENUTO CENTRALE
   =========================== */

.nbs-home-content {
  width: 100%;
}

/* ===========================
   GRIGLIA ARTICOLI (INDEX)
   =========================== */

.nbs-post-grid--wide {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
}

/* ===========================
   CARD POST
   =========================== */

.nbs-post-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nbs-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.nbs-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nbs-post-card__body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}

/* META */

.nbs-post-card__meta {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

/* Titolo */

.nbs-post-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0.3rem 0 0.8rem;
}

.nbs-post-card__title a {
  color: #111;
  text-decoration: none;
}

.nbs-post-card__title a:hover {
  color: #5f9ea0;
}

/* Estratto */

.nbs-post-card__excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

/* Read more */

.nbs-post-card__readmore {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: #5f9ea0;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nbs-post-card__readmore:hover {
  background: #497c7f;
}

/* ===========================
   PAGINAZIONE
   =========================== */

.nbs-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .nbs-home-layout {
    grid-template-columns: 1fr;
  }

  .nbs-home-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 600px) {
  .nbs-post-card {
    grid-template-columns: 1fr;
  }

  .nbs-post-card__thumb img {
    height: 220px;
  }
}

/* ===========================
   STRIP ARTICOLI "IN EVIDENZA"
   =========================== */

.nbs-featured-strip {
  margin-bottom: 2.5rem;
}

.nbs-featured-strip__inner {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap; /* evita che le frecce vadano a capo */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.nbs-featured-strip__label {
  background-color: #0f6266;
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* lista scorrevole orizzontale */
.nbs-featured-strip__list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  flex: 1 1 auto;
}

.nbs-featured-strip__list::-webkit-scrollbar {
  height: 6px;
}

.nbs-featured-strip__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

/* singolo elemento */

.nbs-featured-item {
  min-width: 260px;
  max-width: 280px;
  flex: 0 0 auto;
}

.nbs-featured-item__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.8rem;
  align-items: top;
  text-decoration: none;
  color: inherit;
}

.nbs-featured-item__thumb img,
.nbs-featured-item__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background-color: #e3ecf3;
}

.nbs-featured-item__meta {
  display: block;
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.15rem;
}

.nbs-featured-item__title {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
}

/* Frecce laterali */

.nbs-featured-strip__nav {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dde3ea;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}

.nbs-featured-strip__nav span {
  transform: translateY(-1px);
}

.nbs-featured-strip__nav:hover {
  background-color: #f0f4f9;
}

/* responsive: su mobile label sopra e nascondo le frecce */

@media (max-width: 900px) {
  .nbs-featured-strip__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nbs-featured-strip__label {
    width: fit-content;
  }

  .nbs-featured-strip__nav {
    display: none;
  }
}

/* ===========================
   BLOCCO 5 POST GRANDI
   (.nbs-featured-grid)
   =========================== */

.nbs-featured-grid {
  margin: 0 auto 2.8rem;
}

.nbs-featured-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 1.6rem;
}

/* singolo elemento della griglia */
.nbs-featured-grid__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.nbs-featured-grid__item--tall {
  grid-row: span 2;
}

/* link + immagine */

.nbs-featured-grid__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.nbs-featured-grid__thumb {
  position: absolute;
  inset: 0;
}

.nbs-featured-grid__thumb img,
.nbs-featured-grid__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nbs-featured-grid__placeholder {
  background: #1b4250;
}

/* overlay testo */

.nbs-featured-grid__overlay {
  position: absolute;
  inset: 0;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.0) 50%
  );
}

.nbs-featured-grid__meta {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

.nbs-featured-grid__title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0;
  color: white;
}

/* hover */

.nbs-featured-grid__item:hover .nbs-featured-grid__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.15) 55%
  );
}

/* ===========================
   RESPONSIVE FEATURED GRID
   =========================== */

@media (max-width: 1024px) {
  .nbs-featured-grid__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .nbs-featured-grid__item--tall {
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .nbs-featured-grid__inner {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .nbs-featured-grid__item--tall {
    grid-row: span 1;
  }

  .nbs-featured-grid__overlay {
    padding: 1.1rem 1.2rem;
  }

  .nbs-featured-grid__title {
    font-size: 1.05rem;
  }
}