/* Archivi editoriali FSE: query nativa, palette e misure condivise del museo. */
body:has(.editorial-archive) {
  min-width: 0;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
}
.wp-block-group.page-content.editorial-archive {
  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);
}
.editorial-archive .breadcrumbs {
  margin: 0 0 var(--wp--custom--space--px-24);
  gap: var(--wp--custom--space--px-12);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--custom--type--size-14);
  overflow-wrap: anywhere;
}
.editorial-archive .archive-heading { margin: 0 0 var(--wp--custom--museum--archive--section-gap); }
.editorial-archive .archive-heading h1 {
  margin: 0;
  color: var(--wp--preset--color--ink);
  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);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.editorial-archive .archive-description {
  max-width: var(--wp--custom--museum--article--reading-measure);
  margin-top: var(--wp--custom--space--px-24);
  font-size: var(--wp--custom--museum--article--body-size);
  line-height: var(--wp--custom--leading--ratio-1-6);
}
.editorial-archive .archive-description p { color: inherit; font-size: inherit; line-height: inherit; }
.editorial-archive .archive-query,
.editorial-archive > .wp-block-template-part { margin: 0; }
.editorial-archive .archive-results {
  margin: 0;
  padding: 0;
  gap: var(--wp--custom--museum--archive--grid-gap);
  list-style: none;
  align-items: stretch;
}
.editorial-archive .archive-results > li { min-width: 0; margin: 0; }
.editorial-archive .archive-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
}
.editorial-archive .archive-entry-image {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--wp--custom--museum--archive--image-height);
  margin: 0 0 var(--wp--custom--space--px-24);
  padding: var(--wp--custom--museum--archive--image-padding);
  background: var(--wp--preset--color--panel);
}
.editorial-archive .archive-entry-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.editorial-archive .archive-entry-copy { display: flex; flex-direction: column; flex: 1; margin: 0; }
.editorial-archive .archive-entry h2 {
  margin: 0;
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--custom--museum--archive--title-size);
  font-weight: var(--wp--custom--weight--regular);
  line-height: var(--wp--custom--leading--ratio-1-25);
  letter-spacing: var(--wp--custom--tracking--minus-em-0-02);
  overflow-wrap: anywhere;
}
.editorial-archive .archive-entry h2 a { text-decoration: none; }
.editorial-archive .wp-block-post-date {
  margin: var(--wp--custom--space--px-12) 0 0;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--custom--type--size-14);
}
.editorial-archive .wp-block-post-excerpt {
  flex: 1;
  margin: var(--wp--custom--space--px-12) 0 var(--wp--custom--space--px-16);
  font-size: var(--wp--custom--museum--archive--excerpt-size);
  line-height: var(--wp--custom--leading--ratio-1-65);
}
.editorial-archive .wp-block-post-excerpt p { margin: 0; color: var(--wp--preset--color--ink); font-size: inherit; line-height: inherit; }
.editorial-archive a:not(.style-tile-button) { color: var(--wp--preset--color--ink); text-underline-offset: var(--wp--custom--measure--px-4); }
.editorial-archive a:not(.style-tile-button):hover { color: var(--wp--preset--color--secondary); text-decoration: underline; }
.editorial-archive 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); }
.editorial-archive .wp-block-read-more { align-self: flex-start; margin: 0; }
.editorial-archive .wp-block-query-pagination {
  margin-top: var(--wp--custom--museum--archive--section-gap);
  gap: var(--wp--custom--space--px-16);
  font-size: var(--wp--custom--type--size-16);
}
.editorial-archive .wp-block-query-pagination :where(a, .current) {
  display: inline-flex;
  min-width: var(--wp--custom--measure--px-44);
  min-height: var(--wp--custom--measure--px-44);
  align-items: center;
  justify-content: center;
  padding: var(--wp--custom--space--px-8);
}
.editorial-archive .wp-block-query-pagination .current { background: var(--wp--preset--color--panel); font-weight: var(--wp--custom--weight--semibold); }
.editorial-archive .archive-return { margin: var(--wp--custom--museum--archive--section-gap) 0 0; }
@media (min-width: 641px) {
  .editorial-archive .archive-results > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .editorial-archive .archive-results > li:last-child:nth-child(odd) .archive-entry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--wp--custom--museum--archive--grid-gap);
  }
  .editorial-archive .archive-results > li:last-child:nth-child(odd) .archive-entry-image { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .editorial-archive .archive-results { grid-template-columns: minmax(0, 1fr); }
  .editorial-archive .breadcrumbs > [aria-current], .editorial-archive .breadcrumbs > [aria-hidden]:has(+ [aria-current]) { display: none; }
}
