/* Le regole sono inattive finché mobile.js non applica la classe di sicurezza. */
html.mmo-mobile,
html.mmo-mobile body {
  max-width: 100%;
  overflow-x: clip;
}

html.mmo-mobile .site-main > .container > .row {
  margin-right: 0;
  margin-left: 0;
}

html.mmo-mobile #site-content,
html.mmo-mobile #site-content > .site-content-inner,
html.mmo-mobile #site-content .page-content,
html.mmo-mobile #site-content .elementor {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

html.mmo-mobile .elementor img,
html.mmo-mobile .elementor video,
html.mmo-mobile .elementor iframe,
html.mmo-mobile .elementor svg {
  max-width: 100%;
}

/* Intestazione: il controllo resta interamente visibile e facile da toccare. */
html.mmo-mobile .elementor-location-header .e-con-inner,
html.mmo-mobile .elementor-16 .e-con-inner {
  width: 100%;
  max-width: 100%;
}

html.mmo-mobile .elementor-location-header a[aria-label="Site Logo"] img,
html.mmo-mobile .elementor-16 a[aria-label="Site Logo"] img {
  width: 132px !important;
  max-width: 42vw !important;
  height: auto !important;
  object-fit: contain;
}

html.mmo-mobile .wcf-menu-hamburger,
html.mmo-mobile .wcf-menu-close {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  touch-action: manipulation;
}

html.mmo-mobile .wcf-menu-hamburger {
  position: relative;
  right: 14px;
}

html.mmo-mobile .wcf__nav-menu .wcf-nav-menu-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

html.mmo-mobile :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #ffd23f !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #123665 !important;
}

html.mmo-mobile .elementor-location-header a[aria-label="Site Logo"],
html.mmo-mobile .elementor-16 a[aria-label="Site Logo"] {
  min-width: 132px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Il tema spinge il secondo livello fuori dal viewport: lo riallineiamo al pannello. */
html.mmo-mobile .wcf__nav-menu .menu-item-has-children.mmo-submenu-open > .sub-menu {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Homepage Mediartika: il messaggio viene prima dell'illustrazione su smartphone. */
html.mmo-mobile .mhv3 .hero {
  padding-top: 48px;
  padding-bottom: 56px;
}

html.mmo-mobile .mhv3 .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

html.mmo-mobile .mhv3 .hero-grid > * {
  min-width: 0;
}

html.mmo-mobile .mhv3 .hero-svg-wrap {
  order: initial;
  width: min(100%, 320px);
  max-width: 320px;
  margin-inline: auto;
}

html.mmo-mobile .mhv3 .hero h1,
html.mmo-mobile .mhv3 .hero h1 * {
  font-size: clamp(35px, 10vw, 42px) !important;
  line-height: 1.1 !important;
  overflow-wrap: break-word;
}

html.mmo-mobile .mhv3 .hero-sub,
html.mmo-mobile .mhv3 .hero-sub * {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

html.mmo-mobile .mhv3 .hero-sub br {
  display: none;
}

html.mmo-mobile .mhv3 .hero .label,
html.mmo-mobile .mhv3 .why .label {
  color: #ffffff !important;
}

html.mmo-mobile .mhv3 .network .label,
html.mmo-mobile .mhv3 .clienti-label,
html.mmo-mobile .mhv3 .net-card-arrow {
  color: #b51f4b !important;
}

html.mmo-mobile .mhv3 .btn {
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  touch-action: manipulation;
}

html.mmo-mobile .mhv3 .network-head {
  padding-inline: 4vw;
  margin-bottom: 36px;
  gap: 20px;
}

html.mmo-mobile .mhv3 .net-card,
html.mmo-mobile .mhv3 .tri-panel,
html.mmo-mobile .mhv3 .tilt-card {
  touch-action: manipulation;
}

html.mmo-mobile .mhv3 .network-strip-wrap {
  contain: inline-size;
}

html.mmo-mobile .mhv3 .net-strip-item {
  min-height: 44px;
  padding-inline: 28px;
}

html.mmo-mobile .mhv3 .tri-panel {
  min-height: 360px;
}

html.mmo-mobile .mhv3 .tri-panel .tri-kicker {
  color: #ffffff !important;
  text-shadow: 0 1px 3px #101b2d;
}

html.mmo-mobile .mhv3 .tri-panel .tri-bg:not(.mmo-bg-loaded) {
  background-color: #123665;
}

html.mmo-mobile .mhv3 .tilt-duo {
  padding-inline: 16px;
}

html.mmo-mobile :where(.mtk-footer, .mtk-footer-single-row) a {
  min-width: 44px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.mmo-mobile :where(.mtk-footer, .mtk-footer-single-row) .mtk-footer-logo-link {
  min-width: 226px !important;
}

@media (prefers-reduced-motion: reduce) {
  html.mmo-mobile .mhv3 *,
  html.mmo-mobile .mhv3 *::before,
  html.mmo-mobile .mhv3 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.mmo-mobile .mhv3 [data-a] {
    opacity: 1 !important;
    transform: none !important;
  }
}
