/* Shared opening rhythm for internal pages; Home is deliberately excluded. */
.section:is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) {
    padding-block: var(--cr-space-internal-hero) var(--cr-space-hero-section);
}
:is(.category-editorial-section--role-intro .category-editorial-copy, .about-section--about-intro .about-copy, .services-section--services-intro .services-copy, .showroom-section--showroom-intro .showroom-copy) > .wp-block-group,
.contacts-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cr-space-hero-intro) var(--cr-space-7);
    align-items: start;
    max-width: none;
}
/* Keep the global container width on Contatti; only its contents become a grid. */
.contacts-intro { max-width: var(--cr-width-wide); }
:is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) :is(h1, p) {
    margin: 0;
    align-self: start;
}
:is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) h1 {
    max-width: 100%;
    font-size: var(--cr-text-display);
    line-height: var(--cr-leading-display);
    letter-spacing: -0.055em;
}
:is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) p {
    max-width: var(--cr-measure-wide);
    font-size: var(--cr-text-lead);
    line-height: var(--cr-leading-lead);
}
.showroom-section--showroom-intro .showroom-layout { display: block; }
.showroom-section--showroom-intro .showroom-copy { align-self: start; }
.editorial-hero-media { aspect-ratio: var(--cr-ratio-showroom); }
.editorial-hero-media :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-editorial-section--role-intro .category-editorial-hero-media,
.showroom-section--showroom-intro .showroom-hero-media { margin: var(--cr-space-hero-media) 0 0; }
/* A single gap before and after the film, regardless of post-meta or term-meta source. */
.category-editorial-page .category-film { margin-block: 0 var(--cr-space-hero-section); }
.category-editorial-page .category-film .category-editorial-motorized-media { margin: 0; }
.category-editorial-page .category-editorial-section--role-intro:has(+ .category-film) { padding-block-end: var(--cr-space-hero-media); }
.category-editorial-page .category-film + .category-editorial-section,
.category-editorial-page .category-editorial-section--role-intro + .category-editorial-section,
.about-page .about-section--about-intro + .about-section,
.services-page .services-section--services-intro + .services-section,
.showroom-page .showroom-section--showroom-intro + .showroom-section { padding-block-start: 0; }
@media (min-width: 52rem) {
    :is(.category-editorial-section--role-intro .category-editorial-copy, .about-section--about-intro .about-copy, .services-section--services-intro .services-copy, .showroom-section--showroom-intro .showroom-copy) > .wp-block-group,
    .contacts-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    :is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) h1 { grid-column: 1; grid-row: 1; }
    :is(.category-editorial-section--role-intro, .about-section--about-intro, .services-section--services-intro, .showroom-section--showroom-intro, .contacts-intro) p { grid-column: 2; }
}

/* Reset native flow margins as well as the grid gap: never count both. */
:is(.category-editorial-section--role-intro .category-editorial-copy, .about-section--about-intro .about-copy, .services-section--services-intro .services-copy, .showroom-section--showroom-intro .showroom-copy) > .wp-block-group > :is(h1, p),
.contacts-intro > :is(h1, p) { margin: 0; }
