:root,
html[data-theme="dark"] {
  --mlf-bg: #070b14;
  --mlf-bg-2: #0b1220;
  --mlf-card: rgba(14, 22, 40, 0.86);
  --mlf-card-solid: #10192c;
  --mlf-line: rgba(160, 186, 255, 0.16);
  --mlf-text: #f4f7ff;
  --mlf-muted: #93a0bb;
  --mlf-blue: #3b82f6;
  --mlf-blue-2: #7aa2ff;
  --mlf-header: rgba(7, 11, 20, 0.82);
  --mlf-shadow: 0 24px 80px rgba(20, 60, 160, 0.28);
  color-scheme: dark;
}

html[data-theme="light"] {
  --mlf-bg: #f4f7fb;
  --mlf-bg-2: #ffffff;
  --mlf-card: #ffffff;
  --mlf-card-solid: #ffffff;
  --mlf-line: rgba(20, 40, 80, 0.12);
  --mlf-text: #101828;
  --mlf-muted: #526077;
  --mlf-blue: #2457d6;
  --mlf-blue-2: #2457d6;
  --mlf-header: rgba(255, 255, 255, 0.9);
  --mlf-shadow: 0 18px 50px rgba(16, 40, 80, 0.08);
  color-scheme: light;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 20%, rgba(88, 60, 180, 0.18), transparent 55%),
    var(--mlf-bg);
  color: var(--mlf-text);
  font-family: "Google Sans Flex", sans-serif;
}

body.elementor-page {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 20%, rgba(88, 60, 180, 0.18), transparent 55%),
    var(--mlf-bg);
}

a { color: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mlf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--mlf-header);
  border-bottom: 1px solid var(--mlf-line);
}

