/* Parmalat Educational — brand overrides. Loaded last (after the shared components' CSS).
   Values belong in poc_tokens/brand-parmalateducational.json; anything here is structure
   that no token or component prop can express yet. */

/* The home page's picture banner (text-banner with a picture): its own height, as page-hero band
   tokens scoped to its section-backdrop modifier — the page title bands keep the brand's band tokens;
   its button in the light blue of the brand. */
.section-backdrop--picture-banner {
    --page-hero-band-padding-top: 362px;
    --page-hero-band-padding-bottom: 50px;
    --page-hero-band-padding-top-mobile: 312px;
    --page-hero-band-padding-bottom-mobile: 50px;
    --color-button-primary-bg: var(--color-secondary);
}

/* The slider (text-banner with captioned pictures: hero-carousel-arrows, slideLook + captionLook):
   further down a page it sits in the content width (1220px, at least 10px from the screen's sides),
   25px under the text above it (the text's own 15px below + 10px). */
.section-backdrop--slides-boxed {
    --section-backdrop-padding: 10px max(10px, calc((100% - 1220px) / 2)) 0;
}
/* the card grid right after it: 40px under the slider (instead of its 100px under a text) */
.section-backdrop--slides-boxed + .section-backdrop {
    --content-cards-grid-padding: 40px 0 30px;
    --content-cards-grid-padding-mobile: 40px 30px 30px;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .section-backdrop--slides-boxed + .section-backdrop {
        --content-cards-grid-padding: 40px 30px 30px;
    }
}

/* The wave picture (topicImageText home-image-separation): across the whole page, no space around it;
   after a cards grid its transparent top shows the grid's band. */
.section-backdrop--wave,
.section-backdrop--wave-after-cards {
    --image-row-padding: 0;
    --image-row-padding-mobile: 0;
    --image-row-bleed-image-width: 100%;
}
.section-backdrop--wave-after-cards {
    --section-backdrop-bg: var(--content-cards-grid-bg);
}

/* The seams between the bands, as Elementor's "curve" dividers on the live site: where the band's
   colour changes, the band above bulges 50px into the next one (section-backdrop's curve). Going
   from the cream band back to the white page the curve is the other way up (--seam-to-white). */
:root {
    --seam-to-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath transform='rotate(180 500 50)' d='M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z'/%3E%3C/svg%3E");
}
.section-backdrop--cards-band,
.section-backdrop--text-band,
.section-backdrop--newsletter-band,
.section-backdrop--newsletter-plain {
    position: relative;
    --section-backdrop-curve: '';
    --section-backdrop-curve-color: var(--color-bg);
}
.section-backdrop--newsletter-plain {
    --section-backdrop-curve-color: var(--content-cards-grid-bg);
    --section-backdrop-curve-mask: var(--seam-to-white);
}
/* (a band with entrance animations is followed by its script) */
:is(.section-backdrop--wave-band, .section-backdrop--wave-band-short, .section-backdrop--wave-band-square) + :is(.section-backdrop--cards-band, .section-backdrop--newsletter-band),
:is(.section-backdrop--wave-band, .section-backdrop--wave-band-short, .section-backdrop--wave-band-square) + script + :is(.section-backdrop--cards-band, .section-backdrop--newsletter-band),
:is(.section-backdrop--wave-band, .section-backdrop--wave-band-short, .section-backdrop--wave-band-square) + * .section-backdrop--text-band,
:is(.section-backdrop--wave-band, .section-backdrop--wave-band-short, .section-backdrop--wave-band-square) + script + * .section-backdrop--text-band {
    --section-backdrop-curve-color: var(--color-secondary);
}
.section-backdrop--banner-picture:has(.section-backdrop--banner-promo) + .section-backdrop--text-band {
    --section-backdrop-curve-color: var(--color-promo-band);
}
/* Educational in gocce: cream and white bands alternate with the same curve */
.section-backdrop--cta-pink:has(.section-backdrop--text-band) + .section-backdrop--cta-pink .section-backdrop--text-plain {
    position: relative;
    --section-backdrop-curve: '';
    --section-backdrop-curve-color: var(--content-cards-grid-bg);
}
.section-backdrop--cta-pink + .section-backdrop--newsletter-plain {
    --section-backdrop-curve-mask: initial;
}

/* What Elementor set per page and Contentful has no field for (pageGeneric--<slug>): the school pages'
   titles pink, Mission's orange; a few spacings */
:is(.pageGeneric--parmalat-per-la-scuola, .pageGeneric--seminari-per-i-docenti, .pageGeneric--educational-in-gocce, .pageGeneric--visite-agli-stabilimenti, .pageGeneric--mangiamo-sostenibile-volersi-bene-a-tavola, .pageGeneric--dadessoinpoi-webinar-per-insegnanti, .pageGeneric--dadessoinpoi-spunti-e-riflessioni-sulla-didattica-on-life) :is(.section-backdrop--banner-picture, .section-backdrop--page-title) {
    --media-row-title-color: var(--color-button-pink-bg);
    --rich-text-heading-color: var(--color-button-pink-bg);
}
/* Accedi: educational.parmalat.it keeps the page's video in a hidden section; its text centred with no
   space between the lines, the heading wrapping greedily, the two buttons in the middle of two
   columns 20px apart inside a row 20px from the edges */
.pageGeneric--accedi .video-embed {
    display: none;
}
.pageGeneric--accedi .rich-text__inner {
    text-align: center;
}
.pageGeneric--accedi .rich-text p:not(:last-child) {
    margin-bottom: 0;
}
.pageGeneric--accedi h2 {
    text-wrap: wrap;
}
.pageGeneric--accedi .section-backdrop {
    --button-row-max-width: 1240px;
    --button-row-padding: 30px 20px 20px;
    --button-row-gap: 20px;
}
.pageGeneric--mission .section-backdrop--banner-picture {
    --media-row-title-color: #EB6800;
}
/* Newsletter: its picture on the right of the title and text, as Elementor set it on this page
   (Contentful has one style for this block, block-image-left-text-right), where the row is a row */
@media (min-width: 768px) {
    .pageGeneric--newsletter > .media-row .media-row__inner {
        flex-direction: row-reverse;
    }
}
.pageGeneric--newsletter > .media-row {
    --media-row-image-height: 400px;
    --media-row-title-size: 36px;
    --media-row-title-size-tablet: 30px;
}
/* (its 20px above the title inside the page's cream band: padding, not margin) */
.pageGeneric--parmalat-per-la-scuola .section-backdrop--page-title {
    padding-top: 20px;
}
/* Parmalat per la scuola: one cream band from the title to the last text, its section title pink, then
   the newsletter on white behind the cream curve (as Elementor set this page) */
