/* ============================================================
   ReaLink - Mockup della piattaforma
   Prefisso di classe: mk-
   Abbinato a partials/mockup-piattaforma.html

   PALETTE: qui dentro NON si usano i colori del sito. La piattaforma
   riservata e un altro prodotto e ha un tema scuro suo (blu quasi nero
   #060D1C + blu #1767D0), campionato dai sorgenti reali. I token stanno
   tutti sotto .mk, quindi non escono da questo componente.

   SCALA: dentro i dispositivi tutto e in em, con la base impostata sul
   contenitore (cqw dove supportato, vw come ripiego). Cosi l'interfaccia
   rimpicciolisce in blocco, senza rompersi, fino sotto i 600px.

   Niente immagini, niente font aggiuntivi: solo CSS.
   ============================================================ */

.mk {
  /* --- palette reale della piattaforma --- */
  --mk-bg: #060D1C;
  --mk-elev: #0A1A33;
  --mk-primary: #1767D0;
  --mk-accent: #4A9EEA;
  --mk-accent-on: #7FBEF4;
  --mk-ok: #22D3A6;
  --mk-warn: #F5A524;
  --mk-text: #F5F8FF;
  --mk-muted: #9DB2D8;
  --mk-muted-2: #6E83AD;
  --mk-glass: rgba(255, 255, 255, .055);
  --mk-glass-2: rgba(255, 255, 255, .09);
  --mk-border: rgba(74, 158, 234, .20);
  --mk-border-2: rgba(255, 255, 255, .08);
  --mk-grad-surface: linear-gradient(135deg, #132B4E 0%, #1B3A66 100%);
  --mk-grad-primary: linear-gradient(180deg, #1767D0 0%, #0F4188 100%);
  --mk-grad-glow: radial-gradient(120% 120% at 70% 12%, rgba(74, 158, 234, .18) 0%, rgba(7, 14, 34, 0) 55%);
  --mk-grad-accent: linear-gradient(90deg, rgba(74, 158, 234, 0) 0%, #4A9EEA 50%, rgba(74, 158, 234, 0) 100%);
  --mk-shadow-card: 0 8px 24px -12px rgba(3, 8, 22, .6);
  --mk-glow: 0 0 0 1px rgba(74, 158, 234, .65), 0 0 24px -4px rgba(74, 158, 234, .35);
  /* i font sono quelli del sito, gia caricati */
  --mk-font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --mk-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  margin: 0;
}

.mk *,
.mk *::before,
.mk *::after { box-sizing: border-box; }

/* Il mockup vive dentro le pagine del sito, che vestono i tag nudi:
   `section{padding-block:clamp(64px,9vw,128px)}` da solo gonfiava la scheda
   contatto di quasi due metri. Qui si riparte da zero.
   :where() tiene la specificita a (0,1,0): tutte le regole mk- che seguono
   in questo foglio vincono comunque, senza bisogno di !important. */
.mk :where(section, article, aside, figure, figcaption, header, footer,
           p, h1, h2, h3, h4, h5, h6, dl, dt, dd, ol, ul, li,
           small, b, i, em, strong, span, div) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  list-style: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-align: inherit;
  max-width: none;
}

/* Tutte le icone del mockup sono monocromatiche e ereditano il colore. */
.mk svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex: none;
}

/* Testo alternativo: descrive il mockup a chi non lo vede. */
.mk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   1. CORNICE LAPTOP
   ============================================================ */

.mk-laptop {
  max-width: 1080px;
  margin: 0 auto;
}

.mk-laptop__stage {
  perspective: 1800px;
  perspective-origin: 50% 38%;
}

/* Prospettiva volutamente leggera: deve dire "e uno schermo", non fare acrobazie. */
.mk-laptop__dev {
  transform: rotateX(6deg) rotateY(-7deg);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
}

.mk-laptop__lid {
  position: relative;
  padding: 12px 12px 16px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(165deg, #263349 0%, #131c2e 55%, #0c1220 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 46px 80px -46px rgba(10, 18, 40, .55),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

.mk-laptop__cam {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}

.mk-laptop__screen {
  position: relative;
  overflow: hidden;
  /* Proporzione di uno schermo vero: se l'interfaccia e piu alta viene tagliata
     in basso, esattamente come in una schermata catturata da un portatile. */
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: var(--mk-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  container-type: inline-size;
}

.mk-laptop__base {
  position: relative;
  width: 108%;
  margin-left: -4%;
  height: 15px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #2c384e 0%, #192133 55%, #0e1524 100%);
  box-shadow: 0 26px 34px -22px rgba(10, 18, 40, .55);
}

.mk-laptop__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 13%;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, .09);
}


/* ============================================================
   2. CORNICE TELEFONO
   ============================================================ */

.mk-phone {
  width: min(304px, 78vw);
  margin: 0 auto;
}

.mk-phone__dev {
  position: relative;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(165deg, #2a3549 0%, #141d2f 60%, #0c1220 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 40px 70px -40px rgba(10, 18, 40, .55),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.mk-phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  background: var(--mk-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  container-type: inline-size;
}

/* L'isola sta DENTRO lo schermo, cosi si misura sul contenitore e scala insieme
   all'interfaccia; il padding di .mk-ui--mob le lascia lo spazio sopra la barra. */
.mk-phone__island {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 16px;
  border-radius: 99px;
  background: #05090f;
}

@supports (width: 1cqw) {
  .mk-phone__island {
    top: 3.5cqw;
    width: 26cqw;
    height: 5.5cqw;
  }
}

.mk-phone__home {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}


/* ============================================================
   3. INTERFACCIA DELLA PIATTAFORMA (dentro i dispositivi)
   ============================================================ */

.mk-ui {
  position: relative;
  isolation: isolate;
  font-family: var(--mk-font-body);
  line-height: 1.55;
  color: var(--mk-text);
  background: var(--mk-bg);
}

/* La base di tutto: l'interfaccia e disegnata a 10px e rimpicciolisce in blocco
   con la larghezza del contenitore, cosi le proporzioni non cambiano mai e lo
   schermo resta 16:10 anche su un telefono. Ripiego su vw dove le container
   query non ci sono. */
.mk-laptop .mk-ui { font-size: clamp(3px, .92vw, 10px); }
.mk-phone .mk-ui { font-size: clamp(5px, 2.5vw, 9.2px); }

@supports (font-size: 1cqw) {
  .mk-laptop .mk-ui { font-size: clamp(3px, 1.02cqw, 10px); }
  .mk-phone .mk-ui { font-size: clamp(5px, 3.15cqw, 9.2px); }
}

/* bagliore ambientale della piattaforma */
.mk-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--mk-grad-glow);
}

.mk-ui > * { position: relative; z-index: 1; }

/* --- barra superiore --- */
.mk-ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  height: 4.6em;
  padding: 0 1.6em;
  background: rgba(7, 14, 34, .66);
  border-bottom: 1px solid var(--mk-border-2);
}

