/* SANIMAX - Detergenti Hero Frame Fix v1.2.0
 * Solo sulla pagina catalogo, solo su telefoni, in anteprima oppure su attivazione pubblica.
 * Usa un frame con rapporto 4:3 (come hero-detergenti-v2.png), senza modificare l'originale.
 */
@media screen and (max-width: 640px) {
  html body .snx-det.snx-det-native .snx-det-hero .snx-det-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-auto-rows: min-content !important;
    gap: 18px !important;
    align-items: start !important;
    align-content: start !important;
  }
  html body .snx-det.snx-det-native .snx-det-hero .snx-det-hero-grid > figure.wp-block-image.snx-det-hero-image {
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    align-self: start !important;
    justify-self: stretch !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 18px !important;
    background: #f2f5f6 !important;
  }
  html body .snx-det.snx-det-native .snx-det-hero .snx-det-hero-grid > figure.wp-block-image.snx-det-hero-image > img {
    position: absolute !important;
    display: block !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  html body .snx-det.snx-det-native .snx-det-hero {
    padding-top: 28px !important;
    padding-bottom: 30px !important;
  }
}
