/* Template editoriale FSE condiviso: misure e colori provengono da theme.json. */
body:has(.single-article) {
  min-width: 0;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
}
.wp-block-group.page-content.single-article {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--wp--custom--museum--article--page-width);
  margin-inline: auto;
  padding: calc(var(--wp--custom--museum--article--top-space) + var(--venafro-notice-height)) var(--wp--custom--museum--article--gutter) var(--wp--custom--space--px-80);
  color: var(--wp--preset--color--ink);
  font-family: var(--font-sans);
}
.single-article > :where(.breadcrumbs, .article-hero, .article-continuation, .page-return) { max-width: none; }
.single-article .breadcrumbs {
  margin: 0 0 var(--wp--custom--space--px-32);
  gap: var(--wp--custom--space--px-12);
  font-size: var(--wp--custom--type--size-14);
  line-height: var(--wp--custom--leading--ratio-1-6);
  color: var(--wp--preset--color--muted);
  overflow-wrap: anywhere;
}
.single-article .article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: var(--wp--custom--museum--article--hero-gap);
  margin-block-start: 0;
}
.single-article .article-hero:not(:has(.wp-block-post-featured-image img)) { grid-template-columns: minmax(0, 1fr); }
.single-article .article-header { min-width: 0; margin: 0; }
.single-article .article-title {
  margin: 0;
  color: var(--wp--preset--color--ink);
  font-family: var(--font-sans);
  font-size: var(--wp--custom--museum--article--heading-size);
  font-weight: var(--wp--custom--weight--regular);
  line-height: var(--wp--custom--museum--article--heading-leading);
  letter-spacing: var(--wp--custom--museum--article--heading-tracking);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.single-article .article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--wp--custom--space--px-8) var(--wp--custom--space--px-20);
  margin-top: var(--wp--custom--space--px-24);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--custom--type--size-14);
  line-height: var(--wp--custom--leading--ratio-1-6);
}
.single-article .article-meta-bar > * { margin: 0; }
.single-article .article-read-link { margin: var(--wp--custom--space--px-20) 0 0; }
.single-article .article-read-link a { gap: var(--wp--custom--space--px-20); }
.single-article .article-featured-media {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: var(--wp--custom--museum--article--image-padding);
  background: var(--wp--preset--color--panel);
}
.single-article .article-featured-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--wp--custom--museum--article--image-max-height);
  margin-inline: auto;
  object-fit: contain;
}
.single-article > .article-reading {
  max-width: var(--wp--custom--museum--article--reading-measure);
  margin-inline: auto;
  margin-block-start: var(--wp--custom--museum--article--reading-gap);
  font-size: var(--wp--custom--museum--article--body-size);
}
.single-article .article-body {
  margin: 0;
  scroll-margin-top: var(--wp--custom--museum--article--anchor-offset);
  font-family: var(--font-sans);
  line-height: var(--wp--custom--leading--ratio-1-65);
}
.single-article .article-body .wp-block-post-content { margin: 0; }
.single-article .article-body :where(p, ul, ol, blockquote, figure, table) { margin-block: 0 var(--wp--custom--museum--article--paragraph-gap); }
.single-article .article-body :where(p, li) { line-height: inherit; }
.single-article .article-body .wp-block-post-content > p:first-child {
  font-size: var(--wp--custom--museum--article--lead-size);
  line-height: var(--wp--custom--leading--ratio-1-6);
}
.single-article .article-body :where(h2, h3, h4) {
  color: var(--wp--preset--color--ink);
  font-family: var(--font-sans);
  font-weight: var(--wp--custom--weight--regular);
  line-height: var(--wp--custom--leading--ratio-1-25);
  margin-block: var(--wp--custom--space--px-40) var(--wp--custom--space--px-16);
  scroll-margin-top: var(--wp--custom--museum--article--anchor-offset);
}
.single-article .article-body h2 { font-size: var(--wp--custom--museum--article--section-heading-size); }
.single-article .article-body :where(h3, h4) { font-size: var(--wp--custom--type--size-24); }
.single-article .article-body :where(ul, ol) { padding-inline-start: var(--wp--custom--space--px-24); }
.single-article .article-body li { margin-block-end: var(--wp--custom--space--px-8); }
.single-article .article-body strong { font-weight: var(--wp--custom--weight--semibold); }
.single-article .article-body :where(p, li, a) { overflow-wrap: anywhere; }
.single-article .article-body :where(img, video) { max-width: 100%; height: auto; }
.single-article .article-body blockquote {
  padding: var(--wp--custom--space--px-24);
  background: var(--wp--preset--color--panel);
  border: 0;
}
.single-article .article-body figcaption { font-size: var(--wp--custom--type--size-14); color: var(--wp--preset--color--muted); }
.single-article .article-footer-taxonomies {
  margin-block-start: var(--wp--custom--space--px-32);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--custom--type--size-14);
}
.single-article .article-footer-taxonomies:not(:has(a)) { display: none; }
.single-article a:not(.style-tile-button) { color: var(--wp--preset--color--ink); text-underline-offset: var(--wp--custom--measure--px-4); }
.single-article a:not(.style-tile-button):hover { color: var(--wp--preset--color--secondary); }
.single-article a:not(.style-tile-button):focus-visible { outline: var(--wp--custom--measure--px-3) solid var(--wp--preset--color--secondary); outline-offset: var(--wp--custom--measure--px-4); }
.single-article .article-continuation {
  margin-block-start: var(--wp--custom--museum--article--reading-gap);
  padding: var(--wp--custom--museum--article--image-padding);
  background: var(--wp--preset--color--section-alternate);
}
.single-article .article-continuation > h2 {
  margin: 0 0 var(--wp--custom--space--px-24);
  font-size: var(--wp--custom--museum--article--section-heading-size);
  font-weight: var(--wp--custom--weight--regular);
  line-height: var(--wp--custom--leading--ratio-1-25);
  color: var(--wp--preset--color--ink);
}
.single-article .article-continuation:not(:has(.article-adjacent-nav a)) { display: none; }
.single-article .article-adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wp--custom--space--px-24);
  margin: 0;
}
.single-article .article-adjacent-nav > :not(:has(a)) { display: none; }
.single-article .article-adjacent-nav:has(> :not(:has(a))) { grid-template-columns: minmax(0, 1fr); }
.single-article .article-adjacent-nav a {
  box-sizing: border-box;
  display: block;
  height: 100%;
  padding: var(--wp--custom--space--px-24);
  background: var(--wp--preset--color--panel);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.single-article .post-navigation-link__label {
  display: block;
  margin-bottom: var(--wp--custom--space--px-12);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--custom--type--size-14);
  font-weight: var(--wp--custom--weight--semibold);
}
.single-article .post-navigation-link__title {
  display: block;
  font-size: var(--wp--custom--type--size-22);
  line-height: var(--wp--custom--leading--ratio-1-3);
  font-weight: var(--wp--custom--weight--regular);
}
.single-article .article-adjacent-nav a:hover .post-navigation-link__title { text-decoration: underline; }
.single-article .page-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--wp--custom--space--px-24); margin-top: var(--wp--custom--space--px-32); padding: 0; border: 0; }
@media (max-width: 760px) {
  .single-article .article-hero, .single-article .article-adjacent-nav { grid-template-columns: minmax(0, 1fr); }
  .single-article .breadcrumbs > [aria-current], .single-article .breadcrumbs > [aria-hidden]:has(+ [aria-current]) { display: none; }
}
