/* 3.19.26 — Original brand palette and uppercase identity typography. Geometry, photographs and scale textures
   remain owned by the existing component styles. */
.mgx-shop:not(.mgx-diary-page),
.mgx-shop.mgx-diary-page,
body.mgx-full-page,
body.mgx-product-page,
body.mgx-standalone-commerce-page,
body.mgx-checkout-page,
.mgx-cart-drawer,
dialog.mgx-quickview,
dialog.mgx-media-viewer {
  --mgx-brand-navy: #0D2A3D;
  --mgx-brand-coral: #D7644D;
  --mgx-brand-white: #FFF9F9;
  --mgx-brand-paper: #EFEBE7;
  --mgx-brand-stencil: 'Stardos Stencil', Georgia, serif;
  --mgx-ink: var(--mgx-brand-navy);
  --mgx-ink-deep: var(--mgx-brand-navy);
  --mgx-paper: var(--mgx-brand-white);
  --mgx-surface: var(--mgx-brand-white);
  --mgx-cream: var(--mgx-brand-paper);
  --mgx-salmon: var(--mgx-brand-coral);
  /* Small accent text needs more contrast than the original coral provides. */
  --mgx-salmon-dark: #9D4433;
  --mgx-accent-text: #9D4433;
  --mgx-line: rgba(13, 42, 61, .15);
}
.mgx-shop.mgx-bottega-3190 {
  --mgx-boutique-navy: var(--mgx-brand-navy);
  --mgx-boutique-coral: var(--mgx-brand-coral);
  --mgx-boutique-rust: #9D4433;
  --mgx-boutique-blush: var(--mgx-brand-paper);
  --mgx-boutique-paper: var(--mgx-brand-white);
}
.mgx-shop .mgx-cart-modern {
  --mgx-purchase-ink: var(--mgx-brand-navy);
  --mgx-purchase-paper: var(--mgx-brand-white);
  --mgx-purchase-salmon: var(--mgx-brand-coral);
}
.mgx-regala [data-gift-studio] {
  --gift-ink: var(--mgx-brand-navy);
  --gift-paper: var(--mgx-brand-white);
  --gift-salmon: var(--mgx-brand-coral);
}

/* 3.19.26 — The brand uses upright, uppercase Stardos for principal titles.
   Keep Libre for reading, prices and controls. Important resolves the older
   per-template typography (including checkout), without changing layout. */