.mlf-header-inner,
.mlf-footer-inner,
.mlf-search form {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.mlf-header-inner {
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mlf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -1%;
  white-space: nowrap;
}

.mlf-nav { flex: 1; }

.mlf-menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mlf-menu a {
  text-decoration: none;
  color: var(--mlf-muted);
  font-size: 14px;
  font-weight: 500;
}

.mlf-menu a:hover,
.mlf-menu .current-menu-item a { color: var(--mlf-text); }

.mlf-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mlf-icon-btn,
.mlf-header-cta,
.mlf-join-form button,
.elementor-widget-button .elementor-button {
  font-family: inherit;
}

.mlf-theme-icon-light { display: none; }
html[data-theme="light"] .mlf-theme-icon-dark { display: none; }
html[data-theme="light"] .mlf-theme-icon-light { display: block; }


.mlf-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: none;
  background: #1F2126;
  color: var(--mlf-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mlf-icon-btn svg {
    stroke: #fff;
}
.mlf-lang {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: #1F2126;
}

.mlf-lang button {
  border: 0;
  background: transparent;
  color: #8888AD;
  font: inherit;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: Google Sans Flex;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 6%;
  width: 36px;
  height: 36px;
}

.mlf-lang button.is-on {
  background: #040509;
  color: #fff;
}

.mlf-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #4575D0;
    text-decoration: none;
    border: 1px solid #3C65B3;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    width: 90px;
    height: 44px;
}

.mlf-header-cta span {
  color: #489EDC;
  font-size: 16px;
  line-height: 1;
}

.mlf-burger { display: none; }

.mlf-search {
  border-bottom: 1px solid var(--mlf-line);
  background: var(--mlf-bg-2);
}

.mlf-search form {
  display: flex;
  gap: 10px;
  padding: 14px 0;
}

.mlf-search input,
.mlf-join-form input,
.mlf-join-form select,
.mlf-join-form textarea {
  flex: 1;
  background: var(--mlf-card-solid);
  color: var(--mlf-text);
  border: 1px solid var(--mlf-line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.mlf-search button,
.mlf-join-form button {
  border: 0;
  border-radius: 10px;
  background: var(--mlf-blue);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}

.mlf-footer {
  border-top: 1px solid var(--mlf-line);
  /*padding: 64px 0 28px;*/
  background: #060910;
}

html[data-theme="light"] .mlf-footer { background: #eef3f9; }

.mlf-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.mlf-footer h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mlf-muted);
}

.mlf-footer a,
.mlf-footer p {
    display: block;
    color: #888A8D;
    text-decoration: none;
    margin: 8px 0;
    line-height: 1.6;
    font-size: 12px;
}
.mlf-footer {
    background: rgba(7, 9, 15, 0.9);
    border-top: 1px solid #12223A;
     color: #FFFFFF; 
}

.mlf-footer a:hover { color: var(--mlf-text); }

.mlf-footer-base {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-bottom: 18px;
  /*border-top: 1px solid var(--mlf-line);*/
  display: flex;
  justify-content: space-between;
  color: var(--mlf-muted);
  font-size: 13px;
}

.elementor-widget-heading .elementor-heading-title {
  letter-spacing: -0.035em;
  color: var(--mlf-text);
}

/*.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  color: var(--mlf-muted);
  font-size: 16px;
  line-height: 1.65;
}*/

.mlf-kicker .elementor-heading-title {
  color: var(--mlf-blue-2) !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

.mlf-band.e-con {
  padding: 28px 20px;
}

.mlf-wrap.e-con {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.mlf-hero.e-con {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}

.mlf-hero-copy.e-con { flex: 1.05; }
.mlf-hero-visual.e-con {
  flex: 0.95;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 380px;
}
.mlf-hero-visual .elementor-widget,
.mlf-hero-visual .elementor-widget-container {
  width: 100%;
}

.mlf-hero h1.elementor-heading-title {
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: 1.02 !important;
  margin: 0;
}

.mlf-actions.e-con {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  align-items: center;
}

.elementor-widget-button .elementor-button {
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 600;
}

.mlf-btn-ghost .elementor-button {
  background: transparent !important;
  color: var(--mlf-text) !important;
  border: 1px solid var(--mlf-line) !important;
}

.mlf-panel {
  border: 1px solid var(--mlf-line);
  background:
    radial-gradient(420px 180px at 70% 20%, rgba(80, 140, 255, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(18, 32, 62, 0.95), rgba(8, 14, 28, 0.95));
  border-radius: 18px;
  box-shadow: var(--mlf-shadow);
  min-height: 280px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.mlf-panel-top,
.mlf-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d5def3;
  font-size: 12px;
}

.mlf-chip {
  border: 1px solid var(--mlf-line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #c9d7ff;
}

.mlf-bars { margin-top: 28px; display: grid; gap: 10px; }
.mlf-bars span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.mlf-bars i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.mlf-stats.e-con {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--mlf-line);
  border-bottom: 1px solid var(--mlf-line);
}

.mlf-stat .elementor-heading-title {
  font-size: 32px !important;
  margin: 0;
}

.mlf-cards.e-con,
.mlf-paths.e-con,
.mlf-resources.e-con,
.mlf-logos.e-con,
.mlf-programs.e-con,
.mlf-program-side.e-con,
.mlf-split.e-con,
.mlf-two.e-con,
.mlf-faq-layout.e-con,
.mlf-cta.e-con {
  display: grid !important;
  gap: 16px;
}

.mlf-cards.e-con,
.mlf-paths.e-con { grid-template-columns: repeat(3, 1fr); }
.mlf-two .mlf-cards.e-con { grid-template-columns: 1fr 1fr; }
.mlf-resources.e-con { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.mlf-logos.e-con { grid-template-columns: repeat(5, 1fr); }

.mlf-logo-tile.e-con,
.mlf-faq .elementor-accordion-item,
.mlf-newsletter.e-con,
.mlf-event.e-con,
.mlf-cta-card.e-con {
  /*background: var(--mlf-card);*/
  background: var(--surface-hover-tint, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--mlf-line);
  border-radius: 12px;
  padding: 22px;
}
.mlf-card.e-con {
  /*background: var(--mlf-card);*/
  background: var(--surface-hover-tint, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--mlf-line);
  border-radius: 16px;
}

.mlf-glow {
  height: 92px;
  border-radius: 12px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 50% 60%, #fff 0 2px, rgba(120,160,255,0.85) 3px, transparent 46%),
    linear-gradient(160deg, #24124a, #12306d 55%, #07111f);
}

.mlf-glow.g2 { background: radial-gradient(circle at 40% 50%, #d7e4ff, transparent 42%), linear-gradient(180deg, #1a1040, #0b1730); }
.mlf-glow.g3 { background: radial-gradient(circle at 60% 40%, #9ec0ff, transparent 40%), linear-gradient(200deg, #102448, #070d18); }
.mlf-glow.g4 { background: radial-gradient(circle at 50% 50%, #ffffff, #6d8cff 18%, transparent 50%), #10182e; }

.mlf-programs.e-con {
  grid-template-columns: 1.35fr 0.85fr;
}

.mlf-split.e-con,
.mlf-two.e-con,
.mlf-faq-layout.e-con,
.mlf-cta.e-con {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.mlf-meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 16px;
}
.mlf-meter i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

.mlf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  color: var(--mlf-text);
}
.mlf-check span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  color: #9ec0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
}

.mlf-platform {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 12px;
  min-height: 260px;
}
.mlf-platform div {
  border: 1px solid var(--mlf-line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(5, 10, 22, 0.45);
  color: #d5def3;
  font-size: 12px;
}
.mlf-dots { display: flex; gap: 8px; margin-top: 16px; }
.mlf-dots i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59,130,246,0.25);
  display: block;
}

.mlf-event-banner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: center;
}
.mlf-event-art {
  height: 120px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, #9ec0ff, transparent 45%),
    linear-gradient(160deg, #12306d, #070d18);
}

.mlf-logo-tile.e-con {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mlf-muted);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.mlf-faq .elementor-accordion-item {
  margin-bottom: 10px;
  overflow: hidden;
}
.mlf-faq .elementor-tab-title {
  color: var(--mlf-text);
  padding: 16px 18px;
}
.mlf-faq .elementor-tab-content {
  border-top: 1px solid var(--mlf-line);
  color: var(--mlf-muted);
  padding: 0 18px 16px;
}

.mlf-join-form { display: grid; gap: 12px; }
.mlf-join-form label { display: grid; gap: 6px; font-size: 13px; color: var(--mlf-muted); }
.mlf-join-form button { width: 100%; }
.mlf-form-note { margin: 0; font-size: 14px; }
.mlf-form-note.is-ok { color: #86efac; }
.mlf-form-note.is-error { color: #fca5a5; }

.mlf-page-intro.e-con { padding: 72px 20px 40px; }

.mlf-scroll-cue {
  width: 42px;
  height: 42px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1px solid var(--mlf-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mlf-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mlf-scroll-cue svg { animation: mlf-bob 1.6s ease-in-out infinite; }

.home .mlf-hero {
  position: relative;
}

.home .mlf-band:first-of-type {
  position: relative;
  overflow: visible;
  background: #070b14;
}

.home .mlf-band:first-of-type::before {
  content: "";
  position: absolute;
  width: 46vw;
  height: 70vh;
  right: -4vw;
  top: 8vh;
  background: radial-gradient(circle at 60% 50%, rgba(37, 99, 235, 0.38), rgba(30, 64, 175, 0.12) 42%, transparent 70%);
  pointer-events: none;
  animation: mlf-drift 18s ease-in-out infinite;
}

.mlf-hero-lockup h1 {
  margin: 18px 0 16px;
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 560;
  color: #f7f8fc;
}

.mlf-hero-lockup h1 span,
.mlf-hero-lead span {
  color: #5b8def;
}

.mlf-pill {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(91, 141, 239, 0.7);
  color: #9eb6ff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.mlf-hero-lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: #b7c0d4;
  font-size: 16px;
  line-height: 1.55;
}

.mlf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f6fb;
  color: #121826;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 15px;
}

.mlf-hero-cta i {
  font-style: normal;
  color: #3b82f6;
  font-weight: 700;
}

.mlf-patrimonio {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  margin-left: auto;
  padding: 26px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(170, 200, 255, 0.42);
  background:
    radial-gradient(90% 80% at 8% 0%, rgba(120, 170, 255, 0.55), transparent 58%),
    linear-gradient(155deg, #1a4ec4 0%, #123888 38%, #0b1d44 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mlf-patrimonio::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: -18%;
  top: -18%;
  bottom: -28%;
  background: radial-gradient(ellipse at 62% 48%, rgba(70, 140, 255, 0.85), rgba(30, 80, 200, 0.35) 42%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.mlf-pat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mlf-spark {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(190, 220, 255, 0.8));
}

.mlf-pat-kicker {
  margin: 0;
  color: rgba(226, 236, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.mlf-pat-copy {
  margin: 42px 0 28px;
  max-width: 18em;
  color: #f5f8ff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.mlf-pat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mlf-pat-tags span {
    border: 1px solid rgba(167, 197, 248, 0.45);
    border-radius: 999px;
    padding: 7px 14px;
    color: #e7eeff;
    font-size: 14px;
    background: #04060C73;
}
body .e-con.mlf-pat p {
    margin-bottom: 0;
}
.mlf-story {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}

.mlf-story-stage {
  position: sticky;
  top: 14vh;
  height: 68vh;
  min-height: 420px;
}

.mlf-stage-frame {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--mlf-line);
  background:
    radial-gradient(420px 220px at 50% 18%, rgba(120, 150, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #141a33, #070b16);
  box-shadow: 0 24px 50px rgba(8, 16, 40, 0.35);
}

.mlf-stage-slide {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mlf-stage-slide.is-on {
  opacity: 1;
  transform: none;
}

.mlf-stage-kicker {
  color: #b9c8ff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mlf-stage-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.mlf-stage-bars { display: grid; gap: 10px; margin-top: 12px; }
.mlf-stage-bars span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.mlf-stage-bars i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.mlf-stage-slide.is-on .mlf-stage-bars i { width: var(--w); }

.mlf-cards.mlf-story-steps {
  display: flex !important;
  flex-direction: column;
  gap: 32vh;
  padding: 18vh 0 28vh;
}

.mlf-story-steps .mlf-card {
  opacity: 0.32;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
}

.mlf-story-steps .mlf-card.is-active,
.home .mlf-story-steps .mlf-card.mlf-reveal.is-in.is-active {
  opacity: 1;
  transform: none;
  border-color: rgba(140, 170, 255, 0.45);
}

.home .mlf-story-steps .mlf-card.mlf-reveal,
.home .mlf-story-steps .mlf-card.mlf-reveal.is-in {
  opacity: 0.32;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: no-preference) {
  .home .mlf-hero-copy > .elementor-element,
  .home .mlf-hero-visual {
    opacity: 0;
    animation: mlf-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .home .mlf-hero-copy > .elementor-element:nth-child(1) { animation-delay: 0.05s; }
  .home .mlf-hero-copy > .elementor-element:nth-child(2) { animation-delay: 0.14s; }
  .home .mlf-hero-copy > .elementor-element:nth-child(3) { animation-delay: 0.22s; }
  .home .mlf-hero-copy > .elementor-element:nth-child(4) { animation-delay: 0.3s; }
  .home .mlf-hero-visual { animation-delay: 0.28s; transform: translateY(72px); }

  .home .mlf-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .home .mlf-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

.home .mlf-card:not(.is-active):hover {
  transform: translateY(-6px);
}

@keyframes mlf-rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

@keyframes mlf-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

@keyframes mlf-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 980px) {
  .mlf-burger { display: inline-flex; }
  .mlf-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--mlf-bg-2);
    border-bottom: 1px solid var(--mlf-line);
    padding: 12px 20px 18px;
  }
  .mlf-header.is-open .mlf-nav { display: block; }
  .mlf-menu { flex-direction: column; gap: 12px; }
  .mlf-header-cta { display: none; }
  .mlf-hero.e-con,
  .mlf-split.e-con,
  .mlf-two.e-con,
  .mlf-faq-layout.e-con,
  .mlf-cta.e-con,
  .mlf-programs.e-con,
  .mlf-stats.e-con,
  .mlf-cards.e-con,
  .mlf-paths.e-con,
  .mlf-resources.e-con,
  .mlf-logos.e-con,
  .mlf-footer-inner,
  .mlf-platform,
  .mlf-event-banner {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .mlf-footer-base { flex-direction: column; gap: 6px; }
  .mlf-story,
  .mlf-cards.mlf-story-steps {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  .mlf-story-stage { position: relative; top: auto; height: auto; min-height: 280px; }
  .mlf-story-steps .mlf-card { opacity: 1; transform: none; }
}

/* Site type: Google Sans Flex for headings and text. */
body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body li,
body a,
body button,
body input,
body textarea,
body select,
body label,
body .elementor-heading-title,
body .elementor-widget-text-editor,
body .elementor-button,
body .elementor-icon-list-text,
body .elementor-icon-box-title,
body .elementor-icon-box-description,
body .elementor-tab-title,
body .elementor-tab-content,
body .elementor-accordion-title {
  font-family: "Google Sans Flex", sans-serif !important;
}

/* Section: Home hero card (#ciclo). One card. Icon, title and text of the two slides crossfade in place. Patrimonio is a little shorter; the width stays put. */
body #ciclo .mlf-cycle-stage.mlf-cycle-stage {
  min-height: 0;
}

body.home #ciclo .mlf-cycle.mlf-cycle {
  width: min(530px, 100%);
  height: 340px;
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #6899F6;
  border-radius: 22px;
  background: linear-gradient(152.2deg, rgba(13, 58, 126, 0.96) 0%, rgba(4, 6, 12, 0.98) 100%), radial-gradient(113.14% 99% at 80% 30%, rgba(167, 197, 248, 0.07) 0%, rgba(167, 197, 248, 0.07) 0%, rgba(167, 197, 248, 0) 0%, rgba(167, 197, 248, 0) 3%), radial-gradient(99% 141.42% at 30% 0%, rgba(104, 153, 246, 0.6) 0%, rgba(104, 153, 246, 0) 60%) !important;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.home #ciclo .mlf-cycle.mlf-cycle.is-small {
  width: min(530px, 100%);
  height: 300px;
}

body.home #ciclo .mlf-cycle .mlf-cycle-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch;
  width: auto;
  height: auto;
  transform: none;
  opacity: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  background-image: none !important;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the icon and title under the label. Only the last line sits on the bottom, so a height change does not drag the icon. */
body.home #ciclo .mlf-cycle .mlf-cycle-top {
  margin-bottom: 0 !important;
}

body.home #ciclo .mlf-cycle .mlf-cycle-ico,
body.home #ciclo .mlf-cycle .mlf-sparks {
  margin: 16px 0 10px !important;
}

body.home #ciclo .mlf-cycle .mlf-cycle-slide:not(.mlf-cycle-intro) .mlf-cycle-text {
  margin-top: auto;
}

body #ciclo .mlf-cycle .mlf-cycle-slide.is-on {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

body #ciclo .mlf-cycle-slide.mlf-cycle-intro {
  justify-content: flex-start;
}

body #ciclo .mlf-cycle-intro > .elementor-element {
  margin-top: 0;
  margin-bottom: 0;
}

body #ciclo .mlf-cycle-intro .mlf-pat-kicker {
  margin: 0;
  color: #a7c5f8 !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body #ciclo .mlf-cycle-intro .mlf-sparks {
  width: 36px;
  margin: 12px 0 8px;
}

body #ciclo .mlf-cycle-intro .mlf-sparks .elementor-icon,
body #ciclo .mlf-cycle-intro .mlf-sparks svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
}

body #ciclo .mlf-cycle-intro .mlf-cycle-text p {
  max-width: 16.5em;
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.32;
}

body #ciclo .mlf-cycle-intro .mlf-pat-tags {
  margin-top: auto;
}

body #ciclo .mlf-cycle-intro .mlf-pat-tags .elementor-icon-list-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
}

body #ciclo .mlf-cycle-intro .mlf-pat-tags .elementor-icon-list-icon {
  display: none;
}

body #ciclo .mlf-cycle-intro .mlf-pat-tags .elementor-icon-list-item {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #eef3ff;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
}

body #ciclo .mlf-cycle-intro .mlf-pat-tags .elementor-icon-list-text {
  padding: 7px 11px;
  white-space: nowrap;
}

body .mlf-sec {
  scroll-margin-top: 88px;
}

/* Uploaded technology icon (SVG or PNG). Same box as the built-in icon. */
body #tecnologie .mlf-tech-tile span img {
  display: block;
  width: 30px;
  height: 30px;
  max-width: 100%;
  object-fit: contain;
}

body #tecnologie .mlf-tech-badge img {
  position: relative;
  z-index: 1;
  display: block;
  width: 90px;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  body #tecnologie .mlf-tech-tile span img {
    width: 22px;
    height: 22px;
  }

  body #tecnologie .mlf-tech-badge img {
    width: 50px;
    height: 50px;
  }
}

/* Reading card cover. The uploaded featured image fills the placeholder. */
body #letture .mlf-read-card .mlf-read-cover:has(img) {
  background-image: none !important;
}

body #letture .mlf-read-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body #letture .mlf-read-cover span {
  z-index: 1;
}