.mk-brand {
  display: flex;
  align-items: center;
  gap: .9em;
  min-width: 0;
}

.mk-brand__mark {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.4em;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.mk-brand__mark i { font-style: normal; color: var(--mk-accent); }

.mk-brand__sub {
  font-family: var(--mk-font-display);
  font-weight: 600;
  font-size: 1.05em;
  color: var(--mk-muted);
  padding-left: 1em;
  border-left: 1px solid var(--mk-border-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-ui__bar-right {
  display: flex;
  align-items: center;
  gap: .9em;
  flex: none;
}

.mk-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.45em;
  height: 2.45em;
  border-radius: 50%;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .02em;
  color: #fff;
  background: var(--mk-grad-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* --- pulsanti (decorativi) --- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .7em 1.2em;
  border-radius: .9em;
  font-size: 1em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mk-text);
  background: var(--mk-glass);
  border: 1px solid var(--mk-border);
}

.mk-btn--sm { padding: .5em 1em; font-size: .93em; }
.mk-btn svg { width: 1.15em; height: 1.15em; }
.mk-btn--exp { border-color: var(--mk-border-2); }
.mk-btn--exp svg { color: var(--mk-ok); }

/* --- corpo e intestazione --- */
.mk-ui__body { padding: 1.8em 1.8em 2em; }

.mk-ui__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2em;
  margin-bottom: 1.4em;
}

.mk-ui__head-txt { min-width: 0; }

.mk-eyebrow {
  display: block;
  font-size: .79em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mk-muted);
}