:is(.mgx-shop h1,
.mgx-shop.mgx-home-brochure :is(.mgx-home-v4-section-heading, .mgx-home-rules, .mgx-home-brochure-gift, .mgx-home-v4-story, .mgx-home-care, .mgx-home-recipes-feature, .mgx-home-v4-faq) h2,
.mgx-shop .mgx-home-creation-card__copy h3,
.mgx-shop .mgx-catalogue-3190 .mgx-heading h2,
.mgx-shop .mgx-category-heading h3,
.mgx-shop .mgx-gift-opening--3192 h2,
.mgx-shop .mgx-gift-proposal-heading h3,
.mgx-shop .mgx-bottega-gifting :is(.mgx-bottega-gift-guide > header, .mgx-regala-builder-heading) h2,
.mgx-shop.mgx-diary-page :is(.mgx-diary-article > header, .mgx-diary-next) h2,
.mgx-shop.mgx-recipes-page :is(.mgx-recipes__intro, .mgx-recipes__cta) h2,
.mgx-shop .mgx-product-experience :is(.mgx-riserva-brochure, .mgx-product-transparency, .mgx-product-recipes > header, .mgx-product-related > header) h2,
body.mgx-checkout-page .mgx-co .mgx-co-head h1) {
  font-family: var(--mgx-brand-stencil) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: -.015em !important;
  text-wrap: balance;
}
/* Emphasised second lines must share the title's family and capitals. */
:is(.mgx-shop h1,
.mgx-shop.mgx-home-brochure :is(.mgx-home-v4-section-heading, .mgx-home-rules, .mgx-home-brochure-gift, .mgx-home-v4-story, .mgx-home-care, .mgx-home-recipes-feature, .mgx-home-v4-faq) h2,
.mgx-shop .mgx-home-creation-card__copy h3,
.mgx-shop .mgx-catalogue-3190 .mgx-heading h2,
.mgx-shop .mgx-category-heading h3,
.mgx-shop .mgx-gift-opening--3192 h2,
.mgx-shop .mgx-gift-proposal-heading h3,
.mgx-shop .mgx-bottega-gifting :is(.mgx-bottega-gift-guide > header, .mgx-regala-builder-heading) h2,
.mgx-shop.mgx-diary-page :is(.mgx-diary-article > header, .mgx-diary-next) h2,
.mgx-shop.mgx-recipes-page :is(.mgx-recipes__intro, .mgx-recipes__cta) h2,
.mgx-shop .mgx-product-experience :is(.mgx-riserva-brochure, .mgx-product-transparency, .mgx-product-recipes > header, .mgx-product-related > header) h2,
body.mgx-checkout-page .mgx-co .mgx-co-head h1) :is(em, strong) {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
}
body .mgx-shop .mgx-module-header .mgx-module-brand strong,
body .mgx-shop .mgx-module-footer .mgx-footer-brand strong {
  font-family: var(--mgx-brand-stencil);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.1;
}
.mgx-shop:not(.mgx-diary-page) :is(.mgx-kicker, .mgx-home-v4-kicker, .mgx-gift-opening__kicker, .mgx-regala-kicker),
.mgx-shop.mgx-diary-page .mgx-kicker {
  font-family: var(--mgx-brand-stencil);
  font-style: normal;
  text-transform: uppercase;
}
@media (max-width: 540px) {
  body .mgx-shop .mgx-module-header .mgx-module-brand strong {
    max-width: 10ch;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .mgx-shop.mgx-diary-page .mgx-diary-article > header h2 { font-size: 30px; }
}

/* The item count is supporting information, not part of the identity title. */
.mgx-shop .mgx-cm-title h1 > span {
  font-family: 'Libre Baskerville', Baskerville, Georgia, serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Light surfaces: change only the colour, retaining all background images. */
.mgx-shop:not(.mgx-elementor-catalogue):not(.mgx-elementor-section),
body .mgx-shop .mgx-module-header,
.mgx-shop .mgx-home-pathways,
.mgx-shop.mgx-home-brochure .mgx-home-v4-story,
.mgx-shop.mgx-home-brochure .mgx-home-recipes-feature,
.mgx-shop.mgx-diary-page .mgx-diary-hero,
.mgx-shop.mgx-diary-page .mgx-diary-article,
.mgx-shop.mgx-diary-page .mgx-diary-next,
.mgx-shop.mgx-recipes-page .mgx-recipes__hero,
.mgx-shop .mgx-recipe-single__hero,
.mgx-shop .mgx-product-experience .mgx-product-purchase-v2,
.mgx-cart-drawer,
dialog.mgx-quickview {
  background-color: var(--mgx-brand-white);
}
.mgx-shop .mgx-module-header :is(.mgx-module-brand strong, nav > a, .mgx-module-cart),
.mgx-shop.mgx-diary-page :is(.mgx-diary-hero h1, .mgx-diary-article h2, .mgx-diary-next h2),
.mgx-shop.mgx-recipes-page .mgx-recipes__hero h1,
dialog.mgx-quickview .mgx-quickview__title {
  color: var(--mgx-brand-navy);
}
.mgx-shop.mgx-diary-page .mgx-diary-hero h1 em,
.mgx-shop.mgx-recipes-page .mgx-recipes__hero h1 em {
  color: var(--mgx-brand-coral);
}
.mgx-shop .mgx-module-header nav > a:is(:hover, [aria-current="page"]) {
  color: #9D4433;
}
.mgx-shop.mgx-bottega-3190 .mgx-gift-opening--3192,
.mgx-shop.mgx-bottega-3190 .mgx-bottega-gift-guide > header,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide,
.mgx-shop .mgx-product-transparency,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-stage,
dialog.mgx-quickview .mgx-quickview__visual {
  background-color: var(--mgx-brand-paper);
}
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide__card {
  background-color: var(--mgx-brand-white);
}
.mgx-shop.mgx-bottega-3190 .mgx-bottega-intro > p,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 [data-family="riserva"] .mgx-category-story p {
  color: var(--mgx-brand-white);
}
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-creation__formats a.is-selected {
  background-color: var(--mgx-brand-paper);
  color: var(--mgx-brand-navy);
  border-color: var(--mgx-brand-navy);
}

/* Dark panels keep light text and a decorative coral rule. */
.mgx-shop .mgx-module-footer {
  background-color: var(--mgx-brand-navy);
  background-image: linear-gradient(rgba(13, 42, 61, .94), rgba(13, 42, 61, .94)), url('trama.webp');
  color: var(--mgx-brand-white);
}
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift,
.mgx-shop.mgx-diary-page .mgx-diary-article blockquote,
.mgx-shop .mgx-recipe-single__body,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt,
.mgx-shop .mgx-cart-modern .mgx-cm-card.mgx-cm-totals {
  background-color: var(--mgx-brand-navy);
  color: var(--mgx-brand-white);
}
.mgx-shop .mgx-module-footer :is(.mgx-footer-column h3, .mgx-footer-assistance > div > span),
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift :is(h2, h2 em, .mgx-home-v4-kicker),
.mgx-shop .mgx-recipe-single__body .mgx-kicker,
.mgx-shop.mgx-diary-page .mgx-diary-article blockquote > span {
  color: var(--mgx-brand-paper);
}
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero :is(h1, h1 em, blockquote) {
  color: var(--mgx-brand-white);
}

/* Primary actions. Important is limited to colours already forced by earlier
   component layers; disabled opacity, loading and focus geometry stay intact. */
.mgx-shop.mgx-home-brochure .mgx-home-v4-button,
.mgx-shop.mgx-home-brochure .mgx-home-creation-card .mgx-home-creation-card__copy > strong,
.mgx-shop.mgx-home-brochure .mgx-home-creation-card:hover .mgx-home-creation-card__copy > strong,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-product__buy .mgx-add,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-product__buy .mgx-add:hover,
.mgx-shop .mgx-product-experience .mgx-product-order > form.cart > button[type="submit"],
.mgx-shop .mgx-product-experience .mgx-product-native-form .single_add_to_cart_button,
.mgx-shop .mgx-module-header .mgx-module-help,
.mgx-cart-drawer .mgx-cd-cta,
dialog.mgx-quickview .mgx-quickview__buy,
dialog.mgx-quickview .mgx-quickview__buy:hover,
.mgx-shop.mgx-diary-page :is(.mgx-diary-hero, .mgx-diary-next) .mgx-button,
.mgx-shop.mgx-recipes-page :is(.mgx-recipes__hero, .mgx-recipes__cta) .mgx-button,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-mobile-bar .mgx-gift-submit,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide__purchase > a {
  background-color: var(--mgx-brand-navy) !important;
  border-color: var(--mgx-brand-navy) !important;
  color: var(--mgx-brand-white) !important;
}
.mgx-shop.mgx-home-brochure .mgx-home-v4-button:hover,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-product__buy .mgx-add:not(:disabled):hover,
.mgx-shop .mgx-product-experience .mgx-product-order > form.cart > button[type="submit"]:not(:disabled):hover,
.mgx-shop .mgx-product-experience .mgx-product-native-form .single_add_to_cart_button:not(:disabled):hover,
.mgx-cart-drawer .mgx-cd-cta:hover,
dialog.mgx-quickview .mgx-quickview__buy:not(:disabled):hover {
  background-color: var(--mgx-brand-navy) !important;
  border-color: var(--mgx-brand-coral) !important;
  color: var(--mgx-brand-white) !important;
}

/* Inverse actions on navy panels: never coral beneath small white text. */
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-button,
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-button:hover,
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift .mgx-home-v4-text-link,
.mgx-shop .mgx-cart-modern .mgx-cm-totals .mgx-cm-cta,
.mgx-shop .mgx-cart-modern .mgx-cm-totals .mgx-cm-cta:hover,
.mgx-shop .mgx-cart-modern .mgx-cm-totals .mgx-cm-coupon button,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt .mgx-gift-submit {
  background-color: var(--mgx-brand-white) !important;
  border-color: var(--mgx-brand-white) !important;
  color: var(--mgx-brand-navy) !important;
}
.mgx-shop .mgx-cart-modern .mgx-cm-totals .mgx-cm-cta:hover,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt .mgx-gift-submit:not(:disabled):hover {
  background-color: var(--mgx-brand-paper) !important;
  border-color: var(--mgx-brand-coral) !important;
}

/* Checkout affects the Mastro shell and native order button only. */
body.mgx-checkout-page .mgx-co .mgx-co-hero {
  background-color: var(--mgx-brand-navy) !important;
  border-bottom-color: var(--mgx-brand-coral) !important;
}
body.mgx-checkout-page .mgx-co .mgx-co-kicker {
  color: var(--mgx-brand-paper) !important;
}
body.mgx-checkout-page .mgx-co .mgx-co-steps li.is-active span {
  background-color: var(--mgx-brand-paper) !important;
  border-color: var(--mgx-brand-paper) !important;
  color: var(--mgx-brand-navy) !important;
}
body.mgx-checkout-page .mgx-co .mgx-live-step,
body.mgx-checkout-page .mgx-co .mgx-live-review {
  background-color: var(--mgx-brand-white) !important;
}
body.mgx-checkout-page .mgx-co .mgx-live-review {
  border-top-color: var(--mgx-brand-coral) !important;
}
body.mgx-checkout-page .mgx-co #place_order,
body.mgx-checkout-page .mgx-co #place_order:hover,
body.mgx-checkout-page .mgx-co #place_order:focus {
  background-color: var(--mgx-brand-navy) !important;
  border-color: var(--mgx-brand-navy) !important;
  color: var(--mgx-brand-white) !important;
}
body.mgx-checkout-page .mgx-co #place_order:not(:disabled):hover {
  border-color: var(--mgx-brand-coral) !important;
}

@media (max-width: 900px) {
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero,
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero__copy {
    background-color: var(--mgx-brand-white);
  }
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero :is(h1, h1 em, blockquote) {
    color: var(--mgx-brand-navy);
  }
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-button,
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-button:hover {
    background-color: var(--mgx-brand-navy) !important;
    border-color: var(--mgx-brand-navy) !important;
    color: var(--mgx-brand-white) !important;
  }
}