/* Readings slider: left stays with the content; the track bleeds to the right edge. */
body #letture.mlf-sec {
  overflow-x: clip;
  --mlf-read-base: min(1160px, calc(100vw - 72px));
}

body #letture .mlf-read-frame {
  overflow: hidden !important;
  width: calc(100vw - ((100vw - 100%) / 2)) !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body #letture .mlf-read-rail {
  display: flex !important;
  gap: 16px;
  width: max-content !important;
  max-width: none !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

body #letture .mlf-read-card {
  flex: 0 0 calc((var(--mlf-read-base) - 48px) / 3.35) !important;
  width: calc((var(--mlf-read-base) - 48px) / 3.35) !important;
  min-width: 0 !important;
  max-width: none !important;
}

body #moduli .mlf-mod-tab img {
  /*width: 14px;
  height: 14px;*/
  flex: 0 0 auto;
  object-fit: contain;
}

body #settori .mlf-set-mid svg * {
    stroke: #fff !important;
}
body #settori .mlf-set-badge svg * {
    stroke: #6899F6;
}

body #moduli .mlf-mod-panel header.mlf-mod-head span.mlf-mod-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

body #settori .mlf-set-badge span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Sector tabs: the outgoing industry and the incoming one crossfade, like the prototype. */
body #settori .mlf-set-panels {
  position: relative;
  transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body #settori .mlf-settori.is-ready .mlf-set-panel {
  display: grid !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
}