.mk-ui__title {
  margin: .3em 0 0;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.94em;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.mk-ui__title small {
  font-size: .55em;
  font-weight: 500;
  color: var(--mk-muted);
}

.mk-ui__acts {
  display: flex;
  align-items: center;
  gap: .8em;
  flex: none;
}

.mk-sortbox {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .6em .9em;
  border-radius: .9em;
  font-size: .89em;
  white-space: nowrap;
  background: var(--mk-glass);
  border: 1px solid var(--mk-border-2);
}

.mk-sortbox i {
  font-style: normal;
  font-size: .88em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mk-muted);
}

.mk-sortbox b { font-weight: 600; }
.mk-sortbox svg { width: 1em; height: 1em; color: var(--mk-muted); }

.mk-railbtn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .6em 1em;
  border-radius: .9em;
  font-size: .93em;
  font-weight: 600;
  white-space: nowrap;
  background: var(--mk-glass);
  border: 1px solid var(--mk-border);
}

.mk-railbtn svg { width: 1.15em; height: 1.15em; }

/* --- riga KPI --- */
.mk-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-bottom: 1.4em;
}

.mk-kpi {
  position: relative;
  overflow: hidden;
  padding: 1.1em 1.3em;
  border-radius: 1.2em;
  background: var(--mk-grad-surface);
  border: 1px solid var(--mk-border-2);
}

.mk-kpi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: .6;
  background: var(--mk-grad-accent);
}

.mk-kpi__n {
  display: block;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 2.14em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mk-kpi__l {
  display: block;
  margin-top: .5em;
  font-size: .86em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mk-muted);
}

/* --- area di lavoro: filtri + schede --- */
.mk-work {
  display: grid;
  grid-template-columns: 21em minmax(0, 1fr);
  gap: 1.4em;
  align-items: start;
}

.mk-rail {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  padding: 1.2em;
  border-radius: 1.2em;
  background: var(--mk-glass);
  border: 1px solid var(--mk-border-2);
}

.mk-live {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .7em .9em;
  border-radius: .9em;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.07em;
  font-variant-numeric: tabular-nums;
  background: rgba(74, 158, 234, .10);
  border: 1px solid var(--mk-border);
}

.mk-live__from { color: var(--mk-muted); }
.mk-live__to { color: var(--mk-accent); }
.mk-live svg { width: 1.05em; height: 1.05em; color: var(--mk-accent); }

.mk-live__l {
  margin-left: auto;
  font-family: var(--mk-font-body);
  font-size: .7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mk-muted);
}

.mk-f { display: flex; flex-direction: column; gap: .6em; }

.mk-f__l {
  font-size: .86em;
  font-weight: 600;
  color: var(--mk-muted);
}

.mk-f__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6em;
}

.mk-f__read {
  font-size: .82em;
  color: var(--mk-accent-on);
  font-variant-numeric: tabular-nums;
}

.mk-search {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .7em .9em;
  border-radius: .9em;
  font-size: .93em;
  color: var(--mk-muted-2);
  background: rgba(7, 14, 34, .5);
  border: 1px solid var(--mk-border-2);
}

.mk-search svg { width: 1.1em; height: 1.1em; color: var(--mk-muted); }

/* cursore a due maniglie del filtro metratura */
.mk-range {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.6em;
}

.mk-range__t,
.mk-range__f {
  position: absolute;
  height: .35em;
  border-radius: 99px;
}

.mk-range__t { left: 0; right: 0; background: rgba(255, 255, 255, .10); }
.mk-range__f { left: 12%; right: 20%; background: linear-gradient(90deg, var(--mk-primary), var(--mk-accent)); }

.mk-range__h {
  position: absolute;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 .28em rgba(74, 158, 234, .30);
}

.mk-range__h--a { left: 12%; transform: translateX(-50%); }
.mk-range__h--b { right: 20%; transform: translateX(50%); }

