/* ============================================================
   NN AUTOMATIONS — il sito (rifacimento del 2026-11-02)
   Leandro: «sfondo bianco, pulito, molto animato e premium, non AI slop».
   Lo stesso segno dei post e dei reel NNA: bianco, titoli Michroma in blu
   scuro, la penna blu, l'evidenziatore giallo, lo stickman nero, le note
   scritte a mano in Caveat. Un solo momento forte (l'eroe: la lista del
   lunedi' cancellata a penna); il resto e' quieto e segue lo scorrimento.

   Colore      carta #FFFFFF · nebbia #F5F8FD · filo #E3E9F2
               blu scuro #0B2A5B (titoli) · inchiostro #22324F (testo)
               blu #1F5FD6 (penna, azioni) · giallo #FFD43B (evidenziatore)
               giallino #FFF4CC (cio' che e' scelto) · nero #1D1D1F (stickman, marchio)
   Caratteri   Michroma (titoli) · IBM Plex Sans (testo) · Caveat (la penna)
   ============================================================ */

@font-face { font-family: "Michroma"; font-weight: 400; font-display: swap; src: url("../assets/fonts/michroma-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/caveat-latin.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --mist: #F5F8FD;
  --line: #E3E9F2;
  --line-2: #CFD9E8;
  --navy: #0B2A5B;
  --ink: #22324F;
  --soft: #5A6A86;
  --quiet: #8796B2;
  --blue: #1F5FD6;
  --blue-deep: #0B2A5B;
  --sun: #FFD43B;
  --sun-soft: #FFF4CC;
  --black: #1D1D1F;

  --display: "Michroma", "Arial Black", sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --nav-h: 76px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-paper: 0 1px 2px rgb(11 42 91 / .05), 0 18px 40px -18px rgb(11 42 91 / .22), 0 50px 90px -60px rgb(31 95 214 / .35);

  /* l'evidenziatore fatto a mano: lo stesso tratto dei post */
  --brush: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><path d='M3,11 C40,6 80,10 120,7 C150,5 178,8 197,6 C199,14 199,25 196,33 C160,37 118,33 80,36 C48,38 24,35 5,37 C1,29 1,19 3,11 Z' fill='%23FFD43B'/></svg>");
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M1,5 C14,2.6 26,6.2 40,4.4 S 66,2.8 78,4.8 S 93,4.2 99,3' fill='none' stroke='%231F5FD6' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");

  /* finestre dimostrative (mocks.mjs), sul bianco */
  --mk-bg: #FFFFFF; --mk-panel: #F5F8FD; --mk-line: #E3E9F2; --mk-line-2: #CFD9E8;
  --mk-text: #0B2A5B; --mk-muted: #5A6A86; --mk-dot: rgb(11 42 91 / .10);
  --coral: #1F5FD6; --coral-rgb: 31 95 214; --on-coral: #FFFFFF; --ink-rgb: 11 42 91; --deep-rgb: 11 42 91;
  --font-ui: var(--text); --font-display: var(--display); --font-num: var(--mono);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--sun); color: var(--black); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.1; letter-spacing: -.015em; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--soft); max-width: 36em; font-weight: 400; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .lead { justify-self: end; }

/* l'evidenziatore: --hl va da 0% a 100% quando la parola si accende (main.js) */
.hl {
  --hl: 100%;
  background: var(--brush) no-repeat 0 92% / var(--hl) 50%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}
.pen-note { font-family: var(--hand); font-weight: 600; color: var(--blue); line-height: 1; }

/* righe che salgono dalla loro maschera (SplitText, main.js) */
.split-line { padding-bottom: .06em; }

/* ---------- bottoni e link ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 14px;
  font-family: var(--text); font-size: 16px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -14px rgb(31 95 214 / .8); }
.btn-blue::before { background: var(--navy); }
.btn-blue:hover { box-shadow: 0 18px 36px -16px rgb(11 42 91 / .7); }
.btn-ink { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ink::before { background: var(--navy); }
.btn-ink:hover { color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; }

.link-pen {
  position: relative; display: inline-block; padding: 4px 0 8px;
  font-weight: 500; color: var(--navy);
  background: var(--wave) no-repeat 0 100% / 100% 8px;
  transition: color .3s;
}
.link-pen:hover { color: var(--blue); animation: penline .7s var(--ease); }
@keyframes penline { from { background-size: 0% 8px; } to { background-size: 100% 8px; } }

/* ---------- barra ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav.is-scrolled { background: rgb(255 255 255 / .82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; line-height: 0; }
/* il marchio (04/11): la N tonda nera con la punta blu; la punta fa l'occhiolino al passaggio del mouse */
.nna-mark { display: block; width: auto; overflow: visible; }
.nna-mark .nm-body { fill: var(--black); }
.nna-mark .nm-tip { fill: var(--blue); transform-box: fill-box; transform-origin: 18% 88%; transition: transform .6s cubic-bezier(.34, 1.7, .5, 1); }
.brand:hover .nm-tip, .footer-lock:hover .nm-tip { transform: rotate(-16deg) scale(1.06); }
.brand-mark { height: 34px; }
.brand-name { display: grid; font-family: var(--display); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.45; color: var(--navy); }
.brand-name > span { display: block; white-space: nowrap; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; font-size: 15px; font-weight: 500; color: var(--navy); padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 7px; background: var(--wave) no-repeat 0 0 / 0% 7px; transition: background-size .5s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-current::after { background-size: 100% 7px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .45s var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- eroe ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-content: center; padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 64px)); padding-bottom: clamp(40px, 7vh, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(38px, 4.7vw, 74px); line-height: 1.06; letter-spacing: -.025em; max-width: 14.5ch; }
.hero-lead { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--soft); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(28px, 3.4vw, 44px); }

