/* ====================================================
   ARCHITETTURANDO — Article & Editorial Styles v2
   ==================================================== */

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--text-light);
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: 0.35; }
.breadcrumb-current { color: var(--text-mid); font-weight: 500; }

/* ============================================================
   HUB — Section hub (storia.html, etc.)
   ============================================================ */
.hub-intro {
  padding: 110px 0 var(--sp-lg);
  background: var(--bg);
}
.hub-intro.s { border-bottom: 2px solid var(--storia); }
.hub-intro.m { border-bottom: 2px solid var(--materiali); }
.hub-intro.v { border-bottom: 2px solid var(--viaggi); }

.hub-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--sp-lg) 0;
}

.hub-card {
  background: var(--bg);
  padding: var(--sp-md) var(--sp-md) var(--sp-md);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.hub-card::before { display: none; }
.hub-card:hover { background: var(--bg-subtle); transform: none; box-shadow: none; }

.hub-card-icon { font-size: 1.3rem; margin-bottom: 4px; }

.hub-card-count {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hub-card.s .hub-card-count { color: var(--storia); }
.hub-card.m .hub-card-count { color: var(--materiali); }
.hub-card.v .hub-card-count { color: var(--viaggi); }

.hub-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.hub-card p {
  font-size: 0.83rem;
  color: var(--text-mid);
  margin: 0;
  flex: 1;
  line-height: 1.6;
}
.hub-card-link {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: var(--ease);
}
.hub-card:hover .hub-card-link { color: var(--gold); gap: 7px; }
.hub-card.s .hub-card-link { color: var(--storia); }
.hub-card.m .hub-card-link { color: var(--materiali); }
.hub-card.v .hub-card-link { color: var(--viaggi); }

/* ============================================================
   ARTICLE GRID — Category pages & Homepage
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Top accent — thin line, not thick bar */
.ac-top { height: 2px; }
.article-card.s .ac-top { background: var(--storia); }
.article-card.m .ac-top { background: var(--materiali); }
.article-card.v .ac-top { background: var(--viaggi); }

.ac-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; }

.ac-section {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-light);
}
.article-card.s .ac-section { color: var(--storia); }
.article-card.m .ac-section { color: var(--materiali); }
.article-card.v .ac-section { color: var(--viaggi); }

.ac-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.ac-excerpt {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-sm);
}
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xs);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ac-author { display: none; }
.ac-avatar { display: none; }
.ac-author-name { display: none; }
.ac-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================================
   ARTICLE HERO — clean, white, large type
   ============================================================ */
.article-hero {
  padding: 110px 0 var(--sp-lg);
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Remove colored gradients — use thin top border only */
.article-hero.s { border-top: 3px solid var(--storia); }
.article-hero.m { border-top: 3px solid var(--materiali); }
.article-hero.v { border-top: 3px solid var(--viaggi); }

.article-category-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-category-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
}
.article-hero.s .article-category-label { color: var(--storia); }
.article-hero.s .article-category-label::before { background: var(--storia); }
.article-hero.m .article-category-label { color: var(--materiali); }
.article-hero.m .article-category-label::before { background: var(--materiali); }
.article-hero.v .article-category-label { color: var(--viaggi); }
.article-hero.v .article-category-label::before { background: var(--viaggi); }

/* Also used as .cat-parent in hub/category pages */
.cat-parent {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.s .cat-parent { color: var(--storia); }
.m .cat-parent { color: var(--materiali); }
.v .cat-parent { color: var(--viaggi); }

.article-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: var(--sp-sm);
}

.article-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.byline-avatar { display: none; }
.byline-info { display: flex; flex-direction: column; gap: 2px; }
.byline-name { display: none; }
.byline-meta {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 500;
}
.byline-dot { margin: 0 4px; }

/* ============================================================
   ARTICLE CONNECTIONS — Approfondisci
   ============================================================ */
.article-connections {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  padding: var(--sp-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--sp-md) 0;
}
.conn-prefix {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  align-self: center;
  margin-right: 4px;
}

/* ============================================================
   ARTICLE BODY — Long-form reading
   ============================================================ */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-md);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-md);
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 1.6em;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3em;
  margin-bottom: 0.6em;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--text);
}