.pageGeneric--parmalat-per-la-scuola > :not(.section-backdrop--newsletter-band) {
    background-color: var(--content-cards-grid-bg);
}
.pageGeneric--parmalat-per-la-scuola .section-backdrop--cards-band {
    --section-backdrop-curve: none;
}
.pageGeneric--parmalat-per-la-scuola > .rich-text {
    --rich-text-heading-color: var(--color-button-pink-bg);
}
.pageGeneric--parmalat-per-la-scuola > .section-backdrop--newsletter-band {
    --section-backdrop-curve-color: var(--content-cards-grid-bg);
    --section-backdrop-curve-mask: var(--seam-to-white);
    --content-block-bg: var(--color-bg);
}
@media (max-width: 1024px) {
    .pageGeneric--storico-concorsi .section-backdrop--page-title {
        --section-backdrop-margin: 30px 0 0;
    }
}
/* Seminari and Visite: a blue rule under every card; Seminari's headings inside the texts pink */
:is(.pageGeneric--seminari-per-i-docenti, .pageGeneric--visite-agli-stabilimenti) :is(.section-backdrop--card-icon, .section-backdrop--video-in-card) {
    --media-row-padding: 20px 0 0;
    --media-row-rule-gap: 20px;
    --media-row-ctas-margin-top: 10px;
    --media-row-border-bottom: 2px solid var(--color-secondary);
}
.pageGeneric--seminari-per-i-docenti h4 {
    color: var(--color-button-pink-bg);
}
/* The past contests and the files to browse sit on the page background */
.section-backdrop--cards-timeline,
.section-backdrop--cards-files {
    --content-cards-grid-bg: transparent;
}
/* The activities' two buttons with their icons */
.section-backdrop--buttons .button-row__btn::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background: url("../../template/parmalateducational/icons/a-casa-15d8b95d3053f7570c5b2a4de9d67086.svg") center / contain no-repeat;
}
.section-backdrop--buttons .button-row__item:nth-child(2) .button-row__btn::before {
    background-image: url("../../template/parmalateducational/icons/a-scuola-8894e926985155c5f74ee09fdd188b4d.svg");
}
.pageGeneric--gioca-e-vinci .section-backdrop--text-band,
.pageGeneric--storico-concorsi .section-backdrop--text-band {
    --spacing-section-padding: 110px 20px 60px;
}

/* Educational in gocce: three equal bands, the button right under the text */
.pageGeneric--educational-in-gocce :is(.section-backdrop--text-band, .section-backdrop--text-plain) {
    --spacing-section-padding: 110px 20px 38px;
    --section-description-paragraph-gap: 0;
}

/* The "Interventi didattici in classe" card is in Contentful but not on the live site (its page
   redirects to the home page there): to be taken out of the content, then this rule goes */
.section-backdrop--cards-band .content-cards__item:has(a[href$="/interventi-didattici-in-classe"]) {
    display: none;
}

/* The main menu keeps its full size down to 1025px (header.css shrinks it up to 1120px), then 16px
   with 16px sides; the items always touch */