.hero-stage { position: relative; display: grid; place-items: center; padding: 20px 0 40px; }
.hero-stage::before { content: ""; position: absolute; inset: 6% 0 0 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(31 95 214 / .10), rgb(31 95 214 / 0)); }
.todo-card {
  position: relative; width: min(100%, 590px); padding: 32px 28px 36px 30px; border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-paper); transform: rotate(-1.5deg);
  container-type: inline-size;
}
.todo-h { font-family: var(--hand); font-weight: 700; font-size: 40px; line-height: 1; color: var(--navy); margin-bottom: 12px; }
.todo-list { display: grid; border-top: 1px solid rgb(31 95 214 / .10); }
/* le righe del quaderno: una sotto ogni voce (restano allineate anche quando la nota va a capo) e due vuote in fondo */
.todo-item { border-bottom: 1px solid rgb(31 95 214 / .10); }
.todo-list::after { content: ""; display: block; height: 104px; background: repeating-linear-gradient(180deg, transparent 0 51px, rgb(31 95 214 / .10) 51px 52px); }
.todo-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 52px; }
.tick { width: 24px; height: 24px; overflow: visible; }
.tick rect { fill: none; stroke: var(--line-2); stroke-width: 1.8; }
.tick-v { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.todo-t { position: relative; justify-self: start; font-family: var(--hand); font-size: 25px; font-weight: 500; line-height: 1.1; color: var(--navy); white-space: nowrap; transition: color .6s; }
.todo-t .strike { position: absolute; left: -5px; top: 50%; width: calc(100% + 12px); height: 14px; margin-top: -5px; overflow: visible; pointer-events: none; }
/* i tratti allungati (preserveAspectRatio none) li rimisura main.js (.is-fit): il trattino animato con pathLength
   non funziona insieme a vector-effect, quindi il tratto fisso vale solo prima della misura */
.strike path, .pen-ring path, .steps-line path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.is-fit path { vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.todo-note { transform: rotate(-3deg); padding-right: .15em; font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--blue); white-space: nowrap; }
.todo-note::before { content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 6px; vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'><path d='M1,6 C6,4 12,6 19,5 M15,1.5 L19.5,5 L15,8.5' fill='none' stroke='%231F5FD6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }
.todo-item.is-done .todo-t { color: var(--quiet); }
@container (max-width: 560px) {
  .todo-item { grid-template-columns: 22px minmax(0, 1fr); }
  .todo-note { grid-column: 2; justify-self: start; font-size: 21px; margin: -4px 0 8px 2px; }
}
/* la voce che si tiene: cerchiata, non cancellata */
.todo-t .pen-ring { position: absolute; left: -12px; top: -9px; width: calc(100% + 26px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.todo-t .pen-ring path { stroke-width: 2.4; }
.todo-item.is-keep .todo-note { color: var(--navy); }
.todo-item.is-keep .tick-v { display: none; }   /* la voce che si tiene non si spunta */

.hero-man { position: absolute; right: -3%; bottom: -18px; width: clamp(104px, 9vw, 128px); height: auto; overflow: visible; }
.stickman line, .stickman circle, .stickman path { fill: none; stroke: var(--black); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.stickman line, .stickman .sm-skull { stroke-dasharray: 1; stroke-dashoffset: 0; }
.stickman .sm-skull { fill: var(--paper); }
.stickman .sm-fill { fill: var(--black); stroke: none; }
.stickman .sm-brow { stroke-width: 9; }

/* ---------- What slows you down? ---------- */
.slows { padding-block: clamp(90px, 13vw, 180px); }
.slows-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 110px); align-items: start; }
.slows-head { position: sticky; top: calc(var(--nav-h) + 8vh); display: grid; gap: 28px; }
.slows-title { font-size: clamp(42px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.025em; }
.pains { border-top: 1px solid var(--line); }
.pains li { border-bottom: 1px solid var(--line); }
.pain { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(26px, 3vw, 40px) 0; }
.pain-t { position: relative; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; font-weight: 400; letter-spacing: -.01em; color: var(--quiet); transition: color .5s var(--ease), transform .6s var(--ease); max-width: 19em; }
/* la riga accesa: la penna la sottolinea (un cerchio tagliava le righe su due linee) */
.pain .pen-under { position: absolute; left: -6px; bottom: -14px; width: calc(100% + 12px); height: 16px; overflow: visible; pointer-events: none; }
.pain .pen-under.is-fit path { stroke-width: 3; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.pain .pen-under:not(.is-fit) { opacity: 0; transition: opacity .4s; }
.pain.is-on .pen-under, .pain:hover .pen-under { opacity: 1; }
.pain-note { margin-left: 4px; font-family: var(--hand); font-weight: 600; font-size: clamp(22px, 1.8vw, 28px); color: var(--blue); white-space: nowrap;
  padding-right: .15em; clip-path: inset(-30% 100% -30% -6%); transition: clip-path .8s var(--ease) .15s; }
.pain-note::before { content: "→ we’d look at "; }
.pain.is-on .pain-t, .pain:hover .pain-t, .pain:focus-visible .pain-t { color: var(--navy); transform: translateX(6px); }
.pain.is-on .pen-under path, .pain:hover .pen-under path, .pain:focus-visible .pen-under path { stroke-dashoffset: 0; }
.pain.is-on .pain-note, .pain:hover .pain-note, .pain:focus-visible .pain-note { clip-path: inset(-30% -10% -30% -6%); }
.slows-else { grid-column: 2; font-size: 18px; color: var(--soft); }
html:not(.js) .pain-note, .is-static .pain-note { clip-path: none; }

/* ---------- la conversazione ---------- */
.demo { padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 110px); background: linear-gradient(180deg, var(--paper), var(--mist) 46%, var(--paper)); }
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 70px); }
.demo-head .lead { justify-self: end; }
/* la finestra resta 16:9 come uno screenshot; solo la console, quando e' stretta (telefono), mostra la sola
   conversazione in verticale: l'altezza la decide il contenuto (container query sulla larghezza della scena) */
.demo-stage { perspective: 1800px; container-type: inline-size; }
.demo-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-paper); transform-origin: 50% 0%; will-change: transform; }
.demo-frame > .mock { border-radius: 18px; }
@container (max-width: 560px) { .demo-frame:has(.mock--console) { aspect-ratio: auto; height: auto; } .demo-frame:has(.mock--console) .mk-msgs { padding-bottom: 1.4em; } }
.demo-note { margin-top: 14px; text-align: right; font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--soft); }

