/* Mastro Giuliano — corallo del marchio e contrasto dei testi, 4 ottobre 2026.
   Sostituisce interamente il precedente CSS aggiuntivo del corallo.
   Corallo per titoli grandi e decorazioni; navy per testi piccoli su fondi chiari.
   Questa correzione cromatica non equivale a una verifica completa di accessibilità. */
.mgx-shop:not(.mgx-diary-page),
.mgx-shop.mgx-diary-page,
.mgx-recipes,
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-coral: #D7644D;
  --mgx-salmon: #D7644D;
  --mgx-salmon-dark: #0D2A3D;
  --mgx-accent-text: #0D2A3D;
}
.mgx-shop.mgx-bottega-3190 {
  --mgx-boutique-coral: #D7644D;
  --mgx-boutique-rust: #0D2A3D;
}

/* Manteniamo il corallo sui titoli grandi delle sezioni effettive.
   Il titolo Hero Home conserva bianco su fotografia e navy su mobile. */
.mgx-shop :is(.mgx-home-creations, .mgx-home-rules, .mgx-home-v4-story, .mgx-home-care, .mgx-home-recipes-feature, .mgx-home-v4-faq) h2 em,
.mgx-shop.mgx-diary-page :is(.mgx-diary-hero h1, .mgx-diary-article h2, .mgx-diary-next h2) em,
.mgx-shop.mgx-diary-page .mgx-diary-dropcap::first-letter,
.mgx-shop.mgx-recipes-page :is(.mgx-recipes__hero h1, .mgx-recipes__intro h2, .mgx-recipes__cta h2) em,
.mgx-shop.mgx-recipes-page .mgx-recipes .mgx-recipes__intro h2 em,
.mgx-shop .mgx-gift-opening--3192 h2 em,
.mgx-shop .mgx-bottega-gift-guide > header h2 em,
.mgx-shop .mgx-bottega-gifting .mgx-regala-builder-heading > h2 em,
.mgx-product-experience :is(.mgx-product-story-v2, .mgx-product-transparency, .mgx-riserva-brochure, .mgx-product-recipes, .mgx-product-related) h2 em {
  color: #D7644D;
}

/* Navigazione, soprattitoli, metadati e numeri piccoli: navy sui fondi chiari. */
.mgx-shop .mgx-module-header nav > a:is(:hover, [aria-current="page"], .is-current),
.mgx-shop .mgx-home-pathways i,
.mgx-shop.mgx-home-brochure .mgx-home-rules .mgx-home-v4-kicker,
.mgx-shop.mgx-home-brochure .mgx-home-rules__grid article::before,
.mgx-shop.mgx-home-brochure .mgx-home-care article > span,
.mgx-shop .mgx-home-recipes-feature__secondary-copy small,
.mgx-shop .mgx-home-recipes__grid span,
.mgx-shop :is(.mgx-recipe__meta span, .mgx-recipe__details h3),
.mgx-shop.mgx-recipe-single .mgx-recipe-single__meta span,
.mgx-shop.mgx-catalogue-3190 .mgx-category-heading .mgx-category-badge,
.mgx-product-experience .mgx-product-overline,
.mgx-product-experience .mgx-product-order-note,
.mgx-product-experience .mgx-product-transparency header p,
.mgx-shop .mgx-bottega-gift-guide > header .mgx-regala-kicker,
.mgx-shop .mgx-gift-proposal-meta > p,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide__copy > .mgx-gift-order-note,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-eyebrow,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-stage__heading > .mgx-gift-eyebrow,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-number,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 [data-family]:not([data-family="riserva"]) .mgx-category-count,
dialog.mgx-quickview .mgx-quickview__family,
dialog.mgx-media-viewer .mgx-media-viewer__header p,
.mgx-cart-modern .mgx-cm-ship-copy a,
.mgx-cart-modern .mgx-cm-cutoff,
.mgx-cart-drawer .mgx-cd-kicker {
  color: #0D2A3D;
}
.mgx-shop .mgx-module-header .mgx-cart-count {
  background-color: #0D2A3D;
  color: #FFF9F9;
}

/* Alcune pagine legali e il modulo aziende usano direttamente il token corallo. */
.mgx-shop .mgx-legal-hero > p,
.mgx-shop .mgx-legal-layout > aside a,
.mgx-shop .mgx-legal-content a,
.mgx-shop .mgx-legal-content dt,
.mgx-shop .mgx-legal-rates span {
  color: #0D2A3D;
}
.mgx-shop .mgx-legal-content a,
.mgx-shop .mgx-legal-layout > aside a,
.mgx-cart-modern .mgx-cm-ship-copy a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.mgx-shop .mgx-legal-note,
.mgx-regala .mgx-corporate__process li > span,
.mgx-regala .mgx-corporate__form button[type="submit"] {
  background-color: #0D2A3D;
  color: #FFF9F9;
}