.mk-chips { display: flex; flex-wrap: wrap; gap: .5em; }

.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4em .8em;
  border-radius: 99px;
  font-size: .86em;
  color: var(--mk-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--mk-border-2);
}

.mk-chip b {
  font-size: .92em;
  font-weight: 600;
  padding: .05em .5em;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  font-variant-numeric: tabular-nums;
}

.mk-chip.is-on {
  color: #fff;
  background: rgba(74, 158, 234, .14);
  border-color: var(--mk-accent);
  box-shadow: var(--mk-glow);
}

.mk-tog {
  display: flex;
  align-items: center;
  gap: .8em;
  font-size: .93em;
  color: var(--mk-muted);
}

.mk-tog__t {
  position: relative;
  flex: none;
  width: 3em;
  height: 1.65em;
  border-radius: 99px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid var(--mk-border-2);
}

.mk-tog__t::after {
  content: "";
  position: absolute;
  top: .12em;
  left: .16em;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--mk-muted);
}

.mk-tog.is-on .mk-tog__t {
  background: rgba(23, 103, 208, .5);
  border-color: var(--mk-primary);
}

.mk-tog.is-on .mk-tog__t::after { left: auto; right: .16em; background: #fff; }
.mk-tog__x b { color: var(--mk-ok); font-weight: 600; margin-left: .25em; }

/* --- schede lead --- */
.mk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1em;
  min-width: 0;
}

.mk-lc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  padding: 1.4em;
  border-radius: 1.2em;
  background: var(--mk-grad-surface);
  border: 1px solid var(--mk-border-2);
  box-shadow: var(--mk-shadow-card);
}

/* la scheda "in evidenza" riproduce lo stato al passaggio del mouse dell'app vera */
.mk-lc--hot {
  border-color: var(--mk-accent);
  box-shadow: var(--mk-shadow-card), var(--mk-glow);
}

.mk-lc__spark {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: 1.2em 1.2em 0 0;
  opacity: 0;
  background: var(--mk-grad-accent);
}

.mk-lc--hot .mk-lc__spark { opacity: 1; }

.mk-lc__top {
  display: flex;
  align-items: flex-start;
  gap: .72em;
}

/* nell'app l'avatar della scheda e piu grande di quello della barra */
.mk-lc .mk-avatar {
  width: 3em;
  height: 3em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 .28em rgba(74, 158, 234, .07);
}

.mk-lc__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 1.08em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mk-pill {
  flex: none;
  padding: .28em .75em;
  border-radius: 99px;
  font-size: .82em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mk-accent-on);
  background: rgba(7, 14, 34, .5);
  border: 1px solid var(--mk-border);
}

.mk-lc__addr {
  display: flex;
  align-items: flex-start;
  gap: .5em;
  font-size: .97em;
  font-weight: 600;
}

.mk-lc__addr svg { width: 1.05em; height: 1.05em; margin-top: .18em; color: var(--mk-accent); }

.mk-lc__sub {
  display: block;
  margin-top: .35em;
  font-size: .86em;
  line-height: 1.5;
  color: var(--mk-muted);
}

.mk-lc__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55em;
}

.mk-st {
  display: flex;
  flex-direction: column;
  gap: .45em;
  padding: .64em .71em;
  border-radius: .85em;
  min-width: 0;
  /* alle scale minime l'etichetta non e piu comprimibile: si taglia invece di sbordare */
  overflow: hidden;
  background: rgba(7, 14, 34, .42);
  border: 1px solid var(--mk-border-2);
}

/* Rapporti presi dall'app vera: 9px di etichetta su 14px di base = .64em.
   Con valori piu grandi "intestatari" non entra nel riquadro. */
.mk-st__l {
  display: flex;
  align-items: center;
  gap: .35em;
  min-width: 0;
  font-size: .59em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--mk-muted);
}

.mk-st__l svg { width: 1.25em; height: 1.25em; color: var(--mk-muted-2); }

