/* ============================================================
   FINTABLE — NEWS / BLOG TEMPLATES
   Archive + single article. Reuses DS tokens + components.
   ============================================================ */

/* ---------- shared ---------- */
.nw-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.nw-section { padding: 48px 0 72px; }

/* ---------- category chips (archive filter) ---------- */
.nw-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 36px;
}
.nw-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--fd-radius-full);
  border: 1px solid var(--fd-ink-200);
  background: var(--fd-paper);
  font-size: 14px; font-weight: 600;
  color: var(--fd-ink-700);
  cursor: pointer;
  transition: all var(--fd-dur-fast);
}
.nw-chip:hover { border-color: var(--fd-green-400); color: var(--fd-ink-900); }
.nw-chip.is-active {
  background: var(--fd-green-600);
  border-color: var(--fd-green-600);
  color: #fff;
}
.nw-chip__count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- featured article (archive top) ---------- */
.nw-feat {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--fd-paper);
  border: 1px solid var(--fd-ink-150);
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  margin-bottom: 44px;
  color: inherit;
  transition: box-shadow var(--fd-dur-normal), border-color var(--fd-dur-normal);
}
.nw-feat:hover { border-color: var(--fd-green-200); box-shadow: var(--fd-shadow-card-hover); }
.nw-feat__img {
  aspect-ratio: 16/10;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(14,122,79,.12), transparent 58%),
    radial-gradient(ellipse at 80% 80%, rgba(230,168,46,.10), transparent 55%),
    var(--fd-ink-75);
  position: relative;
}
.nw-feat__img::after {
  content: "FOTO · cover articolo";
  position: absolute; top: 12px; left: 12px;
  font-family: var(--fd-font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-ink-500);
  background: rgba(255,255,255,.78); padding: 3px 8px; border-radius: 3px;
}
.nw-feat__body { padding: 36px 40px 36px 4px; }
.nw-feat__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-green-700);
  margin-bottom: 12px;
}
.nw-feat__title {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  color: var(--fd-ink-900); line-height: 1.18;
  margin: 0 0 12px;
}
.nw-feat:hover .nw-feat__title { color: var(--fd-green-700); }
.nw-feat__excerpt {
  font-size: 15px; color: var(--fd-ink-600); line-height: 1.6;
  margin: 0 0 18px;
}

/* ---------- byline (shared) ---------- */
.nw-byline {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fd-ink-500);
}
.nw-byline__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fd-canvas-warm), var(--fd-ink-75));
  border: 1px solid var(--fd-ink-150);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--fd-ink-500);
  flex: 0 0 auto;
}
.nw-byline strong { color: var(--fd-ink-900); font-weight: 600; }

/* ---------- article cards grid ---------- */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nw-card {
  display: flex; flex-direction: column;
  background: var(--fd-paper);
  border: 1px solid var(--fd-ink-150);
  border-radius: var(--fd-radius-md);
  overflow: hidden;
  color: inherit;
  transition: box-shadow var(--fd-dur-normal), border-color var(--fd-dur-normal), transform var(--fd-dur-normal);
}
.nw-card:hover {
  border-color: var(--fd-green-200);
  box-shadow: var(--fd-shadow-card-hover);
  transform: translateY(-2px);
}
.nw-card__img {
  aspect-ratio: 16/9;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(14,122,79,.10), transparent 60%),
    var(--fd-ink-75);
  border-bottom: 1px solid var(--fd-ink-100);
}
.nw-card__body {
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1 1 auto;
}
.nw-card__eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-green-700);
}
.nw-card__title {
  font-size: 17px; font-weight: 700; letter-spacing: -.005em;
  color: var(--fd-ink-900); line-height: 1.3;
  margin: 0;
}
.nw-card:hover .nw-card__title { color: var(--fd-green-700); }
.nw-card__byline { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--fd-ink-100); }

/* ---------- newsletter band ---------- */
.nw-news-band {
  background: var(--fd-green-900);
  border-radius: var(--fd-radius-lg);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-top: 56px;
  color: #fff;
}
.nw-news-band__title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 6px; color: #fff; }
.nw-news-band__sub { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; line-height: 1.5; }
.nw-news-band__form { display: flex; gap: 10px; flex-wrap: wrap; }
.nw-news-band__form .fd-input { width: 280px; border: 0; }

/* ---------- single article ---------- */
.nw-art-hero { padding: 22px 0 0; background: var(--fd-paper); }
.nw-art-cover {
  margin: 28px 0 0;
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fd-ink-150);
  aspect-ratio: 21/9;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(14,122,79,.12), transparent 58%),
    radial-gradient(ellipse at 80% 80%, rgba(230,168,46,.10), transparent 55%),
    var(--fd-ink-75);
  position: relative;
}
.nw-art-cover::after {
  content: "FOTO · immagine articolo";
  position: absolute; top: 14px; left: 14px;
  font-family: var(--fd-font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-ink-500);
  background: rgba(255,255,255,.78); padding: 4px 9px; border-radius: 3px;
}
.nw-art-cover__credit {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11px; color: var(--fd-ink-500);
  background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 3px;
}

.nw-art-body { padding: 44px 0 72px; background: var(--fd-canvas); }
.nw-art-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 52px;
  align-items: start;
}
.nw-art-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }

/* related links box (sidebar) */
.nw-rel {
  background: var(--fd-paper);
  border: 1px solid var(--fd-ink-150);
  border-radius: var(--fd-radius-md);
  overflow: hidden;
}
.nw-rel__head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--fd-ink-100);
  font-size: 15px; font-weight: 700; color: var(--fd-ink-900);
}
.nw-rel__item {
  display: block;
  padding: 13px 20px;
  border-bottom: 1px solid var(--fd-ink-100);
  font-size: 14px; font-weight: 500; color: var(--fd-ink-700);
  line-height: 1.45;
  transition: background var(--fd-dur-fast), color var(--fd-dur-fast);
}
.nw-rel__item:last-child { border-bottom: 0; }
.nw-rel__item:hover { background: var(--fd-ink-50); color: var(--fd-green-700); }

/* tag row at article end */
.nw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }

/* related articles strip (bottom) */
.nw-related-strip { padding: 56px 0 72px; }
.nw-related-strip__title {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: var(--fd-ink-900); margin: 0 0 24px;
}

/* ============================================================
   AUTHOR BLOCK — "A cura di" (autore + revisore)
   ============================================================ */