/* Sui pannelli navy i soprattitoli restano chiari. Non cambiamo il token
   salmon-dark localmente: viene usato anche per lo sfondo dei pulsanti. */
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift,
.mgx-shop.mgx-recipes-page .mgx-recipes__intro,
.mgx-shop.mgx-recipe-single .mgx-recipe-single__body,
.mgx-shop .mgx-module-footer,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt,
.mgx-shop .mgx-cart-modern .mgx-cm-card.mgx-cm-totals {
  --mgx-accent-text: #FFF9F9;
}
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift :is(.mgx-kicker, .mgx-home-v4-kicker),
.mgx-shop.mgx-recipes-page .mgx-recipes__intro .mgx-kicker,
.mgx-shop.mgx-recipe-single .mgx-recipe-single__body .mgx-kicker,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt > .mgx-gift-eyebrow {
  color: #FFF9F9;
}
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 [data-family="riserva"] .mgx-category-count {
  color: #FFF9F9;
}
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 [data-family="riserva"] .mgx-category-heading .mgx-category-badge {
  color: #0D2A3D;
}
@media (max-width: 900px) {
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-kicker {
    color: #0D2A3D;
  }
}

/* Il corallo rimane nei dettagli grafici, senza diventare sfondo di testo piccolo. */
.mgx-shop .mgx-module-header nav > a::after,
.mgx-shop .mgx-gift-includes li::before {
  background-color: #D7644D;
}
.mgx-shop.mgx-home-brochure .mgx-home-creation-card--text .mgx-home-creation-card__copy {
  border-top-color: #D7644D;
}
.mgx-shop.mgx-catalogue-3190 .mgx-creation__formats a.is-selected {
  box-shadow: inset 0 -2px #D7644D;
}
.mgx-shop .mgx-bottega-gift-guide__card.is-selected {
  border-color: #D7644D;
  box-shadow: 0 0 0 1px #D7644D;
}
@media (hover: hover) {
  .mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-product:hover {
    border-color: #D7644D;
  }
}

/* Checkout: titoli grandi e decorazioni restano corallo; etichette e CTA
   secondarie hanno un contrasto sufficiente anche con testo piccolo. */
body.mgx-checkout-page .mgx-co .mgx-live-review-heading span,
body.mgx-checkout-page .mgx-co .form-row .required {
  color: #0D2A3D !important;
}
body.mgx-checkout-page .mgx-co .mgx-co-shortcode .woocommerce-form-login button,
body.mgx-checkout-page .mgx-co .mgx-co-shortcode .woocommerce-form-coupon button,
body.mgx-checkout-page .mgx-co .mgx-co-empty .mgx-cm-cta,
.mgx-media-viewer .mgx-media-viewer__zoom:hover {
  background-color: #0D2A3D !important;
  border-color: #D7644D !important;
  color: #FFF9F9 !important;
}

/* Focus navy su superfici chiare, bianco sui pannelli scuri.
   Restano invariati spessore, offset, disabilitazione e stati di caricamento. */
.mgx-shop :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.mgx-shop .mgx-module-header :is(a, button):focus-visible,
.mgx-shop .mgx-bottega-gift-guide :focus-visible,
.mgx-shop .mgx-gift-builder-context :focus-visible,
.mgx-shop .mgx-gift-stage-actions button:focus-visible,
.mgx-shop.mgx-home-brochure .mgx-home-creation-card:focus-visible,
.mgx-cart-drawer :is(button, a, input):focus-visible,
.mgx-cart-modern :is(a, button, input, summary):focus-visible,
.mgx-quickview :is(a, button):focus-visible,
.mgx-media-viewer :is(button, [tabindex]):focus-visible,
.mgx-catalogue-3190 :is(.mgx-quickview-trigger, .mgx-media-trigger):focus-visible,
.mgx-gift-composition .mgx-media-trigger:focus-visible,
.mgx-quickview .mgx-media-trigger:focus-visible,
body.mgx-checkout-page .mgx-co :is(button, a, input, select, textarea):focus-visible {
  outline-color: #0D2A3D !important;
}
.mgx-shop.mgx-catalogue-3190 .mgx-product:focus-within {
  border-color: #0D2A3D;
  box-shadow: 0 0 0 2px rgba(13, 42, 61, .2);
}
.mgx-shop .mgx-module-footer a:focus-visible,
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift :is(a, button):focus-visible,
.mgx-shop.mgx-recipes-page .mgx-recipes__intro :is(a, button):focus-visible,
.mgx-shop.mgx-recipe-single .mgx-recipe-single__body :is(a, button):focus-visible,
.mgx-shop.mgx-bottega-3190 .mgx-bottega-intro nav a:focus-visible,
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-toolbar :is(button, input):focus-visible,
.mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt :is(button, a):focus-visible,
.mgx-shop .mgx-cart-modern .mgx-cm-totals :is(button, a, summary):focus-visible,
body.mgx-checkout-page .mgx-co .mgx-co-hero :is(button, a):focus-visible {
  outline-color: #FFF9F9 !important;
}
@media (min-width: 901px) {
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero a:focus-visible {
    outline-color: #FFF9F9 !important;
  }
}

/* Mantiene visibile la conferma sul pulsante di acquisto navy. */
.mgx-shop.mgx-bottega-3190 .mgx-catalogue-3190 .mgx-product__buy .mgx-add.added::after { color: currentColor; }