.mk-st__v {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.28em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* la superficie e il dato-guida, come nell'app */
.mk-st--key {
  background: linear-gradient(160deg, rgba(74, 158, 234, .14), rgba(74, 158, 234, .05));
  border-color: rgba(74, 158, 234, .28);
}

.mk-st--key .mk-st__v { color: var(--mk-accent-on); }
.mk-st--key .mk-st__l { color: var(--mk-accent); }
.mk-st--key .mk-st__l svg { color: var(--mk-accent); }

.mk-lc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6em;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .9em;
  border-top: 1px solid var(--mk-border-2);
}

.mk-badges { display: flex; flex-wrap: wrap; gap: .45em; align-items: center; }

.mk-badge {
  padding: .3em .72em;
  border-radius: 99px;
  font-size: .82em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mk-text);
  background: var(--mk-glass);
  border: 1px solid var(--mk-border-2);
}

.mk-badge--key { border-color: rgba(74, 158, 234, .28); }
.mk-badge--sm { font-size: .71em; font-weight: 500; padding: .22em .65em; color: var(--mk-muted); }

.mk-lc__icons { display: flex; align-items: center; gap: .6em; flex: none; }
.mk-lc__icons svg { width: 1.15em; height: 1.15em; }
.mk-ic-mail { color: var(--mk-ok); display: inline-flex; }
.mk-ic-note { color: var(--mk-warn); display: inline-flex; }

/* nota a pie di lista */
.mk-note {
  margin: 1.4em 0 0;
  padding-top: 1em;
  border-top: 1px solid var(--mk-border-2);
  font-size: .82em;
  line-height: 1.6;
  color: var(--mk-muted);
}

/* --- variante mobile della piattaforma --- */
.mk-ui--mob .mk-ui__bar { height: 4.4em; padding: 0 1.2em; }
.mk-ui--mob { padding-top: 3.3em; }
.mk-ui--mob .mk-ui__body { padding: 1.2em 1.1em 2.4em; }
.mk-ui--mob .mk-ui__head { flex-direction: column; align-items: stretch; gap: .9em; }
.mk-ui--mob .mk-ui__title { font-size: 1.9em; }
.mk-ui--mob .mk-ui__acts { flex: 1; }
.mk-ui--mob .mk-ui__acts > * { flex: 1; justify-content: center; }
.mk-ui--mob .mk-kpis { gap: .6em; }
.mk-ui--mob .mk-kpi { padding: .8em .8em; border-radius: 1em; }
.mk-ui--mob .mk-kpi__n { font-size: 1.9em; }
.mk-ui--mob .mk-kpi__l { font-size: .82em; letter-spacing: .04em; }
.mk-ui--mob .mk-cards { grid-template-columns: minmax(0, 1fr); }


/* ============================================================
   4. SCHEDA CONTATTO INGRANDITA + LEGENDA
   ============================================================ */

.mk-zoom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.mk-zoom__card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  font-family: var(--mk-font-body);
  font-size: clamp(12.5px, 1.35vw, 14.5px);
  line-height: 1.55;
  color: var(--mk-text);
  background: var(--mk-elev);
  border: 1px solid var(--mk-border-2);
  box-shadow: 0 30px 64px -34px rgba(10, 18, 40, .5);
}

.mk-zoom__head {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1.25em 1.35em;
  background: linear-gradient(180deg, #0c1a3a, rgba(12, 26, 58, .9));
  border-bottom: 1px solid var(--mk-border-2);
}

.mk-avatar--lg { width: 3.4em; height: 3.4em; font-size: 1.1em; }

.mk-zoom__id { min-width: 0; display: flex; flex-direction: column; gap: .6em; }

.mk-zoom__name {
  display: flex;
  align-items: center;
  gap: .55em;
  font-family: var(--mk-font-display);
  font-weight: 600;
  font-size: 1.3em;
  line-height: 1.2;
}

.mk-zoom__body {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 1.3em 1.35em 1.5em;
}

.mk-sec__h {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .8em;
  font-family: var(--mk-font-body);
  font-size: .82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mk-muted);
}

.mk-sec__h svg { width: 1.2em; height: 1.2em; color: var(--mk-accent); }
.mk-sec__h .mk-pin { margin-left: auto; }

.mk-tels { display: flex; flex-direction: column; gap: .55em; }