/* ---------- cosa costruiamo: un indice ---------- */
.services { padding-block: clamp(90px, 12vw, 170px); }
.svc-list { counter-reset: svc; }
.svc { position: relative; }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--ln, 1)); }
.svc:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.svc a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 52px; grid-template-areas: "name sub go" "desc desc go";
  column-gap: 32px; align-items: center; padding: 30px 8px;
}
.svc a::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 16px; background: var(--mist); opacity: 0; transform: scaleX(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.svc-name { grid-area: name; font-family: var(--display); font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -.01em; color: var(--navy); transition: transform .6s var(--ease); }
.svc-sub { grid-area: sub; font-size: 15.5px; color: var(--soft); }
.svc-desc { grid-area: desc; display: block; max-width: 44em; color: var(--ink); font-size: 16.5px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, margin .6s var(--ease); }
.svc-go { grid-area: go; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .4s, box-shadow .4s, transform .6s var(--ease); }
.svc-go svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.svc a:hover::before, .svc a:focus-visible::before { opacity: 1; transform: none; }
.svc a:hover .svc-name, .svc a:focus-visible .svc-name { transform: translateX(10px); }
.svc a:hover .svc-desc, .svc a:focus-visible .svc-desc { max-height: 6em; opacity: 1; margin-top: 14px; }
.svc a:hover .svc-go, .svc a:focus-visible .svc-go { background: var(--blue); box-shadow: none; transform: rotate(-45deg); }
.svc a:hover .svc-go svg, .svc a:focus-visible .svc-go svg { stroke: #fff; }

/* ---------- come lavoriamo ---------- */
.method { padding-block: clamp(90px, 12vw, 170px); background: var(--mist); }
.steps { position: relative; }
.steps-line { position: absolute; left: 4%; right: 4%; top: 66px; width: 92%; height: 60px; overflow: visible; z-index: 0; }
.steps-line path { stroke-width: 2.4; opacity: .55; }
.steps-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.step { display: grid; align-content: start; gap: 12px; }
.doodle { width: 140px; height: 105px; overflow: visible; margin-bottom: 18px; background: var(--mist); border-radius: 50%; }
.d-ink, .d-pen { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.d-ink { stroke: var(--navy); stroke-width: 2.6; }
.d-ink.thin { stroke-width: 1.8; }
.d-pen { stroke: var(--blue); stroke-width: 2.8; }
.d-pen.dashed { stroke-dasharray: none; }
.d-paper { fill: var(--paper); }
.step-n { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1; color: var(--blue); }
.step-t { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.01em; }
.step p { color: var(--soft); max-width: 24em; }

/* ---------- l'AI in casa ---------- */
.private { padding-block: clamp(90px, 12vw, 170px); }
.private-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.private-art { position: relative; }
.house { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.house .led { fill: var(--line-2); }
.house .led.on { fill: var(--blue); }
.private-note { position: absolute; right: 2%; bottom: 2%; font-size: clamp(24px, 2.2vw, 32px); transform: rotate(-4deg); white-space: nowrap; }
.private-copy { display: grid; gap: 26px; }
.private-points { display: grid; gap: 14px; margin-top: 6px; }
.private-points li { position: relative; padding-left: 38px; font-size: 17px; color: var(--ink); }
.private-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5,12.6 L9.8,17 L19.5,6.5' fill='none' stroke='%231F5FD6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }

/* ---------- contatto ---------- */
.contact { padding-block: clamp(90px, 12vw, 170px); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 28px; }
.contact-title { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.06; }
.next { display: grid; gap: 22px; counter-reset: next; margin-top: 8px; }
.next li { position: relative; padding-left: 56px; counter-increment: next; }
.next li::before { content: counter(next); position: absolute; left: 0; top: -8px; font-family: var(--hand); font-weight: 700; font-size: 42px; line-height: 1; color: var(--blue); }
.next b { display: block; font-weight: 600; color: var(--navy); }
.next span { color: var(--soft); }

.contact-form { display: grid; gap: 22px; padding: clamp(26px, 3.4vw, 44px); border-radius: 26px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; color: var(--navy); }
.field i { font-style: normal; color: var(--blue); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--mist); font-size: 16px; color: var(--navy); transition: border-color .3s, background .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px rgb(31 95 214 / .12); }
.field [aria-invalid="true"] { border-color: #C2263D; }
.field-err { font-size: 13.5px; color: #B0213A; }
.topics legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink); transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.chip span::before { content: ""; width: 0; height: 12px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'><path d='M1.5,6.5 L5,10 L12.5,2' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; transition: width .35s var(--ease); }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--sun-soft); border-color: #E7BC12; color: var(--black); }
.chip input:checked + span::before { width: 14px; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.consent a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form-status { font-size: 15px; color: var(--soft); }
.form-status.ok { color: var(--navy); }
.form-status.err { color: #B0213A; }

/* ---------- piede ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 7vw, 90px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-lock { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 58px; }
.footer-name { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); max-width: 15ch; line-height: 1.5; }
.footer-motto { font-family: var(--hand); font-weight: 600; font-size: 28px; color: var(--blue); line-height: 1.1; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col a { color: var(--ink); width: fit-content; background: var(--wave) no-repeat 0 100% / 0% 6px; padding-bottom: 4px; transition: background-size .45s var(--ease), color .3s; }
.footer-col a:hover { color: var(--navy); background-size: 100% 6px; }
.footer-h { font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.footer-bottom { margin-top: clamp(50px, 6vw, 80px); padding-block: 26px 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }

/* ---------- sotto-pagine ---------- */
.sub-hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 90px)); padding-bottom: clamp(40px, 6vw, 80px); }
.sub-hero--full { min-height: 86svh; display: grid; align-content: center; }
.sub-hero--short { padding-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--soft); margin-bottom: 30px; transition: color .3s, gap .4s var(--ease); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--navy); gap: 12px; }
.sub-kicker { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.sub-title { font-size: clamp(36px, 4.8vw, 72px); line-height: 1.06; letter-spacing: -.02em; max-width: 15ch; }
.sub-lead { margin-top: 24px; }
.sub-hero .demo-stage { margin-top: clamp(50px, 7vw, 90px); }
.blocks { padding-block: clamp(60px, 9vw, 130px); }
.blocks .demo-stage { margin-bottom: clamp(50px, 6vw, 80px); }
/* da dove partiamo: le domande della consulenza */
.ask { padding-block: clamp(60px, 8vw, 110px); background: var(--mist); }
.ask-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(40px, 6vw, 96px); align-items: start; }
.ask-list { display: grid; counter-reset: ask; }
.ask-list li { position: relative; counter-increment: ask; padding: 22px 0 22px 58px; border-top: 1px solid var(--line-2); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--navy); }
.ask-list li:last-child { border-bottom: 1px solid var(--line-2); }
.ask-list li::before { content: counter(ask); position: absolute; left: 4px; top: 14px; font-family: var(--hand); font-weight: 700; font-size: 38px; line-height: 1; color: var(--blue); }
.ask-after { grid-column: 2; }
.blk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 70px); border-top: 1px solid var(--line); }
.blk.flip .spec { order: -1; }
.blk-copy { display: grid; gap: 22px; }
.blk-list { display: grid; gap: 16px; margin-top: 6px; }
.blk-list li { position: relative; display: grid; gap: 2px; padding-left: 26px; }
.blk-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.blk-list b { font-weight: 600; color: var(--navy); }
.blk-list span { color: var(--soft); }
.spec { position: sticky; top: calc(var(--nav-h) + 30px); display: grid; border-radius: 22px; background: var(--mist); padding: 10px 28px; }
.spec div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; font-weight: 600; color: var(--soft); }
.spec dd { font-size: 15.5px; color: var(--navy); }
.related { padding-top: 40px; }
.cta { padding-block: clamp(90px, 12vw, 170px); border-top: 1px solid var(--line); }
.cta-inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.cta-title { font-size: clamp(34px, 4.6vw, 70px); max-width: 16ch; }
.prose-wrap { padding-block: 30px 120px; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 46px 0 14px; }
.prose p { margin-bottom: 14px; color: var(--ink); }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue); }
.draft-note { padding: 14px 18px; border-radius: 14px; background: var(--sun-soft); color: var(--black); font-size: 15px; }
mark.todo { background: var(--sun-soft); color: var(--black); border: 1px dashed #E7BC12; border-radius: 4px; padding: 0 6px; }

/* ---------- stati iniziali delle animazioni (solo con JavaScript e movimento) ----------
   Senza JS, o con «riduci movimento», tutto e' gia' al suo posto e disegnato. */
.js:not(.is-static) .hero-lead, .js:not(.is-static) .hero-actions, .js:not(.is-static) .todo-card, .js:not(.is-static) .hero-man { visibility: hidden; }
.js:not(.is-static) .todo-card .strike.is-fit path, .js:not(.is-static) .tick-v { stroke-dashoffset: 1; }
.js:not(.is-static) .todo-card .strike:not(.is-fit), .js:not(.is-static) .todo-card .pen-ring:not(.is-fit) { opacity: 0; }
.js:not(.is-static) .todo-card .pen-ring.is-fit path { stroke-dashoffset: 1; }
.js:not(.is-static) .todo-note { clip-path: inset(-30% 100% -30% -6%); }
.js:not(.is-static) .hero .hl { --hl: 0%; }
.js:not(.is-static) .d-ink, .js:not(.is-static) .d-pen, .js:not(.is-static) .steps-line.is-fit path { stroke-dashoffset: 1; }
.js:not(.is-static) .house .led { opacity: 0; }
.js:not(.is-static) .nna-mark .nm-body, .js:not(.is-static) .nna-mark .nm-tip, .js:not(.is-static) .brand-name, .js:not(.is-static) .footer-name { visibility: hidden; }

/* ---------- telefono e tablet ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 13ch; }
  .hero-stage { min-height: 0; padding: 30px 0 60px; justify-self: start; width: min(100%, 600px); }
  .slows-grid { grid-template-columns: 1fr; }
  .slows-head { position: static; }
  .slows-else { grid-column: 1; }
  .private-grid, .contact-grid, .blk, .ask-grid { grid-template-columns: 1fr; }
  .ask-after { grid-column: 1; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps-line { display: none; }
  .blk.flip .spec { order: 0; }
  .spec, .contact-copy { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav nav { position: fixed; inset: 0; z-index: -1; background: var(--paper); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
  .nav-links { flex-direction: column; align-items: center; gap: 26px; }
  .nav-links a { font-family: var(--display); font-size: 24px; }
  .nav-open nav { opacity: 1; visibility: visible; }
  .nav-cta { display: none; }
  .sec-head, .demo-head { grid-template-columns: 1fr; }
  .sec-head .lead, .demo-head .lead { justify-self: start; }
  .steps-list { grid-template-columns: 1fr; gap: 48px; }
  .steps-line { display: none; }
  .svc a { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "name go" "sub go" "desc desc"; row-gap: 6px; padding: 24px 0; }
  .svc-desc { max-height: none; opacity: 1; margin-top: 8px; font-size: 15.5px; }
  .svc-go { width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .todo-card { padding: 26px 22px 22px; }
  .todo-t { font-size: 24px; }
  .todo-card { padding-bottom: 24px; }
  .hero-man { width: 84px; right: 6px; bottom: 36px; }
  .pain-note { margin-left: 0; clip-path: none; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .svc-desc { max-height: none; opacity: 1; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   FINESTRE DIMOSTRATIVE (mocks.mjs) — dal sito di prima, sui colori nuovi.
   Il testo e' in cqw: la finestra si rimpicciolisce come farebbe uno
   screenshot, senza andare a capo in modo diverso.
   ============================================================ */
.mock {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  color: var(--mk-text);
  text-align: left;
}
.mk-win {
  --mk-fs: 1.15cqw;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: var(--mk-fs);
  line-height: 1.35;
  letter-spacing: 0;
}
.mk-win svg { width: 1em; height: 1em; flex-shrink: 0; }
.mk-win em { font-style: normal; }
.mk-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1em;
  height: 2.7em;
  padding: 0 1.1em;
  border-bottom: 1px solid var(--mk-line);
  background: var(--mk-panel);
}
.mk-dots { display: flex; gap: .45em; }
.mk-dots i { width: .62em; height: .62em; border-radius: 50%; background: var(--mk-line-2); }
.mk-title { font-family: var(--font-num); font-size: .8em; letter-spacing: .05em; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--font-display);
  font-size: .62em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mk-muted);
  white-space: nowrap;
}
.mk-tag i, .mk-pill i, .np-status i {
  width: .7em; height: .7em;
  border-radius: 50%;
  background: var(--coral);
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mk-body { flex: 1; min-height: 0; position: relative; }
.mk-h {
  display: flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-display);
  font-size: .68em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin-bottom: 1em;
}
.mk-count {
  font-family: var(--font-num);
  letter-spacing: 0;
  padding: .1em .55em;
  border-radius: .5em;
  background: var(--coral);
  color: var(--on-coral);
}
.mk-av {
  display: grid;
  place-items: center;
  width: 2.3em; height: 2.3em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mk-panel);
  border: 1px solid var(--mk-line);
  font-family: var(--font-num);
  font-size: .78em;
  font-weight: 500;
  color: var(--mk-muted);
}
.mk-cv { display: flex; flex-direction: column; min-width: 0; }
.mk-cv b { font-weight: 500; font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cv em { font-size: .8em; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-chips { display: flex; flex-wrap: wrap; gap: .4em; }
.mk-chips span { font-size: .74em; padding: .25em .7em; border: 1px solid var(--mk-line-2); border-radius: .5em; color: var(--mk-muted); }
.mk-btn {
  display: inline-flex;
  align-items: center;
  padding: .45em 1em;
  border-radius: .5em;
  border: 1px solid var(--mk-line-2);
  font-family: var(--font-display);
  font-size: .66em;
  letter-spacing: .04em;
  white-space: nowrap;
}
.mk-btn.solid { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.mk-row { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.mk-in, .mk-out { max-width: 74%; padding: .6em .9em; font-size: .92em; line-height: 1.4; }
.mk-in { align-self: flex-start; background: var(--mk-panel); border: 1px solid var(--mk-line); border-radius: .9em .9em .9em .25em; }
.mk-out { align-self: flex-end; background: rgb(var(--coral-rgb) / .14); border: 1px solid rgb(var(--coral-rgb) / .38); border-radius: .9em .9em .25em .9em; }
.mk-card {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .65em .9em;
  border: 1px solid rgb(var(--coral-rgb) / .45);
  border-radius: .7em;
  background: var(--mk-panel);
}
.mk-card > svg { width: 1.9em; height: 1.9em; padding: .4em; border-radius: 50%; background: var(--coral); color: var(--on-coral); stroke-width: 3; }
.mk-card span { display: flex; flex-direction: column; }
.mk-card b { font-weight: 500; font-size: .92em; }
.mk-card em { font-size: .8em; color: var(--mk-muted); }
.mk-steps { display: flex; flex-direction: column; gap: .9em; margin-bottom: 1.6em; }
.mk-steps li { display: flex; gap: .7em; align-items: flex-start; }
.mk-steps li > svg { width: 1.7em; height: 1.7em; padding: .35em; border-radius: 50%; background: rgb(var(--coral-rgb) / .16); color: var(--coral); stroke-width: 3; }
.mk-steps li.wait > svg { background: var(--mk-panel); color: var(--mk-muted); stroke-width: 2.4; border: 1px solid var(--mk-line); }
.mk-steps span { display: flex; flex-direction: column; }
.mk-steps b { font-weight: 500; font-size: .88em; }
.mk-steps em { font-size: .78em; color: var(--mk-muted); }
.mk-runlog {
  position: absolute;
  left: 4%;
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-num);
  font-size: .8em;
  color: var(--mk-muted);
}
.mk-runlog svg { color: var(--coral); stroke-width: 3; }
.mk-tg {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: .58em;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3em .6em;
  border-radius: .35em;
  border: 1px solid var(--mk-line-2);
  color: var(--mk-muted);
}
.mk-tg.hot { border-color: rgb(var(--coral-rgb) / .55); color: var(--coral); background: rgb(var(--coral-rgb) / .1); }
.mk-tg.low { opacity: .7; }
.mk-st {
  justify-self: start;
  width: max-content;
  font-family: var(--font-display);
  font-size: .56em;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em .55em;
  border-radius: .35em;
  border: 1px solid var(--mk-line-2);
  color: var(--mk-muted);
}
.mk-st.sch, .mk-st.hand { border-color: rgb(var(--coral-rgb) / .55); color: var(--coral); }
.mk-st.ok, .mk-st.you { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.mk-st.draft { border-style: dashed; }
.mk-ch { display: inline-grid; place-items: center; color: var(--mk-muted); }

/* --- console --- */
.mock--console .mk-body { display: grid; grid-template-columns: 24% minmax(0, 1fr) 25%; }
.mk-inbox, .mk-actions, .mk-mails { padding: 1.1em .9em; min-width: 0; }
.mk-inbox { border-right: 1px solid var(--mk-line); }
.mk-actions { border-left: 1px solid var(--mk-line); }
.mk-search {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .5em .65em;
  margin-bottom: .9em;
  border: 1px solid var(--mk-line);
  border-radius: .5em;
  font-size: .8em;
  color: var(--mk-muted);
}
.mk-convs { display: flex; flex-direction: column; gap: .2em; }
.mk-convs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6em;
  padding: .6em .55em;
  border-radius: .55em;
}
.mk-convs li.on { background: var(--mk-panel); box-shadow: inset 2px 0 0 var(--coral); }
.mk-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25em; }
.mk-meta time { font-family: var(--font-num); font-size: .7em; color: var(--mk-muted); }
.mk-thread { display: flex; flex-direction: column; min-width: 0; }
.mk-th { display: flex; align-items: center; gap: .7em; padding: .85em 1.2em; border-bottom: 1px solid var(--mk-line); }
.mk-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .3em .7em;
  border: 1px solid rgb(var(--coral-rgb) / .5);
  border-radius: .5em;
  font-size: .74em;
  color: var(--coral);
  white-space: nowrap;
}
/* dall'alto: a pagina appena aperta si vede solo la parte alta della
   finestra, e la conversazione deve esserci gia' */
.mk-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .7em; padding: 1.2em; overflow: hidden; }
.mk-msgs .mk-card { align-self: center; }
.mk-composer {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .75em 1.2em;
  border-top: 1px solid var(--mk-line);
  font-size: .82em;
  color: var(--mk-muted);
}
.mk-composer .mk-btn { margin-left: auto; font-size: .8em; }
.mk-typing { display: inline-flex; gap: .25em; }
.mk-typing i { width: .4em; height: .4em; border-radius: 50%; background: var(--coral); animation: typing 1.2s ease-in-out infinite; }
.mk-typing i:nth-child(2) { animation-delay: .15s; }
.mk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-.2em); } }