.fd-curaby { padding: 40px 0; }
.fd-curaby__inner { border-top: 1px solid var(--fd-ink-150); padding-top: 36px; }
.fd-curaby__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-green-700); margin-bottom: 18px;
}
.fd-authors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fd-author-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--fd-ink-150); border-radius: var(--fd-radius-lg);
  background: var(--fd-paper); padding: 24px 26px;
}
.fd-author-card__head { display: flex; align-items: flex-start; gap: 16px; }
.fd-author-card__avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--fd-green-100), var(--fd-ink-75));
  border: 1px solid var(--fd-ink-150);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--fd-ink-600);
}
.fd-author-card__role {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--fd-green-700); margin-bottom: 4px;
}
.fd-author-card__name {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--fd-ink-900);
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.fd-author-card__name:hover { color: var(--fd-green-700); }
.fd-author-card__name svg { color: var(--fd-ink-400); }
.fd-author-card__qualifica { font-size: 13px; color: var(--fd-ink-500); margin-top: 3px; }
.fd-author-card__bio { font-size: 14px; line-height: 1.6; color: var(--fd-ink-600); margin: 16px 0 0; }
.fd-author-card__bio a { color: var(--fd-green-700); font-weight: 600; text-decoration: none; }
.fd-author-card__bio a:hover { text-decoration: underline; }
.fd-author-card__foot {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fd-author-card__social {
  width: 36px; height: 36px; border-radius: var(--fd-radius-sm); flex: 0 0 auto;
  border: 1px solid var(--fd-ink-200); background: var(--fd-paper); color: var(--fd-ink-600);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--fd-dur-fast);
}
.fd-author-card__social:hover { border-color: var(--fd-green-400); color: var(--fd-green-700); background: var(--fd-green-50); }
.fd-author-card__stat { font-size: 13px; color: var(--fd-ink-500); }
.fd-author-card__verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--fd-green-700);
}
.fd-author-card__verified svg { color: var(--fd-green-600); }
.fd-authors__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fd-ink-150);
  font-size: 13px; color: var(--fd-ink-500);
}
.fd-authors__meta span { display: inline-flex; align-items: center; gap: 7px; }
.fd-authors__meta strong { color: var(--fd-ink-800); }
.fd-authors__meta svg { color: var(--fd-ink-400); }
.fd-authors__meta a {
  color: var(--fd-green-700); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.fd-authors__meta a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .fd-authors { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTHOR POPOVER (EEAT) — card al hover/focus sul nome autore
   nella byline hero. HTML statico sempre in DOM, JS toggla `hidden`.
   Adattato dal plugin Fintable (.ft-author-popover) ai token --fd-*.
   ============================================================ */
.fd-author-popover { position: relative; display: inline-block; }

/* trigger = link autore della byline: eredita il colore hero, solo cursor */
.fd-author-popover__trigger {
  color: var(--fd-hero-text, #fff);
  font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
/* il nome (trigger) NON cambia colore in hover (batte .nw-mag-byline__text a:hover):
   reagisce solo il link dentro il tooltip */
.nw-mag-byline__text .fd-author-popover__trigger:hover { color: var(--fd-hero-text, #fff); }

/* panel: card bianca sotto il trigger. hidden di default (override esplicito:
   serve perché altrimenti un display diverso da block ignorerebbe l'attributo). */
.fd-author-popover__panel {
  position: absolute;
  top: calc(100% + 12px); left: 0;
  z-index: 9000;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--fd-paper); color: var(--fd-ink-900);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06);
  padding: 20px 22px 18px;
  text-align: left;
  animation: fd-author-popover-pop 180ms cubic-bezier(.16,1,.3,1);
  max-height: min(70vh, 560px); overflow-y: auto;
}
.fd-author-popover__panel[hidden] { display: none; }

.fd-author-popover__panel::before {
  content: ""; position: absolute; bottom: 100%; left: 22px;
  width: 0; height: 0; border: 8px solid transparent;
  border-bottom-color: var(--fd-paper);
  filter: drop-shadow(0 -1px 1px rgba(0,0,0,.05));
}
@keyframes fd-author-popover-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.fd-author-popover__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fd-author-popover__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: var(--fd-ink-75);
  display: inline-flex; align-items: center; justify-content: center;
}
.fd-author-popover__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-author-popover__avatar-initials { font-size: 22px; font-weight: 700; color: var(--fd-ink-500); }
.fd-author-popover__head-text { min-width: 0; flex: 1 1 auto; }
.fd-author-popover__name { font-size: 17px; font-weight: 700; color: var(--fd-ink-900); line-height: 1.25; }
.fd-author-popover__qualifica { font-size: 13px; color: var(--fd-ink-500); margin-top: 2px; line-height: 1.4; }

.fd-author-popover__section { border-top: 1px solid var(--fd-ink-150); padding-top: 12px; margin-top: 12px; }
.fd-author-popover__section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-ink-500); margin-bottom: 6px;
}
.fd-author-popover__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.fd-author-popover__list li { font-size: 13px; color: var(--fd-ink-900); line-height: 1.45; padding-left: 14px; position: relative; }
.fd-author-popover__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--fd-green-600);
}

.fd-author-popover__exp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fd-author-popover__exp {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--fd-ink-75); color: var(--fd-ink-900);
  font-size: 12px; border-radius: 6px; line-height: 1.35; flex: 1 1 auto; min-width: 0;
}
.fd-author-popover__exp svg { flex: 0 0 auto; color: var(--fd-green-700); }
.fd-author-popover__exp strong { color: var(--fd-ink-900); font-weight: 700; margin-right: 2px; }

.fd-author-popover__bio { margin: 14px 0 0; font-size: 13px; color: var(--fd-ink-500); line-height: 1.55; }

/* override: il panel vive dentro .nw-mag-byline__text dove `a { color:hero-text }`
   renderebbe i link invisibili sul bianco. Ribaltiamo al verde accento. */
.fd-author-popover__panel a { color: var(--ft-link, var(--fd-green-700)); }
.nw-mag-byline__text .fd-author-popover__panel a:hover { color: var(--ft-link, var(--fd-green-700)); }

.fd-author-popover__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--fd-ink-150);
}
.fd-author-popover__foot-link { font-size: 13px; font-weight: 600; color: var(--ft-link, var(--fd-green-700)); text-decoration: none; }
.fd-author-popover__foot-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.fd-author-popover__socials { display: inline-flex; align-items: center; gap: 6px; }
.fd-author-popover__panel .fd-author-popover__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  color: var(--fd-ink-500); transition: background-color 120ms, color 120ms;
}
.fd-author-popover__panel .fd-author-popover__social:hover { background: var(--fd-ink-75); color: var(--ft-link, var(--fd-green-700)); }

/* mobile: niente popover (il trigger resta link al profilo) */
@media (max-width: 600px) {
  .fd-author-popover__panel { display: none !important; }
}

/* ============================================================
   READING PROGRESS BAR (fixed under sticky header)
   ============================================================ */
.nw-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.nw-progress__bar {
  height: 100%; width: 0%;
  background: var(--fd-green-600);
  transition: width .08s linear;
}
body.nw-no-progress .nw-progress { display: none; }

/* ============================================================
   SINGLE ARTICLE — LIGHT EDITORIAL HERO (variant "chiaro")
   ============================================================ */
.nw-hero {
  background: var(--fd-canvas);
  border-bottom: 1px solid var(--fd-ink-100);
  padding: 30px 0 38px;
}
.nw-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--fd-ink-500);
  margin-bottom: 22px;
}
.nw-crumb a { color: var(--fd-ink-600); font-weight: 600; }
.nw-crumb a:hover { color: var(--fd-green-700); }
.nw-crumb__sep { color: var(--fd-ink-300); }
.nw-crumb__current { color: var(--fd-ink-700); }

.nw-hero__inner { max-width: 860px; }
.nw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--fd-green-700);
  margin-bottom: 16px;
}
.nw-hero__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--fd-green-700); }
.nw-hero__title {
  font-size: 46px; font-weight: 800; letter-spacing: -.025em; line-height: 1.07;
  color: var(--fd-ink-900);
  margin: 0 0 18px;
  text-wrap: balance;
}
.nw-hero__dek {
  font-size: 19px; line-height: 1.6; color: var(--fd-ink-600);
  margin: 0; max-width: 720px;
}
.nw-hero__dek strong { color: var(--fd-ink-900); font-weight: 700; }