/* Drop cap — gold, Inter */
.article-body > p:first-child::first-letter {
  font-family: var(--sans);
  font-size: 4.5em;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.07em 0 0;
  color: var(--gold);
}
.article-hero.s ~ .article-body > p:first-child::first-letter { color: var(--storia); }
.article-hero.m ~ .article-body > p:first-child::first-letter { color: var(--materiali); }
.article-hero.v ~ .article-body > p:first-child::first-letter { color: var(--viaggi); }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
  border-left: 3px solid var(--text);
  padding: var(--sp-sm) var(--sp-md);
  margin: 2.5em 0;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-mid);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.s .pull-quote,
.pull-quote.s { border-color: var(--storia); }
.m .pull-quote,
.pull-quote.m { border-color: var(--materiali); }
.v .pull-quote,
.pull-quote.v { border-color: var(--viaggi); }

/* ============================================================
   DATA BOX
   ============================================================ */
.data-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-md);
  margin: 2.5em 0;
}
.data-box h4 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.data-row:last-child { border-bottom: none; }
.data-row > span:first-child { color: var(--text-mid); flex-shrink: 0; max-width: 60%; overflow-wrap: break-word; }
.data-row > span:last-child { font-weight: 600; text-align: right; overflow-wrap: break-word; }
.data-label { color: var(--text-mid); }
.data-value { font-weight: 600; }

/* Article image placeholder — 16:9 fisso */
.article-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2em 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  text-align: center;
  padding: var(--sp-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-light);
}

/* ============================================================
   ARTICLE FOOTER — "Prossimo articolo" + connections
   ============================================================ */
.article-end {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-md) var(--sp-lg);
}
.article-tags-section {
  background: var(--gold-light);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.article-tags-section h4 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}
.art-tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.art-tag-row:last-child { margin-bottom: 0; }

/* Related articles */
.related-section { margin-bottom: var(--sp-lg); }
.related-section h4 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--sp-md);
  font-weight: 600;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-sm); }
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-sm);
  transition: var(--ease);
}
.related-card:hover { border-color: var(--border-mid); }
.rc-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text-light);
}
.related-card.s .rc-label { color: var(--storia); }
.related-card.m .rc-label { color: var(--materiali); }
.related-card.v .rc-label { color: var(--viaggi); }
.rc-title { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

/* Author card (kept but hidden via ac-author rule) */
.author-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}
.author-card-avatar { display: none; }
.author-card-info h4 { margin-bottom: 2px; }
.author-card-role { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; }
.author-card-bio { font-size: 0.85rem; color: var(--text-mid); margin-bottom: var(--sp-sm); }
.author-card-link { font-size: 0.78rem; font-weight: 600; color: var(--gold); text-decoration: underline; }

/* ============================================================
   PERSONA PAGE
   ============================================================ */
.persona-hero {
  padding: 120px 0 var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.persona-avatar-large { display: none; }
.persona-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
  color: var(--gold);
}
.persona-quote {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.65;
  margin: var(--sp-sm) 0;
  border-left: 2px solid var(--gold);
  padding-left: var(--sp-sm);
}
.s .persona-quote { border-color: var(--storia); }
.m .persona-quote { border-color: var(--materiali); }
.v .persona-quote { border-color: var(--viaggi); }
.persona-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-sm); }
.persona-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.persona-section h3 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}
.s .persona-section h3 { color: var(--storia); }
.m .persona-section h3 { color: var(--materiali); }
.v .persona-section h3 { color: var(--viaggi); }

/* ============================================================
   MAP PAGE
   ============================================================ */