/* finestra stretta (telefono): resta la sola conversazione, leggibile */
@container (max-width: 560px) {
  .mock--console .mk-win { --mk-fs: 2.9cqw; }
  .mock--console .mk-body { grid-template-columns: minmax(0, 1fr); }
  .mock--console .mk-inbox, .mock--console .mk-actions { display: none; }
  .mock--console .mk-msgs { padding: .9em; gap: .55em; }
  .mock--console .mk-composer { display: none; }
}

/* --- workflow --- */
.mk-canvas {
  position: relative;
  height: 100%;
  background-image: radial-gradient(circle, var(--mk-dot) 1px, transparent 1.4px);
  background-size: 2.2em 2.2em;
}
/* .mk-win davanti: la regola delle icone (.mk-win svg, 1em) li schiaccerebbe */
.mk-win .mk-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-wires path { fill: none; stroke: var(--mk-line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mk-wires path.hot { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 6 5; animation: wireFlow 1.2s linear infinite; }
@keyframes wireFlow { to { stroke-dashoffset: -11; } }
.mk-node {
  position: absolute;
  width: 32%;
  height: 22%;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: 0 1em;
  background: var(--mk-panel);
  border: 1px solid var(--mk-line-2);
  border-radius: .8em;
}
.mk-node.trig { width: 21%; }
.mk-node.ai { width: 22%; border-color: var(--coral); }
.mk-node.on { border-color: rgb(var(--coral-rgb) / .6); }
.mk-ni { display: grid; place-items: center; width: 2.4em; height: 2.4em; flex-shrink: 0; border-radius: .55em; background: rgb(var(--ink-rgb) / .06); }
.mk-ni svg { width: 1.25em; height: 1.25em; }
.mk-node.ai .mk-ni, .mk-node.on .mk-ni { background: rgb(var(--coral-rgb) / .16); color: var(--coral); }
.mk-node > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mk-node em { font-family: var(--font-display); font-size: .6em; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-muted); }
.mk-node b { font-weight: 500; font-size: .95em; line-height: 1.25; }
.mk-node i { font-style: normal; font-size: .76em; color: var(--mk-muted); }

/* --- studio contenuti --- */
.mock--content .mk-body { display: grid; grid-template-columns: minmax(0, 1fr) 25%; }
.mk-cal { padding: 1.1em 1.2em; display: flex; flex-direction: column; min-width: 0; }
.mk-calh { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .9em; }
.mk-calh b { font-family: var(--font-display); font-weight: 400; font-size: .82em; }
.mk-week { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5em; }
.mk-day { display: flex; flex-direction: column; gap: .5em; padding: .5em; border: 1px solid var(--mk-line); border-radius: .6em; min-width: 0; }
.mk-day.today { border-color: rgb(var(--coral-rgb) / .6); }
.mk-dl { font-family: var(--font-num); font-size: .72em; color: var(--mk-muted); text-transform: uppercase; }
.mk-dl b { color: var(--mk-text); font-weight: 500; }
.mk-post { display: grid; gap: .35em; }
.mk-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: .45em;
  color: rgb(255 255 255 / .85);
}
.mk-thumb svg { width: 1.5em; height: 1.5em; }
.mk-thumb.t1 { background: linear-gradient(150deg, #26385C, #8C97AB); }
.mk-thumb.t2 { background: linear-gradient(160deg, #6E9BFF, #0B2A5B); }
.mk-thumb.t3 { background: linear-gradient(140deg, #DCE6F8, #586886); }
.mk-thumb.t4 { background: linear-gradient(160deg, #0B1F45, #45577A); }
.mk-thumb.t5 { background: linear-gradient(150deg, #FFE68A, #E9B500); }
.mk-thumb.t6 { background: linear-gradient(140deg, #8C97AB, #0B1F45); }
.mk-pm { display: flex; align-items: center; gap: .3em; font-family: var(--font-num); font-size: .7em; color: var(--mk-muted); }
.mk-preview { padding: 1.1em; border-left: 1px solid var(--mk-line); display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.mk-preview .mk-h { margin-bottom: 0; }
.mk-thumb.big { width: 100%; max-height: 52%; aspect-ratio: auto; flex: 1; min-height: 0; }
.mk-thumb.big svg { width: 2.4em; height: 2.4em; }
.mk-cap { font-size: .82em; line-height: 1.45; color: var(--mk-muted); }

/* --- posta dell'assistente --- */
.mock--inbox .mk-body { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
.mk-mails { border-right: 1px solid var(--mk-line); }
.mk-mlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7em;
  padding: .75em .6em;
  border-bottom: 1px solid var(--mk-line);
}
.mk-mlist li.on { background: var(--mk-panel); box-shadow: inset 2px 0 0 var(--coral); }
.mk-draft { padding: 1.1em 1.4em; display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.mk-draft .mk-h { margin-bottom: .6em; }
.mk-field { display: flex; gap: 1em; padding: .5em 0; border-bottom: 1px solid var(--mk-line); font-size: .9em; }
.mk-field em { width: 5em; flex-shrink: 0; color: var(--mk-muted); }
.mk-text { padding: .9em 0; font-size: .9em; line-height: 1.5; flex: 1; }
.mk-text p + p { margin-top: .6em; }
.mk-note { display: inline-flex; align-items: center; gap: .4em; font-size: .76em; color: var(--mk-muted); }
.mk-note svg { color: var(--coral); }

/* --- attivita' del giorno --- */
.mock--activity .mk-win { --mk-fs: 1.25cqw; }
.mk-log { padding: .5em 1.6em; }
.mk-log li {
  display: grid;
  grid-template-columns: 4.6em 2.4em minmax(0, 1fr) 10em 9em;
  align-items: center;
  padding: .72em 0;
  border-bottom: 1px solid var(--mk-line);
}
.mk-log time { font-family: var(--font-num); font-size: .85em; color: var(--mk-muted); font-variant-numeric: tabular-nums; }
.mk-log .mk-ch svg { width: 1.15em; height: 1.15em; }
.mk-log b { font-weight: 500; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-log li > em { font-size: .85em; color: var(--mk-muted); }

/* --- metodo: mappa, collegamenti, revisione --- */
.mock--audit .mk-win, .mock--connect .mk-win, .mock--monitor .mk-win { --mk-fs: 1.55cqw; }
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .6em;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-muted);
  padding: 1.4em 1.4em .9em;
  border-bottom: 1px solid var(--mk-line-2);
}
.mk-table td { padding: .85em 1.1em; border-bottom: 1px solid var(--mk-line); font-size: .88em; vertical-align: middle; }
.mk-table td:first-child, .mk-table th:first-child { padding-left: 1.4em; }
.mk-table td:nth-child(2) { color: var(--mk-muted); }
.mk-table .n { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.mock--connect .mk-body { display: flex; flex-direction: column; }
.mk-hub {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  padding: 1.2em 1.2em 2.6em;
}
.mk-win .mk-spokes { position: absolute; left: 1.2em; top: 1.2em; width: calc(100% - 2.4em); height: calc(100% - 3.8em); }
.mk-spokes path { fill: none; stroke: rgb(var(--coral-rgb) / .55); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: wireFlow 1.4s linear infinite; }
.mk-tool, .mk-core { position: relative; z-index: 1; }
.mk-tool {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .6em .9em;
  background: var(--mk-panel);
  border: 1px solid var(--mk-line-2);
  border-radius: .6em;
}
.mk-tool svg { width: 1.2em; height: 1.2em; color: var(--mk-muted); }
.mk-tool b { font-weight: 500; font-size: .82em; }
.mk-core {
  display: grid;
  place-content: center;
  text-align: center;
  width: 7.5em;
  height: 5.4em;
  background: var(--mk-bg);
  border: 1.5px solid var(--coral);
  border-radius: .9em;
}
.mk-core b { font-family: var(--font-display); font-weight: 400; font-size: 1.25em; color: var(--coral); }
.mk-core em { font-family: var(--font-display); font-size: .52em; letter-spacing: .3em; text-transform: uppercase; color: var(--mk-muted); }

.mock--monitor .mk-body { display: grid; grid-template-columns: 1fr 1fr; }
.mk-chart { padding: 1.3em; border-right: 1px solid var(--mk-line); display: flex; flex-direction: column; }
.mk-cols { flex: 1; display: flex; align-items: flex-end; gap: .7em; }
.mk-colb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4em; }
.mk-colb i { width: 100%; border-radius: .3em .3em 0 0; background: rgb(var(--ink-rgb) / .18); }
.mk-colb:nth-child(6) i { background: var(--coral); }
.mk-colb em { font-family: var(--font-num); font-size: .7em; color: var(--mk-muted); }
.mk-improve { padding: 1.3em; }

/* --- versione mini, sullo schermo del dispositivo che ruota --- */
.dev-screen { container-type: inline-size; }
.mini-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3.2cqw;
  padding: 5cqw;
  background: var(--mk-bg);
  color: var(--mk-text);
  font-size: 5.4cqw;
  line-height: 1.3;
  text-align: left;
}
.mini-chat .mk-in, .mini-chat .mk-out { font-size: 1em; padding: .45em .7em; max-width: 82%; }
.mini-chat .mk-card { align-self: flex-start; padding: .4em .7em; }
.mini-chat .mk-card > svg { width: 1.5em; height: 1.5em; }
.mc-h {
  margin-bottom: auto;
  display: flex;
  align-items: center;
  gap: .45em;
  font-family: var(--font-display);
  font-size: .62em;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.mc-h i { width: .7em; height: .7em; border-radius: 50%; background: var(--coral); }