/* meta bar (author + date + reading time + trust) */
.nw-metabar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--fd-ink-150);
}
.nw-meta-author { display: flex; align-items: center; gap: 12px; }
.nw-meta-author__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fd-green-100), var(--fd-ink-75));
  border: 1px solid var(--fd-ink-150);
  flex: 0 0 auto;
  background-size: cover; background-position: center;
}
.nw-meta-author__label { font-size: 12px; color: var(--fd-ink-500); }
.nw-meta-author__name {
  font-size: 15px; font-weight: 700; color: var(--fd-ink-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.nw-meta-author__name svg { color: var(--fd-green-600); }
.nw-meta-facts {
  display: flex; gap: 30px; flex-wrap: wrap;
  justify-self: end;
}
.nw-meta-fact__k {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-ink-400); margin-bottom: 3px;
}
.nw-meta-fact__v {
  font-size: 14px; font-weight: 600; color: var(--fd-ink-800);
  display: inline-flex; align-items: center; gap: 6px;
}
.nw-meta-fact__v svg { color: var(--fd-ink-400); }

/* "Perché fidarti" trust note */
.nw-trust {
  margin-top: 22px;
  border: 1px solid var(--fd-ink-150);
  border-radius: var(--fd-radius-md);
  background: var(--fd-paper);
  overflow: hidden;
}
.nw-trust__toggle {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--fd-green-700);
}
.nw-trust__toggle::-webkit-details-marker { display: none; }
.nw-trust__toggle svg.nw-trust__chev { margin-left: auto; color: var(--fd-green-700); transition: transform var(--fd-dur-fast); }
.nw-trust[open] .nw-trust__chev { transform: rotate(180deg); }
.nw-trust__plus { font-size: 16px; line-height: 1; }
.nw-trust__body {
  padding: 0 18px 18px;
  font-size: 13.5px; line-height: 1.65; color: var(--fd-ink-600);
}
.nw-trust__body strong { color: var(--fd-ink-900); font-weight: 700; }

/* ============================================================
   SINGLE ARTICLE — NAVY IMMERSIVE HERO (variant "navy")
   ============================================================ */
.nw-hero--navy {
  background: linear-gradient(100deg, #0a1a38 0%, #0e2349 52%, #17386e 100%);
  border-bottom: 0;
  color: #fff;
  padding: 30px 0 130px;
}
.nw-hero--navy .nw-crumb { color: rgba(255,255,255,.6); }
.nw-hero--navy .nw-crumb a { color: rgba(255,255,255,.78); }
.nw-hero--navy .nw-crumb a:hover { color: #fff; }
.nw-hero--navy .nw-crumb__sep { color: rgba(255,255,255,.35); }
.nw-hero--navy .nw-crumb__current { color: #fff; }
.nw-hero--navy .nw-hero__eyebrow { color: #8fb4f5; }
.nw-hero--navy .nw-hero__eyebrow::before { background: #8fb4f5; }
.nw-hero--navy .nw-hero__title { color: #fff; }
.nw-hero--navy .nw-hero__dek { color: rgba(255,255,255,.82); }
.nw-hero--navy .nw-hero__dek strong { color: #fff; }
.nw-hero--navy .nw-metabar { border-top-color: rgba(255,255,255,.16); }
.nw-hero--navy .nw-meta-author__avatar { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12); }
.nw-hero--navy .nw-meta-author__label { color: rgba(255,255,255,.6); }
.nw-hero--navy .nw-meta-author__name { color: #fff; }
.nw-hero--navy .nw-meta-author__name svg { color: #8fb4f5; }
.nw-hero--navy .nw-meta-fact__k { color: rgba(255,255,255,.55); }
.nw-hero--navy .nw-meta-fact__v { color: rgba(255,255,255,.92); }
.nw-hero--navy .nw-meta-fact__v svg { color: rgba(255,255,255,.5); }
.nw-hero--navy .nw-trust {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.nw-hero--navy .nw-trust__toggle { color: #fff; }
.nw-hero--navy .nw-trust__chev { color: #fff; }
.nw-hero--navy .nw-trust__body { color: rgba(255,255,255,.72); }
.nw-hero--navy .nw-trust__body strong { color: #fff; }

/* cover pulled up to overlap navy hero */
.nw-hero--navy + .nw-cover-wrap { margin-top: -96px; position: relative; z-index: 2; }
.nw-cover-wrap { background: transparent; }
.nw-cover {
  margin: 0 auto;
  max-width: 1180px;
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fd-ink-150);
  aspect-ratio: 21/9;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(32,89,200,.14), transparent 58%),
    radial-gradient(ellipse at 80% 80%, rgba(143,180,245,.16), transparent 55%),
    var(--fd-ink-75);
  position: relative;
  box-shadow: var(--fd-shadow-card);
  background-size: cover; background-position: center;
}
.nw-cover::after {
  content: "FOTO · immagine di copertina";
  position: absolute; top: 14px; left: 14px;
  font-family: var(--fd-font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fd-ink-500);
  background: rgba(255,255,255,.8); padding: 4px 9px; border-radius: 3px;
}
.nw-cover__credit {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11px; color: var(--fd-ink-600);
  background: rgba(255,255,255,.82); padding: 3px 8px; border-radius: 3px;
}
/* light hero cover sits in normal flow */
.nw-hero + .nw-cover-wrap { padding: 28px 0 0; }

/* ============================================================
   ARTICLE PROSE
   ============================================================ */
.nw-prose { font-size: 17px; color: var(--fd-ink-700); line-height: 1.75; max-width: 720px; }
.nw-prose > *:first-child { margin-top: 0; }
.nw-prose p { margin: 0 0 22px; }
.nw-prose a { color: var(--fd-green-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nw-prose a:hover { color: var(--fd-green-500); }
.nw-prose strong { color: var(--fd-ink-900); font-weight: 700; }
.nw-prose h2 {
  font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  color: var(--fd-ink-900); margin: 44px 0 16px; scroll-margin-top: 88px;
}
.nw-prose h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
  color: var(--fd-ink-900); margin: 34px 0 12px; scroll-margin-top: 88px;
}
.nw-prose ul, .nw-prose ol { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.nw-prose ul li, .nw-prose ol li {
  position: relative; padding-left: 28px; margin-bottom: 11px; line-height: 1.6;
}
.nw-prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--fd-green-500);
}
.nw-prose ol { counter-reset: nwli; }
.nw-prose ol li { counter-increment: nwli; }
.nw-prose ol li::before {
  content: counter(nwli); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--fd-green-50); color: var(--fd-green-700);
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.nw-prose blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px;
  border-left: 3px solid var(--fd-green-500);
  font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
  color: var(--fd-ink-900);
}
.nw-prose blockquote cite {
  display: block; margin-top: 12px; font-size: 13px; font-weight: 600;
  font-style: normal; color: var(--fd-ink-500);
}
.nw-prose figure { margin: 30px 0; }
.nw-prose figure img { width: 100%; border-radius: var(--fd-radius-md); border: 1px solid var(--fd-ink-150); }
.nw-prose figcaption { font-size: 13px; color: var(--fd-ink-500); margin-top: 10px; line-height: 1.5; }
.nw-prose hr { border: 0; border-top: 1px solid var(--fd-ink-150); margin: 40px 0; }

/* key-facts callout inside prose */
.nw-keyfacts {
  margin: 4px 0 30px;
  background: var(--fd-paper);
  border: 1px solid var(--fd-ink-150);
  border-left: 3px solid var(--fd-green-600);
  border-radius: var(--fd-radius-md);
  padding: 20px 24px;
}
.nw-keyfacts__title {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--fd-green-700); margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nw-keyfacts ul { margin: 0; padding: 0; list-style: none; }
.nw-keyfacts li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 15px; color: var(--fd-ink-700); line-height: 1.55; }
.nw-keyfacts li:last-child { margin-bottom: 0; }
.nw-keyfacts li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fd-green-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6342' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center / 11px no-repeat;
}

/* ============================================================
   STICKY TOC (Su questa pagina)
   ============================================================ */
.nw-toc {
  border-left: 2px solid var(--fd-ink-100);
  padding-left: 18px;
}
.nw-toc__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fd-ink-500); font-weight: 700; margin-bottom: 14px;
}
.nw-toc__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-toc__list a {
  display: block; padding: 7px 0 7px 14px; margin-left: -20px;
  border-left: 2px solid transparent;
  font-size: 13.5px; color: var(--fd-ink-600); line-height: 1.4;
  transition: color var(--fd-dur-fast), border-color var(--fd-dur-fast);
}
.nw-toc__list a:hover { color: var(--fd-ink-900); }
.nw-toc__list a.is-active { color: var(--fd-green-700); font-weight: 600; border-left-color: var(--fd-green-600); }

/* ============================================================
   SIDEBAR ADV SLOT
   ============================================================ */
.nw-adv {
  border-radius: var(--fd-radius-md);
  border: 1px dashed var(--fd-ink-200);
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(15,30,46,.02) 10px, rgba(15,30,46,.02) 11px),
    var(--fd-ink-50);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  min-height: 250px; padding: 18px; text-align: center;
}
.nw-adv--leaderboard { min-height: 132px; margin: 4px 0 30px; }
/* Slot adv "live" (shortcode/ad code dal backend): nessun box placeholder,
   solo il banner centrato. */
.nw-adv-live { display: flex; justify-content: center; }
.nw-adv-live img { max-width: 100%; height: auto; }
.nw-adv-live--leaderboard { margin: 4px 0 30px; }
.nw-adv__label {
  font-family: var(--fd-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fd-ink-400);
}
.nw-adv__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--fd-ink-500);
  border: 1px solid var(--fd-ink-200); border-radius: var(--fd-radius-full);
  padding: 4px 12px; background: var(--fd-paper);
}

/* ============================================================
   SOCIAL SHARE
   ============================================================ */
.nw-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 22px 0; margin: 6px 0 0;
  border-top: 1px solid var(--fd-ink-150);
  border-bottom: 1px solid var(--fd-ink-150);
}
.nw-share__label { font-size: 13px; font-weight: 700; color: var(--fd-ink-900); margin-right: 2px; }
.nw-share__btns { display: flex; gap: 8px; }
.nw-share__btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--fd-ink-200); background: var(--fd-paper);
  color: var(--fd-ink-600);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--fd-dur-fast);
}
.nw-share__btn:hover { border-color: var(--fd-green-400); color: var(--fd-green-700); background: var(--fd-green-50); }
.nw-share__copy {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--fd-ink-600);
  border: 1px solid var(--fd-ink-200); border-radius: var(--fd-radius-sm);
  padding: 9px 16px; background: var(--fd-paper);
  transition: all var(--fd-dur-fast);
}
.nw-share__copy:hover { border-color: var(--fd-green-400); color: var(--fd-green-700); }