.map-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 60px);
  margin-top: 60px;
}
.map-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-sidebar-header {
  padding: var(--sp-md) var(--sp-md) var(--sp-sm);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.map-sidebar-header h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.map-sidebar-header p { font-size: 0.8rem; color: var(--text-mid); margin: 0; }
.map-city-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; flex-shrink: 0; }
.map-city-tabs::-webkit-scrollbar { display: none; }
.map-city-tab {
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-mid);
  border-bottom: 1px solid transparent;
  transition: var(--ease);
  flex-shrink: 0;
}
.map-city-tab:hover { color: var(--text); }
.map-city-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.map-poi-list { flex: 1; overflow-y: auto; padding: var(--sp-sm); }
.map-poi-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease);
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.map-poi-item:hover { background: var(--bg-subtle); }
.map-poi-item.active { background: var(--gold-light); border-color: rgba(184,134,11,0.2); }
.map-poi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.map-poi-dot.storia-dot { background: var(--storia); }
.map-poi-dot.materiali-dot { background: var(--materiali); }
.map-poi-dot.mix-dot { background: var(--gold); }
.map-poi-info h4 { font-size: 0.85rem; margin-bottom: 2px; font-weight: 600; }
.map-poi-info p { font-size: 0.73rem; color: var(--text-mid); margin: 0; }
.map-poi-badge { font-size: 0.63rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; margin-top: 3px; display: inline-block; }
.map-poi-badge.s { background: var(--storia-light); color: var(--storia); }
.map-poi-badge.m { background: var(--materiali-light); color: var(--materiali); }
.map-sidebar-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.map-btn {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--ease);
  border: 1px solid transparent;
}
.map-btn.primary { background: var(--text); color: var(--bg); }
.map-btn.primary:hover { opacity: 0.85; }
.map-btn.outline { background: transparent; border-color: var(--border); color: var(--text-mid); }
.map-btn.outline:hover { border-color: var(--text-mid); color: var(--text); }
.map-btn.danger { background: transparent; border-color: #d44; color: #d44; }
.map-btn.danger:hover { background: #fdd; }
#map-container { z-index: 1; }
.map-legend {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-sm);
  box-shadow: var(--shadow-h);
  z-index: 400;
  min-width: 160px;
}
.map-legend h5 {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; margin-bottom: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.map-mode-indicator {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 500;
  pointer-events: none;
  display: none;
  box-shadow: var(--shadow);
}
.map-mode-indicator.visible { display: block; }

/* Leaflet popup */
.arch-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-h);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.arch-popup .leaflet-popup-content { margin: 0; }
.popup-inner { padding: 14px 16px; min-width: 220px; }
.popup-section { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.popup-section.s { color: var(--storia); }
.popup-section.m { color: var(--materiali); }
.popup-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.popup-desc { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 8px; }
.popup-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ============================================================
   HOMEPAGE EDITORIAL
   ============================================================ */
.editorial-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 0 var(--sp-lg);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.editorial-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.editorial-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}
.editorial-live-strip {
  background: var(--text);
  padding: 10px 0;
  overflow: hidden;
}
.live-strip-inner {
  display: flex;
  gap: var(--sp-lg);
  animation: scroll-strip 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.live-strip-item {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
.live-strip-item strong { color: var(--white); }
.live-strip-sep { color: var(--gold); }
@keyframes scroll-strip {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Latest articles */
.latest-section { padding: var(--sp-lg) 0; }
.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-sm);
}
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}
.section-label-row a {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Feature article */
.feature-article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  margin-bottom: var(--sp-md);
}
.feature-article:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.feature-article-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-md);
}
.feature-article.s .feature-article-visual { background: var(--storia); }
.feature-article.m .feature-article-visual { background: var(--materiali); }
.feature-article.v .feature-article-visual { background: var(--viaggi); }
.feature-article-num {
  font-size: 8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  position: absolute;
  bottom: -20px; right: 10px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.feature-article-section {
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.feature-article-body { padding: var(--sp-md); display: flex; flex-direction: column; justify-content: center; }
.feature-article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-xs);
}
.feature-article-body p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: var(--sp-sm); }

