/* Landing MCH */

    #md-landing,
    #md-landing * {
      box-sizing: border-box;
    }

    #md-landing {
      --md-bg: #070a11;
      --md-dark: #101522;
      --md-muted: #59657a;
      --md-muted-light: #b8c2d8;
      --md-line: rgba(16,21,34,.13);
      --md-light: #f8fafc;
      --md-accent: #ff8a22;
      --md-accent2: #ffbf65;
      --md-green: #159957;
      --md-red: #d64242;
      --md-blue: #2f6fed;
      --md-max: 1180px;

      width: 100%;
      margin: 0;
      padding: 0;
      color: var(--md-dark);
      background: #ffffff;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.55;
      overflow-x: hidden;
    }

    #md-landing a {
      color: inherit;
      text-decoration: none;
    }

    #md-landing h1,
    #md-landing h2,
    #md-landing h3,
    #md-landing p,
    #md-landing ul,
    #md-landing li {
      margin-top: 0;
    }

    #md-landing .md-wrap {
      width: min(var(--md-max), calc(100% - 36px));
      margin-left: auto;
      margin-right: auto;
    }

    #md-landing .md-top {
      background: #0d1b2b;
      color: #fff;
      padding: 18px 0;
    }

    #md-landing .md-brand-small {
      font-size: 13px;
      opacity: .75;
      margin-bottom: 6px;
    }

    #md-landing .md-top-title {
      font-size: 30px;
      line-height: 1.1;
      font-weight: 900;
      margin: 0;
    }

    #md-landing .md-top-title span {
      color: var(--md-accent);
    }

    #md-landing .md-nav-section {
      background: #ffffff;
      padding: 24px 0 0;
    }

    #md-landing .md-nav {
      background: #070a11;
      border: 1px solid rgba(255,255,255,.12);
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 0 22px;
      color: #fff;
    }

    #md-landing .md-logo {
      font-size: 20px;
      font-weight: 900;
      white-space: nowrap;
    }

    #md-landing .md-logo span {
      color: var(--md-accent);
    }

    #md-landing .md-menu {
      display: flex;
      gap: 18px;
      font-size: 14px;
      color: var(--md-muted-light);
    }

    #md-landing .md-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 13px 22px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--md-accent), var(--md-accent2));
      color: #1b1006 !important;
      font-weight: 900;
      border: 0;
      cursor: pointer;
      box-shadow: 0 14px 42px rgba(255,138,34,.25);
      font-size: 15px;
      line-height: 1.2;
      text-align: center;
    }

    #md-landing .md-btn.md-ghost {
      background: transparent;
      color: var(--md-dark) !important;
      border: 1px solid var(--md-line);
      box-shadow: none;
    }

    #md-landing section {
      padding: 86px 0;
      background: #fff;
    }

    #md-landing .md-eyebrow {
      color: var(--md-accent);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 13px;
      margin-bottom: 14px;
    }

    #md-landing h1 {
      font-size: clamp(42px, 5vw, 70px);
      line-height: .98;
      letter-spacing: -2px;
      font-weight: 900;
      color: var(--md-dark);
      margin-bottom: 24px;
    }

    #md-landing h2 {
      font-size: clamp(30px, 3.7vw, 48px);
      line-height: 1.08;
      letter-spacing: -1px;
      font-weight: 900;
      color: var(--md-dark);
      margin-bottom: 18px;
    }

    #md-landing h3 {
      font-size: 23px;
      line-height: 1.15;
      font-weight: 900;
      color: var(--md-dark);
      margin-bottom: 12px;
    }

    #md-landing p {
      color: var(--md-muted);
      font-size: 18px;
      line-height: 1.65;
      margin-bottom: 18px;
    }

    #md-landing ul {
      color: var(--md-muted);
      padding-left: 21px;
      margin-bottom: 0;
      font-size: 17px;
      line-height: 1.65;
    }

    #md-landing li {
      margin-bottom: 8px;
    }

    #md-landing .md-grid {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 54px;
      align-items: center;
    }

    #md-landing .md-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 30px;
    }

    #md-landing .md-hero {
      padding-top: 96px;
      padding-bottom: 76px;
      background:
        radial-gradient(circle at top left, rgba(255,138,34,.13), transparent 26%),
        radial-gradient(circle at top right, rgba(21,153,87,.10), transparent 30%),
        #ffffff;
    }

    #md-landing .md-card {
      background: #ffffff;
      border: 1px solid var(--md-line);
      border-radius: 28px;
      padding: 34px;
      box-shadow: 0 35px 90px rgba(16,21,34,.15);
    }

    #md-landing .md-mini-grid,
    #md-landing .md-metrics {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 24px;
    }

    #md-landing .md-mini,
    #md-landing .md-metric {
      background: #f6f8fb;
      border: 1px solid rgba(16,21,34,.08);
      border-radius: 18px;
      padding: 18px;
      color: var(--md-muted);
      font-size: 15px;
    }

    #md-landing .md-mini strong,
    #md-landing .md-metric strong {
      display: block;
      font-size: 28px;
      color: var(--md-accent);
      line-height: 1.1;
      margin-bottom: 4px;
    }

    #md-landing .md-selector {
      background: #f8fafc;
      padding-top: 78px;
    }

    #md-landing .md-sector-groups {
      display: grid;
      gap: 30px;
      margin-top: 36px;
    }

    #md-landing .md-sector-group h3 {
      color: var(--md-dark);
      margin-bottom: 14px;
    }

    #md-landing .md-sector-cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    #md-landing .md-sector-card {
      background: #ffffff;
      border: 1px solid var(--md-line);
      border-radius: 20px;
      padding: 18px;
      cursor: pointer;
      transition: .18s ease;
      min-height: 118px;
      box-shadow: 0 14px 38px rgba(16,21,34,.05);
    }

    #md-landing .md-sector-card:hover,
    #md-landing .md-sector-card.md-active {
      background: #fff5ec;
      border-color: rgba(255,138,34,.75);
      transform: translateY(-2px);
    }

    #md-landing .md-sector-card .md-icon {
      font-size: 28px;
      margin-bottom: 8px;
    }

    #md-landing .md-sector-card strong {
      display: block;
      color: var(--md-dark);
      margin-bottom: 4px;
      font-size: 16px;
    }

    #md-landing .md-sector-card span {
      color: var(--md-muted);
      font-size: 14px;
      line-height: 1.35;
    }

    #md-landing .md-dashboard {
      background:
        radial-gradient(circle at top right, rgba(47,111,237,.09), transparent 35%),
        #ffffff;
    }

    #md-landing .md-dashboard-panel {
      margin-top: 38px;
      background: #0d1423;
      color: #fff;
      border-radius: 30px;
      padding: 30px;
      box-shadow: 0 35px 90px rgba(16,21,34,.20);
      overflow: hidden;
    }

    #md-landing .md-dashboard-panel h3,
    #md-landing .md-dashboard-panel p {
      color: #fff;
    }

    #md-landing .md-dashboard-panel p {
      color: var(--md-muted-light);
    }

    #md-landing .md-dashboard-top {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-start;
      margin-bottom: 22px;
      flex-wrap: wrap;
    }

    #md-landing .md-period {
      display: inline-flex;
      gap: 8px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 6px;
    }

    #md-landing .md-period span {
      padding: 7px 12px;
      border-radius: 999px;
      color: var(--md-muted-light);
      font-size: 13px;
    }

    #md-landing .md-period span:first-child {
      background: var(--md-accent);
      color: #1b1006;
      font-weight: 900;
    }

    #md-landing .md-dashboard-kpi,
    #md-landing .md-dashboard-grid,
    #md-landing .md-pain-grid,
    #md-landing .md-features,
    #md-landing .md-modules {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 34px;
    }

    #md-landing .md-dashboard-kpi {
      grid-template-columns: repeat(4, 1fr);
      margin-top: 22px;
    }

    #md-landing .md-kpi-card {
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 22px;
      padding: 24px;
      color: #fff;
    }

    #md-landing .md-kpi-card strong {
      display: block;
      font-size: 34px;
      color: var(--md-accent2);
      margin-bottom: 6px;
      line-height: 1;
    }

    #md-landing .md-kpi-card span {
      color: var(--md-muted-light);
      font-size: 15px;
    }

    #md-landing .md-dash-card,
    #md-landing .md-feature,
    #md-landing .md-module,
    #md-landing .md-step {
      background: #ffffff;
      border: 1px solid var(--md-line);
      border-radius: 22px;
      padding: 24px;
      box-shadow: 0 14px 40px rgba(16,21,34,.05);
    }

    #md-landing .md-dashboard-list {
      list-style: none;
      padding: 0;
      margin: 12px 0 0;
    }

    #md-landing .md-dashboard-list li {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid rgba(16,21,34,.08);
      padding: 9px 0;
      color: var(--md-muted);
      font-size: 15px;
    }

    #md-landing .md-dashboard-list li:last-child {
      border-bottom: 0;
    }

    #md-landing .md-pill {
      background: #f0f4fb;
      color: var(--md-blue);
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    #md-landing .md-chart {
      display: flex;
      align-items: end;
      gap: 10px;
      height: 150px;
      margin-top: 16px;
      padding: 16px;
      border-radius: 18px;
      background: #f8fafc;
      border: 1px solid rgba(16,21,34,.08);
    }

    #md-landing .md-bar {
      flex: 1;
      background: linear-gradient(180deg, var(--md-accent2), var(--md-accent));
      border-radius: 10px 10px 4px 4px;
      min-height: 24px;
    }

    #md-landing .md-day {
      display: grid;
      gap: 16px;
      margin-top: 34px;
    }

    #md-landing .md-dayitem {
      display: grid;
      grid-template-columns: 112px 1fr;
      gap: 22px;
      padding: 24px;
      background: #ffffff;
      border: 1px solid var(--md-line);
      border-radius: 22px;
      box-shadow: 0 14px 40px rgba(16,21,34,.05);
    }

    #md-landing .md-time {
      color: var(--md-accent);
      font-size: 23px;
      font-weight: 900;
    }

    #md-landing .md-pain {
      background: #fff4f4;
      border: 1px solid #ffcaca;
      border-radius: 22px;
      padding: 22px;
      color: #7d2424;
      font-size: 17px;
      line-height: 1.55;
    }

    #md-landing .md-before-after {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
      margin-top: 34px;
    }

    #md-landing .md-before,
    #md-landing .md-after {
      border-radius: 24px;
      padding: 30px;
      border: 1px solid var(--md-line);
      background: #f8fafc;
    }

    #md-landing .md-before h3 { color: var(--md-red); }
    #md-landing .md-after h3 { color: var(--md-green); }

    #md-landing .md-memory {
      background: #f8fafc;
    }

    #md-landing .md-memory-flow {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      margin-top: 34px;
    }

    #md-landing .md-step {
      padding: 20px;
    }

    #md-landing .md-step strong {
      display: block;
      color: var(--md-accent);
      font-size: 18px;
      margin-bottom: 8px;
    }

    #md-landing .md-step p {
      font-size: 15px;
      margin-bottom: 0;
    }

    #md-landing .md-module {
      background: #fff8f1;
      border-color: rgba(255,138,34,.25);
    }

    #md-landing .md-quote {
      background: #0d1423;
      border-radius: 28px;
      padding: 36px;
      margin-top: 30px;
      color: #fff;
    }

    #md-landing .md-quote strong {
      display: block;
      font-size: 30px;
      color: #fff;
      line-height: 1.25;
      margin-bottom: 16px;
    }

    #md-landing .md-quote p {
      color: var(--md-muted-light);
    }

    #md-landing .md-cta {
      text-align: center;
      background:
        radial-gradient(circle at center, rgba(255,138,34,.18), transparent 60%),
        #ffffff;
      padding: 96px 0;
    }

    #md-landing .md-note {
      color: var(--md-muted);
      font-size: 14px;
      margin-top: 18px;
    }

    #md-landing .md-demo-reset-note {
      max-width: 680px;
      margin: 0 auto 22px;
      padding: 14px 18px;
      border-radius: 12px;
      background: #fff7ed;
      border: 1px solid #fdba74;
      color: #7c2d12;
      text-align: left;
      font-size: 14px;
      line-height: 1.5;
    }

    #md-landing .md-demo-reset-note strong {
      display: block;
      margin-bottom: 6px;
      color: #9a3412;
    }

    #md-landing .md-demo-reset-note p {
      margin: 0 0 6px;
    }

    #md-landing .md-demo-reset-note__next {
      font-weight: 600;
      color: #c2410c;
      margin-bottom: 0 !important;
    }

    #md-landing footer {
      background: #0d1b2b;
      color: var(--md-muted-light);
      padding: 34px 0;
      font-size: 14px;
    }



    /* SELETTORE SETTORI IN HERO */
    #md-landing .md-hero-sector-strip {
      padding: 20px 0 0;
      background: #ffffff;
    }

    #md-landing .md-hero-sector-box {
      background: linear-gradient(135deg, #fff7ef, #f4fbf7);
      border: 1px solid rgba(16,21,34,.10);
      border-radius: 26px;
      padding: 18px;
      box-shadow: 0 20px 60px rgba(16,21,34,.08);
    }

    #md-landing .md-hero-sector-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    #md-landing .md-hero-sector-head strong {
      color: var(--md-dark);
      font-size: 18px;
      line-height: 1.2;
    }

    #md-landing .md-hero-sector-head span {
      color: var(--md-muted);
      font-size: 14px;
    }

    #md-landing .md-hero-sector-pills {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    #md-landing .md-sector-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 12px;
      border-radius: 999px;
      border: 1px solid rgba(16,21,34,.12);
      background: #ffffff;
      color: var(--md-dark);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: .18s ease;
      box-shadow: 0 8px 24px rgba(16,21,34,.05);
    }

    #md-landing .md-sector-pill:hover,
    #md-landing .md-sector-pill.md-active {
      background: #0d1423;
      color: #ffffff;
      border-color: #0d1423;
      transform: translateY(-1px);
    }

    #md-landing .md-sector-pill .md-pill-icon {
      font-size: 17px;
    }

    #md-landing .md-sector-more {
      padding: 9px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,138,34,.45);
      background: #fff;
      color: var(--md-accent);
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
    }

    #md-landing .md-sector-select {
      display: none;
      width: 100%;
      margin-top: 12px;
      padding: 13px 14px;
      border-radius: 16px;
      border: 1px solid rgba(16,21,34,.18);
      background: #ffffff;
      color: var(--md-dark);
      font-size: 16px;
      font-weight: 800;
    }


    /* MODAL VIDEO PROVA GUIDATA */
    #md-landing .md-video-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 999999;
      background: rgba(0,0,0,.86);
      align-items: center;
      justify-content: center;
      padding: 32px;
    }

    #md-landing .md-video-modal.md-active {
      display: flex;
    }

    #md-landing .md-video-box {
      position: relative;
      width: min(1000px, 100%);
      background: #000;
      border-radius: 24px;
      box-shadow: 0 30px 90px rgba(0,0,0,.45);
    }

    #md-landing .md-video-box video {
      width: 100%;
      display: block;
      border-radius: 24px;
      background: #000;
    }

    #md-landing .md-video-close {
      position: absolute;
      top: -18px;
      right: -18px;
      width: 46px;
      height: 46px;
      border: 0;
      border-radius: 50%;
      background: var(--md-accent);
      color: #fff;
      font-size: 30px;
      line-height: 1;
      cursor: pointer;
      z-index: 2;
      box-shadow: 0 12px 30px rgba(0,0,0,.28);
    }

    #md-landing .md-video-close:hover {
      background: #e67312;
    }

    @media (max-width: 1050px) {
      #md-landing .md-memory-flow,
      #md-landing .md-sector-cards,
      #md-landing .md-dashboard-kpi {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 900px) {
      #md-landing .md-grid,
      #md-landing .md-pain-grid,
      #md-landing .md-before-after,
      #md-landing .md-features,
      #md-landing .md-modules,
      #md-landing .md-metrics,
      #md-landing .md-mini-grid,
      #md-landing .md-dashboard-grid {
        grid-template-columns: 1fr;
      }

      #md-landing .md-menu {
        display: none;
      }

      #md-landing .md-dayitem {
        grid-template-columns: 1fr;
      }

      #md-landing .md-nav {
        flex-wrap: wrap;
        padding: 18px;
      }

      #md-landing .md-hero-sector-pills {
        display: none;
      }

      #md-landing .md-sector-select {
        display: block;
      }

      #md-landing .md-hero-sector-head {
        display: block;
      }

      #md-landing .md-hero-sector-head span {
        display: block;
        margin-top: 4px;
      }
    }

    @media (max-width: 560px) {
      #md-landing .md-sector-cards,
      #md-landing .md-memory-flow,
      #md-landing .md-dashboard-kpi {
        grid-template-columns: 1fr;
      }

      #md-landing section,
      #md-landing .md-hero {
        padding: 58px 0;
      }

      #md-landing h1 {
        font-size: 40px;
      }

      #md-landing h2 {
        font-size: 30px;
      }
    }
  