/* ============================================================
   INLINE NEWSLETTER (sidebar / in-body)
   ============================================================ */
.nw-inline-news {
  background: var(--fd-green-900);
  border-radius: var(--fd-radius-md);
  padding: 24px 22px;
  color: #fff;
}
.nw-inline-news__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #8fb4f5; margin-bottom: 10px;
}
.nw-inline-news__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.25; color: #fff; }
.nw-inline-news__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.6); }
.nw-inline-news__consent input { margin: 2px 0 0; flex: 0 0 auto; }
.nw-inline-news__consent a { color: #8fb4f5; text-decoration: underline; }
.nw-inline-news__sub { font-size: 13px; color: rgba(255,255,255,.72); margin: 0 0 16px; line-height: 1.55; }
.nw-inline-news__form { display: flex; flex-direction: column; gap: 10px; }
.nw-inline-news__form .fd-input { border: 0; }
.nw-inline-news__fine { font-size: 11px; color: rgba(255,255,255,.5); margin: 10px 0 0; line-height: 1.5; }

@media (max-width: 1024px) {
  .nw-feat { grid-template-columns: 1fr; }
  .nw-feat__body { padding: 24px 28px 28px; }
  .nw-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-art-grid { grid-template-columns: 1fr; }
  .nw-art-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .nw-art-aside > * { flex: 1 1 280px; }
  .nw-hero__title { font-size: 34px; }
  .nw-hero--navy { padding-bottom: 110px; }
  .nw-metabar { grid-template-columns: 1fr; gap: 20px; }
  .nw-meta-facts { justify-self: start; }
}
@media (max-width: 640px) {
  .nw-grid { grid-template-columns: 1fr; }
  .nw-hero__title { font-size: 29px; }
  .nw-hero__dek { font-size: 16px; }
  .nw-toc { display: none; }
}

/* ============================================================
   MAGAZINE LAYOUT (Bankrate-style)
   Tall navy hero · white content card overlaps the band ·
   sidebar with cover + collapsible TOC.
   ============================================================ */
.nw-mag-hero {
  position: relative;
  background: linear-gradient(var(--fd-hero-grad-angle, 100deg), var(--fd-hero-bg-1, #0a1a38) 0%, var(--fd-hero-bg-2, #0e2349) 52%, var(--fd-hero-bg-3, #17386e) 100%);
  color: var(--fd-hero-text, #fff);
  padding: 28px 0 152px;
}
.nw-mag .nw-mag-hero .nw-crumb { color: color-mix(in srgb, var(--fd-hero-text, #fff) 60%, transparent); margin-bottom: 18px; font-weight: 500; }
.nw-mag .nw-mag-hero .nw-crumb a { color: color-mix(in srgb, var(--fd-hero-text, #fff) 78%, transparent); }
.nw-mag .nw-mag-hero .nw-crumb a:hover { color: var(--fd-hero-text, #fff); }
.nw-mag .nw-mag-hero .nw-crumb__sep { color: color-mix(in srgb, var(--fd-hero-text, #fff) 35%, transparent); }
.nw-mag .nw-mag-hero .nw-crumb__current { color: var(--fd-hero-text, #fff); }

.nw-mag-hero__inner { position: relative; max-width: none; }
/* trigger ⓘ (bottone): toggla il pannello disclosure inline */
.nw-mag-disclosure {
  position: absolute; right: 0; top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; box-shadow: none;
  font: inherit; font-size: 12px; cursor: pointer;
  color: color-mix(in srgb, var(--fd-hero-text, #fff) 62%, transparent);
}
.nw-mag-disclosure:hover,
.nw-mag-disclosure:focus,
.nw-mag-disclosure:active {
  color: var(--fd-hero-text, #fff); background: transparent; box-shadow: none; outline: none;
}
.nw-mag-disclosure:focus-visible { outline: 2px solid color-mix(in srgb, var(--fd-hero-text, #fff) 40%, transparent); outline-offset: 2px; }
.nw-mag-disclosure svg { flex: 0 0 auto; }

/* pannello disclosure inline (sotto la data, prima della card) */
.nw-mag-disclosure__panel {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--fd-hero-text, #fff) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fd-hero-text, #fff) 16%, transparent);
  border-radius: 10px;
  color: color-mix(in srgb, var(--fd-hero-text, #fff) 85%, transparent);
  font-size: 14px; line-height: 1.55;
}
.nw-mag-disclosure__panel[hidden] { display: none; }
.nw-mag-disclosure__panel p { margin: 0; }
.nw-mag-disclosure__panel strong { color: var(--fd-hero-text, #fff); }
/* link = colore testo hero (contrasta sempre col pannello, hero chiara o scura) */
.nw-mag-disclosure__panel a { color: var(--fd-hero-text, #fff); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.nw-mag-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #8fb4f5; margin-bottom: 14px;
}
.nw-mag-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: #8fb4f5; }
.nw-mag-title {
  font-size: 50px; font-weight: 700; letter-spacing: 0; line-height: 1.20;
  color: var(--fd-hero-text, #fff); margin: 0 0 28px; max-width: none;
}

/* Sottotitolo hero = excerpt dell'articolo, sotto il titolo. */
.nw-mag-sub {
  margin: -14px 0 28px; max-width: none;
  font-size: 20px; font-weight: 400; line-height: 1.5;
  color: color-mix(in srgb, var(--fd-hero-text, #fff) 78%, transparent);
}

/* author row with stacked avatars */
.nw-mag-byline { display: flex; align-items: flex-start; gap: 16px; }
.nw-mag-avatars { display: flex; flex: 0 0 auto; padding-top: 1px; }
.nw-mag-avatars .av {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #ffffff;
  margin-left: -13px;
  background: linear-gradient(135deg, #2f6fe0, #17386e);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.nw-mag-avatars .av:first-child { margin-left: 0; }
.nw-mag-byline__text {
  font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--fd-hero-text, #fff) 82%, transparent);
  align-self: center;
}
.nw-mag-byline__text a { color: var(--fd-hero-text, #fff); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.nw-mag-byline__text a:hover { color: #cfe0fb; }
.nw-mag-verified {
  display: inline-flex; align-items: center; gap: 5px;
  color: #8fb4f5; font-weight: 700; white-space: nowrap;
  position: relative; top: 3px; margin-left: 12px;
}
.nw-mag-verified svg { color: #8fb4f5; }
.nw-mag-subline {
  margin-top: 24px; padding-left: 0;
  font-size: 11px; color: color-mix(in srgb, var(--fd-hero-text, #fff) 60%, transparent);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.nw-mag-subline .dot { width: 3px; height: 3px; border-radius: 50%; background: color-mix(in srgb, var(--fd-hero-text, #fff) 40%, transparent); }
.nw-mag-subline span { display: inline-flex; align-items: center; gap: 6px; }

/* body — card overlaps the navy band */
.nw-mag-body { position: relative; z-index: 2; margin-top: -108px; padding-bottom: 8px; }
.nw-mag-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 360px;
  gap: 40px; align-items: start;
}
.nw-mag-main {
  background: #fff;
  border-radius: 16px;
  padding: 44px 54px 46px;
}
.nw-mag-main .nw-prose { max-width: none; }
/* align-self:stretch -> l'aside è alto quanto l'articolo, così lo sticky
   interno ha spazio per agganciarsi (la griglia ha align-items:start) */
.nw-mag-aside { display: flex; flex-direction: column; gap: 24px; align-self: stretch; }
/* sticky solo dall'indice (TOC) in giù: cover + disclaimer restano in alto */
.nw-mag-aside__sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 24px; }

/* sidebar cover */
.nw-mag-cover { margin: 0; }
.nw-mag-cover__img {
  aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  border: 5px solid #fff;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 22%, rgba(95,150,240,.5), transparent 60%),
    radial-gradient(ellipse at 78% 85%, rgba(143,180,245,.4), transparent 55%),
    #16315f;
  background-size: cover; background-position: center;
  box-shadow: var(--fd-shadow-card);
}
.nw-mag-cover__img::after {
  content: "FOTO";
  position: absolute; left: 12px; top: 12px;
  font-family: var(--fd-font-mono); font-size: 9px; letter-spacing: .1em;
  color: rgba(255,255,255,.7); background: rgba(0,0,0,.25);
  padding: 3px 8px; border-radius: 3px;
}
.nw-mag-cover__cap { font-size: 12px; color: var(--fd-ink-500); margin-top: 9px; line-height: 1.45; }

/* collapsible: editorial independence */
.nw-mag-ind {
  border-top: 1px solid var(--fd-ink-150);
  border-bottom: 1px solid var(--fd-ink-150);
}
.nw-mag-ind summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 2px; font-size: 13px; color: var(--fd-ink-600);
}
.nw-mag-ind summary::-webkit-details-marker { display: none; }
.nw-mag-ind summary svg { color: var(--fd-ink-400); transition: transform var(--fd-dur-fast); flex: 0 0 auto; }
.nw-mag-ind[open] summary svg { transform: rotate(180deg); }
.nw-mag-ind__body { padding: 0 2px 16px; font-size: 13px; line-height: 1.6; color: var(--fd-ink-500); }

/* collapsible: table of contents */
.nw-mag-toc { border-bottom: 1px solid var(--fd-ink-150); padding-bottom: 6px; }
.nw-mag-toc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 2px 14px;
  font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--fd-ink-900);
}
.nw-mag-toc > summary::-webkit-details-marker { display: none; }
.nw-mag-toc > summary svg { color: var(--fd-green-600); transition: transform var(--fd-dur-fast); flex: 0 0 auto; }
.nw-mag-toc[open] > summary svg { transform: rotate(180deg); }
.nw-mag-toc .nw-toc { border-left: 0; padding-left: 2px; padding-bottom: 8px; }
.nw-mag-toc .nw-toc__label { display: none; }
.nw-mag-toc .nw-toc__list a { margin-left: 0; padding-left: 22px; position: relative; border-left: 0; }
.nw-mag-toc .nw-toc__list a::before {
  content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--fd-ink-300); background: transparent;
}
.nw-mag-toc .nw-toc__list a.is-active { border-left: 0; }
.nw-mag-toc .nw-toc__list a.is-active::before { border-color: var(--fd-green-600); background: var(--fd-green-600); }

/* key takeaways callout (top of article) */
.nw-takeaways { border-left: 3px solid var(--fd-green-600); padding: 4px 0 4px 26px; margin: 0 0 36px; }
.nw-takeaways__title { font-size: 20px; font-weight: 800; color: var(--fd-ink-900); margin: 0 0 16px; letter-spacing: -.01em; }
.nw-takeaways ul { list-style: none; margin: 0; padding: 0; }
.nw-takeaways li { position: relative; padding-left: 24px; margin-bottom: 14px; font-size: 16.5px; line-height: 1.6; color: var(--fd-ink-700); }
.nw-takeaways li:last-child { margin-bottom: 0; }
.nw-takeaways li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--fd-green-600); }
.nw-takeaways strong { color: var(--fd-ink-900); font-weight: 700; }

/* LINEAR variant — flat, no overlap */
.nw-mag.is-flat .nw-mag-hero { padding-bottom: 54px; }
.nw-mag.is-flat .nw-mag-body { margin-top: 36px; }
.nw-mag.is-flat .nw-mag-main { box-shadow: none; border: 1px solid var(--fd-ink-150); }

/* cover "mobile" (in cima alla card): nascosta su desktop */
.nw-mag-cover--mobile { display: none; }

@media (max-width: 1024px) {
  .nw-mag-grid { grid-template-columns: 1fr; gap: 32px; }
  .nw-mag-aside,
  .nw-mag-aside__sticky { position: static; }
  .nw-mag-main { padding: 32px 30px 34px; }
  .nw-mag-title { font-size: 38px; }
  .nw-mag-sub { font-size: 18px; }
  /* immagine in evidenza in alto (stile Bankrate): mostra la mobile, nascondi
     quella nella sidebar. */
  .nw-mag-cover--mobile { display: block; margin: 0 0 24px; }
  .nw-mag-aside .nw-mag-cover { display: none; }
  /* TOC inutile su mobile (sidebar sotto l'articolo): nascosto. */
  .nw-mag-toc { display: none; }
}
@media (max-width: 640px) {
  .nw-mag-hero { padding-bottom: 120px; }
  .nw-mag-title { font-size: 29px; }
  .nw-mag-sub { font-size: 16px; margin-top: -8px; }
  .nw-mag-byline { flex-direction: column; gap: 12px; }
  /* in colonna align-self:center centrerebbe il testo in orizzontale: lo
     allineiamo a sinistra (stesso aspetto con o senza revisore). */
  .nw-mag-byline__text { align-self: flex-start; }
  .nw-mag-subline { padding-left: 0; }
  /* corpo magazine edge-to-edge SOLO qui (hero/navbar/footer intatti):
     card a tutta larghezza con angoli arrotondati (effetto Bankrate). */
  .nw-mag-body .nw-container { padding-left: 0; padding-right: 0; }
  .nw-mag-main { padding: 26px 16px 30px; border-radius: 14px; }
  /* la sidebar (sotto la card) non è dentro la card: con container 0 toccava
     i bordi -> gutter dedicato. */
  .nw-mag-aside { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   EDITORIAL "RIVISTA" LAYOUT (v2)
   Asymmetric hero · byline bar · centered reading column
   with a floating left rail (progress ring + vertical share).
   ============================================================ */
.nw-ed-hero { padding: 30px 0 34px; }
.nw-ed-hero .nw-crumb { margin-bottom: 24px; }
.nw-ed-hero__grid {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 50px; align-items: center;
}
.nw-ed-hero__text { min-width: 0; }
.nw-ed-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--fd-green-700); margin-bottom: 18px;
}
.nw-ed-kicker__tag {
  background: var(--fd-green-50); color: var(--fd-green-700);
  border-radius: var(--fd-radius-full); padding: 4px 11px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.nw-ed-title {
  font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
  color: var(--fd-ink-900); margin: 0 0 18px; text-wrap: balance;
}
.nw-ed-dek { font-size: 18px; line-height: 1.6; color: var(--fd-ink-600); margin: 0; max-width: 540px; }
.nw-ed-dek strong { color: var(--fd-ink-900); font-weight: 700; }

.nw-ed-cover {
  margin: 0; position: relative;
  aspect-ratio: 4/3; border-radius: var(--fd-radius-lg); overflow: hidden;
  border: 1px solid var(--fd-ink-150);
  box-shadow: var(--fd-shadow-card);
  background:
    radial-gradient(ellipse at 28% 22%, rgba(47,111,224,.35), transparent 60%),
    radial-gradient(ellipse at 80% 84%, rgba(143,180,245,.4), transparent 55%),
    #16315f;
  background-size: cover; background-position: center;
}
.nw-ed-cover::after {
  content: "FOTO"; position: absolute; left: 14px; top: 14px;
  font-family: var(--fd-font-mono); font-size: 9px; letter-spacing: .1em;
  color: rgba(255,255,255,.7); background: rgba(0,0,0,.25); padding: 3px 8px; border-radius: 3px;
}
.nw-ed-cover__credit {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11px; color: #fff; background: rgba(7,20,40,.55);
  padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(2px);
}

/* cover-on-top variant */
.nw-ed.is-cover-top .nw-ed-hero__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
.nw-ed.is-cover-top .nw-ed-hero__text { max-width: 780px; margin: 0 auto; }
.nw-ed.is-cover-top .nw-ed-dek { margin-left: auto; margin-right: auto; }
.nw-ed.is-cover-top .nw-ed-kicker { justify-content: center; }
.nw-ed.is-cover-top .nw-ed-cover { aspect-ratio: 21/8; }

/* byline bar */
.nw-ed-byline {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 18px 0; margin-top: 6px;
  border-top: 1px solid var(--fd-ink-150);
  border-bottom: 1px solid var(--fd-ink-150);
}
.nw-ed-byline__authors { display: flex; align-items: center; gap: 13px; }
.nw-ed-byline__avatars { display: flex; }
.nw-ed-byline__avatars .av {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -11px;
  border: 2px solid var(--fd-paper);
  background: linear-gradient(135deg, var(--fd-green-500), #16315f);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.nw-ed-byline__avatars .av:first-child { margin-left: 0; }
.nw-ed-byline__txt { font-size: 13.5px; line-height: 1.45; color: var(--fd-ink-600); }
.nw-ed-byline__txt a { color: var(--fd-ink-900); font-weight: 700; }
.nw-ed-byline__txt a:hover { color: var(--fd-green-700); }
.nw-ed-byline__verified { display: inline-flex; align-items: center; gap: 4px; color: var(--fd-green-700); font-weight: 700; }
.nw-ed-byline__verified svg { color: var(--fd-green-600); }
.nw-ed-byline__facts { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--fd-ink-500); }
.nw-ed-byline__facts span { display: inline-flex; align-items: center; gap: 6px; }
.nw-ed-byline__facts svg { color: var(--fd-ink-400); }

/* body grid — rail + centered column + balancing gutter */
.nw-ed-body { padding: 44px 0 8px; }
.nw-ed-layout {
  display: grid;
  grid-template-columns: 60px minmax(0, 720px) 60px;
  justify-content: center; gap: 40px;
}
.nw-ed-rail { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nw-ed-ring {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: conic-gradient(var(--fd-green-600) calc(var(--p,0) * 1%), var(--fd-ink-150) 0);
}
.nw-ed-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--fd-paper); }
.nw-ed-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--fd-ink-800); font-variant-numeric: tabular-nums; }
.nw-ed-rail__line { width: 1px; height: 26px; background: var(--fd-ink-150); }
.nw-ed-rail__share { display: flex; flex-direction: column; gap: 9px; }
.nw-ed-rail__btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--fd-ink-200); background: var(--fd-paper); color: var(--fd-ink-600);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--fd-dur-fast);
}
.nw-ed-rail__btn:hover { border-color: var(--fd-green-400); color: var(--fd-green-700); background: var(--fd-green-50); transform: translateY(-1px); }
.nw-ed-rail__btn.is-copied { color: var(--fd-green-700); border-color: var(--fd-green-400); }

.nw-ed-col { min-width: 0; }
.nw-ed-gutter {}

/* takeaways — filled accent card */
.nw-ed-takeaways {
  background: var(--fd-green-50); border: 1px solid var(--fd-green-100);
  border-radius: var(--fd-radius-lg); padding: 24px 28px; margin: 0 0 34px;
}
.nw-ed-takeaways__title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-green-700); margin: 0 0 14px;
}
.nw-ed-takeaways ul { list-style: none; margin: 0; padding: 0; }
.nw-ed-takeaways li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  font-size: 16px; line-height: 1.55; color: var(--fd-ink-800);
}
.nw-ed-takeaways li:last-child { margin-bottom: 0; }
.nw-ed-takeaways li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--fd-green-600) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center / 12px no-repeat;
}
.nw-ed-takeaways strong { color: var(--fd-ink-900); font-weight: 800; }

/* inline TOC card */
.nw-ed-toccard { border: 1px solid var(--fd-ink-150); border-radius: var(--fd-radius-lg); padding: 22px 26px; margin: 0 0 38px; }
.nw-ed-toccard__title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-ink-500); margin: 0 0 14px;
}
.nw-ed-toccard__title svg { color: var(--fd-green-600); }
.nw-ed-toccard ol { counter-reset: edt; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nw-ed-toccard li { counter-increment: edt; }
.nw-ed-toccard a {
  display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; margin: 0 -10px;
  border-radius: var(--fd-radius-sm); font-size: 15px; color: var(--fd-ink-700); line-height: 1.4;
  transition: background var(--fd-dur-fast), color var(--fd-dur-fast);
}
.nw-ed-toccard a::before {
  content: counter(edt, decimal-leading-zero); flex: 0 0 auto;
  font-family: var(--fd-font-mono); font-size: 12px; font-weight: 700; color: var(--fd-green-600);
}
.nw-ed-toccard a:hover { background: var(--fd-green-50); color: var(--fd-ink-900); }
.nw-ed-toccard a.is-active { background: var(--fd-green-50); color: var(--fd-green-700); font-weight: 600; }

/* in-body adv */
.nw-ed-col .nw-adv--leaderboard { margin: 8px 0 32px; }

@media (max-width: 1040px) {
  .nw-ed-layout { grid-template-columns: 1fr; gap: 0; max-width: 720px; margin: 0 auto; }
  .nw-ed-rail {
    position: sticky; top: 64px; z-index: 20;
    flex-direction: row; justify-content: space-between; width: 100%;
    gap: 12px; padding: 10px 0; margin-bottom: 18px;
    background: var(--fd-paper); border-bottom: 1px solid var(--fd-ink-100);
  }
  .nw-ed-rail__line { width: 26px; height: 1px; }
  .nw-ed-rail__share { flex-direction: row; }
  .nw-ed-gutter { display: none; }
}
@media (max-width: 900px) {
  .nw-ed-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .nw-ed-cover { aspect-ratio: 16/9; order: -1; }
  .nw-ed.is-cover-top .nw-ed-cover { aspect-ratio: 16/9; }
  .nw-ed-title { font-size: 34px; }
}
@media (max-width: 600px) {
  .nw-ed-title { font-size: 28px; }
  .nw-ed-dek { font-size: 16px; }
  .nw-ed-byline { gap: 14px; }
}

/* ============================================================
   MAG2 — original variation of the magazine layout
   Same skeleton (navy hero · overlapping card · sidebar),
   distinct details so it doesn't read as a clone.
   Scoped to .nw-mag2 — existing pages unaffected.
   ============================================================ */
/* hero — faint dotted texture + accent eyebrow/disclosure pills */
.nw-mag2 .nw-mag-hero { overflow: hidden; }
.nw-mag2 .nw-mag-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 30%, #000 100%);
  opacity: .7; pointer-events: none;
}
.nw-mag2 .nw-mag-hero__inner { position: relative; z-index: 1; }
.nw-mag2 .nw-mag-eyebrow {
  background: rgba(143,180,245,.16); color: #bcd3fa;
  padding: 5px 13px; border-radius: var(--fd-radius-full); letter-spacing: .05em;
}
.nw-mag2 .nw-mag-eyebrow::before { display: none; }
.nw-mag2 .nw-mag-disclosure {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 5px 11px; border-radius: var(--fd-radius-full);
}
.nw-mag2 .nw-mag-disclosure svg { color: rgba(255,255,255,.6); }
.nw-mag2 .nw-mag-disclosure a { text-decoration: none; }

/* restructured byline — primary author + labelled chips */
.nw-mag2-by { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nw-mag2-by__lead { display: flex; align-items: center; gap: 13px; }
.nw-mag2-by__av {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, var(--fd-green-500), #16315f);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.nw-mag2-by__name { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 7px; }
.nw-mag2-by__name svg { color: #8fb4f5; }
.nw-mag2-by__role { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.nw-mag2-by__sep { width: 1px; height: 36px; background: rgba(255,255,255,.16); }
.nw-mag2-by__chips { display: flex; gap: 26px; }
.nw-mag2-by__chip-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.nw-mag2-by__chip-v { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.nw-mag2-by__chip-v a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.nw-mag2 .nw-mag-subline { padding-left: 0; margin-top: 20px; }

/* card — accent top rule */
.nw-mag2 .nw-mag-main { border-top: 3px solid var(--fd-green-600); }

/* takeaways — tinted card */
.nw-mag2 .nw-takeaways {
  background: var(--fd-green-50); border: 1px solid var(--fd-green-100); border-left-width: 3px;
  border-radius: var(--fd-radius-lg); padding: 22px 26px;
}
.nw-mag2 .nw-takeaways__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fd-green-700);
}

/* sidebar — trust mini-card (replaces collapsible) */
.nw-mag2-trust {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--fd-ink-150); border-radius: var(--fd-radius-md);
  padding: 16px 18px; background: var(--fd-paper);
}
.nw-mag2-trust__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--fd-green-50); color: var(--fd-green-700); display: grid; place-items: center; }
.nw-mag2-trust__t { font-size: 13px; font-weight: 700; color: var(--fd-ink-900); margin-bottom: 3px; }
.nw-mag2-trust__d { font-size: 12.5px; line-height: 1.5; color: var(--fd-ink-500); }
.nw-mag2-trust__d a { color: var(--fd-green-700); font-weight: 600; }

/* sidebar — always-visible index with vertical progress indicator */
.nw-mag2-index__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fd-ink-500); font-weight: 700; margin-bottom: 14px; }
.nw-mag2-index__list { list-style: none; margin: 0; padding: 0; position: relative; }
.nw-mag2-index__list::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--fd-ink-100); border-radius: 2px; }
.nw-mag2-index__list::after {
  content: ""; position: absolute; left: 0; width: 2px; border-radius: 2px; background: var(--fd-green-600);
  top: var(--ind-top, 6px); height: var(--ind-h, 0px); transition: top .25s ease, height .25s ease;
}
.nw-mag2-index__list a { display: block; padding: 9px 0 9px 18px; font-size: 13.5px; color: var(--fd-ink-600); line-height: 1.4; }
.nw-mag2-index__list a:hover { color: var(--fd-ink-900); }
.nw-mag2-index__list a.is-active { color: var(--fd-green-700); font-weight: 600; }

@media (max-width: 1024px) {
  .nw-mag2-by__sep { display: none; }
  .nw-mag2-by { gap: 16px 24px; }
}

/* ============================================================
   PAGINA AUTORE (author.php) — hero navy con avatar + bio +
   sidebar EEAT + griglia articoli. Stile Bankrate, token --fd-*.
   ============================================================ */
.fd-authorpage-hero {
  background: linear-gradient(100deg, var(--fd-navy-1, #0a1933) 0%, var(--fd-navy-2, #0e2349) 52%, var(--fd-navy-3, #24477b) 100%);
  color: #fff;
  padding: 30px 0 48px;
}
.fd-authorpage-hero .nw-crumb { color: rgba(255,255,255,.6); margin-bottom: 24px; }
.fd-authorpage-hero .nw-crumb a { color: rgba(255,255,255,.78); }
.fd-authorpage-hero .nw-crumb a:hover { color: #fff; }
.fd-authorpage-hero .nw-crumb__sep { color: rgba(255,255,255,.35); }
.fd-authorpage-hero .nw-crumb__current { color: #fff; }
.fd-authorpage-hero__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fd-authorpage-hero__avatar {
  width: 140px; height: 140px; border-radius: 14px; overflow: hidden;
  border: 5px solid #fff; flex: 0 0 auto; background: var(--fd-ink-75);
}
.fd-authorpage-hero__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-authorpage-hero__name { font-size: 42px; font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 0 0 8px; line-height: 1.05; }
.fd-authorpage-hero__role { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.fd-authorpage-hero__socials { display: flex; gap: 8px; }
.fd-authorpage-hero__socials a {
  width: 36px; height: 36px; border-radius: 8px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--fd-dur-fast);
}
.fd-authorpage-hero__socials a:hover { background: rgba(255,255,255,.12); }

.fd-authorpage-body { padding: 0 0 72px; }
/* Card bianca che risale sopra la hero (stile single articolo). */
.fd-authorpage-card {
  position: relative; z-index: 2; margin-top: -20px;
  background: var(--fd-paper); border-radius: var(--fd-radius-lg);
  box-shadow: var(--fd-shadow-card);
  padding: 40px 44px;
}
.fd-authorpage-main h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--fd-ink-900); margin: 0 0 18px; }

/* Blocchi EEAT in orizzontale, sotto la bio. */
.fd-authorpage-eeat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--fd-ink-100);
}
.fd-authorpage-eeat:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fd-authorpage-eeat .fd-side-block { padding: 0; border-top: 0; }

.fd-side-block { padding: 20px 0; border-top: 1px solid var(--fd-ink-100); }
.fd-side-block:first-child { border-top: 0; }
.fd-side-block__title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-ink-500); margin: 0 0 12px; }
.fd-side-block__title svg { width: 18px; height: 18px; color: var(--fd-green-600); flex: 0 0 auto; }
.fd-side-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fd-side-block li { position: relative; padding-left: 16px; font-size: 14px; color: var(--fd-ink-800); line-height: 1.45; }
.fd-side-block li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--fd-green-600); }
.fd-side-exp { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-side-exp__pill { display: inline-flex; align-items: center; gap: 7px; background: var(--fd-ink-75); border-radius: 6px; padding: 8px 12px; font-size: 12px; color: var(--fd-ink-800); }
.fd-side-exp__pill strong { font-weight: 700; }

.fd-authorpage-posts { margin-top: 56px; }

@media (max-width: 768px) {
  .fd-authorpage-eeat { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .fd-authorpage-hero__name { font-size: 30px; }
  .fd-authorpage-hero__avatar { width: 96px; height: 96px; }
  .fd-authorpage-card { padding: 28px 22px; border-radius: 14px; }
}

/* ============================================================
   PAGINA "CLEAN" (page-clean.php) — hero navy col solo titolo +
   card bianca centrata, senza sidebar. Per pagine editoriali
   (metodologia, privacy, ecc.).
   ============================================================ */
.fd-page-hero {
  background: linear-gradient(100deg, var(--fd-navy-1, #0a1933) 0%, var(--fd-navy-2, #0e2349) 52%, var(--fd-navy-3, #24477b) 100%);
  color: #fff;
  padding: 64px 0 132px;
  text-align: center;
}
.fd-page-hero__title {
  font-size: 44px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  color: #fff; margin: 0 auto; max-width: 920px; text-wrap: balance;
}
.fd-page-body { padding: 0 0 72px; }
.fd-page-card {
  position: relative; z-index: 2;
  margin: -84px auto 0;
  background: #fff; border-radius: 16px;
  padding: 48px 56px;
}
.fd-page-card .nw-prose { max-width: none; }

@media (max-width: 640px) {
  .fd-page-hero { padding: 40px 0 100px; }
  .fd-page-hero__title { font-size: 29px; }
  .fd-page-card { margin-top: -72px; padding: 28px 22px; border-radius: 14px; }
}

/* ============================================================
   RICERCA + 404 — sezioni risultati + card .ft-search-card
   (il plugin emette il markup, lo stile è qui nel tema). Card lista
   compatta: logo + tipo + titolo + meta + descrizione.
   ============================================================ */
.fd-results-section { margin-bottom: 44px; }
.fd-results-section__title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  color: var(--fd-ink-900); margin: 0 0 18px;
}
.fd-results-section__count { font-size: 14px; font-weight: 700; color: var(--fd-ink-400); font-variant-numeric: tabular-nums; }
.fd-results-list { display: flex; flex-direction: column; gap: 12px; }
/* Variante griglia (es. Prodotti): card piccole affiancate, responsive. */
.fd-results-list--grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.fd-results-empty { font-size: 17px; color: var(--fd-ink-600); margin: 0 0 28px; line-height: 1.6; }

.ft-search-card {
  background: var(--fd-paper);
  border: 1px solid var(--fd-ink-150);
  border-radius: var(--fd-radius-md);
  overflow: hidden;
  transition: border-color var(--fd-dur-normal), box-shadow var(--fd-dur-normal);
}
.ft-search-card:hover { border-color: var(--fd-green-200); box-shadow: var(--fd-shadow-card-hover); }
.ft-search-card__link { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; text-decoration: none; color: inherit; }
.ft-search-card__logo {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  background: var(--fd-ink-75); display: inline-flex; align-items: center; justify-content: center;
}
.ft-search-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-search-card__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ft-search-card__type { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fd-green-700); }
.ft-search-card__title { font-size: 17px; font-weight: 700; letter-spacing: -.005em; color: var(--fd-ink-900); line-height: 1.3; }
.ft-search-card:hover .ft-search-card__title { color: var(--fd-green-700); }
.ft-search-card__meta { font-size: 13px; color: var(--fd-ink-500); }
.ft-search-card__desc { font-size: 14px; color: var(--fd-ink-600); line-height: 1.5; margin-top: 4px; }

/* ============================================================
   FD — adattamenti per WordPress (NON dal mockup)
   Glue minimo per integrare il design statico con WP/GeneratePress:
   - immagini reali al posto dei segnaposto a gradiente;
   - hero archivio full-bleed fuori dal container GeneratePress.
   ============================================================ */

/* I nostri template <main> riempiono l'area contenuto di GeneratePress
   (che è un flex container predisposto per la colonna sidebar): senza
   questo il main resta ancorato a sinistra e il full-bleed sballa. */
.site-content > .fd-archive,
.site-content > .nw-mag,
.site-content > .fd-page,
.site-content > .fd-authorpage,
#content > .fd-archive,
#content > .nw-mag,
#content > .fd-page,
#content > .fd-authorpage { width: 100%; flex: 1 1 auto; min-width: 0; }

/* hero immersive edge-to-edge fuori dal container GeneratePress */
.nwa-hero,
.nw-mag-hero,
.fd-page-hero,
.fd-authorpage-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* sfondo canvas dell'area magazine/pagina/autore (la card bianca galleggia) */
.nw-mag,
.fd-page,
.fd-authorpage { background: var(--fd-canvas); }

/* pagina autore: contenuto un po' più largo (la hero resta full-bleed). */
body.author #content { max-width: 1300px; margin-left: auto; margin-right: auto; }

/* avatar nativi WP (get_avatar) dentro i cerchi del design */
img.fd-avatar { object-fit: cover; }

/* immagini reali dentro i contenitori cover/card */
.nw-feat__img img,
.nw-card__img img,
.nw-art-cover img,
.nw-cover img,
.nw-mag-cover__img img,
.nw-ed-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* sopprime le etichette segnaposto "FOTO ..." del mockup quando l'immagine è reale */
.nw-feat__img:has(img)::after,
.nw-art-cover:has(img)::after,
.nw-cover:has(img)::after,
.nw-mag-cover__img:has(img)::after,
.nw-ed-cover:has(img)::after { content: none; }