@media (min-width: 769px) and (max-width: 1120px) {
    .site-header {
        --spacing-nav-gap: 0;
        --font-size-nav-item: 18px;
    }
    .site-header nav {
        margin-left: 0;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .site-header {
        --font-size-nav-item: 16px;
        --nav-item-padding: 0 16px;
    }
}

/* The line above the footer runs across the page */
body > main {
    border-bottom: 1px solid #3b3b3b;
}

/* The row right after a wave sits on the wave's band: band colour, light texts, a taller picture
   (600px for a portrait picture, 450px for a square one or for a portrait one opening the page). */
.section-backdrop--wave-band,
.section-backdrop--wave-band-short,
.section-backdrop--wave-band-square {
    --section-backdrop-bg: var(--color-secondary);
    --media-row-title-color: var(--color-text-light);
    --media-row-text-color: var(--color-text-light);
    --media-row-media-basis: 600px;
    --media-row-gap: 20px;
    --media-row-image-height: 600px;
    --media-row-image-height-mobile: 399px;
    --media-row-title-margin-bottom: 20px;
    --media-row-text-margin: 5px;
    --media-row-padding-mobile: 10px 0;
    --media-row-gutter-mobile: 10px;
    --media-row-title-margin-bottom-mobile: 20px;
    --media-row-text-margin-mobile: 5px;
}
.section-backdrop--wave-band-short,
.section-backdrop--wave-band-square {
    --media-row-image-height: 450px;
    --media-row-image-width: auto;
    --media-row-image-margin: 0 auto;
}

/* A cards grid opened by its heading and text (componentTitleSlidingImagesAndTexts with a
   description): both on the grid's band. */
.section-backdrop--cards-band {
    --section-backdrop-bg: var(--content-cards-grid-bg);
    --section-backdrop-padding: 100px 0 0;
    --section-backdrop-padding-mobile: 100px 0 0;
    --rich-text-padding: 10px 0;
    --rich-text-padding-mobile: 10px;
    --rich-text-heading-margin: 20px;
    --rich-text-margin: 0;
    --content-cards-grid-padding: 35px 0 30px;
    --content-cards-grid-padding-mobile: 35px 30px 30px;
}

/* The home page's welcome line (home-banner): from 992px at the very top of the page, above the
   header, which leaves it the room; hidden up to 991px, as on educational.parmalat.it. */
@media (min-width: 992px) {
    .section-backdrop--welcome {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        --media-row-strong-color: var(--color-primary);
        /* the picture at the right of a 248px column of the 1240px row, the text 20px after it */
        --media-row-padding: 0;
        --media-row-max-width: 1240px;
        --media-row-gutter: 0;
        --media-row-media-basis: 248px;
        --media-row-gap: 20px;
        --media-row-image-width: auto;
        --media-row-image-height: 100px;
        --media-row-image-margin: 0 0 0 auto;
        --media-row-text-size: 20px;
        --media-row-text-margin: 0;
    }
    body:has(.section-backdrop--welcome) {
        --header-stacked-top-space: 100px;
    }
}
@media (max-width: 991px) {
    .section-backdrop--welcome {
        display: none;
    }
}

/* The activities' dropdowns on the band of the cards, 75px under the buttons, the cards 25px under them */
.section-backdrop--cards-activities {
    --content-cards-filters-band-padding: 65px 0 0;
    --content-cards-filters-band-bg: var(--content-cards-bg, #f9f5ee);
    --content-cards-filters-margin: 0 auto 25px;
}
.section-backdrop--cards-activities .content-cards-filters .content-cards {
    padding-top: 0;
}

/* The icons look (an activity's facts) keeps flat cards: no corner or shadow of the cards grid */
.content-cards--icons {
    --content-cards-card-radius: 0;
    --content-cards-card-shadow: none;
    --content-cards-card-hover-shadow: none;
    --content-cards-card-overflow: visible;
}

/* A page banner with a picture (interior-banner): the picture on the left at its own size (at most
   the column), the page title and text beside it. */
.section-backdrop--banner-picture {
    --media-row-max-width: 1240px;
    --media-row-padding: 0 0 30px;
    --media-row-media-basis: 33.3333%;
    --media-row-gap: 0px;
    --media-row-image-width: auto;
    --media-row-image-height: auto;
    --media-row-image-max-width: 100%;
    --media-row-image-margin: 0 auto;
    --media-row-title-size: 45px;
    --media-row-title-line-height: 63px;
    --media-row-text-margin: 5px;
}

/* a picture banner right above a band of buttons (the activities): no space under it */
.section-backdrop--banner-tight {
    --media-row-padding: 0;
}

/* Bands alternate (macro isColouredBand): a text banner on the coloured band or on the page
   background; the newsletter teaser on the page background right after a coloured band. */
.section-backdrop--text-band {
    --section-backdrop-bg: var(--content-cards-grid-bg);
}
.section-backdrop--text-band,
.section-backdrop--text-plain {
    --spacing-section-padding: 110px 20px 40px;
    --card-ctas-margin-top: 0;
    /* the text 1220px wide inside the 20px sides */
    --content-section-max-width: 1260px;
    --card-centered-text-max-width: 1220px;
    --card-text-col-width: 100%;
    --section-description-paragraph-gap: 5px;
}
/* on the page background the section has 40px around it and 10px inside, no band padding */
.section-backdrop--text-plain {
    --spacing-section-padding: 50px 20px 80px;
}
/* several buttons alone (a text-banner without title, text or picture, e.g. the activities' "A casa" /
   "A scuola"): on the cards' band, each in the middle of a quarter of the 1220px row (the two middle
   quarters), a lighter blue (the full blue on hover) */
.section-backdrop--buttons {
    --section-backdrop-bg: var(--content-cards-grid-bg);
    --section-backdrop-padding: 50px 0 0;
    --color-button-primary-bg: color-mix(in srgb, var(--color-primary) 73%, transparent);
    --color-button-primary-hover-bg: var(--color-primary);
    --button-row-max-width: 610px;
    --button-row-padding: 10px 0;
    --button-row-gap: 0px;
    --button-row-item-flex: 1 1 0;
    --button-row-item-align: center;
    --button-row-btn-height: 38px;
    --button-row-btn-padding-x: 20px;
    --button-row-btn-min-width: 0;
    --button-row-btn-size: 18px;
    --button-row-btn-weight: 700;
    --button-row-btn-line-height: 18px;
    --button-row-btn-radius: 30px;
}

/* buttons alone (a text-banner without title or text): on the page background, 40px above and under */
.section-backdrop--cta-only {
    --spacing-section-padding: 40px 20px;
    --card-ctas-margin-top: 0;
    --card-centered-text-max-width: 1220px;
}
.section-backdrop--newsletter-plain {
    --content-block-bg: var(--color-bg);
}

/* The past contests (block-timeline-cards): narrower cards 60px apart, a 230px picture, the school
   year on a navy ribbon */
.section-backdrop--cards-timeline {
    --content-cards-max-width: 1180px;
    --content-cards-grid-padding: 30px 0 30px;
    --content-cards-grid-gap: 60px;
    --content-cards-grid-image-aspect-ratio: 353 / 230;
    --content-cards-card-title-size: 22px;
    --content-cards-grid-text-margin: 15px 0 0;
    --content-cards-grid-text-color: var(--content-cards-card-title-color);
    --content-cards-tag-bg: var(--color-primary);
    --content-cards-tag-line-height: 32px;
    --content-cards-tag-padding: 0 16px;
    --content-cards-center-align: flex-start;
}

/* A grid of files (cards with a picture and a button only, e.g. a year's proceedings): on the page
   background, the pictures at their own size centred in three columns, a solid button 20px under
   each, no card box */
.section-backdrop--cards-files {
    --section-backdrop-margin: 30px 0;
    --rich-text-max-width: 1220px;
    --content-cards-max-width: 1220px;
    --content-cards-grid-padding: 20px 0 20px;
    --content-cards-grid-gap: 0px;
    --content-cards-grid-card-bg: transparent;
    --content-cards-card-radius: 0;
    --content-cards-card-shadow: none;
    --content-cards-card-hover-shadow: none;
    --content-cards-card-overflow: visible;
    --content-cards-grid-body-padding: 0;
    --content-cards-grid-media-gap: 20px;
    --content-cards-grid-cta-margin: 0;
    --content-cards-button-bg: var(--color-primary);
    --content-cards-button-color: var(--color-text-light);
    --content-cards-button-border: 0;
    --content-cards-button-height: 38px;
    --content-cards-button-radius: 30px;
}

/* A video right after a card with a small picture: in the card's text column (the card row is
   1240px wide, its text 264px in from the left and 20px from the right) */
.section-backdrop--video-in-card {
    --section-backdrop-padding: 0 max(20px, calc(50% - 600px)) 0 max(20px, calc(50% - 356px));
    --section-backdrop-padding-mobile: 0;
    --video-embed-max-width: none;
    --video-embed-padding: 25px 0 40px;
}

/* An activity page's text column: 1200px (the other pages' text runs 1220px), 20px from the edges
   on phones (10px elsewhere); headings in the text with no space under them (WordPress lays out an
   activity as a post, not as a page) */
.section-backdrop--activity-page {
    --rich-text-wide-max-width: 1200px;
    --rich-text-padding-mobile: 10px 20px;
    --rich-text-heading-margin: 0;
    --rich-text-heading-margin-mobile: 0;
}

/* A page's heading alone (interior-banner without picture): no space under it */
.section-backdrop--page-title {
    --rich-text-heading-margin: 0;
}

/* A choice between two pages (text-banner with a title and two buttons, Accedi): 40px around it, the
   title at 36/46.8, each button in the middle of its half of the 1220px row */
.section-backdrop--choice {
    --section-backdrop-margin: 40px 0;
    --rich-text-title-padding: 10px 0 0;
    --rich-text-h2-size: 36px;
    --rich-text-h2-line-height: 46.8px;
    --rich-text-heading-margin: 0;
    --button-row-max-width: 1220px;
    --button-row-padding: 30px 0 20px;
    --button-row-gap: 0px;
    --button-row-item-flex: 1 1 0;
    --button-row-item-align: center;
    --button-row-btn-height: 38px;
    --button-row-btn-padding-x: 20px;
    --button-row-btn-min-width: 0;
    --button-row-btn-size: 18px;
    --button-row-btn-weight: 700;
    --button-row-btn-line-height: 18px;
    --button-row-btn-radius: 30px;
}

/* An activity's band (interior-banner on a page with attribute chips): the title in white on the
   yellow of the activities, the "Attività • …" line under it. */
.section-backdrop--activity-band {
    --section-backdrop-bg: var(--color-activity-band);
    --section-backdrop-margin: 0 0 60px;
    --section-backdrop-padding: 15px 0;
    --section-backdrop-padding-mobile: 15px 0;
    --rich-text-padding: 0 10px;
    --rich-text-padding-mobile: 0 10px;
    --rich-text-heading-color: var(--color-text-light);
    --rich-text-heading-margin: 0;
    --rich-text-h1-line-height: 63px;
    --rich-text-title-padding: 0;
    --rich-text-title-padding-mobile: 0;
    --rich-text-heading-margin-mobile: 0;
    --rich-text-size-mobile: 16px;
    --rich-text-line-height-mobile: 22.4px;
    --rich-text-title-max-width: 1240px;
    --rich-text-color: var(--color-primary);
    --rich-text-size: 16px;
    --rich-text-line-height: 22.4px;
    --rich-text-margin: 0;
}

/* The activities' cards (block-cards-grid-3col): all corners rounded, a tall picture, the tag in navy,
   the title in capitals, the link as text. */
.section-backdrop--cards-activities {
    --content-cards-grid-columns: 3;
    --content-cards-grid-columns-narrow: 2;
    --content-cards-max-width: 1220px;
    --content-cards-grid-gap: 30px;
    --content-cards-grid-row-gap: 35px;
    --content-cards-card-radius: 30px;
    --content-cards-card-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    --content-cards-grid-image-aspect-ratio: 387 / 503;
    --content-cards-tag-bg: var(--color-primary);
    --content-cards-tag-radius: 999px;
    --content-cards-tag-padding: 9.6px 19.2px;
    --content-cards-tag-line-height: 16px;
    --content-cards-tag-weight: 700;
    --content-cards-grid-body-padding: 40px 30px 20px;
    --content-cards-card-title-size: 20px;
    --content-cards-card-title-line-height: 24px;
    --content-cards-card-title-color: var(--color-text-dark);
    --content-cards-card-title-transform: uppercase;
    --content-cards-grid-cta-margin: 26px;
    --content-cards-button-bg: transparent;
    --content-cards-button-border: none;
    --content-cards-button-padding-x: 0;
    --content-cards-button-height: 27px;
    --content-cards-button-size: 16px;
    --content-cards-button-min-width: 0;
    /* a deeper shadow under the pointer */
    --content-cards-card-hover-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
    --content-cards-card-transition: all 0.25s;
    /* 12 a page, the page numbers as the blog's: 19px under the cards (and 19px under them), 14px
       apart, 18/27 medium, the page shown and the one under the pointer light blue */
    --content-cards-pages-margin: 19px 0;
    --content-cards-pages-gap: 14px;
    --content-cards-pages-size: 18px;
    --content-cards-pages-line-height: 27px;
    --content-cards-pages-weight: 500;
    --content-cards-pages-color: var(--color-text-dark);
    --content-cards-pages-current-color: var(--color-link-hover);
    --content-cards-pages-hover-color: var(--color-link-hover);
}

/* The cards' buttons on hover (button-states): the white outlined button fills with the brand blue;
   the filled one of the files grid turns light blue, as the other buttons; the activities' "read
   more" link turns light blue, as every link of the site. On the component itself, so it wins over
   the page-level hover colours. */
.content-cards {
    --color-button-primary-hover-bg: var(--color-primary);
    --color-button-primary-hover-text: var(--color-text-light);
    --color-button-primary-hover-border: 2px solid var(--color-primary);
}
.section-backdrop--cards-files .content-cards {
    --color-button-primary-hover-bg: var(--color-link-hover);
    --color-button-primary-hover-border: 0;
}
.section-backdrop--cards-activities .content-cards {
    --color-button-primary-hover-bg: transparent;
    --color-button-primary-hover-text: var(--color-link-hover);
    --color-button-primary-hover-border: none;
    --button-primary-hover-transition: all 0.2s linear;
}

/* An article's picture under its title band: at its own size, centred, at most the page's width */
.section-backdrop--article-picture {
    --section-backdrop-margin: 0 0 50px;
    --image-row-single-padding: 0;
    --image-row-max-width: none;
    --image-row-single-width: fit-content;
    --image-row-single-height: auto;
}

/* A pair of cards (block-cards-grid-2col, an article's closing links): wider cards, far apart */
.section-backdrop--cards-pair {
    --content-cards-max-width: 1120px;
    --content-cards-grid-gap: 100px;
    --content-cards-grid-image-aspect-ratio: 510 / 400;
    --content-cards-plain-padding: 60px 0;
}

/* A file to download (block-download-card): the intro text on two thirds of the row, centred on the
   card's height, 10px inside; the card on the last third on a light panel, 10px above and under:
   the icon at its own size centred in a 116px column beside the heading and text (10px inside),
   the button centred under them; 60px under the block. */
.section-backdrop--download {
    --section-backdrop-margin: 0 0 60px;
    --column-pair-max-width: 1220px;
    --column-pair-gap: 0px;
    --column-pair-first-basis: 66.6667%;
    --column-pair-align: center;
    --rich-text-max-width: none;
    --rich-text-padding: 10px;
}
.section-backdrop--download-card {
    --section-backdrop-margin: 0;
    --section-backdrop-bg: var(--color-panel-bg);
    --section-backdrop-padding: 10px 0;
    --media-row-max-width: none;
    --media-row-padding: 10px 0;
    --media-row-gutter: 10px;
    --media-row-align: flex-start;
    --media-row-media-basis: 116px;
    --media-row-gap: 20px;
    --media-row-body-padding: 0;
    --media-row-image-width: auto;
    --media-row-image-height: auto;
    --media-row-image-max-width: 100%;
    --media-row-image-margin: 0 auto;
    --button-row-max-width: none;
    --button-row-padding: 0 10px;
    --button-row-justify: center;
    --button-row-gap: 0px;
    --button-row-btn-height: 38px;
    --button-row-btn-padding-x: 20px;
    --button-row-btn-min-width: 0;
    --button-row-btn-size: 18px;
    --button-row-btn-weight: 700;
    --button-row-btn-line-height: 18px;
    --button-row-btn-radius: 30px;
}

/* A card with a small picture (img-text-card-icon: an event, a plant, a contact): the picture at its
   own size in a narrow column, the texts top-aligned beside it, the lead line as a heading. */
.section-backdrop--card-icon {
    --media-row-max-width: 1240px;
    --media-row-padding: 20px 0;
    --media-row-align: flex-start;
    --media-row-media-basis: 264px;
    --media-row-gap: 0px;
    --media-row-body-padding: 0 20px 0 0;
    --media-row-image-width: auto;
    --media-row-image-height: auto;
    --media-row-image-max-width: 100%;
    --media-row-image-margin: 0 auto;
    --media-row-subtitle-size: 22px;
    --media-row-subtitle-line-height: 26.4px;
    --media-row-subtitle-weight: 700;
    --media-row-subtitle-margin-bottom: 20px;
    --media-row-text-margin: 0;
}

/* A page banner with a call to action (a contest): on a light blue band 40px under the header,
   picture and texts in two equal 590px columns, 20px apart, the title at 45/54 */
.section-backdrop--banner-promo {
    --section-backdrop-bg: var(--color-promo-band);
    --section-backdrop-margin: 40px 0 0;
    --media-row-padding: 50px 0;
    --media-row-title-margin-bottom: 20px;
    --media-row-ctas-margin-top: 25px;
    --media-row-max-width: 1220px;
    --media-row-gutter: 10px;
    --media-row-media-basis: 590px;
    --media-row-gap: 20px;
    --media-row-image-width: 100%;
    --media-row-title-line-height: 54px;
}

/* A page banner whose picture is not square: in a padded column (10px; on phones 40px above the
   picture, 20px under it, the texts 10px from the edges) */
.section-backdrop--banner-padded {
    --media-row-image-radius: 30px;
    --media-row-padding: 10px 0;
    --media-row-gap: 10px;
    --media-row-image-max-width: calc(100% - 20px);
    --media-row-body-padding: 0 10px 0 0;
    --media-row-padding-mobile: 40px 0 20px;
    --media-row-gutter-mobile: 10px;
    --media-row-body-padding-top-mobile: 20px;
}

/* A place to visit (img-text-card-icon whose text opens with the place's name, Visite): a 716px row,
   the picture centred in a 215px column, the text 10px after it */
.section-backdrop--card-place {
    --media-row-max-width: 724px;
    --media-row-gutter: 0;
    --media-row-media-basis: 216px;
    --media-row-gap: 0px;
    --media-row-body-padding: 0 17px 0 10px;
}

/* An address card (img-text-card-icon, Contatti): the picture and the address groups in columns of
   228px, 20px apart, the row centred (three columns: 724px) */
.section-backdrop--card-address {
    --content-max-width: 724px;
    --feature-columns-padding: 40px 0;
    --feature-columns-grid-template: repeat(auto-fit, minmax(228px, 1fr));
    --spacing-grid-gap: 20px;
    --feature-columns-icon-height: auto;
    --feature-columns-item-text-size: 18px;
    --feature-columns-item-text-align: left;
    --feature-columns-item-text-width: 100%;
    --feature-columns-item-text-margin-bottom: 5px;
}

/* An article's text, as WordPress lays out a post: headings 40/56 and 36/43.2 with no space under
   them; a gallery in it in three columns of the
   text's width, pictures at their own proportions in a 1px cream frame, 10px around each and a
   line's space under the row */
.section-backdrop--article-body {
    --rich-text-h2-line-height: 56px;
    --rich-text-h3-line-height: 43.2px;
    --rich-text-heading-margin: 0;
    --image-row-max-width: 980px;
    --image-row-grid-columns: 3;
    --image-row-grid-image-ratio: auto;
    --image-row-grid-image-border: 1px solid var(--color-picture-frame);
    --image-row-grid-padding: 0 0 36px;
}

/* An article's byline under its text (post-info): "Di <author> | <date> | <categories>" centred in
   the text's 980px column, 20px under the text, 18/27 light grey-brown text, a 1px #ddd divider 8px
   from each item, the categories in the text's colour turning light blue under the pointer */
.post-info--article {
    --post-info-max-width: 980px;
    --post-info-margin: 20px auto 0;
    --post-info-padding: 6px 0 5px;
    --post-info-size: 18px;
    --post-info-line-height: 27px;
    --post-info-weight: 300;
    --post-info-color: var(--color-text-dark);
    --post-info-divider-color: #ddd;
    --post-info-link-hover-color: var(--color-link-hover);
    --post-info-size-mobile: 16px;
    --post-info-line-height-mobile: 24px;
}

/* The brand logos (brands-slider): 60px above the heading, 10px under it (the row of logos has 10px of
   its own above and below), 50px under the row */
.section-backdrop--brands {
    position: relative;
    --spacing-section-padding: 60px 20px 50px;
    --logo-carousel-header-margin-bottom: 10px;
}

/* A block whose CTA has a coloured style (componentCta style pink-bg--… / green-bg--…): the button
   and the block's heading take that colour, as on educational.parmalat.it; on hover the button turns
   white with coloured text (the style's hover colours) */
.section-backdrop--cta-pink {
    --color-button-primary-bg: var(--color-button-pink-bg);
    --color-button-primary-hover-bg: var(--color-button-light-bg);
    --color-button-primary-hover-text: var(--color-button-pink-bg);
    --color-button-primary-hover-border: 1px solid var(--color-button-pink-bg);
    --card-btn-hover-bg: var(--color-button-light-bg);
    --card-btn-hover-text: var(--color-button-pink-bg);
    --card-btn-hover-border: 1px solid var(--color-button-pink-bg);
    --title-color: var(--color-button-pink-bg);
    --media-row-subtitle-color: var(--color-button-pink-bg);
    --color-button-primary-border: 1px solid var(--color-button-pink-bg);
    --media-row-btn-height: 40px;
    --media-row-btn-height-mobile: 40px;
}
.section-backdrop--cta-green {
    --color-button-primary-bg: var(--color-button-green-bg);
    --color-button-primary-hover-bg: var(--color-button-light-bg);
    --color-button-primary-hover-text: var(--color-button-green-bg);
    --color-button-primary-hover-border: 1px solid var(--color-button-green-bg);
    --card-btn-hover-bg: var(--color-button-light-bg);
    --card-btn-hover-text: var(--color-button-green-bg);
    --card-btn-hover-border: 1px solid var(--color-button-green-bg);
    --title-color: var(--color-button-green-bg);
    --media-row-subtitle-color: var(--color-button-green-bg);
    --color-button-primary-border: 1px solid var(--color-button-green-bg);
    --media-row-btn-height: 40px;
    --media-row-btn-height-mobile: 40px;
}

/* --- Phones (up to 767px): the looks above at phone sizes --- */
/* Tablets (768–1024px): educational.parmalat.it switches to its tablet sizes up to 1024px (Elementor's
   tablet breakpoint), wider than the components' own tablet band (768–991px): the desktop-named
   tokens are set here, so they apply from 768 to 1024 whichever band a component is in. Type scale:
   text 16/24, page title 40/56, section titles 36/46.8, smaller titles 30/39. */
@media (min-width: 768px) and (max-width: 1024px) {
    /* the footer's links and copyright line on a tighter line, as on the live site's tablets */
    :root {
        --footer-link-size: 16px;
        --footer-link-line-height: 24px;
        --footer-copyright-line-height: 24px;
        --footer-grid-margin-bottom: 36.5px;
    }
    :root {
        --rich-text-size: 16px;
        --rich-text-line-height: 24px;
        --rich-text-h1-size: 40px;
        --rich-text-h1-line-height: 56px;
        --rich-text-h2-size: 36px;
        --rich-text-h2-line-height: 46.8px;
        --rich-text-h3-size: 30px;
        --rich-text-h3-line-height: 39px;
        --media-row-title-size: 36px;
        --media-row-title-line-height: 46.8px;
        --media-row-text-size: 16px;
        --media-row-text-line-height: 24px;
        --content-cards-title-size: 36px;
        --content-cards-title-line-height: 46.8px;
        --content-cards-text-size: 16px;
        --content-cards-text-line-height: 24px;
        --page-hero-center-title-size: 40px;
        --page-hero-center-title-line-height: 56px;
        --hero-split-title-size: 40px;
        --hero-split-description-size: 16px;
        --hero-split-description-line-height: 24px;
        --content-block-title-size: 30px;
        --content-block-title-line-height: 39px;
        --content-block-description-line-height: 24px;
        --content-block-split-description-size: 16px;
        --logo-carousel-title-size: 30px;
        --logo-carousel-title-line-height: 39px;
        --listing-title-size: 36px;
        --listing-title-line-height: 50.4px;
        --font-size-section-title: 36px;
        --line-height-section-title: 46.8px;
        --font-size-section-description: 16px;
        --line-height-section-description: 24px;
        --accordion-panel-size: 16px;
        --accordion-panel-line-height: 24px;
        /* the header's logo bar: 87px, the logo 29px over the utility bar */
        --header-stacked-brand-height: 87px;
        --header-stacked-brand-logo-offset: -29px;
        /* text blocks keep 10px from the edges */
        --rich-text-gutter: 10px;
        --rich-text-center-gutter: 10px;
        /* the newsletter: text and picture on 60/40 of the row, 30px from the edges, 20px apart */
        --content-block-padding: 130px 30px 30px;
        --content-block-split-columns: calc((100% + 20px) * 0.6 - 20px) 1fr;
        --content-block-split-gap: 20px;
        --content-block-image-max-width: 100%;
        /* a picture beside its text: the picture on a third of the row, the text 10px inside the rest */
        --media-row-media-basis: 33.3333%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
        --media-row-image-width: auto;
        --media-row-image-height: auto;
        --media-row-image-max-width: calc(100% - 20px);
        --media-row-image-margin: 0 auto;
        /* card grids 30px from the edges; the call-to-action cards' picture 200px high */
        --content-cards-grid-padding: 100px 30px 30px;
        --content-cards-grid-image-aspect-ratio: auto;
        --content-cards-center-image-height: 200px;
        --content-cards-card-title-line-height: 24px;
        /* the brand logos share the row equally (40px from the edges), each at its own proportions */
        --logo-carousel-item-flex: 1 1 0;
        --logo-carousel-item-width: auto;
        --logo-carousel-item-height: auto;
        --logo-carousel-img-height: auto;
        --logo-carousel-img-max-width: 100%;
    }
    /* the page banner's title is the page's h1; its text runs from the picture's column */
    .section-backdrop--banner-picture {
        --media-row-title-size: 40px;
        --media-row-title-line-height: 56px;
        --media-row-body-padding: 0;
    }
    /* the blog's cards two to a row, 10px from the edges, the picture 5 : 3; the "read more" line at
       the tablet's line height, 10px under the summary */
    .listing {
        --listing-item-span: 6;
        --listing-gutter: 10px;
        --listing-image-height: auto;
        --listing-lead-image-height: auto;
        --listing-image-aspect-ratio: 5 / 3;
        --listing-read-more-line-height: 24px;
        --listing-read-more-margin-top: 10px;
        --listing-pages-size: 16px;
        --listing-pages-line-height: 24px;
    }
    /* an article's text and galleries in a column of at most 980px, 10px from the edges; its h2
       36 / 50.4; 31px under a gallery */
    .section-backdrop--article-body {
        --rich-text-padding: 10px;
        --rich-text-gutter: 0px;
        --rich-text-h2-line-height: 50.4px;
        --image-row-grid-padding: 0 10px 31px;
    }
    /* the article's byline at the tablet's 16 / 24 */
    .post-info--article {
        --post-info-size: 16px;
        --post-info-line-height: 24px;
    }
    /* an activity's title across the whole band, 40 / 56 */
    .section-backdrop--activity-band {
        --rich-text-padding: 0;
        --rich-text-gutter: 0px;
        --rich-text-center-gutter: 0px;
        --rich-text-h1-line-height: 56px;
    }
    /* the download block 10px from the edges; its card: the icon on a third, the heading and text on
       two thirds, each 10px inside */
    .section-backdrop--download {
        --column-pair-padding: 0 10px;
        --rich-text-gutter: 0px;
    }
    .section-backdrop--download-card {
        --media-row-gutter: 0px;
        --media-row-media-basis: 33.3333%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
        --media-row-image-max-width: calc(100% - 20px);
    }
    /* the choice's heading at the tablet's h3 size */
    .section-backdrop--choice {
        --rich-text-h2-size: 30px;
        --rich-text-h2-line-height: 39px;
    }
    /* the past contests: three to a row, 30px from the edges and 60px apart, the picture a 200px
       crop of the card's width, the title 18px */
    .section-backdrop--cards-timeline {
        --content-cards-grid-padding: 30px;
        --content-cards-grid-image-aspect-ratio: auto;
        --content-cards-card-title-size: 18px;
    }
    /* the promo banner (a contest): picture and text on halves, each 10px inside; the title 40 / 48 */
    .section-backdrop--banner-promo {
        --media-row-media-basis: 50%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
        --media-row-image-width: calc(100% - 20px);
        --media-row-image-margin: 0 auto;
        --media-row-title-line-height: 48px;
    }
    /* a place to visit: a row of 80% of the screen less 20px, centred, the picture centred in its
       30%, the text 10px inside the rest */
    .section-backdrop--card-place {
        --media-row-padding: 20px 0;
        --media-row-gutter: 0;
        --media-row-max-width: calc(80% - 20px);
        --media-row-media-basis: 30%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
        --media-row-image-max-width: calc(100% - 20px);
    }
    /* the address card: three columns of a fifth of the screen each (10px inside), the text 16 / 24 */
    .section-backdrop--card-address {
        --content-max-width: calc(60vw - 20px);
        --feature-columns-grid-template: repeat(3, minmax(0, 1fr));
        --spacing-grid-gap: 20px;
        --feature-columns-item-text-size: 16px;
    }
    /* the text banners 10px from the edges (at 768 the card already takes its phone layout: there
       the text column is 10px inside the full width, the title still the tablet's) */
    .section-backdrop--text-band,
    .section-backdrop--text-plain {
        --card-text-col-padding-x-mobile: 10px;
        --font-size-section-title-mobile: 36px;
    }
    .section-backdrop--text-band {
        --spacing-section-padding: 110px 10px 40px;
    }
    .section-backdrop--text-plain {
        --spacing-section-padding: 50px 10px 80px;
    }
    .section-backdrop--brands {
        --spacing-section-padding: 50px 40px;
    }
    /* the activities: two cards a row, 10px from the edges, 30px apart, the picture 1 : 1.3; their
       buttons each in the middle of a quarter of the page */
    .section-backdrop--cards-activities {
        --content-cards-grid-columns: 2;
        --content-cards-grid-padding: 30px 10px;
        --content-cards-grid-gap: 30px;
        --content-cards-grid-image-aspect-ratio: 10 / 13;
        --content-cards-center-image-height: auto;
        /* the "read more" link on the tablet's 16 / 24 text, 25px under the title */
        --content-cards-grid-cta-margin: 25px;
        --content-cards-button-height: 24px;
        --content-cards-pages-size: 16px;
        --content-cards-pages-line-height: 24px;
    }
    .section-backdrop--buttons {
        --button-row-max-width: 50%;
    }
    /* the home picture banner keeps its 450px on the components' own tablet band too */
    .section-backdrop--picture-banner {
        --page-hero-band-padding-top-tablet: 362px;
        --page-hero-band-padding-bottom-tablet: 50px;
    }
    /* the components' own tablet band (768–991px) takes these from the values set above */
    .media-row {
        --media-row-media-basis-tablet: var(--media-row-media-basis);
        --media-row-align-tablet: var(--media-row-align, center);
    }
    .section-backdrop--cards-band {
        --content-cards-grid-padding: 35px 30px 30px;
    }
    /* the cards with a small picture: on the left four fifths of the row, the picture on a fifth of
       it, 10px inside each column */
    .section-backdrop--card-icon {
        --media-row-max-width: none;
        --media-row-padding: 20px 20% 20px 0;
        --media-row-gutter: 10px;
        --media-row-media-basis: 20%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
        --media-row-image-max-width: calc(100% - 20px);
        --media-row-subtitle-size: 28px;
        --media-row-subtitle-line-height: 33.6px;
    }
    /* the welcome line (from 992px): the picture at the right of a fifth of the row, the text 20px
       after it, 23px from the right edge (as measured on live) */
    .section-backdrop--welcome {
        --media-row-media-basis: 20%;
        --media-row-gap: 20px;
        --media-row-body-padding: 0 23px 0 0;
    }
    /* the picture-and-text band: two equal columns, the text 10px inside its column */
    .section-backdrop--wave-band,
    .section-backdrop--wave-band-short,
    .section-backdrop--wave-band-square {
        --media-row-media-basis: 50%;
        --media-row-gap: 0px;
        --media-row-body-padding: 0 10px;
    }
}

/* Tablets in portrait (768–991px): the phone header, larger — a 102px light blue bar (then 10px of
   white), the logo 100px high, the burger in the middle of the bar. The footer's five columns with
   the smaller type, the logo at most as wide as its column. */
@media (min-width: 768px) and (max-width: 991px) {
    .site-footer--columns .footer-col-logo {
        width: 180px;
        max-width: 100%;
        height: auto;
    }
    :root {
        --footer-col-title-size: 14.6px;
        --footer-col-title-margin-bottom: 15px;
        --footer-col-text-size: 14.6px;
        --footer-col-text-line-height: 24px;
        --footer-copyright-size: 12.8px;
        --footer-grid-margin-bottom: 29.5px;
        --footer-bottom-padding: 11px 0 25px;
        --header-min-height-mobile: 112px;
        --header-padding-mobile: 0 20px 10px;
        --header-padding-tablet: 0 20px 10px;
        --logo-height-mobile: 100px;
        --header-stacked-logo-top-mobile: -9px;
        --header-stacked-menu-top-mobile: 112px;
    }
    .header-stacked {
        --header-stacked-bg-mobile: linear-gradient(var(--color-secondary) 102px, var(--color-bg) 102px);
    }
    /* the brand logos: two in view (140×120 each in the middle of half the row), the others scroll */
    :root {
        --logo-carousel-item-flex: 0 0 50%;
        --logo-carousel-item-height: 120px;
        --logo-carousel-img-height: 120px;
        --logo-carousel-img-max-width: 140px;
    }
    /* the square picture of the picture-and-text band: the width of its column (10px inside) */
    /* the past contests' button grows when its label wraps on the narrow cards (two lines at 768) */
    .section-backdrop--cards-timeline {
        --content-cards-button-height: auto;
        --content-cards-button-padding-y: 10px;
        --content-cards-button-line-height-tablet: 18px;
    }
    .section-backdrop--wave-band-square {
        --media-row-image-height-tablet: auto;
        --media-row-image-width: 100%;
        --media-row-image-max-width: calc(100% - 20px);
    }
}

@media (max-width: 767px) {
    /* the slider on a phone: 400px high, its caption 30px from the bottom, the title 23px (slideLook's
       phone query starts at 768px, where educational.parmalat.it still shows the desktop slide) */
    .section-backdrop--slides,
    .section-backdrop--slides-boxed {
        --hero-carousel-look-min-height-mobile: 400px;
        --hero-carousel-look-content-bottom: 30px;
        --type-hero-body-size: 23px;
        --type-hero-body-line-height: 23px;
    }
    .section-backdrop--banner-picture {
        --media-row-image-height-mobile: auto;
        --media-row-padding-mobile: 0 0 30px;
        --media-row-gutter-mobile: 0;
        --media-row-body-padding-top-mobile: 0;
        --media-row-title-size-mobile: 36px;
        --media-row-title-line-height-mobile: 50.4px;
        --media-row-title-margin-bottom-mobile: 0;
        --media-row-text-margin-mobile: 5px;
    }
    .section-backdrop--page-title {
        --rich-text-heading-margin-mobile: 0;
    }
    /* the choice on phones: the buttons one under the other, 20px apart */
    .section-backdrop--choice {
        --rich-text-title-padding-mobile: 10px 10px 0;
        --rich-text-h2-size-mobile: 28px;
        --rich-text-h2-line-height-mobile: 36.4px;
        --rich-text-heading-margin-mobile: 0;
        --button-row-padding-mobile: 30px 0 20px;
        --button-row-item-flex: 0 0 100%;
        --button-row-row-gap: 20px;
        --button-row-btn-size-mobile: 18px;
        --button-row-btn-height-mobile: 38px;
        --button-row-btn-padding-x-mobile: 20px;
        --button-row-btn-min-width-mobile: 0;
        --button-row-btn-line-height-mobile: 18px;
    }
    /* the phone bar: 70px of light blue, then 10px of the page's white before the content; once
       stuck, the 52px bar without that padding */
    .header-stacked {
        --header-stacked-bg-mobile: linear-gradient(var(--color-secondary) 70px, var(--color-bg) 70px);
    }
    .site-header--stacked.is-stuck {
        --header-padding-mobile: 0 20px;
    }
    /* the home picture banner shows its picture only on phones, as on educational.parmalat.it */
    .section-backdrop--picture-banner {
        --page-hero-content-visibility-mobile: hidden;
    }
    .section-backdrop--cards-timeline {
        --content-cards-grid-padding-mobile: 31px 30px 30px;
        --content-cards-grid-gap-mobile: 60px;
        --content-cards-grid-card-title-size-mobile: 18px;
    }
    /* the blog's cards: 10px from the edges, the "read more" line at the phone's line height, 10px
       under the summary */
    .listing {
        --listing-gutter: 10px;
        --listing-read-more-line-height: 24px;
        --listing-read-more-margin-top: 10px;
        --listing-pages-size: 16px;
        --listing-pages-line-height: 24px;
    }
    /* the activities' page numbers at the phone's 16 / 24 */
    .section-backdrop--cards-activities {
        --content-cards-pages-size: 16px;
        --content-cards-pages-line-height: 24px;
    }
    /* two logos in view, each centred in a 155px box */
    .section-backdrop--brands {
        --spacing-section-padding: 60px 40px 50px;
        --logo-carousel-gap-mobile: 0;
        --logo-carousel-item-width: 155px;
    }
    .section-backdrop--card-place {
        --media-row-body-padding: 0;
    }
    .section-backdrop--card-address {
        --feature-columns-padding: 42px 10px 41px;
        --feature-columns-gap-mobile: 20px;
        --feature-columns-item-text-size: 16px;
    }
    .section-backdrop--card-icon {
        --media-row-image-height-mobile: auto;
        --media-row-align-mobile: left;
        --media-row-ctas-justify-mobile: flex-start;
        --media-row-subtitle-size-mobile: 26px;
        --media-row-subtitle-line-height-mobile: 31.2px;
        --media-row-subtitle-margin-bottom-mobile: 20px;
        --media-row-text-margin-mobile: 5px;
        --media-row-gutter-mobile: 20px;
        --media-row-padding-mobile: 10px 0;
        --media-row-body-padding: 0;
    }
    .section-backdrop--wave-band-square {
        --media-row-image-height-mobile: 185px;
    }
    .section-backdrop--article-picture {
        --image-row-gutter-mobile: 0;
        --image-row-single-padding-mobile: 0;
    }
    .section-backdrop--article-body {
        --rich-text-h3-line-height-mobile: 33.6px;
        --rich-text-heading-margin-mobile: 0;
        --image-row-grid-columns-mobile: 3;
        --image-row-gutter-mobile: 10px;
        --image-row-grid-padding-mobile: 0 0 32px;
    }
    .section-backdrop--banner-padded {
        --media-row-image-max-width: 100%;
        --media-row-body-padding: 0;
    }
    .section-backdrop--banner-promo {
        --media-row-padding-mobile: 50px 0;
        --media-row-gutter-mobile: 20px;
        --media-row-body-padding-top-mobile: 21px;
        --media-row-title-line-height-mobile: 43.2px;
        --media-row-title-margin-bottom-mobile: 20px;
        --media-row-align-mobile: left;
        --media-row-ctas-justify-mobile: flex-start;
        --media-row-image-height-mobile: auto;
    }
    .section-backdrop--text-band,
    .section-backdrop--text-plain {
        --card-text-col-padding-x-mobile: 10px;
    }
    .section-backdrop--text-band {
        --spacing-section-padding: 110px 10px 40px;
    }
    .section-backdrop--text-plain {
        --spacing-section-padding: 50px 10px 80px;
    }
    .section-backdrop--banner-tight {
        --media-row-padding-mobile: 0;
    }
    /* buttons alone on phones: one under the other, centred, 20px apart */
    .section-backdrop--buttons {
        --button-row-padding-mobile: 10px 0;
        --button-row-item-flex: 0 0 100%;
        --button-row-row-gap: 20px;
        --button-row-btn-size-mobile: 18px;
        --button-row-btn-height-mobile: 38px;
        --button-row-btn-padding-x-mobile: 20px;
        --button-row-btn-min-width-mobile: 0;
        --button-row-btn-line-height-mobile: 18px;
    }
    .section-backdrop--cta-only {
        --spacing-section-padding: 40px 10px;
        --card-text-col-padding-x-mobile: 10px;
    }
    /* lists as the site's theme sets them on phones: indented 48px (3em), a line's space under them */
    .rich-text {
        --rich-text-list-margin: 24px;
        --rich-text-li-indent: 48px;
        --rich-text-bullet-left: 32px;
        --rich-text-ol-indent: 48px;
    }
    /* the download card under its intro, both 10px from the edges; the icon centred above the text */
    .section-backdrop--download {
        --column-pair-gutter-mobile: 10px;
        --column-pair-gap-mobile: 0px;
        --rich-text-padding-mobile: 10px;
    }
    .section-backdrop--download-card {
        --media-row-padding-mobile: 10px 0;
        --media-row-gutter-mobile: 10px;
        --media-row-image-height-mobile: auto;
        --media-row-align-mobile: start;
        --button-row-padding-mobile: 0 10px;
        --button-row-btn-size-mobile: 18px;
        --button-row-btn-height-mobile: 38px;
        --button-row-btn-padding-x-mobile: 20px;
        --button-row-btn-min-width-mobile: 0;
        --button-row-btn-line-height-mobile: 18px;
    }
    .section-backdrop--text-band,
    .section-backdrop--text-plain {
        --font-size-section-title-mobile: 32px;
        --line-height-section-title: 41.6px;
        --line-height-section-description: 24px;
    }
    /* the activities' archive on phones: cards 10px from the edges, a 185px-high picture, 35px apart */
    .section-backdrop--cards-activities {
        --content-cards-grid-padding-mobile: 30px 10px;
        --content-cards-grid-image-aspect-ratio-mobile: 2 / 1;
        --content-cards-grid-gap-mobile: 35px;
        --content-cards-grid-cta-margin: 25px;
        --content-cards-button-height-mobile: 24px;
        --content-cards-button-size-mobile: 16px;
        --content-cards-button-padding-x-mobile: 0;
        --content-cards-button-line-height-mobile: 24px;
        --content-cards-grid-card-title-size-mobile: 20px;
        --content-cards-grid-card-title-line-height-mobile: 24px;
    }
}

/* The new Parmalat EDU logo has no white background of its own: its blue petals must not sit on
   the blue bars, so the logo stays on the white of the header at every size (Rossella Scordo,
   13/11/2026). Desktop: the logo row grows by the 27–29px the logo used to rise over the utility
   bar. Tablet and phone: a white header with the blue burger, the logo whole above the content,
   also once the header is stuck. */
:root {
    --header-stacked-brand-logo-offset: 0;
    --header-stacked-brand-height: 118px;
}
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --header-stacked-brand-logo-offset: 0;
        --header-stacked-brand-height: 116px;
    }
}
@media (max-width: 991px) {
    :root {
        --burger-line-color: var(--color-secondary);
        --burger-open-line-color: var(--color-secondary);
    }
    .header-stacked {
        --header-stacked-bg-mobile: var(--color-bg);
    }
    /* once stuck, the logo fits whole in the 52px bar */
    :root {
        --header-stacked-stuck-logo-height-mobile: 44px;
        --header-stacked-stuck-logo-top-mobile: 4px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --header-min-height: 112px;
        --logo-height: 92px;
        --logo-height-mobile: 92px;
        --header-stacked-logo-top-mobile: -18px;
    }
}
@media (max-width: 767px) {
    :root {
        --header-min-height-mobile: 92px;
        --logo-height-mobile: 74px;
        --header-stacked-logo-top-mobile: 0;
        --header-stacked-menu-top-mobile: 92px;
    }
}