/* Redazione spotlight */
.redazione-section {
  background: var(--text);
  color: var(--white);
  padding: var(--sp-lg) 0;
  margin: var(--sp-lg) 0 0;
}
.redazione-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.08); margin-top: var(--sp-md); }
.redazione-card {
  padding: var(--sp-md);
  background: var(--text);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.redazione-card:hover { background: rgba(255,255,255,0.04); }
.redazione-avatar { display: none; }
.redazione-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.redazione-role { font-size: 0.68rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.redazione-quote { font-size: 0.84rem; color: rgba(255,255,255,0.55); font-style: italic; line-height: 1.65; flex: 1; }
.redazione-link { font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-top: auto; }

/* ============================================================
   CATEGORY PAGE HEADER
   ============================================================ */
.category-header {
  padding: 110px 0 var(--sp-lg);
  background: var(--bg);
}
.category-header.s { border-top: 3px solid var(--storia); }
.category-header.m { border-top: 3px solid var(--materiali); }
.category-header.v { border-top: 3px solid var(--viaggi); }
.cat-count {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   GHOST CARDS (coming soon)
   ============================================================ */
.article-card[style*="dashed"] {
  border: 1.5px dashed var(--border) !important;
  background: transparent;
  cursor: default;
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE — ARTICLE
   ============================================================ */
@media (max-width: 1024px) {
  .map-layout { grid-template-columns: 280px 1fr; }
  .feature-article { grid-template-columns: 1fr; min-height: auto; }
  .feature-article-visual { min-height: 130px; }
  .redazione-grid { grid-template-columns: 1fr; gap: 0; }
  .persona-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .map-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .map-sidebar { max-height: 40vh; }
  .article-body { padding: var(--sp-md) var(--sp-sm); }
  .article-container { padding: var(--sp-md) var(--sp-sm); }
  .author-card { flex-direction: column; }
  .hub-categories { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  nav, .map-sidebar, .map-legend, .map-btn, .map-city-tabs { display: none !important; }
  .map-layout { display: block; height: auto; }
  #map-container { height: 90vh !important; }
  body { margin: 0; }
}

/* ============================================================
   V2 ADDITIONS — Article TOC + 2-col layout
   ============================================================ */

/* ── ARTICLE CONTAINER with TOC — TOC is fixed, body stays single-col ── */
body.has-toc .article-container {
  max-width: 720px;
  /* no grid: TOC is position:fixed, managed by JS */
}
body.has-toc .article-body {
  max-width: 100%;
}

/* ── FLOATING TOC SIDEBAR ── */
.article-toc {
  /* position controlled by JS — see initArticleTOC() */
  position: fixed;
  width: 240px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  z-index: 80;
  transition: opacity 0.2s ease;
}
body.has-toc .article-toc { display: block; }
.toc-header {
  padding: 9px 13px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-light);
}
.toc-list { padding: 6px 0; }
.toc-link {
  display: flex; align-items: center;
  padding: 6px 13px;
  font-size: 0.78rem; color: var(--text-mid);
  transition: all 0.15s; cursor: pointer;
  border-left: 2px solid transparent;
  line-height: 1.35;
}
.toc-link:hover { background: var(--bg-subtle); color: var(--text); }
.toc-link.toc-active {
  border-left-color: var(--storia);
  background: var(--storia-light);
  color: var(--storia); font-weight: 600;
}
body.has-toc-m .toc-link.toc-active { border-left-color: var(--materiali); background: var(--materiali-light); color: var(--materiali); }
body.has-toc-v .toc-link.toc-active { border-left-color: var(--viaggi); background: var(--viaggi-light); color: var(--viaggi); }
.toc-progress-wrap {
  padding: 10px 13px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.toc-progress-bar {
  height: 2px; background: var(--border); border-radius: 1px;
  overflow: hidden; margin-bottom: 5px;
}
.toc-progress-fill {
  height: 100%; background: var(--gold); border-radius: 1px;
  transition: width 0.3s ease; width: 0%;
}
.toc-progress-label { font-size: 0.66rem; color: var(--text-light); }

/* ── V2 ARTICLE HERO — clean 2-col ── */
.article-hero-v2 {
  margin-top: 60px;
  border-top: 3px solid var(--storia);
  background: #fff;
  padding: 0;
}
.article-hero-v2.m { border-top-color: var(--materiali); }
.article-hero-v2.v { border-top-color: var(--viaggi); }
.article-hero-v2-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 2.5rem 2rem 0;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.article-hero-v2-img {
  height: 380px; border-radius: 3px;
  overflow: hidden; position: sticky; top: 80px;
}
.article-hero-v2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  /* TOC hidden on narrow screens — JS also hides when no room */
  #article-toc { display: none !important; }
  .article-hero-v2-inner { grid-template-columns: 1fr; }
  .article-hero-v2-img { display: none; }
}

/* ============================================================
   V2 OVERRIDE — Hub & Article Card Components
   Appended after existing styles — takes cascade precedence
   ============================================================ */

/* ---- Hub intro (section header) ---- */
.hub-intro {
  padding: 3.5rem 0 2.5rem;
  background: #fff;
  margin-top: 60px;
  border-bottom: 1px solid var(--border);
  border-top: none;
}
.hub-intro.s { border-left: 4px solid var(--storia); padding-left: 2.5rem; }
.hub-intro.m { border-left: 4px solid var(--materiali); padding-left: 2.5rem; }
.hub-intro.v { border-left: 4px solid var(--viaggi); padding-left: 2.5rem; }

.hub-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.03em;
}
.hub-intro .lead {
  max-width: 640px;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}
.hub-intro .ph-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.hub-intro .ph-label.s { color: var(--storia); }
.hub-intro .ph-label.m { color: var(--materiali); }
.hub-intro .ph-label.v { color: var(--viaggi); }

/* ---- Category grid ---- */
.hub-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2.5rem 0 0;
}

/* ---- Hub card ---- */
.hub-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
  position: relative;
  box-shadow: none;
}
.hub-card::before { display: none; }
.hub-card:hover { background: var(--bg-subtle); transform: none; box-shadow: none; }

.hub-card-band { height: 3px; }
.hub-card.s .hub-card-band { background: var(--storia); }
.hub-card.m .hub-card-band { background: var(--materiali); }
.hub-card.v .hub-card-band { background: var(--viaggi); }

.hub-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.hub-card-icon { display: none !important; }

.hub-card-era {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.hub-card-count {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}
.hub-card.s .hub-card-count { color: var(--storia); }
.hub-card.m .hub-card-count { color: var(--materiali); }
.hub-card.v .hub-card-count { color: var(--viaggi); }

.hub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.hub-card p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.hub-card-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}
.hub-card.s .hub-card-link { color: var(--storia); }
.hub-card.m .hub-card-link { color: var(--materiali); }
.hub-card.v .hub-card-link { color: var(--viaggi); }
.hub-card:hover .hub-card-link { color: var(--gold); gap: 8px; }

/* Hub-card thumbnail image — 16:9 fisso */
.hub-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
  position: relative;
}
.hub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: transform 0.55s ease, filter 0.3s ease;
}
.hub-card:hover .hub-card-img img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* ---- Article grid ---- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.article-card {
  background: #fff;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: background 0.2s ease;
  position: relative;
}
.article-card:hover { background: var(--bg-subtle); transform: none; box-shadow: none; }

