/* MAPPA RESPONSIVE: ogni @media mantiene la precedenza originale.
 * bm-header/menu/footer: condivisi; bm-history: About; bm-category/product: prodotti;
 * bm-recipe: ricette; bm-section--address/office-contacts/form: Contatti.
 * Le regole dei nuovi moduli sono raggruppate nell’ultima sezione MODULI.
 */
/* Adattamenti tablet/mobile e preferenze di accessibilita. Famiglie e dimensioni sono in style-font.css. */
@media (max-width: 1400px) {
  .berio-design-system .elementor .bm-header {
    grid-template-columns: 120px minmax(0, 1fr) 120px;
  }

  .berio-design-system .elementor .bm-header-countries, .berio-design-system .elementor .bm-header-social {
    display: none;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-heading {
    gap: 0;
  }

  .berio-design-system .elementor .bm-products-intro>.elementor-widget-text-editor {
    margin-top: 30px;
  }
}

@media (max-width: 1100px) {
  .berio-design-system .elementor .bm-header {
    display: flex;
    align-items: center;
    min-height: 101px;
    padding: 8px 24px;
  }

  .berio-design-system .elementor .bm-header::before {
    display: none;
  }

  .berio-design-system .elementor .bm-header-center {
    display: contents;
  }

  .berio-design-system .elementor .bm-header-logo {
    width: 150px;
    flex: 1;
    order: 0;
  }

  .berio-design-system .elementor .bm-header-logo img {
    width: 150px;
    height: 78px;
  }

  .berio-design-system .elementor .bm-main-menu {
    padding: 0;
    align-self: center;
    width: auto;
    order: 2;
    position: static;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu {
    position: static;
    --n-menu-title-normal-color-dropdown: var(--bm-green);
    --n-menu-title-active-color-dropdown: var(--bm-green);
    --n-menu-title-color-hover: var(--bm-green);
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-item:nth-child(3)>.e-n-menu-title {
    margin-right: 0;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu[data-layout="dropdown"] .e-n-menu-wrapper {
    top: 101px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - 101px - var(--wp-admin--admin-bar--height, 0px));
    max-height: none;
    overflow-y: auto;
    background: var(--bm-cream);
    color: var(--bm-green);
    padding: 24px 22px 20px;
    transform: none;
    opacity: 0;
    visibility: hidden;
    view-transition-name: berio-menu;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle[aria-expanded="true"]~.e-n-menu-wrapper {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
  }

  .berio-design-system.bm-mobile-menu-open {
    overflow: hidden;
  }

  .berio-design-system.bm-mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: var(--bm-cream);
  }

  .berio-design-system.bm-mobile-menu-open .elementor .bm-header {
    /* Sfondo stabile: non lascia trasparire sezioni diverse sotto il menu. */
    background: color-mix(in srgb, var(--bm-cream) 65%, black);
    backdrop-filter: blur(50px);
  }

  .berio-design-system.bm-mobile-menu-open .elementor .bm-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2147483641;
    pointer-events: none;
    box-shadow: 0 4px 10px #0000004d;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-heading {
    gap: 0;
    padding: 0;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu[data-layout="dropdown"] :is(.e-n-menu-item, .e-n-menu-content) {
    width: 100%;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-item>.e-n-menu-title::before {
    display: none;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu[data-layout="dropdown"] .e-n-menu-title {
    padding: 0;
    height: 76px;
    background: transparent;
    border-top: 1px solid #124c274d;
    justify-content: start;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-heading {
    border-bottom: 1px solid #124c274d;
    flex-shrink: 0;
  }

  .berio-design-system .elementor .bm-main-menu :is(.e-n-menu-title, .e-n-menu-title-container, .e-n-menu-title-text) {
    color: var(--bm-green);
    font-style: normal;
    font-variant: normal;
    font-stretch: normal;
    line-height: 1.4;
    letter-spacing: 1.6px;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-title-text {
    display: block;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-dropdown-icon {
    width: 32px;
    height: 32px;
    margin: 0 0 0 4px;
    color: var(--bm-green);
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-dropdown-icon svg {
    display: none;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-dropdown-icon::before {
    content: "";
    width: 32px;
    height: 32px;
    background: currentColor;
    mask: url("vectors/menu-chevron.svg") center / contain no-repeat;
  }

  .berio-design-system .elementor .bm-header-meta {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4dvh, 32px);
    width: 100%;
    margin-top: auto;
    padding-top: clamp(24px, 7dvh, 60px);
    flex-shrink: 0;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries {
    display: flex;
    justify-content: center;
    gap: 50px;
    height: 19px;
    width: 100%;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button {
    color: var(--bm-green);
    line-height: 19px;
    letter-spacing: 1.3px;
    gap: 6px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button::before {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("vectors/menu-globe.svg") center / contain no-repeat;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .bm-open-spanish .elementor-button::before {
    mask-image: url("vectors/menu-language-flag.svg");
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button::after {
    width: 16px;
    height: 16px;
    margin-left: 3px;
    border: 0;
    background: currentColor;
    mask: url("vectors/menu-chevron.svg") center / contain no-repeat;
    transform: none;
    /* Worldwide e Spanish puntano a destra nel menu mobile. */
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries> :first-child {
    position: relative;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries> :first-child::after {
    content: "";
    position: absolute;
    left: calc(100% + 25px);
    top: 1px;
    height: 17px;
    border-left: 1px solid #124c274d;
  }

  .berio-design-system .elementor .bm-menu-social-label {
    width: auto;
    color: var(--bm-green);
    font-style: normal;
    font-variant: normal;
    font-weight: 500;
    font-stretch: normal;
    line-height: 26px;
    letter-spacing: .28px;
  }

  .berio-design-system .elementor .bm-menu-social-label p {
    margin: 0;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 17px;
    align-items: center;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social :is(i, svg) {
    color: var(--bm-green);
    fill: var(--bm-green);
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social a[aria-label="YouTube"] {
    width: 19.5px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social a[aria-label="YouTube"] svg {
    width: 19.5px;
  }

  .berio-design-system .elementor .bm-menu-submenu .e-n-menu-item {
    display: none;
  }

  .berio-design-system .elementor .bm-menu-submenu .e-n-menu-item:has(> .e-n-menu-content > .e-active) {
    display: block;
  }

  .berio-design-system .elementor .bm-menu-submenu .e-n-menu-title {
    display: none;
  }

  .berio-design-system .elementor .bm-menu-submenu .e-n-menu-heading {
    border: 0;
  }

  .berio-design-system .elementor .bm-menu-panel {
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .berio-design-system .elementor .bm-menu-panel :is(.bm-menu-photo, .bm-menu-copy > .elementor-widget-text-editor, .bm-menu-copy > .elementor-widget-button, .bm-menu-controls) {
    display: none;
  }

  .berio-design-system .elementor .bm-menu-rail {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .berio-design-system .elementor :is(.bm-menu-card, .bm-menu-entry) {
    width: 100%;
    flex: 0 0 auto;
    height: 76px;
    border-top: 1px solid #124c274d;
    padding: 0;
  }

  .berio-design-system .elementor :is(.bm-menu-card, .bm-menu-entry):last-child {
    border-bottom: 1px solid #124c274d;
  }

  .berio-design-system .elementor .bm-menu-card--desktop {
    display: none;
  }

  .berio-design-system .elementor .bm-menu-entry--mobile {
    display: flex;
    align-items: center;
  }

  .berio-design-system .elementor .bm-menu-copy {
    width: 100%;
    padding: 0;
  }

  .berio-design-system .elementor :is(.bm-menu-card, .bm-menu-entry) .elementor-heading-title {
    font-style: normal;
    font-variant: normal;
    font-stretch: normal;
    line-height: 1.4;
    letter-spacing: 1.6px;
    color: var(--bm-green);
    text-transform: uppercase;
  }

  .berio-design-system .elementor .bm-menu-back {
    display: block;
    width: auto;
    align-self: flex-end;
    margin-top: 25px;
  }

  .berio-design-system .elementor .bm-menu-back .elementor-button {
    padding: 0;
    border: 0;
    color: var(--bm-green);
    background: transparent;
    font-style: normal;
    font-variant: normal;
    font-stretch: normal;
    line-height: 1.4;
    letter-spacing: 1.6px;
    height: 32px;
  }

  .berio-design-system .elementor .bm-menu-back .elementor-button-content-wrapper {
    gap: 0;
    align-items: center;
  }

  /* Back: box e SVG hanno la stessa misura, senza lo scarto del box globale da 24px. */
  .berio-design-system .elementor .bm-menu-back .elementor-button .elementor-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    line-height: 0;
    width: 32px;
    height: 32px;
    overflow: visible;
  }

  .berio-design-system .elementor .bm-menu-back .elementor-button-icon svg {
    width: 32px;
    height: 32px;
  }

  .berio-design-system .elementor .bm-menu-back .elementor-button-icon::after {
    display: none;
  }

  .berio-design-system .elementor .bm-menu-back .elementor-button:is(:hover, :focus-visible) .elementor-button-icon svg {
    transform: none;
  }

  .berio-design-system .elementor .bm-header>.bm-open-search {
    display: block;
    order: 1;
    width: 44px;
  }

  .berio-design-system .elementor .bm-header>.bm-open-search .elementor-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }

  .berio-design-system .elementor .bm-header>.bm-open-search .elementor-button::before {
    margin: 0;
  }

  .berio-design-system .elementor .bm-header>.bm-open-search .elementor-button-content-wrapper {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

}

@media (max-width: 1024px) {
  .berio-design-system .elementor .bm-products-intro>.elementor-widget-text-editor {
    margin-top: 0;
  }

  .berio-design-system .elementor .bm-card-description {
    min-height: 0;
  }

  .berio-design-system .elementor .bm-oil-caption {
    margin-bottom: 48px;
    padding: 28px 48px;
  }

  .berio-design-system .elementor .bm-oil-carousel .elementor-swiper-button {
    bottom: 100px;
  }

  .berio-design-system .elementor .bm-featured-recipe {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .berio-design-system .elementor .bm-featured-oil {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 400px;
  }

  .berio-design-system .elementor .bm-instagram>.bm-button {
    margin-inline: 32px;
  }

  .berio-design-system .elementor .bm-instagram-heading {
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 767px) {
  .berio-design-system .elementor .bm-label-desktop {
    display: none;
  }

  .berio-design-system .elementor .bm-label-mobile {
    display: inline;
  }

  .berio-design-system .elementor .bm-hero, .berio-design-system .elementor .bm-signature {
    aspect-ratio: auto;
  }

  .berio-design-system .elementor .bm-open-film .elementor-button {
    width: 110px;
    height: 110px;
  }

  .berio-design-system .elementor .bm-open-film .elementor-button::after {
    width: 11.2681px;
    height: 13px;
  }

  .berio-design-system .elementor .bm-hero-copy .elementor-heading-title {
    text-wrap: balance;
  }

  .berio-design-system .elementor .bm-products-intro {
    padding-bottom: 36px;
  }

  .berio-design-system .elementor .bm-olive-branch {

    align-self: center;
    margin-top: 16px;
  }

  .berio-design-system .elementor .bm-product-card {
    gap: 22px;
  }

  .berio-design-system .elementor :is(.bm-product-cards, .bm-recipe-rail).bm-rail--adaptive-height {
    height: var(--bm-rail-content-height, auto);
    overflow-y: hidden;
    align-items: flex-start;
  }

  .berio-design-system .elementor .bm-featured-recipe {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .elementor .bm-featured-oil {
    display: flex;

    align-items: center;
  }

  .berio-design-system .elementor .bm-oil-caption {
    margin-bottom: 24px;


  }

  .berio-design-system .elementor .bm-oil-carousel .elementor-swiper-button {
    bottom: auto;
    top: 35%;
  }

  .berio-design-system .elementor .bm-oil-carousel .elementor-swiper-button-prev {
    left: 20px;
  }

  .berio-design-system .elementor .bm-oil-carousel .elementor-swiper-button-next {
    right: 20px;
  }

  .berio-design-system .elementor .elementor-widget.bm-instagram-carousel,
  .berio-design-system .elementor .elementor-widget.bm-instagram-feed {
    width: 100%;
    margin-inline: 0;
  }

  .berio-design-system .elementor .bm-instagram-heading::after {
    display: none;
  }

  .berio-design-system .elementor .bm-dialog {
    padding: 70px 24px 32px;
    width: calc(100% - 24px);
  }

  .berio-design-system .elementor .bm-film-dialog {
    padding: 0;
  }

  .berio-design-system .elementor :is(.bm-film-dialog, .bm-search-dialog, .bm-country-dialog) {
    padding: 0;
    width: 100%;
  }

  .berio-design-system .elementor :is(.bm-film-dialog, .bm-search-dialog, .bm-country-dialog) .bm-dialog-close {
    top: 20px;
    right: 28px;
  }

  .berio-design-system .elementor .bm-film-dialog video {
    width: calc(100% - 40px);
    max-height: calc(100dvh - 120px);
    margin-top: 80px;
  }

  .berio-design-system .elementor .bm-search-content {
    margin-top: max(90px, calc(50dvh - 308px));
  }

  .berio-design-system .elementor .bm-search-content>img {
    width: 302px;
    height: 85px;
    margin-bottom: 41px;
  }

  .berio-design-system .elementor .bm-search-dialog h2 {
    line-height: 1.15;
    margin: 0 0 23px;
    text-box-trim: none;
  }

  .berio-design-system .elementor .bm-search-dialog form {
    flex-direction: column;
    gap: 19.5px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .berio-design-system .elementor .bm-search-dialog input {
    height: 68px;
    padding: 0 14px;
    border: 12px solid #fff;
    border-radius: 100px;
    background: #e0e0e0;
  }

  .berio-design-system .elementor .bm-search-dialog form button {
    flex: none;
    align-self: end;
    width: 131px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .berio-design-system .elementor * {
    scroll-behavior: auto;
    transition-duration: calc(0s * var(--bm-motion-factor, 1));
  }

  .berio-design-system .elementor .elementor-background-video-container {
    display: none;
  }
}

@media (max-width: 767px) {

  .berio-design-system .elementor .bm-shield-preview,
  .berio-design-system .elementor .bm-shield-photo::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .berio-design-system .elementor .bm-category-carousel {
    padding-bottom: 52px;
    align-self: center;
  }

  .berio-design-system .elementor .bm-category-carousel .swiper-pagination {
    display: block;
    bottom: -52px;
    line-height: 9px;
  }

  .berio-design-system .elementor .bm-category-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin-inline: 11px;
    background: var(--bm-cream);
    opacity: .3;
  }

  .berio-design-system .elementor .bm-category-carousel .swiper-pagination-bullet:first-child {
    margin-left: 0;
  }

  .berio-design-system .elementor .bm-category-carousel .swiper-pagination-bullet:last-child {
    margin-right: 0;
  }

  .berio-design-system .elementor .bm-category-carousel .swiper-pagination-bullet-active {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .berio-design-system .bm-desktop-line-break {
    display: none;
  }
}

@media (max-width: 1024px) {
  .berio-design-system :where(.bm-main) :is(.bm-detail-intro--editorial, .bm-panel--tasting, .bm-recipe-method) {
    min-height: 0;
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial {
    --padding-left: 24px;
    --padding-right: 24px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial:is(.bm-detail-intro--product, .bm-detail-intro--recipe) {
    min-height: 0;
    --padding-top: 180px;
    --padding-bottom: 80px;
    --padding-left: 24px;
    --padding-right: 24px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product .bm-bottle-photo img {
    height: 500px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--recipe {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system :where(.bm-main) :is(.bm-panel--tasting, .bm-recipe-method) .bm-editorial-photo img {
    height: auto;
  }

  .berio-design-system :where(.bm-main) .bm-photo-crop--tasting img {
    transform: none;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-method>.bm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    --gap: 32px;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-method>.bm-split>.bm-editorial-photo img {
    height: auto;
    max-height: 650px;
  }

  .berio-design-system :where(.bm-main) :is(.bm-recipe-ingredients > .bm-split, .bm-product-reference--inline) {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system :where(.bm-main) .bm-section--office-contacts {
    margin-block: 0;
  }

  .berio-design-system :where(.bm-main) :is(.bm-section--office-contacts, .bm-section--form, .bm-section--accordion, .bm-product-facts, .bm-recipe-ingredients) {
    min-height: 0;
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-section--accordion+.bm-section--accordion {
    margin-top: 0;
  }

  .berio-design-system :where(.bm-main) .bm-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .berio-design-system :where(.bm-main) .bm-section--category-list {
    --padding-right: 20px;
    --padding-left: 20px;
  }

  .berio-design-system :where(.bm-main) .bm-category-list {
    max-width: 100%;
    width: 100%;
    --gap: 35px;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal {
    grid-template-columns: 1fr;
    min-height: var(--min-height, 0px);
    --padding-top: 20px;
    --padding-right: 20px;
    --padding-bottom: 35px;
    --padding-left: 20px;
    --gap: 25px;
    box-shadow: 0 8px 15.9px rgb(0 0 0 / .2);
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .bm-editorial-photo {
    height: 316px;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .bm-editorial-photo img {
    width: calc(100% + 6px);
    max-width: none;
    height: 316px;
    aspect-ratio: auto;
    object-position: center;
    margin-left: -3px;
    transform: none;
  }

  .berio-design-system :where(.bm-main) .bm-photo-crop img {
    transform: none;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .elementor-widget-heading {
    --bm-title-optical-y: 3px;
    padding-right: 24px;
    padding-bottom: 25px;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .elementor-widget-heading::after {
    left: -3px;
    right: -3px;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .elementor-widget-button {
    position: absolute;
    top: 12px;
  }

  .berio-design-system :where(.bm-main) .bm-category-card--horizontal .bm-card-copy {
    position: relative;
    --gap: 25px;
  }

  .berio-design-system .elementor .bm-category-card--horizontal .bm-text-body {
    width: calc(100% + 2px);
    max-width: none;
    align-self: center;
    margin-inline: -1px;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel {
    min-height: 0;
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel>.bm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    --gap: 32px;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel .bm-editorial-photo img {
    height: auto;
  }

  .berio-design-system :where(.bm-main) .bm-section--catalogue {
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil {
    min-height: var(--min-height, 0px);
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-bottle-photo {
    min-height: 350px;
    padding: 24px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-bottle-photo img {
    height: 280px;
    top: 0;
  }

  .berio-design-system :where(.bm-main) .bm-signature-photo>.bm-editorial-photo img {
    height: 550px;
  }

  .berio-design-system :where(.bm-main) .bm-section--values {
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline {
    --gap: 80px;
    --padding-top: 40px;
    --padding-bottom: 80px;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline .bm-history-entry {
    --gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline .bm-history-entry::after {
    top: -40px;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-photo img {
    height: 340px;
  }
}

@media (max-width: 767px) {
  .berio-design-system :where(.bm-main) .bm-section--catalogue {
    --padding-left: 20px;
    --padding-right: 20px;
  }

  .berio-design-system :where(.bm-main) .bm-grid.bm-oil-grid {
    --gap: 35px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil {
    --padding-top: 20px;
    --padding-right: 20px;
    --padding-bottom: 20px;
    --padding-left: 20px;
    --gap: 25px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-bottle-photo {
    min-height: 316px;
    padding: 17px;
    margin-bottom: 0;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-bottle-photo img {
    height: 282px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .elementor-widget-heading {
    margin-bottom: -15px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-oil-type {
    padding-bottom: 25px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-text-lead {
    line-height: 1.6;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--oil .bm-button .elementor-button {
    width: 100%;
    min-height: 60px;
    letter-spacing: 1.4px;
  }

  .berio-design-system :where(.bm-main) :is(.bm-section-heading, .bm-product-reference--inline) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-method>.bm-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system :where(.bm-main) .bm-recipe-share {
    flex-wrap: wrap;
  }

  .berio-design-system :where(.bm-main) .bm-callout {
    min-height: 0;
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-callout>.bm-callout-emblem {
    left: -80px;
    max-width: none;
  }

  .berio-design-system :where(.bm-main) .bm-section--form {
    --gap: 24px;
  }

  .berio-design-system :where(.bm-main) .bm-section--recipe-links {
    --padding-top: 80px;
    --padding-bottom: 80px;
  }

  .berio-design-system :where(.bm-main) .bm-section--related-products {
    --padding-top: 148.8873px;
    --padding-bottom: 69px;
    --padding-left: 14px;
    --padding-right: 14px;
    --gap: 39px;
  }

  .berio-design-system :where(.bm-main) .bm-section--related-products::before {
    top: 69px;
    left: 20px;
    right: 21.1127px;
    height: 10.8873px;
    mask-image: url("vectors/section-divider-mobile.svg?v=20261112");
  }

  .berio-design-system :where(.bm-main) .bm-section--related-products>.elementor-widget-heading {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--compact {
    min-height: 504px;
    --padding-top: 20px;
    --padding-bottom: 20px;
    --padding-left: 20px;
    --padding-right: 20px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--compact .bm-bottle-photo {
    min-height: 316px;
    padding: 17px;
    margin-bottom: 15px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--compact .elementor-widget-heading {
    padding-block: 0;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--compact .bm-bottle-photo img {
    height: 282px;
  }

  .berio-design-system :where(.bm-main) .bm-catalog-card--compact .bm-compact-product-arrow {
    right: 12px;
    top: 361px;
  }

  .berio-design-system :where(.bm-main) .bm-related-products-carousel {
    padding-bottom: 49px;
    max-width: 100%;
    margin-inline: auto;
    overflow: clip;
  }

  .berio-design-system :where(.bm-main) .bm-related-products-carousel .elementor-swiper-button {
    display: none;
  }

  .berio-design-system :where(.bm-main) .bm-related-products-carousel .swiper-pagination {
    display: block;
    bottom: 0;
  }

  .berio-design-system .elementor .bm-related-products-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--bm-cream);
    opacity: .3;
  }

  .berio-design-system .elementor .bm-related-products-carousel .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .berio-design-system :where(.bm-main) :is(.bm-split, .bm-grid, .bm-catalog-grid, .bm-detail-columns, .bm-detail-intro, .bm-history-entry) {
    grid-template-columns: minmax(0, 1fr);
    --gap: 32px;
  }

  .berio-design-system :where(.bm-main) .bm-split--reverse> :first-child {
    order: 0;
  }

  .berio-design-system :where(.bm-main) .bm-page-hero {
    --padding-top: 180px;
    --padding-bottom: 48px;
    min-height: var(--min-height, 460px);
  }

  .berio-design-system :where(.bm-main) .bm-page-heading {
    --padding-top: 160px;
  }

  .berio-design-system :where(.bm-main) .bm-hero-breadcrumb {
    top: 120px;
    max-width: calc(100% - 48px);
  }

  .berio-design-system :where(.bm-main) .bm-hero-seal {
    display: none;
  }

  .berio-design-system .elementor .bm-hero-seal--mobile-visible {
    display: block;
    left: 21px;
    top: 181px;
    width: 210px;
    --container-widget-width: 210px;
    opacity: .5;
  }

  .berio-design-system .elementor .bm-page-hero--brand::before {
    top: 41.074856%;
    background: linear-gradient(180deg, #0000, rgb(0 0 0 / .58));
  }

  .berio-design-system :where(.bm-main) .bm-intro--ornament {
    --padding-top: 64px;
    --padding-bottom: 48px;
  }

  .berio-design-system .elementor .bm-intro-ornament img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .berio-design-system .elementor .bm-intro--dish .bm-intro-ornament img {
    aspect-ratio: 264 / 170;
    object-fit: cover;
  }

  .berio-design-system .elementor .bm-intro-ornament--mobile-mirrored {
    width: var(--container-widget-width, 274px);
  }

  .berio-design-system .elementor .bm-intro-ornament--mobile-mirrored img {
    width: 100%;
    height: auto;
    aspect-ratio: 274 / 145;
    object-fit: fill;
    transform: scaleX(-1);
  }

  /* Our Products usa il verso originale del rametto. */
  .berio-design-system .elementor .bm-products-fonts .bm-intro-ornament--mobile-mirrored img {
    transform: none;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-inspiration {
    min-height: var(--min-height, 600px);
  }

  .berio-design-system :where(.bm-main) .bm-recipe-inspiration::before {
    top: 21.25%;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-inspiration>.bm-text-kicker {
    margin-bottom: -25px;
  }

  .berio-design-system .elementor :is(.bm-recipe-inspiration, .bm-shield-gallery)>.bm-button .elementor-button {
    width: 100%;
    min-height: 60px;
  }

  .berio-design-system :where(.bm-main) .bm-shield-gallery {
    min-height: 0;
    --padding-top: 64px;
    --padding-bottom: 104px;
  }

  .berio-design-system :where(.bm-main) .bm-shield-gallery::before {
    top: 398.5px;
    height: 165.483154px;
    background-size: 2447px 165.483154px;
  }

  .berio-design-system :where(.bm-main) .bm-shield-card img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .berio-design-system :where(.bm-main) .bm-shield-carousel :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {
    display: none;
  }

  .berio-design-system .elementor .bm-shield-carousel>.swiper-pagination {
    top: calc(100% + 130px);
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--product {
    min-height: 0;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--product .bm-bottle-photo img {
    height: 360px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-columns {
    --padding-top: 64px;
    --padding-bottom: 64px;
  }

  .berio-design-system :where(.bm-main) .bm-accordion :is(th, td) {
    padding: 12px 8px;
  }

  .berio-design-system :where(.bm-main) .bm-section--recipe-catalogue {
    --padding-top: 64px;
    --padding-bottom: 80px;
    --gap: 64px;
  }

  .berio-design-system :where(.bm-main) .bm-filter-option {
    width: calc(50% - 4px);
  }

  .berio-design-system :where(.bm-main) .bm-filter-option select {
    padding-left: 30px;
    padding-right: 26px;
  }

  .berio-design-system :where(.bm-main) .bm-filter-option::before {
    left: 10px;
  }

  .berio-design-system :where(.bm-main) .bm-filter-option::after {
    right: 14px;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-search-fields {
    gap: 8px;
    padding: 12px;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-search button {
    padding-inline: 16px;
  }

  .berio-design-system :where(.bm-main) .bm-recipe-filters .bm-filter-caption {
    margin-top: 48px;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel>.bm-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline .bm-history-entry {
    grid-template-columns: minmax(0, 1fr);
    --gap: 48px;
    width: min(var(--width, 315px), calc(100% - 35.887252px));
    align-self: flex-end;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline::before {
    left: 5.443627px;
    bottom: 60.35254px;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-timeline .bm-history-entry::after {
    left: -35.887252px;
    top: 26.1815px;
    width: 7.698452px;
    height: 7.698452px;
    border: 0;
    background: var(--bm-cream);
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-entry--copy-first-mobile> :first-child {
    order: 2;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-photo img {
    height: auto;
    aspect-ratio: 315 / 273;
    max-height: none;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-photo--collage img {
    height: 273px;
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-label {
    position: relative;
    color: var(--bm-gold);
  }

  .berio-design-system:where(.page-id-18) :where(.bm-main) .bm-history-label::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -15px;
    border-top: 1px solid #ede9e04d;
  }

  .berio-design-system :where(.bm-main) .bm-section--values>.bm-grid {
    --gap: 24px;
  }

  .berio-design-system :where(.bm-main) .bm-signature-photo>.bm-editorial-photo img {
    height: 585px;
  }

  .berio-design-system :where(.bm-main) .bm-signature-caption {
    bottom: 48.4107px;
    --gap: 49.8145px;
    left: 1px;
    right: 0;
  }

  /* Mantiene la misura mobile del widget Elementor. */
  .berio-design-system .elementor .bm-signature-caption>.bm-signature-mark {
    width: var(--container-widget-width, 349px);
    max-width: 100%;
  }

  .berio-design-system :where(.bm-main) .bm-signature-caption>.elementor-widget-heading::before {
    top: -24px;
  }

  .berio-design-system .elementor .bm-value-card.elementor-widget-icon-box .elementor-icon-box-wrapper {
    row-gap: 20.8284px;
  }

  .berio-design-system :where(.bm-main) .bm-value-card .elementor-icon-box-description {
    line-height: 1.6;
    letter-spacing: .02em;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    color: var(--bm-muted-light);
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action .bm-stack {
    display: contents;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action :is(.elementor-widget-heading, .elementor-widget-text-editor) {
    justify-self: center;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action .bm-editorial-photo {
    order: 3;
    justify-self: center;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action .bm-editorial-photo img {
    height: 347px;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action .bm-button {
    order: 4;
    justify-self: center;
  }

  .berio-design-system :where(.bm-main) .bm-feature-panel--photo-before-action .bm-button .elementor-button {
    width: 100%;
    min-height: 60px;
  }

  .berio-design-system :where(.bm-main) .bm-section--brand-mark {
    --padding-top: 64px;
    --padding-bottom: 64px;
  }

  .berio-design-system :where(.bm-main) .bm-story-emblem img {
    height: auto;
  }

  .berio-design-system :where(.bm-main) .bm-page-heading--legal {
    --padding-top: 180px;
    --padding-bottom: 64px;
  }

  .berio-design-system :where(.bm-main) .bm-prose--legal {
    --padding-top: 64px;
    --padding-bottom: 80px;
    --gap: 48px;
  }

  .berio-design-system :where(.bm-main) .bm-prose--legal>.elementor-widget-heading {
    margin-bottom: -28px;
  }

  .berio-design-system :where(.bm-main) .bm-section>.bm-detail-columns {
    --padding-left: 24px;
    --padding-right: 24px;
  }
}

@media (max-width: 480px) {
  .berio-design-system :where(.bm-main) .bm-filter-option {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .berio-design-system .elementor *, .berio-design-system .elementor *::before, .berio-design-system .elementor *::after {
    animation: none;
    transition-duration: calc(0s * var(--bm-motion-factor, 1));
    scroll-behavior: auto;
  }
}

@media (max-width: 767px) {
  .berio-design-system .elementor :is(.bm-stack, .bm-grid, .bm-split, .bm-timeline, .bm-signature-photo) {
    max-width: 100%;
    min-width: 0;
  }

  .berio-design-system .elementor .bm-signature-caption {
    max-width: calc(100% - 1px);
  }

  .berio-design-system .elementor .bm-photo-crop--products-still-life {
    position: relative;
    aspect-ratio: 350 / 315;
  }

  .berio-design-system .elementor .bm-photo-crop--products-still-life img {
    position: absolute;
    left: -23.142857%;
    top: -5.401786%;
    width: 142.285714%;
    max-width: none;
    height: 111.111111%;
    object-fit: fill;
    transform: none;
  }

  .berio-design-system .elementor .bm-not-found {
    --padding-top: 136px;
    --padding-bottom: 34px;
    --padding-left: 20px;
    --padding-right: 20px;
  }

  .berio-design-system .elementor .bm-not-found-panel {
    background-size: 198.85714% auto;
    background-position: 48.26589% 34.375%;
    min-height: 610px;
    --padding-top: 280px;
    --padding-bottom: 24px;
    --padding-left: 22px;
    --padding-right: 22px;
    --gap: 30px;
    justify-content: space-between;
  }

  .berio-design-system .elementor .bm-not-found-panel .bm-divider {
    position: absolute;
    top: 244px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .berio-design-system .elementor .bm-not-found-title h1 {
    line-height: 1.0072727;
  }

  /* 404 mobile: Oops su una riga dedicata, come nel frame Figma. */
  .berio-design-system .elementor .bm-not-found-title h1 em {
    display: block;
  }

  .berio-design-system .elementor .bm-not-found-panel .bm-button {
    width: 100%;
  }

  .berio-design-system .elementor .bm-not-found-panel .elementor-button {
    display: flex;
    min-height: 60px;
    justify-content: center;
  }

  .berio-design-system .elementor .bm-mobile-only {
    display: block;
  }

  .berio-design-system :where(.bm-main) .bm-divider-end {
    --bm-divider-height: 10.8873px;
    --bm-divider-mask: url("vectors/section-divider-mobile.svg?v=20261112");
    --bm-divider-left: 20px;
    --bm-divider-right: 21.1127px;
  }

  .berio-design-system :where(.bm-main) .bm-accordion--compact-labels .e-n-accordion-item-title {
    letter-spacing: 1.2px;
  }

  .berio-design-system :where(.bm-main) .bm-accordion--compact-labels .e-n-accordion-item-title-icon {
    margin-right: 14px;
  }

  .berio-design-system .elementor .bm-callout--emblem-flow {
    justify-content: flex-start;
    margin-top: var(--margin-top, 0px);
  }

  .berio-design-system .elementor .bm-callout--emblem-flow .bm-callout-emblem {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(388px, 100vw);
    --container-widget-width: 388px;
    height: auto;
    aspect-ratio: 388 / 294;
    max-width: none;
    overflow: hidden;
    flex-shrink: 0;
  }

  .berio-design-system .elementor .bm-callout--emblem-flow .bm-callout-emblem img {
    position: absolute;
    left: -2.577769%;
    top: -4.755%;
    width: 103.46496%;
    max-width: none;
    height: 109.45404%;
    object-fit: fill;
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-card .elementor-heading-title {
    line-height: 1.13;
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-heading .elementor-heading-title {
    line-height: var(--bm-heading-leading);
  }

  .berio-design-system :where(.elementor) .bm-leading-hero.bm-mobile-leading-heading .elementor-heading-title {
    line-height: var(--bm-heading-leading);
  }

  .berio-design-system :where(.elementor) .bm-inline-leading-tight .elementor-heading-title em.bm-mobile-line {
    line-height: inherit;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-italic {
    font-style: italic;
    font-weight: 400;
    line-height: 1;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-roman {
    font-style: normal;
    font-weight: 100;
    line-height: var(--bm-heading-leading);
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-title .elementor-heading-title {
    line-height: 1.2;
  }

  .berio-design-system :where(.elementor) .bm-mobile-type-section .elementor-heading-title {
    line-height: 1.15;
  }

  .berio-design-system :where(.elementor) .bm-mobile-type-section-medium .elementor-heading-title {
    line-height: 1.2;
  }

  .berio-design-system :where(.elementor) .bm-mobile-type-untrim .elementor-heading-title {
    text-box-trim: none;
  }

  .berio-design-system :where(.elementor) .bm-mobile-font-light .elementor-heading-title {
    font-weight: 400;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-tracked {
    letter-spacing: .02em;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-tracked .elementor-heading-title {
    letter-spacing: .02em;
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-body.elementor-widget-text-editor {
    line-height: var(--bm-body-leading);
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-compact.elementor-widget-text-editor {
    line-height: 1.4;
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-airy.elementor-widget-text-editor,
  .berio-design-system .elementor .bm-mobile-leading-airy.elementor-widget-text-editor p {
    line-height: 1.9;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-trim p {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  .berio-design-system :where(.elementor) .bm-mobile-text-start {
    text-align: left;
  }

  .berio-design-system :where(.bm-main) .bm-mobile-text-start .bm-values-introduction {
    text-align: inherit;
  }

  .berio-design-system .elementor .bm-mobile-hero-gradient-bottom::before {
    top: 41.074856%;
    height: auto;
    background: linear-gradient(180deg, #0000, rgb(0 0 0 / .58));
  }

  .berio-design-system :where(.elementor) .bm-mobile-leading-airy {
    line-height: 1.9;
  }

  .berio-design-system :where(.elementor) .bm-mobile-lowercase {
    text-transform: lowercase;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product {
    --padding-top: 165px;
    --padding-bottom: 63px;
    --padding-left: 5px;
    --padding-right: 5px;
    --gap: 0px;
    overflow: clip;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product::before {
    z-index: 2;
    top: 82px;
    left: calc(50% - 917px);
    right: auto;
    width: 1845px;
    height: 125px;
    background-size: 100% 100%;
    transform: scaleY(-1);
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product .bm-bottle-photo {
    height: 632px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product .bm-bottle-photo img {
    height: 577.058838px;
    position: relative;
    top: -16.029411px;
  }

  .berio-design-system .elementor .bm-detail-intro--editorial.bm-detail-intro--product .bm-bottle-photo::before {
    /* Alone mobile più raccolto e luminoso, trasparente ai bordi. */
    width: min(100%, 390px);
    aspect-ratio: 390 / 640;
    top: 45%;
    background: radial-gradient(ellipse closest-side, #adba4ee6 0%, #adba4e80 38%, #adba4e00 100%);
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product .bm-detail-copy {
    padding-inline: 15px;
    --gap: 35px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product .bm-detail-copy>.bm-text-kicker {
    margin-bottom: -25px;
  }

  .berio-design-system :where(.bm-main) .bm-detail-intro--editorial.bm-detail-intro--product :is(.bm-detail-copy > .bm-button, .bm-hero-breadcrumb) {
    display: none;
  }

  .berio-design-system :where(.bm-main) .bm-product-facts {
    --padding-top: 69px;
    --padding-bottom: 69px;
    --padding-left: 20px;
    --padding-right: 20px;
    --gap: 45px;
  }

  .berio-design-system :where(.bm-main) .bm-product-facts>.elementor-widget-heading {
    padding-block: 0;
  }

  .berio-design-system :where(.bm-main) .bm-product-facts .e-n-accordion-item-title {
    padding-inline: 3px;
  }

  .berio-design-system :where(.bm-main) .bm-product-facts .e-n-accordion-item-title-icon {
    margin-right: 14px;
  }

  .berio-design-system :where(.bm-main) .bm-product-facts .e-n-accordion-item::before,
  .berio-design-system :where(.bm-main) .bm-product-facts .e-n-accordion-item:last-child::after {
    left: 3px;
    right: 3px;
  }

  .berio-design-system :where(.elementor) .bm-leading-hero .elementor-heading-title {
    line-height: 1.2;
  }

  .berio-design-system .elementor .bm-header {
    min-height: 101px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  /* Fascia del logo nel riferimento mobile: linee dorate condivise su tutte le pagine. */
  .berio-design-system .elementor .bm-header::before {
    display: block;
    inset: 64px 0 auto;
    height: 37px;
    box-sizing: border-box;
    border-block: 1px solid color-mix(in srgb, var(--bm-gold) 30%, transparent);
    background: rgba(0, 0, 0, .08);
    pointer-events: none;
  }

  .berio-design-system .elementor .bm-header-logo {
    position: absolute;
    grid-area: auto;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
  }

  .berio-design-system .elementor .bm-header-logo img {
    width: 128px;
    height: 66px;
  }

  .berio-design-system .elementor .bm-header>.bm-open-search {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 10px;
  }

  .berio-design-system .elementor .bm-main-menu {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin-top: 24.5px;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle {
    width: 44px;
    height: 44px;
    background: transparent;
    transform: translateX(-10px);
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle::before {
    content: "";
    width: 30px;
    height: 27px;
    background: var(--bm-cream);
    mask: url("vectors/menu-toggle-mobile.svg") center / contain no-repeat;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle .e-n-menu-toggle-icon {
    display: none;
  }

  .berio-design-system.bm-mobile-menu-open .elementor .bm-main-menu {
    margin-top: 14.5px;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle[aria-expanded="true"] {
    display: grid;
    place-items: center;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle[aria-expanded="true"]::before {
    mask-image: url("vectors/menu-close.svg");
  }

  .berio-design-system .elementor .bm-header>.bm-open-search .elementor-button::before {
    width: 40px;
    height: 40px;
  }

  .berio-design-system .elementor .bm-button--chevron .elementor-button {
    min-height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    letter-spacing: 1.4px;
    border-width: 2px;
    border-radius: 15px;
  }

  .berio-design-system .elementor .bm-button--light.bm-button--chevron .elementor-button {
    border-color: #ebe7dd4d;
  }

  .berio-design-system .elementor .bm-button--chevron .elementor-button-content-wrapper {
    width: 100%;
    justify-content: center;
  }

  .berio-design-system .elementor .bm-button.bm-button--chevron .elementor-button-icon {
    position: absolute;
    right: 25px;
  }

  .berio-design-system .elementor .bm-open-film .elementor-button {
    --bm-play-center-x: 54px;
    --bm-play-center-y: 55px;
  }

  .berio-design-system .elementor .bm-open-film .elementor-button::before {
    left: -1px;
    top: 1px;
  }

  .berio-design-system .elementor .bm-responsive-background .elementor-background-video-fallback {
    background-image: var(--bm-mobile-background);
    background-size: var(--bm-mobile-background-size, 100% auto);
    background-position: var(--bm-mobile-background-position, center -64px);
  }

  .berio-design-system .elementor .e-con.bm-responsive-background:not(.elementor-motion-effects-element-type-background) {
    background-image: var(--bm-mobile-background);
    background-size: var(--bm-mobile-background-size, 100% auto);
    background-position: var(--bm-mobile-background-position, center -64px);
  }

  .berio-design-system .elementor .bm-hero.bm-responsive-background::before {
    background: linear-gradient(#7a8382 0 calc(100% - 393px), #3d4241 100%);
    mix-blend-mode: multiply;
    opacity: 1;
  }

  /* Un solo sfondo continuo: niente seconda copia in fondo al footer mobile. */
  .berio-design-system .elementor .bm-footer.bm-responsive-background:not(.elementor-motion-effects-element-type-background) {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .berio-design-system .elementor .bm-open-film {
    align-self: end;
  }

  .berio-design-system .elementor .bm-hero-copy {
    width: 100%;
  }

  .berio-design-system .elementor :is(.bm-heading-line, .bm-mobile-line) {
    display: block;
  }

  .berio-design-system .elementor .bm-heading-line+br {
    display: none;
  }

  .berio-design-system .elementor .bm-desktop-only {
    display: none;
  }

  .berio-design-system .elementor .bm-hero-action {
    margin-top: 25px;
    width: 100%;
  }

  .berio-design-system .elementor .bm-products-intro {
    padding: 0 19px;
  }

  .berio-design-system .elementor .bm-products-intro> :is(.bm-text-kicker, .elementor-widget-text-editor, .bm-button) {
    display: none;
  }

  .berio-design-system .elementor .bm-olive-branch {
    order: -1;
    width: min(411px, 100vw);
    max-width: none;
    margin: 0 auto;
  }

  .berio-design-system .elementor .bm-olive-branch img {
    transform: none;
  }

  .berio-design-system .elementor .bm-product-cards {
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 23px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 39px;
    padding: 19.5px 39px;
    scrollbar-width: none;
  }

  .berio-design-system .elementor .bm-product-cards::-webkit-scrollbar {
    display: none;
  }

  .berio-design-system .elementor .bm-product-cards .bm-product-card {
    flex: 0 0 min(310px, calc(100vw - 78px));
    width: min(310px, calc(100vw - 78px));
    min-height: 606px;
    padding: 20px 17px 29px;
    scroll-snap-align: center;
  }

  .berio-design-system .elementor .bm-product-cards .bm-product-card--action {
    row-gap: 25px;
  }

  .berio-design-system .elementor .bm-product-card--action .bm-card-title {
    position: relative;
    padding-bottom: 25px;
    border-bottom: 0;
  }

  .berio-design-system .elementor .bm-product-card--action .bm-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #ede9e066;
  }

  .berio-design-system .elementor .bm-product-card--action>.bm-card-action {
    display: none;
  }

  .berio-design-system .elementor .bm-mobile-sentence-case .elementor-heading-title a {
    text-transform: lowercase;
  }

  .berio-design-system .elementor .bm-mobile-sentence-case .elementor-heading-title a::first-letter {
    text-transform: uppercase;
  }

  .berio-design-system .elementor .bm-product-card:has(.bm-product-photo) {
    --bm-photo-scale: 1;
    --bm-photo-hover-x: 0%;
    --bm-photo-hover-y: 0%;
  }

  .berio-design-system .elementor .bm-product-card:is(:hover, :focus-within) {
    background-color: var(--bm-green);
  }

  .berio-design-system .elementor .bm-product-photo {
    aspect-ratio: 1;
  }

  .berio-design-system .elementor .bm-photo-olive img {
    transform: scale(1.072463768);
    transform-origin: 50% 17.5%;
  }

  .berio-design-system .elementor .bm-card-title a {
    background-image: none;
    padding-right: 0;
  }

  .berio-design-system .elementor .bm-rail-pagination .elementor-icon-list-items {
    display: flex;
    justify-content: center;
    gap: 14px;
  }

  .berio-design-system .elementor .bm-rail-pagination a {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--bm-green);
    border-radius: 50%;
    opacity: .3;
  }

  .berio-design-system .elementor .bm-rail-pagination a[aria-current] {
    opacity: 1;
  }

  .berio-design-system .elementor .bm-rail-pagination--cream a {
    background: var(--bm-cream);
  }

  .berio-design-system .elementor .bm-rail-pagination .elementor-icon-list-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .berio-design-system :where(.elementor .bm-section--recipe-links:has(.bm-recipe-rail)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    --margin-top: 69px;
    --padding-top: 50px;
    --padding-bottom: 50px;
    --padding-left: 15px;
    --padding-right: 15px;
    --gap: 43px;
  }

  .berio-design-system .elementor .bm-section--recipe-links:has(.bm-recipe-rail)>.bm-section-heading {
    display: contents;
  }

  .berio-design-system .elementor .bm-section--recipe-links:has(.bm-recipe-rail)>.bm-section-heading>.bm-stack {
    grid-row: 1;
    --gap: 43px;
  }

  .berio-design-system .elementor .bm-section--recipe-links:has(.bm-recipe-rail)>.bm-section-heading>.bm-button {
    grid-row: 4;
  }

  .berio-design-system .elementor .bm-recipe-rail {
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6.5px;
    scrollbar-width: none;
    --gap: 20px;
    padding-inline: 6.5px;
  }

  .berio-design-system .elementor .bm-recipe-rail>.bm-loop-card {
    flex: 0 0 min(347px, 100%);
    scroll-snap-align: center;
  }

  .berio-design-system .elementor .bm-detail-intro--editorial.bm-detail-intro--recipe {
    --padding-top: 174px;
    --padding-bottom: 35px;
    --padding-left: 20px;
    --padding-right: 20px;
    --gap: 35px;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe::before {
    top: 102px;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe>.bm-stack {
    --gap: 35px;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe>.bm-stack>.bm-text-kicker {
    margin-bottom: -25px;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe .bm-recipe-facts {
    margin-bottom: 0;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe .bm-editorial-photo img {
    aspect-ratio: 350 / 315;
  }

  .berio-design-system .elementor .bm-detail-intro--recipe .bm-hero-breadcrumb {
    display: none;
  }

  .berio-design-system .elementor .bm-recipe-ingredients {
    --padding-top: 45px;
    --padding-bottom: 45px;
    --padding-left: 20px;
    --padding-right: 20px;
  }

  .berio-design-system .elementor .bm-recipe-ingredients::before {
    display: none;
  }

  .berio-design-system .elementor .bm-recipe-ingredients>.bm-split {
    grid-template-columns: minmax(0, 1fr);
    --gap: 45px;
  }

  .berio-design-system .elementor .bm-recipe-ingredients>.bm-split>.bm-content-group--divided {
    position: relative;
    --padding-top: 60.8873px;
    --padding-bottom: 30.1127px;
    --gap: 30px;
  }

  .berio-design-system .elementor .bm-content-group--divided::before {
    display: block;
    top: 0;
    left: .5564px;
    right: .5563px;
    height: 10.8873px;
    mask-image: url("vectors/section-divider-mobile.svg?v=20261112");
  }

  .berio-design-system .elementor .bm-recipe-ingredients .bm-content-group--divided>.elementor-widget-heading {
    padding-bottom: 6px;
  }

  .berio-design-system .elementor .bm-recipe-ingredients>.bm-split>.bm-content-group--product-reference {
    --padding-bottom: 56.1127px;
  }

  .berio-design-system .elementor .bm-product-reference--inline {
    --gap: 40px;
  }

  .berio-design-system .elementor .bm-product-reference--inline>.bm-stack {
    --gap: 28px;
  }

  .berio-design-system :where(.bm-main) .bm-loop-photo img {
    left: -3.634499%;
    top: -.786539%;
    width: 110.26446%;
  }

  .berio-design-system :where(.bm-main) .bm-loop-card::before {
    top: 48.70317%;
  }

  .berio-design-system .elementor .bm-recipe-rail :is(.bm-loop-link, .bm-recipe-badge) {
    display: none;
  }

  .berio-design-system .elementor .bm-section--recipe-links>.bm-rail-pagination {
    grid-row: 3;
  }

  .berio-design-system .elementor .bm-panel--tasting {
    --padding-top: 112px;
    --padding-bottom: 112px;
    --padding-left: 22px;
    --padding-right: 22px;
  }

  .berio-design-system .elementor .bm-panel--tasting .bm-split {
    --gap: 60px;
  }

  .berio-design-system .elementor .bm-panel--tasting .bm-split>.bm-stack {
    max-width: 344px;
  }

  .berio-design-system .elementor .bm-panel--tasting .bm-type-section-medium {
    padding-block: 0 43.75px;
  }

  .berio-design-system .elementor .bm-panel--tasting .bm-photo-crop--tasting {
    position: relative;
    aspect-ratio: 346 / 358;
  }

  .berio-design-system .elementor .bm-panel--tasting .bm-photo-crop--tasting img {
    position: absolute;
    left: -80.635838%;
    top: -23.184358%;
    width: 191.618497%;
    max-width: none;
    height: auto;
    object-fit: fill;
    transform: none;
  }

  .berio-design-system .elementor .bm-recipes>.e-con-inner {
    display: flex;
    flex-direction: column;
  }

  .berio-design-system .elementor .bm-recipe-gallery {
    order: -1;
  }

  .berio-design-system .elementor .bm-recipe-gallery .swiper-slide-image {
    height: 470px;
    aspect-ratio: auto;
  }

  .berio-design-system .elementor .bm-recipe-gallery.bm-gallery--dissolve .swiper-wrapper {
    height: 470px;
    aspect-ratio: auto;
  }

  .berio-design-system .elementor .bm-recipe-gallery .swiper-slide:first-child .bm-responsive-media img {
    object-position: 47.45% 50%;
    transform: scale(1.11915);
  }

  .berio-design-system .elementor .bm-featured-recipe {
    gap: 35px;
  }

  .berio-design-system .elementor .bm-featured-photo img {
    height: 315px;
    aspect-ratio: auto;
    object-position: 50% 50%;
    transform: scale(1.14603);
    transform-origin: 50% 25%;
  }

  .berio-design-system .elementor .bm-featured-visual .bm-recipe-badge {
    --bm-badge-scale: 1.354951143;
    margin: 10.495117px 0 0 7px;
  }

  .berio-design-system .elementor .bm-recipe-facts .elementor-icon-list-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .berio-design-system .elementor .bm-recipe-facts .elementor-icon-list-text {
    letter-spacing: 1.3px;
  }

  .berio-design-system .elementor .bm-recipe-facts .elementor-icon-list-item {
    min-height: 88px;
    justify-content: center;
  }

  .berio-design-system .elementor .bm-recipe-facts .elementor-icon-list-item:nth-child(2n

    /**/
    +1) {
    border-left: 0;
  }

  .berio-design-system .elementor .bm-recipe-facts .elementor-icon-list-item:nth-child(n

    /**/
    +3) {
    border-top: 1px solid #ede9e050;
  }

  .berio-design-system .elementor .bm-featured-oil {
    flex-direction: column;
    min-height: 409px;
    justify-content: start;
    width: 100%;
    padding: 0 0 36px;
  }

  /* Etichetta e goccia sempre su una riga, anche sui telefoni stretti. */
  .berio-design-system .elementor .bm-oil-recipe-label .elementor-heading-title {
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .berio-design-system .elementor .bm-oil-range {
    position: relative;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-slide {
    min-height: 995px;
    height: 995px;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-slide-inner {
    padding-top: 245px;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-slide-image {
    height: 430px;
    max-height: none;
  }

  .berio-design-system .elementor .bm-oil-caption {
    position: absolute;
    top: 56px;
    left: 21px;
    width: calc(100% - 40px);
    max-width: none;
    min-height: 139px;
    padding: var(--padding-top, 16.5px) var(--padding-right, 21px) var(--padding-bottom, 30.5px) var(--padding-left, 21px);
    margin: 0;
    border-radius: var(--bm-radius-card);
    justify-content: start;
  }

  .berio-design-system .elementor .bm-oil-caption::before,
  .berio-design-system .elementor .bm-oil-caption::after {
    display: none;
  }

  .berio-design-system .elementor .bm-oil-caption>.elementor-widget-text-editor {
    display: none;
  }

  .berio-design-system .elementor .bm-mobile-surface.e-con {
    background-color: var(--bm-mobile-background-color);
  }

  .berio-design-system .elementor .bm-oil-hover-area {
    pointer-events: none;
  }

  .berio-design-system .elementor .bm-oil-use {
    opacity: 1;
    top: 706.5px;
    left: 63px;
    width: calc(100% - 126px);
    transform: none;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 1.6px;
  }

  .berio-design-system .elementor .bm-oil-use::after {
    display: none;
  }

  .berio-design-system .elementor .bm-oil-action {
    position: absolute;
    top: 787px;
    left: 20px;
    width: calc(100% - 40px);
    z-index: 2;
  }

  .berio-design-system .elementor .bm-oil-action .elementor-button {
    display: flex;
    justify-content: space-between;
  }

  .berio-design-system .elementor .bm-oil-carousel .elementor-swiper-button {
    display: none;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-pagination {
    bottom: 96.5px;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin-inline: 6.5px;
    background: var(--bm-cream);
    opacity: .3;
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .berio-design-system .elementor .bm-story-grid {
    gap: 35px;
  }

  .berio-design-system .elementor .bm-story-photo {
    height: 596px;
    aspect-ratio: 350 / 596;
  }

  .berio-design-system .elementor .bm-story-photo img {
    object-position: 66.38% 50%;
    transform: scale(2.234899);
    transform-origin: 50% 74.395%;
  }

  .berio-design-system .elementor .bm-signature.e-con::before {
    background-image: linear-gradient(180deg, transparent 43.720379%, rgb(0 0 0 / .58));
  }

  .berio-design-system .elementor .bm-signature {
    --bm-mobile-background-size: cover;
    background-repeat: no-repeat;
    --bm-mobile-background-position: center top;
  }

  .berio-design-system .elementor .e-con.bm-recipe-method.bm-responsive-background:not(.elementor-motion-effects-element-type-background) {
    min-height: var(--min-height, 0);
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .berio-design-system .elementor .bm-recipe-method.bm-responsive-background>.bm-split>.bm-editorial-photo {
    display: none;
  }

  .berio-design-system .elementor .bm-method-steps ul {
    padding-left: 27px;
  }

  .berio-design-system .elementor .bm-method-steps {
    min-height: 1012px;
  }

  .berio-design-system .elementor .bm-method-steps li+li {
    margin-top: 28.8px;
  }

  .berio-design-system .elementor .bm-method-steps li:first-child {
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }

  .berio-design-system .elementor .bm-method-steps li:last-child {
    text-box-trim: trim-end;
    text-box-edge: cap alphabetic;
  }

  .berio-design-system .elementor .bm-recipe-share {
    --padding-top: 24px;
  }

  .berio-design-system .elementor .bm-story-seal {
    width: 70%;
    max-width: 260px;
    align-self: center;
    overflow: hidden;
  }

  .berio-design-system .elementor .bm-story-seal img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
    opacity: .3;
  }

  .berio-design-system .elementor .bm-story::before {
    opacity: 0;
  }

  .berio-design-system .elementor .bm-instagram-heading {
    width: calc(100% - 40px);
    max-width: none;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    align-self: center;
  }

  .berio-design-system :where(.elementor) .bm-instagram-title .elementor-heading-title {
    font-weight: 400;
    line-height: 1.15;
  }

  .berio-design-system .elementor .bm-instagram-title em {
    display: block;
    font-style: normal;
    line-height: inherit;
  }

  .berio-design-system .elementor .bm-instagram-platform {
    font-style: italic;
  }

  .berio-design-system .elementor .bm-instagram>.bm-button {
    display: block;
  }

  .berio-design-system .elementor .bm-instagram>.bm-button::before {
    display: none;
  }

  .berio-design-system .elementor .bm-instagram-icon {
    width: 40px;
    flex-basis: auto;
  }

  .berio-design-system .elementor .bm-instagram-icon img {
    width: 40px;
    height: 40px;
  }

  .berio-design-system .elementor .bm-instagram-icon .elementor-widget-container {
    line-height: 0;
  }

  .berio-design-system .elementor .bm-instagram-carousel .swiper {
    padding-inline: 37px;
  }

  .berio-design-system .elementor .bm-instagram>.bm-button {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .berio-design-system .elementor .bm-instagram>.bm-button .elementor-button {
    display: flex;
    justify-content: space-between;
  }

  /* Spazio prima del logo: si aggiunge al padding mobile del template. */
  .berio-design-system .elementor .bm-footer {
    padding-top: calc(var(--padding-top, 73px) + 20px);
  }

  .berio-design-system .elementor .bm-footer-logo {
    width: 100%;
    max-width: none;
  }

  .berio-design-system .elementor .bm-footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .berio-design-system .elementor .bm-newsletter {
    order: -1;
  }

  .berio-design-system .elementor .bm-footer-columns {
    padding-top: 42.5px;
    border-top: 0;
  }

  .berio-design-system .elementor .bm-footer-columns::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 90vw);
    height: 11px;
    background: url("vectors/footer-divider.svg?v=20261112") center / 100% 11px no-repeat;
    pointer-events: none;
  }

  .berio-design-system .elementor .bm-footer-nav--world {
    order: 1;
  }

  .berio-design-system .elementor .bm-footer-nav-group .elementor-heading-title {
    font-weight: 700;
  }

  .berio-design-system .elementor .bm-footer-links .elementor-icon-list-text {
    font-weight: 700;
    letter-spacing: 1.4px;
  }

  .berio-design-system .elementor .bm-footer-nav-group .elementor-heading-title {
    min-height: 12px;
  }

  .berio-design-system .elementor .bm-footer-links .elementor-icon-list-text {
    display: block;
    line-height: 16px;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  .berio-design-system .elementor .bm-footer-links .elementor-icon-list-item {
    line-height: 10px;
    height: 10px;
    box-sizing: content-box;
  }

  .berio-design-system .elementor .bm-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-top: 0;
    border-top: 0;
    gap: 15.75px;
  }

  .berio-design-system .elementor .bm-footer-social-label {
    order: -2;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-widget-social-icons {
    order: -1;
  }

  .berio-design-system .elementor .bm-footer-socials {
    order: -1;
  }

  /* Social footer mobile: gruppo compatto, senza cambiare le icone. */
  .berio-design-system .elementor .bm-footer-socials .elementor-social-icons-wrapper {
    display: flex;
    gap: 20px;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-social-icon {
    padding: 0;
    width: 32px;
    height: 32px;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-social-icon[aria-label="YouTube"] {
    width: 26px;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-social-icon svg {
    width: 32px;
    height: 32px;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-widget-text-editor {
    position: relative;
    width: 100%;
    align-self: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 0;
    text-align: center;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .berio-design-system .elementor .bm-footer-bottom .elementor-widget-text-editor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 90vw);
    max-width: none;
    height: 11px;
    background: url("vectors/footer-divider.svg?v=20261112") center / 100% 11px no-repeat;
  }

  .berio-design-system .elementor .bm-back-top {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
  }

  .berio-design-system .elementor .bm-back-top .elementor-button {
    width: 51px;
    height: 51px;
  }

  .berio-design-system .elementor .bm-newsletter-title {
    min-height: 0;
  }

  .berio-design-system .elementor .bm-footer :is(.elementor-widget-text-editor, .elementor-field-label, .elementor-acceptance-field + label) {
    color: var(--bm-muted-light);
  }

  .berio-design-system .elementor .bm-category-card--horizontal {
    --bm-photo-scale: 1;
    --bm-photo-hover-y: 0%;
  }

  .berio-design-system .elementor .bm-category-card--horizontal:is(:hover, :focus-within) {
    background-color: #096b37;
  }

  .berio-design-system .elementor :is(.bm-category-card--horizontal, .bm-product-card--action) .bm-button--arrow-reveal {
    --bm-reveal-box: 16px;
    --bm-reveal-icon: 16px;
    --bm-reveal-gap: 0px;
  }

  .berio-design-system .elementor :is(.bm-category-card--horizontal, .bm-product-card--action) .bm-button--arrow-reveal .elementor-button-content-wrapper {
    gap: 0;
  }

  .berio-design-system .elementor :is(.bm-category-card--horizontal, .bm-product-card--action) .bm-button--arrow-reveal .elementor-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.berio-native-page) {
    --bm-motion-factor: 0;
  }
}

/* ACF recipe template: responsive layout. */
@media(max-width:1024px) {
  .berio-design-system .br-recipe .bm-detail-intro--recipe {
    --padding-top: 190px;
    --padding-bottom: 60px;
  }

  .berio-design-system .br-recipe .bm-detail-intro--recipe .bm-editorial-photo {
    max-width: 700px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients {
    --padding-left: 24px;
    --padding-right: 24px;
    --padding-top: 60px;
    --padding-bottom: 60px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients>.bm-split {
    --gap: 48px;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }

  .berio-design-system .br-recipe .bm-recipe-method {
    --padding-top: 60px;
    --padding-bottom: 0px;
  }
}

@media(max-width:767px) {
  .berio-design-system .br-recipe .bm-hero-breadcrumb {
    top: 125px;
    left: 24px;
  }

  .berio-design-system .br-recipe .bm-detail-intro--recipe {
    --padding-top: 200px;
    --padding-bottom: 48px;
    --gap: 32px;
  }

  .berio-design-system .br-recipe .br-facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .berio-design-system .br-recipe .br-facts li {
    min-width: 0;
  }

  .berio-design-system .br-recipe .br-facts li:nth-child(odd) {
    border-left: 0;
  }

  .berio-design-system .br-recipe .br-facts li:nth-child(n

    /**/
    +3) {
    border-top: 1px solid #ede9e04d;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline {
    grid-template-columns: minmax(0, 1fr);
    --gap: 28px;
    align-items: start;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline .bm-bottle-photo {
    height: 460px;
    padding: 40px;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline .bm-stack {
    --gap: 20px;
  }

  .berio-design-system .br-recipe .bm-button .elementor-button {
    white-space: normal;
    text-align: left;
  }

  .berio-design-system .br-recipe .bm-recipe-method>.bm-split {
    grid-template-columns: 1fr;
    --gap: 0px;
  }

  .berio-design-system .br-recipe .bm-method-copy {
    order: 0;
    --padding-bottom: 32px;
    --gap: 24px;
  }

  /* Dynamic methods follow their content length, not the old static recipe height. */
  .berio-design-system .elementor .br-recipe .bm-method-steps {
    min-height: 0;
  }

  .berio-design-system .br-recipe .br-chef {
    order: 1;
    max-width: none;
    width: 100%;
    margin-inline: auto;
  }

  .berio-design-system .br-recipe .bm-recipe-method .br-chef img {
    max-height: none;
    width: 100%;
  }

  .berio-design-system .br-recipe .br-related-heading {
    align-items: start;
    flex-direction: column;
  }

  .berio-design-system .br-recipe .bm-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:767px) {
  .berio-design-system .br-recipe .br-facts li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Product PHP layout: shared mobile typography and spacing remain authoritative. */
@media (max-width: 1024px) {
  .berio-design-system .bp-product .bp-related-grid>article {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (max-width: 767px) {

  /* Il layout PHP usa flex per le sezioni: qui ripristiniamo la griglia
   * mobile condivisa, con introduzione riga 1, ricette 2 e CTA finale 4.
   * La riga 3 resta disponibile per i futuri pallini del carosello. */
  .berio-design-system .bp-product .bm-section--recipe-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .bp-product .bm-section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Testi editoriali a sinistra; solo il titolo dei correlati è centrato.
   * Interlinea delle descrizioni allineata al riferimento mobile Figma. */
  .berio-design-system .bp-product :is(.bm-detail-copy, .bm-product-facts, .bm-panel--tasting, .bm-section-heading) {
    text-align: left;
  }

  .berio-design-system .bp-product :is(.bm-section-heading, .bm-tasting-attribute) .bm-text-body {
    line-height: 1.9;
  }

  .berio-design-system .bp-product .bm-section--related-products>.elementor-widget-heading {
    text-align: center;
  }

  .berio-design-system .bp-product .bp-related-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }

  .berio-design-system .bp-product .bp-related-grid>article {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* Search keeps a readable image/text row without horizontal scrolling. */
@media (max-width: 1024px) {
  .berio-design-system .bm-search-page {
    padding: 140px 24px 70px;
  }

  .berio-design-system .bm-search-row {
    grid-template-columns: 180px minmax(0, 1fr) 24px;
    gap: 20px;
  }

  .berio-design-system .bm-search-photo {
    height: 180px;
  }
}

@media (max-width: 767px) {
  .berio-design-system .bm-search-page {
    padding: 230px 20px 50px;
  }

  .berio-design-system .bm-search-page h1 {
    margin-bottom: 30px;
  }

  /* Risultati mobile: foto sopra, testo sotto; freccia allineata al bollino. */
  .berio-design-system .bm-search-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 44px 0;
    position: relative;
  }

  .berio-design-system .bm-search-arrow {
    position: absolute;
    right: 8px;
    top: calc(44px + (100vw - 40px) + 40px);
    width: 24px;
    height: 24px;
  }

  .berio-design-system .bm-search-pagination {
    justify-content: center;
  }

  .berio-design-system .bm-search-photo {
    height: auto;
    aspect-ratio: 1;
  }

  .berio-design-system .bm-search-row--product .bm-search-photo {
    background-color: #397e47;
  }

  .berio-design-system .bm-search-row--product .bm-search-photo img {
    padding: 11%;
  }

  .berio-design-system .bm-search-row h2 {
    margin-top: 28px;
    overflow-wrap: anywhere;
  }
}

/* The fixed About Us columns also fit narrower desktop screens. */
@media (min-width: 1101px) and (max-width: 1439px) {
  .berio-design-system .elementor #e-n-menu-content-3231.bm-menu-panel {
    padding-inline: 40px;
  }

  .berio-design-system .elementor #e-n-menu-content-3231 .bm-menu-copy .elementor-button {
    min-width: 0;
    max-width: 100%;
    padding-inline: 12px;
  }
}

/* Instagram mobile: card più larghe e anteprima laterale; scorrimento gestito da Elfsight. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-instagram {
    flex-wrap: nowrap;
  }

  /* Il widget misura la finestra: manteniamo il binario largo quanto il suo contenitore. */
  .berio-design-system .bm-instagram-feed .eapps-instagram-feed-posts-inner {
    width: 100% !important;
  }

  .berio-design-system .elementor .elementor-widget.bm-instagram-feed {
    width: calc(164vw + 16px);
    max-width: none;
    align-self: flex-start;
    padding-inline: 0;
  }
}

/* MODULI — adattamenti mobile; base e desktop in style-design.css.
 * Contatti e newsletter: colonna singola, pulsante largo prima del consenso, come in Figma.
 */
@media (max-width: 767px) {

  .berio-design-system .bm-contact-form .nf-form-content nf-fields-wrap,
  .berio-design-system .bm-newsletter-form .nf-form-content nf-fields-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .bm-contact-form :is(.nf-field-container, .bm-field-submit),
  .berio-design-system .bm-newsletter-form :is(.nf-field-container, .bm-field-submit) {
    grid-column: 1;
    grid-row: auto;
  }

  .berio-design-system .bm-contact-form .bm-field-submit {
    width: 100%;
  }

  .berio-design-system .bm-contact-form input[type=submit] {
    height: 60px;
    border-radius: 15px;
  }

  .berio-design-system .bm-contact-form .bm-field-instructions {
    text-align: center;
  }

  .berio-design-system .bm-contact-form .bm-field-consent {
    margin-top: 0;
  }

  .berio-design-system .bm-newsletter-form .bm-field-email {
    order: 0;
  }

  .berio-design-system .bm-newsletter-form .bm-field-consent {
    order: 2;
    max-width: none;
  }

  .berio-design-system .bm-newsletter-form .bm-field-submit {
    order: 1;
    padding-top: 0;
  }

  .berio-design-system .bm-newsletter-form :is(.bm-field-email input, input[type=submit]) {
    height: 60px;
    border-radius: 15px;
  }

  .berio-design-system .bm-newsletter-form .nf-form-content nf-fields-wrap {
    gap: 20px;
  }

  .berio-design-system .bm-newsletter-form input[type=submit] {
    font-weight: 700;
  }
}

/* WORLDWIDE — mantiene la composizione centrata su tablet e telefono. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-country-logo {
    width: 220px;
    margin-bottom: 28px;
  }

  .berio-design-system .elementor .bm-country-divider {
    margin: 32px 0;
  }

  .berio-design-system .elementor .bm-country-dialog nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .berio-design-system .elementor .bm-country-dialog nav a {
    padding: 12px;
    letter-spacing: .4px;
  }
}

/* Our Products: sotto 450px contenuto al 90% (5% per lato).
   Classe assegnata ai soli contenitori editoriali in Elementor;
   sfondi e galleria full-bleed mantengono tutta la larghezza. */
@media (max-width: 449.98px) {
  .berio-design-system .elementor :is(.bm-products-mobile-inset, .bm-mobile-inset) {
    --padding-left: 5%;
    --padding-right: 5%;
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Slider delle schede prodotto: pallini condivisi, esclusivamente mobile.
 * Solo la rail raggiunge il viewport; testo e CTA mantengono i loro margini. */
.berio-design-system :is(.bp-product, .br-recipe) .bp-mobile-pagination {
  display: none;
}

@media (max-width: 767px) {
  .berio-design-system :is(.bp-product, .br-recipe) :is(.bm-recipe-rail, .bp-related-grid) {
    width: 100vw;
    max-width: none;
    margin-inline: calc((100% - 100vw) / 2);
    padding-inline: 24px;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  /* Il wrapper desktop ritaglia la rail: su mobile il limite è il viewport. */
  .berio-design-system .bp-product .bp-related-carousel {
    overflow: visible;
  }

  .berio-design-system .bp-product .bp-related-grid::-webkit-scrollbar {
    display: none;
  }

  .berio-design-system .elementor :is(.bp-product, .br-recipe) :is(.bm-recipe-rail, .bp-related-grid)>article {
    flex: 0 0 calc(100vw - 48px);
    scroll-snap-align: center;
  }

  .berio-design-system :is(.bp-product, .br-recipe) .bp-mobile-pagination {
    display: block;
  }

  .berio-design-system .bp-product .bp-related-carousel>.bp-mobile-pagination {
    margin-top: 24px;
  }

  .berio-design-system .bp-product .bp-carousel-controls {
    display: none;
  }

  .berio-design-system :is(.bp-product, .br-recipe) .bp-mobile-pagination a {
    transition: opacity .2s ease;
  }

  .berio-design-system :is(.bp-product, .br-recipe) .bp-mobile-pagination a:focus-visible {
    outline: 2px solid var(--bm-cream);
    outline-offset: 5px;
  }
}

/* Rifiniture mobile delle pagine editoriali, senza alterare i contenuti. */
@media (max-width: 767px) {
  .berio-design-system .bm-mobile-review-terms .bm-prose--legal .bm-text-body {
    line-height: 1.9;
  }

  .berio-design-system .bm-mobile-review-terms .bm-page-heading--legal {
    --padding-top: 156px;
    --padding-bottom: 44px;
  }

  .berio-design-system .bm-mobile-review-terms .bm-prose--legal {
    --padding-top: 44px;
  }

  .berio-design-system .bm-mobile-review-404 .bm-not-found-title h1 {
    line-height: 1.15;
  }

  /* La maschera desktop comprimeva linea e rombo a pochi pixel su mobile.
   * Riutilizziamo il divisore Elementor mantenendo un rombo leggibile. */
  .berio-design-system .bm-mobile-review-404 .bm-divider .elementor-divider {
    mask: none;
    height: 1px;
    position: relative;
    background: linear-gradient(to right, #10552955 calc(50% - 10px), transparent calc(50% - 10px), transparent calc(50% + 10px), #10552955 calc(50% + 10px));
  }

  .berio-design-system .bm-mobile-review-404 .bm-divider .elementor-divider::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .berio-design-system .bm-mobile-review-404 .bm-not-found-panel {
    --padding-top: 280px;
    justify-content: flex-start;
  }

  /* Il bottone assorbe lo spazio libero sopra, entro il pannello esistente. */
  .berio-design-system .bm-mobile-review-404 .bm-not-found-panel>.bm-button {
    margin-top: auto;
  }
}

/* Stessa griglia concordata: sotto 450px contenuto 90%, margine 5% per lato.
 * La ricerca è PHP, perciò applica il medesimo inset al suo contenitore nativo. */
@media (max-width: 449.98px) {
  .berio-design-system .bm-search-page {
    padding-inline: 5%;
  }

  .berio-design-system .bm-search-arrow {
    top: calc(44px + 90vw + 40px);
  }
}

/* Home mobile: la griglia 90% riusa bm-mobile-inset sotto 450px.
 * Le rotaie dei caroselli e gli sfondi rimangono a tutta larghezza. */
@media (max-width: 767px) {
  .berio-design-system .bm-home .bm-hero-title .elementor-heading-title {
    line-height: 1.05;
  }

  .berio-design-system .bm-home :is(.bm-products-title, .bm-recipes-title, .bm-story-title) .elementor-heading-title {
    line-height: 1.13;
  }

  .berio-design-system .bm-home .bm-oil-caption .elementor-heading-title {
    line-height: 1.1;
    letter-spacing: 0;
  }

  /* La finestra dei pallini segue la slide; tutti i prodotti restano scorribili. */
  .berio-design-system .bm-oil-carousel .swiper-pagination-bullet[hidden] {
    display: none;
  }
}

/* Il ritorno in alto non deve sovrapporsi alla navigazione o ai popup. */
.berio-design-system:is(.bm-mobile-menu-open, :has(dialog[open])) .elementor .bm-back-top.is-scroll-managed {
  visibility: hidden;
  pointer-events: none;
}

/* Anche i pannelli sovrapposti degli oli seguono il 90%; la rotaia resta full bleed. */
@media (max-width: 449.98px) {
  .berio-design-system .bm-home :is(.bm-oil-caption, .bm-oil-action) {
    left: 5%;
    width: 90%;
  }

  .berio-design-system .bm-home .bm-instagram-heading {
    width: 90%;
  }

  .berio-design-system .bm-home .bm-instagram>.bm-button {
    width: 90%;
    margin-inline: 5%;
  }
}

/* RICETTE MOBILE — elenco Elementor e scheda PHP condividono card e griglia.
 * Desktop e query restano invariati; il select nativo funziona anche senza JS. */
.bm-filter-display {
  display: none;
}

@media (max-width: 767px) {
  .berio-design-system .elementor :is(.bm-mobile-font-editorial, .bm-mobile-font-display) .elementor-heading-title {
    line-height: 1.13;
  }

  .berio-design-system .elementor :is(.bm-mobile-font-copy, .bm-mobile-font-intro) {
    line-height: 1.85;
  }

  .berio-design-system .elementor .bm-recipe-search>label {
    text-transform: uppercase;
  }

  .berio-design-system .elementor .bm-recipe-search button {
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .berio-design-system .elementor .bm-recipe-search button::before {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .berio-design-system .elementor .bm-filter-options {
    gap: 22px;
  }

  .berio-design-system .elementor .bm-filter-option {
    width: 100%;
  }

  .berio-design-system .elementor .bm-recipe-filters .bm-filter-centered select {
    color: transparent;
    padding-inline: 12px;
  }

  .berio-design-system .elementor .bm-filter-centered option {
    color: var(--bm-cream);
  }

  .berio-design-system .elementor .bm-filter-centered::before,
  .berio-design-system .elementor .bm-filter-centered::after {
    display: none;
  }

  .berio-design-system .elementor .bm-filter-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 12px;
    pointer-events: none;
    color: var(--bm-green);
    text-transform: uppercase;
    letter-spacing: .65px;
  }

  .berio-design-system .elementor .bm-filter-display-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
  }

  .berio-design-system .elementor .bm-filter-display::before {
    content: '';
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: currentColor;
    mask: var(--bm-filter-icon) center / contain no-repeat;
  }

  .berio-design-system .elementor .bm-filter-display::after {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .3s ease;
  }

  .berio-design-system .elementor .bm-filter-centered:has(select:open) .bm-filter-display::after {
    transform: translateY(2px) rotate(225deg);
  }

  /* Sagome mobile cloche e calendario: nessun asset raster o libreria aggiunta. */
  .berio-design-system .elementor .bm-filter-option--category {
    --bm-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M3 18h18M4 16a8 8 0 0 1 16 0H4ZM12 5V3M10 3h4'/%3E%3C/svg%3E");
  }

  .berio-design-system .elementor .bm-filter-option--occasion {
    --bm-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 2v6m8-6v6M4 10h16m-12 5 3 3 5-5'/%3E%3C/svg%3E");
  }

  .berio-design-system .elementor .bm-mobile-recipe-cards .bm-loop-link {
    display: none;
  }

  .berio-design-system .elementor .bm-mobile-recipe-cards .bm-loop-card {
    border-radius: 8px;
    padding: 18px;
  }

  .berio-design-system .elementor .bm-mobile-recipe-cards .bm-loop-title {
    margin-top: auto;
  }

  .berio-design-system .elementor .bm-mobile-recipe-cards .bm-loop-title .elementor-heading-title {
    line-height: 1.12;
  }

  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more {
    width: 100%;
    margin-top: 24px;
  }

  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more::before,
  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more::after {
    display: none;
  }

  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more .elementor-button {
    width: 100%;
    min-height: 60px;
  }

  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more .elementor-button-content-wrapper {
    justify-content: center;
  }

  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more .elementor-button-icon {
    position: absolute;
    right: 20px;
  }

  /* Scheda ricetta: testi secondari e gruppo di condivisione del prototipo mobile. */
  .berio-design-system .br-recipe :is(.bm-detail-intro--recipe .bm-rich-copy p, .bm-ingredient-list li, .bm-product-reference .elementor-widget-text-editor) {
    color: var(--bm-muted-light);
  }

  .berio-design-system .br-recipe .bm-product-reference--inline>.bm-stack {
    gap: 14px;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline .bm-type-subtitle+.bm-type-subtitle {
    margin-top: -14px;
  }

  .berio-design-system .br-recipe .bm-product-reference--inline .bm-type-subtitle p {
    font-family: var(--bm-font-heading);
    font-weight: 100;
    line-height: 1.12;
  }

  .berio-design-system .elementor .br-recipe .bm-recipe-share {
    justify-content: center;
    align-items: center;
  }

  .berio-design-system .br-recipe .bm-recipe-share::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url("vectors/share-arrow.svg") center / contain no-repeat;
  }

  .berio-design-system .br-recipe .br-title-break {
    display: none;
  }

  .berio-design-system .elementor .br-recipe .bm-detail-intro--recipe::before {
    height: 140px;
    background-size: auto 100%;
  }

  .berio-design-system .br-recipe .br-facts li {
    min-height: 88px;
    letter-spacing: 1px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients {
    --padding-top: 80px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients::before {
    display: block;
    height: 10px;
    mask-image: url('vectors/section-divider-mobile.svg?v=20261112');
    left: 24px;
    right: 24px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients>.bm-split>.bm-stack+.bm-stack {
    position: relative;
    padding-top: 80px;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients>.bm-split>.bm-stack+.bm-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--bm-cream);
    mask: url('vectors/section-divider-mobile.svg?v=20261112') center / 100% 100% no-repeat;
  }

  .berio-design-system .br-recipe .bm-product-reference .bm-button .elementor-button {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .berio-design-system .br-recipe .bm-product-reference .bm-button .elementor-button-content-wrapper {
    width: 100%;
    justify-content: center;
  }

  .berio-design-system .br-recipe .bm-recipe-method {
    --padding-left: 0px;
    --padding-right: 0px;
    --padding-top: 80px;
  }

  .berio-design-system .br-recipe .bm-method-copy {
    --padding-left: 24px;
    --padding-right: 24px;
  }

  .berio-design-system .br-recipe .bm-section--recipe-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .br-recipe .bm-section--recipe-links>.bm-section-heading {
    display: contents;
  }

  .berio-design-system .br-recipe .bm-section--recipe-links>.bm-section-heading>.bm-button .elementor-button {
    width: 100%;
  }
}

@media (max-width: 449.98px) {

  /* PHP usa variabili di padding, Elementor la classe inset già condivisa. */
  .berio-design-system .br-recipe .bm-mobile-inset {
    --padding-left: 5vw;
    --padding-right: 5vw;
  }

  .berio-design-system .br-recipe .bm-recipe-ingredients::before {
    left: 5%;
    right: 5%;
  }

  .berio-design-system :is(.bp-product, .br-recipe) :is(.bm-recipe-rail, .bp-related-grid) {
    padding-inline: 5vw;
    scroll-padding-inline: 5vw;
  }

  .berio-design-system .elementor :is(.bp-product, .br-recipe) :is(.bm-recipe-rail, .bp-related-grid)>article {
    flex-basis: 90vw;
  }

  /* Home: prima card rientrata del 10%, con anteprima della successiva. */
  .berio-design-system .elementor .bm-home .bm-product-cards {
    padding-inline: 10vw;
    scroll-padding-inline: 10vw;
  }
}

/* Rifiniture mobile condivise: newsletter, navigazione footer e respiro delle card. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-newsletter-title .elementor-heading-title {
    line-height: 1.18;
  }

  .berio-design-system .elementor .bm-newsletter>.bm-text-body {
    margin-top: 0;
  }

  /* Campo newsletter: stesso vetro scuro dell'header, leggibile sopra la foto. */
  .berio-design-system .bm-newsletter-form .bm-field-email input {
    background-color: rgb(0 0 0 / 25%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Ritmo mobile condiviso. CTA testuali più basse, controlli a icona indipendenti. */
@media (max-width: 767px) {

  .berio-design-system .elementor .bm-button.bm-button--chevron .elementor-button,
  .berio-design-system .elementor .bm-recipes-loop .e-loop__load-more .elementor-button,
  .berio-design-system .bm-ninja-form input[type=submit] {
    min-height: 54px;
    height: 54px;
    padding-block: 9px;
  }

  .berio-design-system .elementor .bm-rail-pagination .elementor-icon-list-icon {
    display: none;
  }

  .berio-design-system .elementor .bm-signature-title .elementor-heading-title {
    line-height: 1.22;
    opacity: .93;
  }

  .berio-design-system .elementor .bm-oil-caption h5.elementor-heading-title {
    text-align: center;
  }

  .berio-design-system .elementor .bm-oil-caption {
    justify-content: center;
    align-items: center;
  }

  .berio-design-system .elementor .bm-instagram {
    padding-bottom: 80px;
  }

  .berio-design-system .bm-newsletter-form .submit-wrap .nf-field-element::after {
    background-color: var(--bm-gold);
    z-index: 1;
  }

  .berio-design-system .elementor .bm-footer .bm-footer-nav-group {
    row-gap: 35px;
  }

  .berio-design-system .elementor .bm-back-top .elementor-button {
    background-color: rgb(0 0 0 / 25%);
  }
}

/* Our Products mobile: la patina copre la foto e si intensifica dietro il titolo. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-products-fonts .bm-page-hero--brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 18%), rgb(0 0 0 / 55%));
    opacity: 1;
    pointer-events: none;
  }
}

/* Our Products mobile: la riga della foto segue la sua altezza effettiva. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-products-fonts .bm-category-card--horizontal {
    grid-template-rows: max-content auto;
    align-content: start;
    row-gap: 16px;
    min-height: 0;
  }
}

/* Ricerca: i prodotti mostrano il sottotitolo della scheda, le ricette la descrizione. */
@media (max-width: 767px) {
  .berio-design-system .bm-search-row--product .bm-text-body:not(.bm-search-subtitle) {
    display: none;
  }

  .berio-design-system .bm-search-row--product .bm-search-subtitle {
    display: block;
  }

  .berio-design-system .elementor .bm-not-found-panel .bm-button .elementor-button .elementor-button-icon {
    color: var(--bm-gold);
  }

  .berio-design-system .elementor .bm-not-found-panel .elementor-button-icon svg {
    color: inherit;
  }

  /* Allineamento comune e seconda riga del titolo come in Figma. */
  .berio-design-system .elementor .bm-mobile-review-faq .bm-callout :is(h2, p) {
    text-align: left;
  }

  .berio-design-system .elementor .bm-mobile-review-faq .bm-callout h2 .bm-label-mobile::before {
    content: "\A";
    white-space: pre;
  }

  .berio-design-system .elementor .bm-mobile-review-faq .bm-callout {
    row-gap: 25px;
  }

  /* Spazio aggiuntivo solo prima del pulsante Contact us. */
  .berio-design-system .elementor .bm-mobile-review-faq .bm-callout>.bm-button {
    margin-top: 5px;
  }

  /* Descrizioni ricetta nella ricerca mobile. */
  .berio-design-system .bm-search-page .bm-search-row--recipe .bm-text-body p {
    line-height: 1.75;
  }
}

/* Contatti: evidenzia soltanto la ragione sociale, a ogni risoluzione. */
.berio-design-system .bm-address-card .bm-address-copy .bm-ink-gold {
  color: var(--bm-gold);
}

@media (max-width: 767px) {

  /* Impaginazione dei titoli e navigazione delle categorie in Our Olive Oils. */
  .berio-design-system .bm-oils-fonts .bm-section--catalogue>.elementor-widget-heading h2>em:first-child {
    display: block;
  }

  .berio-design-system .bm-oils-fonts .bm-section--other-products .bm-loop-link {
    display: none;
  }

  /* La linea sotto l'anno è già il bordo del titolo. Il fondo attorno al rombo interrompe la verticale. */
  .berio-design-system:where(.page-id-18) .bm-timeline .bm-history-label::before {
    display: none;
  }

  /* I tre elementi della CTA hanno lo stesso asse e la stessa larghezza utile. */
  .berio-design-system .elementor .bm-callout:has(.elementor-element-40e6026c)> :is(.elementor-widget-heading, .elementor-widget-text-editor, .bm-button) {
    width: min(100%, 302px);
    align-self: center;
  }

  .berio-design-system .elementor .bm-callout .elementor-element-40e6026c p {
    text-align: left;
  }
}

/* Contact Us: a testata alta 521px, il centro del viso è a circa 303px dall'origine della foto. */
@media (max-width: 767px) {
  .berio-design-system.page-id-19 .elementor .bm-page-hero.bm-page-hero--image:not(.elementor-motion-effects-element-type-background) {
    background-position: min(0px, calc(50vw - 303px)) center;
  }
}

/* Our Olive Oils mobile: sia il chevron SVG sia la sua copia animata usano l'oro del tema. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-oils-fonts .bm-catalog-card--oil .bm-button--solid .elementor-button-icon {
    color: var(--bm-gold);
  }
}

/* Storia mobile: stesso colore del racconto e sottotitolo vicino al divisore dell'anno. */
@media (max-width: 767px) {
  .berio-design-system:where(.page-id-18) .bm-history .bm-section-header--center .bm-text-intro p {
    color: var(--bm-muted-light);
  }

  .berio-design-system:where(.page-id-18) .bm-history-entry>.bm-stack .bm-history-label {
    margin-top: 0;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-entry>.bm-stack {
    row-gap: 16px;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-entry>.bm-stack>.elementor-widget-heading {
    margin-bottom: 0;
  }

  /* Foto del 1987/99: sovrapposizione diagonale di due immagini in un'unica cornice. */
  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo--collage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 315 / 273;
    overflow: hidden;
    border-radius: var(--bm-radius-card);
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo--collage>.bm-editorial-photo {
    position: absolute;
    inset: 0 auto 0 0;
    width: 60%;
    height: 100%;
    border-radius: 0;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo--collage>.bm-editorial-photo:last-child {
    inset: 0 0 0 auto;
    width: 55%;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo--collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo--collage> :last-child img {
    object-position: 78% center;
  }
}

/* Our Company mobile: ritmo dei paragrafi delle card valori e delle tappe storiche. */
@media (max-width: 767px) {
  .berio-design-system.page-id-18 .elementor :is(.bm-value-card .elementor-icon-box-description, .bm-history-entry .bm-text-body p) {
    line-height: 1.9;
  }
}

/* Mobile: la foto rimane dietro al titolo dinamico, anche quando il suo link riceve z-index. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-recipes-loop .bm-loop-card .bm-loop-photo {
    z-index: 0;
  }

  .berio-design-system .elementor :is(.bm-recipes-loop, .bm-recipe-rail) .bm-loop-card .bm-loop-title {
    margin: auto 0 0;
    width: 100%;
  }

  .berio-design-system .bp-product .bm-section--related-products>.elementor-widget-heading h2 em {
    display: block;
  }

  .berio-design-system .bp-product .bp-related-grid .elementor-widget-heading {
    padding-inline-end: 40px;
  }

  .berio-design-system .bp-product .bp-related-grid .bm-text-body p {
    line-height: 1.3;
  }

  .berio-design-system .elementor .bm-oils-fonts .bm-intro--dish .bm-category-ornament {
    width: 100%;
    max-width: 100%;
  }
}

/* Desktop 1440–1920px */
@media (min-width: 1440px) and (max-width: 1920px) {

  /* Il link della foto aveva z-index 4 e copriva titolo/CTA (livello 2).
   * Isoliamo la foto al livello 0; il link completo della card resta attivo. */
  .berio-design-system .elementor .bm-recipes-loop .bm-loop-card .bm-loop-photo {
    z-index: 0;
  }

  /* Terms: colonna di lettura condivisa per titoli e paragrafi.
   * Sfondi e sezione conservano la larghezza originale della pagina. */
  .berio-design-system .elementor .bm-prose--legal>.elementor-element {
    width: min(100%, 850px);
    max-width: 100%;
    margin-inline: auto;
  }
}

/* Desktop 1024–1440px */
@media (min-width: 1024px) and (width < 1440px) {

  /* Foto sotto titolo e CTA, mantenendo il collegamento completo della card. */
  .berio-design-system .elementor .bm-recipes-loop .bm-loop-card .bm-loop-photo {
    z-index: 0;
  }

  /* Colonna legale centrata, coerente con la fascia desktop superiore. */
  .berio-design-system .elementor .bm-prose--legal>.elementor-element {
    width: min(100%, 850px);
    max-width: 100%;
    margin-inline: auto;
  }

  /* Più spazio al metodo della ricetta senza separare la chef dal testo. */
  .berio-design-system .br-recipe .bm-recipe-method>.bm-split {
    grid-template-columns: minmax(0, .32fr) minmax(0, .68fr);
  }

  /* Le frecce del carosello restano all'interno della pagina. */
  .berio-design-system .elementor .bm-shield-carousel .elementor-swiper-button-prev {
    left: 16px;
  }

  .berio-design-system .elementor .bm-shield-carousel .elementor-swiper-button-next {
    right: 16px;
  }
}

/* Desktop 1024–1199px */
@media (min-width: 1024px) and (max-width: 1199px) {

  /* Due ricette visibili per volta, scorrimento nativo e aggancio delle card. */
  .berio-design-system .bp-product .bm-recipe-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .berio-design-system .bp-product .bm-recipe-rail>article {
    flex: 0 0 calc((100% - 22px) / 2);
    scroll-snap-align: start;
  }
}

/* Tablet 768–1024px */
@media (min-width: 768px) and (width < 1024px) {

  /* Foto sotto i testi, mantenendo il collegamento dell'intera card. */
  .berio-design-system .elementor .bm-recipes-loop .bm-loop-card .bm-loop-photo {
    z-index: 0;
  }

  .berio-design-system .elementor .bm-shield-carousel .elementor-swiper-button-prev {
    left: 16px;
  }

  .berio-design-system .elementor .bm-shield-carousel .elementor-swiper-button-next {
    right: 16px;
  }

  /* Campo e pulsante newsletter allineati anche con etichetta su più righe. */
  .berio-design-system .bm-newsletter-form .bm-field-submit {
    align-self: end;
    padding-top: 0;
  }

  /* Due ricette correlate per volta, senza la riga isolata 2+1. */
  .berio-design-system .bp-product .bm-recipe-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .berio-design-system .bp-product .bm-recipe-rail>article {
    flex: 0 0 calc((100% - 22px) / 2);
    scroll-snap-align: start;
  }

  .berio-design-system .br-recipe .bm-recipe-method>.bm-split {
    grid-template-columns: minmax(0, .32fr) minmax(0, .68fr);
  }
}

/* Tablet 768–899px */
@media (min-width: 768px) and (max-width: 899px) {

  /* Newsletter su una riga completa della griglia footer. */
  .berio-design-system .elementor .bm-footer-columns>.bm-newsletter {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  /* Intro sopra le card: il carosello riusa i contenuti esistenti. */
  .berio-design-system .elementor .bm-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .elementor .bm-product-cards {
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .berio-design-system .elementor .bm-product-cards>.bm-product-card {
    flex: 0 0 75%;
    width: 75%;
    scroll-snap-align: start;
  }

  /* Cronologia su una colonna: linea e rombi restano sul lato sinistro. */
  .berio-design-system:where(.page-id-18) .elementor .bm-timeline .bm-history-entry {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 40px);
    align-self: flex-end;
    --gap: 28px;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-timeline::before {
    left: 5px;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-timeline .bm-history-entry::after {
    left: -40px;
    top: 20px;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-entry--copy-first-mobile> :first-child {
    order: 2;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-entry> :empty {
    display: none;
  }

  .berio-design-system:where(.page-id-18) .elementor .bm-history-photo img {
    height: auto;
    max-height: none;
  }

  /* Method a tutta larghezza; chef sotto, senza restringere il testo. */
  .berio-design-system .br-recipe .bm-recipe-method>.bm-split {
    grid-template-columns: minmax(0, 1fr);
    --gap: 0px;
  }

  .berio-design-system .br-recipe .bm-method-copy {
    order: 0;
    --padding-bottom: 32px;
  }

  .berio-design-system .elementor .br-recipe .bm-method-steps {
    min-height: 0;
  }

  .berio-design-system .br-recipe .br-chef {
    order: 1;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* Filtri ricette desktop */
@media (min-width: 1200px) {
  .berio-design-system .elementor .bm-filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr .8fr 1.1fr 1.8fr;
    gap: 8px;
  }

  .berio-design-system .elementor .bm-filter-option {
    width: 100%;
    min-width: 0;
  }

  .berio-design-system .elementor .bm-filter-option select {
    padding-inline: 36px 24px;
    letter-spacing: .3px;
  }

  .berio-design-system .elementor .bm-filter-option::before {
    left: 8px;
    width: 22px;
    height: 22px;
  }

  .berio-design-system .elementor .bm-filter-option::after {
    right: 12px;
  }
}

/* Header con immagine e carosello oli desktop */
@media (min-width: 1025px) and (max-width: 1919px) {
  .berio-design-system .elementor .bm-page-hero--image {
    min-height: clamp(560px, calc(16.6667vw + 380px), 700px);
  }

  .berio-design-system .elementor .bm-oil-carousel .swiper-slide {
    height: clamp(900px, 64vw, 1080px);
  }

  /* Riserva sotto il testo d'uso lo spazio per freccia, didascalia e navigazione. */
  .berio-design-system .elementor .bm-oil-use {
    top: calc(100% - 390px);
  }
}

/* Navigazione footer desktop e tablet */
@media (min-width: 768px) {
  .berio-design-system .elementor .bm-footer-links .elementor-icon-list-text {
    line-height: 1.5;
  }

  .berio-design-system .elementor .bm-footer .bm-footer-links.elementor-widget-icon-list .elementor-icon-list-items .elementor-icon-list-item:not(:last-child) {
    padding-bottom: 14px;
  }

  .berio-design-system .elementor .bm-footer .bm-footer-links.elementor-widget-icon-list .elementor-icon-list-items .elementor-icon-list-item+.elementor-icon-list-item {
    margin-top: 14px;
  }
}

/* Menu desktop 1101–1506px */
@media (min-width: 1101px) and (max-width: 1506px) {

  /* Tre voci per lato e una colonna riservata al logo, senza margini fissi. */
  .berio-design-system .elementor .bm-header .bm-main-menu .e-n-menu-heading {
    display: grid;
    grid-template-columns: .95fr 1.4fr .65fr 180px 1.2fr .6fr 1.2fr;
    padding-inline: 0;
    gap: 0;
  }

  .berio-design-system .elementor .bm-header .bm-main-menu .e-n-menu-heading>.e-n-menu-item {
    margin: 0;
    min-width: 0;
    justify-self: stretch;
  }

  .berio-design-system .elementor .bm-header .bm-main-menu .e-n-menu-item:nth-child(4) {
    grid-column: 5;
  }

  .berio-design-system .elementor .bm-header .bm-main-menu .e-n-menu-item>.e-n-menu-title {
    width: 100%;
    margin: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .berio-design-system .elementor .bm-header .bm-main-menu .e-n-menu-item>.e-n-menu-title::before {
    left: 0;
  }

  .berio-design-system .elementor .bm-header-countries,
  .berio-design-system .elementor .bm-header-social {
    display: flex;
  }
}

/* Menu desktop 1300–1506px */
@media (min-width: 1300px) and (max-width: 1506px) {
  .berio-design-system .elementor .bm-header {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
  }
}

/* Menu desktop 1101–1299px */
@media (min-width: 1101px) and (width < 1300px) {
  .berio-design-system .elementor .bm-header {
    grid-template-columns: 120px minmax(0, 1fr) 120px;
  }

  .berio-design-system .elementor .bm-header-countries {
    position: absolute;
    top: 18px;
    right: 20px;
  }

  .berio-design-system .elementor .bm-header-social {
    left: 20px;
    right: auto;
    top: 16px;
  }
}

/* Cronologia tablet: il rombo finale segue la linea laterale. */
@media (min-width: 768px) and (max-width: 899px) {
  .berio-design-system:where(.page-id-18) .elementor .bm-timeline::after {
    left: 0;
  }
}

/* Comandi del menu mobile */
@media (max-width: 1100px) {
  .berio-design-system .elementor .bm-main-menu {
    --n-menu-wrapper-display: none;
  }

  .berio-design-system .elementor .bm-main-menu .e-n-menu-toggle {
    display: flex;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries {
    height: auto;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button {
    line-height: 1.4;
    min-height: 44px;
    gap: 8px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button::before,
  .berio-design-system .elementor .bm-header-meta .bm-header-countries .elementor-button::after {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-countries> :first-child::after {
    display: none;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social-icons :is(.elementor-social-icon, svg) {
    width: 24px;
    height: 24px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social a[aria-label="YouTube"],
  .berio-design-system .elementor .bm-header-meta .bm-header-social a[aria-label="YouTube"] svg {
    width: 19.5px;
    height: 24px;
  }

  .berio-design-system .elementor .bm-header-meta .bm-header-social-icons .elementor-social-icons-wrapper {
    column-gap: 20px;
  }
}

/* Pulsanti mobile: colori netti anche durante il passaggio hover/focus. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-button:is(.bm-button--light, .bm-button--dark).bm-button--chevron .elementor-button {
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .berio-design-system .elementor .bm-button--chevron .elementor-button-text {
    color: inherit;
  }
}

/* Su touch l'hover non resta bloccato dopo un tap: il focus da tastiera resta visibile. */
@media (max-width: 767px) and (hover: none) {
  .berio-design-system .elementor .bm-button--light.bm-button--chevron .elementor-button:hover:not(:focus-visible) {
    color: var(--bm-cream);
    background: transparent;
  }

  .berio-design-system .elementor .bm-button--dark.bm-button--chevron .elementor-button:hover:not(:focus-visible) {
    color: var(--bm-green);
    background: transparent;
  }

  .berio-design-system .elementor .bm-button--light.bm-button--chevron .elementor-button:hover:not(:focus-visible) .elementor-button-icon {
    color: var(--bm-gold);
  }
}

/* Mobile: elementi a larghezza del contenitore e separatori a tutto schermo. */
@media (max-width: 767px) {
  .berio-design-system .elementor :is(.bm-featured-oil, .bm-story-copy, .bm-story-title, .bm-story-photo) {
    width: 100%;
    max-width: none;
  }

  .berio-design-system .elementor .bm-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .berio-design-system .elementor .bm-section--related-products > .e-con-inner {
    width: 100%;
    max-width: none;
  }

  .berio-design-system .elementor .bm-footer-logo {
    width: 100vw;
    min-width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    align-self: flex-start;
  }

  .berio-design-system .elementor .bm-divider-end::after,
  .berio-design-system .elementor :is(.bm-section--related-products, .bm-recipe-ingredients, .bm-content-group--divided)::before {
    left: 50%;
    right: auto;
    width: min(100%, 90vw);
    transform: translateX(-50%);
  }

  .berio-design-system .elementor .bm-divider .elementor-divider {
    position: relative;
    left: 50%;
    width: min(100%, 90vw);
    max-width: none;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  /* Solo il pulsante sotto lo slider delle etichette. */
  .berio-design-system .elementor .bm-shield-gallery > .bm-button.bm-mobile-only {
    width: 90%;
    max-width: 100%;
    margin-inline: auto;
    align-self: center;
  }

  .berio-design-system .elementor .bm-olive-branch {
    min-width: min(411px, 100vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-inline: 0;
  }

  .berio-design-system .elementor .bm-story-seal {
    margin-inline: auto;
  }
}

/* Our Company mobile: contenuti fluidi senza larghezze fisse dei widget. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-section--values > .bm-grid,
  .berio-design-system .elementor .bm-values-introduction > .elementor-widget,
  .berio-design-system.page-id-18 .elementor .bm-feature-panel > .bm-split,
  .berio-design-system.page-id-18 .elementor .bm-feature-panel .bm-editorial-photo,
  .berio-design-system.page-id-18 .elementor .bm-feature-panel .bm-stack,
  .berio-design-system.page-id-18 .elementor .bm-feature-panel .bm-stack > .elementor-widget {
    width: 100%;
    max-width: 100%;
    --container-widget-width: 100%;
  }


  /* L'immagine resta centrata anche quando una regola ne limita la larghezza. */
  .berio-design-system .elementor .bm-footer-logo img {
    display: block;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .berio-design-system .elementor .bm-hero-seal--mobile-visible img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Categorie mobile: margini uniformi e card fluide dentro la griglia. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-products-mobile-inset,
  .berio-design-system .elementor .bm-section--catalogue,
  .berio-design-system .elementor .bm-intro--ornament {
    --padding-left: 5vw;
    --padding-right: 5vw;
    padding-inline: 5vw;
  }

  .berio-design-system .elementor .bm-section--catalogue > .bm-oil-grid,
  .berio-design-system .elementor .bm-oil-grid > .bm-catalog-card,
  .berio-design-system .elementor .bm-section--catalogue > .elementor-widget-heading,
  .berio-design-system .elementor .bm-intro--ornament > :is(.elementor-widget-heading, .elementor-widget-text-editor) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    --container-widget-width: 100%;
  }

  .berio-design-system .elementor .bm-section--catalogue > .bm-oil-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 0;
  }
}

/* See Other Products mobile: titolo e carousel seguono la stessa griglia. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-section--other-products {
    padding-inline: 5vw;
    --padding-left: 5vw;
    --padding-right: 5vw;
  }

  .berio-design-system .elementor .bm-section--other-products > :is(.elementor-widget-heading, .bm-category-carousel),
  .berio-design-system .elementor .bm-section--other-products .bm-category-card--overlay {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    --container-widget-width: 100%;
    margin-inline: 0;
  }
}

/* Immagini introduttive delle categorie: mostra anche i bordi e le ombre. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-intro-ornament.bm-category-ornament,
  .berio-design-system .elementor .bm-intro-ornament.bm-category-ornament img {
    height: auto;
    aspect-ratio: auto;
  }

  .berio-design-system .elementor .bm-intro-ornament.bm-category-ornament img {
    width: 100%;
    object-fit: contain;
  }
}

/* Country mobile: pannello crema sotto la barra di navigazione. */
@media (max-width: 767px) {
  .berio-design-system .elementor .bm-country-dialog {
    inset: 101px 0 0;
    width: 100%;
    max-width: none;
    height: calc(100dvh - 101px);
    max-height: none;
    margin: 0;
    padding: 0;
    background: var(--bm-cream);
    color: var(--bm-green);
    overflow-y: auto;
  }

  .berio-design-system .elementor .bm-country-dialog::backdrop {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .berio-design-system .elementor .bm-country-content {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 30px auto 40px;
  }

  .berio-design-system .elementor .bm-country-logo {
    content: url("/wp-content/uploads/2026/11/marchio-verde-country-mobile.png");
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    order: 0;
  }

  .berio-design-system .elementor .bm-country-welcome {
    display: none;
  }

  .berio-design-system .elementor .bm-country-divider {
    order: 1;
    width: 100%;
    flex: 0 0 11px;
    margin: 40px 0;
    background: var(--bm-green);
    mask: url("vectors/section-divider-mobile.svg?v=20261112") center / 100% 100% no-repeat;
  }

  .berio-design-system .elementor .bm-country-divider::after {
    display: none;
  }

  .berio-design-system .elementor .bm-country-dialog #bm-country-title {
    order: 2;
    color: var(--bm-green);
    margin: 0 0 36px;
  }

  .berio-design-system .elementor .bm-country-dialog #bm-country-title em {
    display: block;
  }

  .berio-design-system .elementor .bm-country-dialog nav {
    order: 3;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .berio-design-system .elementor .bm-country-dialog nav a {
    position: relative;
    justify-content: center;
    min-height: 60px;
    padding: 12px 35px;
    color: var(--bm-green);
    border-color: #154c2e66;
    border-radius: 14px;
  }

  .berio-design-system .elementor .bm-country-dialog nav a::after {
    position: absolute;
    right: 25px;
    border-color: currentColor;
  }

  .berio-design-system .elementor .bm-country-dialog nav a:is(:hover, :focus-visible) {
    background: #ffffff80;
    border-color: var(--bm-green);
  }

  .berio-design-system .elementor .bm-country-dialog .bm-dialog-close {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 767px) {
  /* Il pannello Country ha il proprio comando di chiusura. */
  .berio-design-system:has(.bm-country-dialog[open]) .bm-main-menu .e-n-menu-toggle {
    visibility: hidden;
  }
}

/* Our Company mobile: storia nella griglia, con spazio dedicato alla linea. */
@media (max-width: 767px) {
  .berio-design-system.page-id-18 .elementor .bm-history {
    padding-inline: 5vw;
    --padding-left: 5vw;
    --padding-right: 5vw;
  }

  .berio-design-system.page-id-18 .elementor .bm-history > :is(.bm-section-header--center, .bm-timeline),
  .berio-design-system.page-id-18 .elementor .bm-history .bm-section-header--center > .elementor-widget {
    width: 100%;
    max-width: 100%;
    --container-widget-width: 100%;
  }

  .berio-design-system.page-id-18 .elementor .bm-history .bm-history-entry {
    width: calc(100% - 35.887252px);
    max-width: none;
    margin-inline: auto 0;
  }
}

/* Our Company mobile: chiusura della linea sotto l'ultimo rombo. */
@media (max-width: 767px) {
  .berio-design-system.page-id-18 .elementor .bm-history .bm-history-entry:last-child::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 0;
    left: -35.887252px;
    width: 12px;
    background: var(--bm-green);
    pointer-events: none;
  }
}
