/* Complementi uses the shared internal hero and editorial typography. */
.complementi-section { padding-block: var(--cr-space-section-compact); }
.complementi-section p { max-width: var(--cr-measure-wide); }
.complementi-section:not(.category-editorial-section--role-intro) .wp-block-group > * { margin-block: 0; }
.complementi-section:not(.category-editorial-section--role-intro) .wp-block-group > * + * { margin-block-start: var(--cr-space-copy); }
.complementi-section h2 { max-width: var(--cr-heading-measure, 23ch); }
.complementi-layout { display: grid; gap: var(--cr-space-6); align-items: start; }
.complementi-media { min-width: 0; margin: 0; }
.complementi-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.complementi-media.editorial-hero-media img { height: 100%; aspect-ratio: auto; }
/* Use whole words; allow the title to wrap between Complementi and letto. */
.complementi-page .category-editorial-section--role-intro h1 { font-size: clamp(2.625rem, 1.25rem + 4.6vw, 5.375rem); }
.complementi-gallery { min-width: 0; grid-column: 1 / -1; }
.complementi-gallery .home-gallery { padding: 0; }
.complementi-gallery .home-gallery__viewport { padding-inline: 0; }
.complementi-gallery .home-gallery__photo { height: clamp(12rem, 22vw, 20rem); }
.complementi-gallery .home-gallery__set { padding-inline-end: 0; }
.complementi-section .complementi-profili { padding-block-start: var(--cr-space-7); font-size: var(--cr-text-small); line-height: var(--cr-leading-body); }


@media (max-width: 47.99rem) {
    .complementi-gallery .home-gallery__photo {
        width: calc((100vw - 2 * var(--cr-gutter)) * .6);
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

/* Only the three product sections: heading beside the complete copy. */
@media (min-width: 64rem) {
    .complementi-page :is(#complementi-daunenstep, #complementi-protezione, #complementi-topper) {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        column-gap: var(--cr-grid-gap);
        align-items: start;
    }
    .complementi-page :is(#complementi-daunenstep, #complementi-protezione, #complementi-topper) > h2 {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        hyphens: auto;
    }
    .complementi-page #complementi-protezione > h2 { grid-row: 1 / span 3; }
    .complementi-page :is(#complementi-daunenstep, #complementi-protezione, #complementi-topper) > p {
        grid-column: 2;
        min-width: 0;
        max-width: none;
    }
    .complementi-page :is(#complementi-daunenstep, #complementi-protezione, #complementi-topper) > h2 + p {
        margin-block-start: 0;
    }
}