body #settori .mlf-settori.is-ready .mlf-set-panel.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  body #settori .mlf-set-panels,
  body #settori .mlf-settori.is-ready .mlf-set-panel {
    transition: none;
  }
}

/* Module tabs: the outgoing module and the incoming one crossfade the same way. */
body #moduli .mlf-mod-panels {
  position: relative;
  transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body #moduli .mlf-moduli.is-ready .mlf-mod-panel {
  display: block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none !important;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
}

body #moduli .mlf-moduli.is-ready .mlf-mod-panel.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  body #moduli .mlf-mod-panels,
  body #moduli .mlf-moduli.is-ready .mlf-mod-panel {
    transition: none;
  }
}

/* Approccio detail open: drop the section bottom padding. Closing restores it. */
body #approccio.mlf-sec.is-open {
  --padding-bottom: 0 !important;
  --padding-block-end: 0 !important;
  padding-bottom: 0 !important;
}

/* Approach card custom background on the button. Title and expand stay in front. */
body #approccio .mlf-met-card.has-bg,
body #approccio .mlf-met-card.has-bg.is-misura,
body #approccio .mlf-met-card.has-bg.is-competenze,
body #approccio .mlf-met-card.has-bg.is-capacita,
body #approccio .mlf-met-card.has-bg.is-valore,
body #approccio .mlf-met-card.has-bg.is-responsabilita,
body #approccio .mlf-met-card.has-bg.is-custom {
  background-image: var(--mlf-met-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body #approccio .mlf-met-card .mlf-met-go,
body #approccio .mlf-met-card strong {
  z-index: 2;
}