.mk-tel {
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .7em .9em;
  border-radius: .75em;
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  background: rgba(7, 14, 34, .5);
  border: 1px solid var(--mk-border-2);
}

.mk-tel svg { width: 1.1em; height: 1.1em; color: var(--mk-accent); }
.mk-tel__n { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.mk-tel--mail .mk-tel__n { font-weight: 500; }

.mk-tel__cta {
  flex: none;
  padding: .3em .8em;
  border-radius: 99px;
  font-size: .74em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mk-accent);
  background: rgba(74, 158, 234, .12);
}

.mk-dl { margin: 0; }

.mk-dr {
  display: grid;
  grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
  gap: .7em;
  padding: .55em 0;
  font-size: .95em;
  border-bottom: 1px solid var(--mk-border-2);
}

.mk-dr:last-child { border-bottom: 0; }
.mk-dr dt { margin: 0; color: var(--mk-muted); font-weight: 500; }
.mk-dr dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.mk-others { display: flex; flex-direction: column; gap: .55em; }

.mk-other {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .6em .75em;
  border-radius: .75em;
  background: rgba(7, 14, 34, .4);
  border: 1px solid var(--mk-border-2);
}

.mk-other .mk-avatar { width: 2.3em; height: 2.3em; font-size: .85em; }
.mk-other__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mk-other__txt b { font-weight: 600; font-size: .95em; overflow-wrap: anywhere; }
.mk-other__txt small { font-size: .82em; color: var(--mk-muted); }

/* --- pallini numerati e legenda --- */
.mk-pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: .8em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--mk-grad-primary);
  box-shadow: 0 0 0 .22em rgba(74, 158, 234, .22);
}

.mk-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

.mk-legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Qui siamo fuori dal dispositivo: si torna ai colori del sito. */
.mk-legend .mk-pin {
  font-size: 11px;
  margin-top: 3px;
  background: var(--color-accent, #1e3a8a);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}

.mk-legend__t {
  display: block;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.35;
  color: var(--color-ink, #0f0f10);
}

.mk-legend__d {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 14.5px);
  line-height: 1.55;
  color: var(--color-muted, #6b6b6f);
}


/* ============================================================
   5. RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .mk-zoom { grid-template-columns: minmax(0, 1fr); }
}

/* Aiuto per chi compone la pagina: sotto i 600px il portatile resta corretto nelle
   proporzioni ma il testo dell'interfaccia e minuscolo per forza di cose (e una
   dashboard a tre colonne dentro 300px). Se in quel punto basta il telefono, si
   marca il portatile con questa classe. */
@media (max-width: 600px) {
  .mk-hide-sm { display: none !important; }
}

@media (min-width: 861px) {
  /* la scheda e molto piu alta della legenda: la legenda accompagna lo scorrimento */
  .mk-legend { position: sticky; top: clamp(24px, 10vh, 96px); }
}

@media (max-width: 600px) {
  /* Sotto i 600px la prospettiva toglie leggibilita senza aggiungere niente. */
  .mk-laptop__dev { transform: none; }
  .mk-laptop__lid { padding: 8px 8px 10px; border-radius: 12px 12px 6px 6px; }
  .mk-laptop__base { height: 11px; }
  .mk-laptop__cam { top: 3px; width: 4px; height: 4px; }

  .mk-phone { width: min(268px, 84vw); }

  .mk-zoom__card { border-radius: 14px; }
  .mk-zoom__head { padding: 1.1em; }
  .mk-zoom__body { padding: 1.1em 1.1em 1.3em; gap: 1.3em; }

  /* etichetta sopra, valore sotto: due colonne strette sono illeggibili */
  .mk-dr { grid-template-columns: minmax(0, 1fr); gap: .1em; }
  .mk-dr dt { font-size: .84em; text-transform: uppercase; letter-spacing: .05em; }
}


/* ============================================================
   6. ACCESSIBILITA
   ============================================================ */

/* I mockup non contengono elementi interattivi: se un giorno ne arrivassero,
   il focus deve restare visibile. */
.mk :focus-visible {
  outline: 2px solid var(--color-accent, #1e3a8a);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mk,
  .mk *,
  .mk *::before,
  .mk *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