.ac-top { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.article-card.s .ac-top { background: var(--storia); }
.article-card.m .ac-top { background: var(--materiali); }
.article-card.v .ac-top { background: var(--viaggi); }

.ac-body { flex: 1; display: flex; flex-direction: column; }

.ac-section {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-card.s .ac-section { color: var(--storia); }
.article-card.m .ac-section { color: var(--materiali); }
.article-card.v .ac-section { color: var(--viaggi); }

.ac-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ac-excerpt {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}
.ac-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.ac-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}
.ac-author { display: none; }
.ac-avatar { display: none; }
.ac-author-name { display: none; }

/* Card hidden state for timeline filter */
.article-card.card-hidden { display: none; }

/* Section label */
.section-label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
}
.section-label-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Card thumbnail image — 16:9 fisso ──────────────────── */
.ac-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
  position: relative;
}
.ac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.article-card:hover .ac-img img { transform: scale(1.05); }

/* ── Article hero photo (bg overlay) ─────────────────────── */
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  filter: grayscale(25%);
}
.article-hero > .container { position: relative; z-index: 1; }

/* ============================================================
   ILLUSTRAZIONI TECNICHE — disegni a china
   ============================================================ */

/* Illustrazione singola — vista intera edificio o dettaglio */
.illustrazione {
  margin: var(--sp-lg) 0;
  position: relative;
}
.illustrazione img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
  background: #fff;
}
.illustrazione figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
  padding: 0 4px;
}
.illustrazione figcaption strong {
  font-style: normal;
  color: var(--text-mid);
  font-weight: 600;
}

/* Illustrazione a tutta larghezza (fuori dal testo) */
.illustrazione.full {
  margin-left: calc(var(--sp-lg) * -1);
  margin-right: calc(var(--sp-lg) * -1);
  border-radius: 0;
}
.illustrazione.full img { border-radius: 0; border-left: none; border-right: none; }

/* Coppia di illustrazioni affiancate (dettagli) */
.illustrazione-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin: var(--sp-lg) 0;
}
.illustrazione-grid .illustrazione { margin: 0; }
.illustrazione-grid .illustrazione img { aspect-ratio: 4 / 3; }

/* Triplo affiancato */
.illustrazione-grid.tre { grid-template-columns: 1fr 1fr 1fr; }
.illustrazione-grid.tre .illustrazione img { aspect-ratio: 1 / 1; }

@media (max-width: 700px) {
  .illustrazione-grid,
  .illustrazione-grid.tre { grid-template-columns: 1fr; }
}

/* ============================================================
   "In preparazione" ghost cards */
.article-card.ghost {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  border: 1.5px dashed var(--border);
  background: transparent;
}

/* Responsive hub & article grids */
@media (max-width: 900px) {
  .hub-categories,
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-intro.s,
  .hub-intro.m,
  .hub-intro.v { padding-left: 1.5rem; }
}
@media (max-width: 600px) {
  .hub-categories,
  .article-grid { grid-template-columns: 1fr; }
  .hub-intro { padding: 2rem 0 1.5rem; }
  .data-row:not([style*="column"]) {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .data-row:not([style*="column"]) > span:first-child { max-width: 100%; }
  .data-row:not([style*="column"]) > span:last-child { text-align: left; }
}
