/* MMore Studio · identità propria: inchiostro, calce, lime acido. Colori SOLO da variabili --mms-*. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/hanken-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/hanken-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --mms-inchiostro: #0d100e;
  --mms-inchiostro-2: #171c18;
  --mms-calce: #eceee6;
  --mms-lime: #c8f03a;
  --mms-nebbia: #a3ab9f;
  --mms-linea: color-mix(in srgb, var(--mms-calce) 20%, transparent);
  --mms-velo: color-mix(in srgb, var(--mms-inchiostro) 86%, transparent);
  /* toni dei tre lavori (mostrati come ospiti: sono i loro colori, non i nostri) */
  --mms-food-bg: #f1e5cc;  --mms-food-ink: #2b2016;  --mms-food-acc: #b8381f;
  --mms-music-bg: #140c09; --mms-music-ink: #f4e8d8;  --mms-music-acc: #f0aa3c;
  --mms-space-bg: #04060b; --mms-space-ink: #eef1f6;  --mms-space-acc: #7fc8ff;

  --mms-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mms-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --u: 1vw;             /* unità di scala: in modalità pin segue anche l'altezza */
  --foc: var(--mms-lime);
  --gut: max(20px, env(safe-area-inset-left, 0px));
}
html.pin { --u: min(1vw, 1.45vh); }

* { box-sizing: border-box; }
html { background: var(--mms-inchiostro); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mms-inchiostro); color: var(--mms-calce); font: 400 1.0625rem/1.55 var(--mms-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--mms-serif); font-style: italic; font-weight: 400; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--foc); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salta { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--mms-lime); color: var(--mms-inchiostro); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.salta:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- testata e controlli ---------- */
.testata { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top, 0px)) var(--gut) 0; pointer-events: none; }
.testata > * { pointer-events: auto; }
.marchio, .menu { background: var(--mms-velo); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--mms-linea); border-radius: 999px; color: var(--mms-calce); }
.marchio { padding: 0.5rem 1rem 0.55rem; font: 400 1.35rem/1 var(--mms-serif); text-decoration: none; letter-spacing: -0.01em; }
.marchio em { color: var(--mms-lime); }
.menu { display: flex; gap: 0.15rem; padding: 0.25rem; }
.menu a { padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.menu a:hover { background: color-mix(in srgb, var(--mms-calce) 12%, transparent); }
.menu .menu-azione { background: var(--mms-lime); color: var(--mms-inchiostro); font-weight: 600; }
.menu .menu-azione:hover { background: var(--mms-calce); }
.avanzamento { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.avanzamento span { display: block; height: 100%; width: 100%; background: var(--mms-lime); transform: scaleX(0); transform-origin: 0 50%; }

.comandi { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 4px; background: var(--mms-velo); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--mms-linea); border-radius: 999px; padding: 4px; }
.comando { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--mms-calce); font: 500 1.25rem/1 var(--mms-sans); cursor: pointer; }
.comando:hover:not(:disabled) { background: color-mix(in srgb, var(--mms-calce) 14%, transparent); }
.comando:disabled { opacity: 0.35; cursor: default; }
.comandi-stato { min-width: 8.5rem; text-align: center; font-size: 0.85rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comandi-nome { display: block; color: var(--mms-nebbia); font-size: 0.74rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; max-width: 9.5rem; margin-inline: auto; }

/* ---------- rail nativo: scorrimento orizzontale a sezioni con snap (telefono, tablet, movimento ridotto) ---------- */
.rail { position: fixed; inset: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.rail::-webkit-scrollbar { display: none; }
.pista { display: flex; height: 100%; }
.pannello { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-align: start; scroll-snap-stop: always; padding: 76px var(--gut) 92px; background: var(--mms-inchiostro); color: var(--mms-calce); }
.pannello > * { max-width: 40rem; }

.occhiello { font: 600 0.78rem/1.2 var(--mms-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mms-lime); }
.titolo-sezione { font: 400 clamp(2.6rem, 13vw, 4.5rem)/0.95 var(--mms-serif); letter-spacing: -0.02em; margin: 0.6rem 0 1rem; }
.titolo-sezione em { color: var(--mms-lime); }
.titolo-sezione.grande { font-size: clamp(3.2rem, 17vw, 6rem); }
.rivela { overflow: hidden; padding: 0 0.12em 0.12em 0; }
.rivela > span { display: inline-block; }
.bottone { display: inline-block; background: var(--mms-lime); color: var(--mms-inchiostro); border: 0; padding: 0.95rem 1.7rem; border-radius: 999px; font: 600 1rem/1 var(--mms-sans); text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.bottone:hover { background: var(--mms-calce); }
.bottone:active { transform: scale(0.97); }
.bottone-testo { display: inline-block; padding: 0.95rem 0.4rem; font-weight: 600; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }

/* 1. apertura */
.p-apertura { display: flex; flex-direction: column; gap: 10px; padding-top: 70px; }
.p-apertura > * { max-width: none; }
.presa { order: 1; position: relative; flex: 1 1 150px; min-height: 160px; touch-action: pan-x; cursor: grab; outline-offset: -3px; border-radius: 16px; }
.presa:active { cursor: grabbing; }
.presa canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.presa-aiuto { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 0.78rem; color: var(--mms-nebbia); background: var(--mms-velo); border: 1px solid var(--mms-linea); padding: 0.3rem 0.8rem; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.titolo { order: 2; font: 400 clamp(3.2rem, 22vw, 7rem)/0.84 var(--mms-serif); letter-spacing: -0.03em; color: var(--mms-calce); }
.bande { display: block; position: relative; }
.banda { display: block; }
.banda + .banda { position: absolute; inset: 0; }
.banda:nth-child(1) { clip-path: inset(-2% 0 74.6% 0); }
.banda:nth-child(2) { clip-path: inset(24.6% 0 49.6% 0); }
.banda:nth-child(3) { clip-path: inset(49.6% 0 24.6% 0); }
.banda:nth-child(4) { clip-path: inset(74.6% 0 -2% 0); }
.riga { display: block; white-space: nowrap; }
.riga em { display: block; color: var(--mms-lime); }
.ap-testo { order: 3; }
.ap-sommario { margin: 0.5rem 0 0.7rem; font-size: 1.04rem; line-height: 1.45; max-width: 30rem; }
.ap-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.scorri { display: none; }

/* 2. servizi */
.sv-nota { color: var(--mms-nebbia); max-width: 26rem; }
.sv-elenco { margin-top: 1.5rem; display: grid; gap: 0; }
.sv-voce { border-top: 1px solid var(--mms-linea); padding: 1.1rem 0 1.3rem; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.4rem; }
.sv-num { grid-row: span 2; font: italic 400 2.2rem/1 var(--mms-serif); color: var(--mms-lime); }
.sv-voce h3 { font: 400 1.7rem/1.1 var(--mms-serif); }
.sv-voce p { margin-top: 0.4rem; color: var(--mms-nebbia); max-width: 28rem; }
.sv-prossimamente h3::after { content: "In arrivo"; margin-left: 0.7rem; vertical-align: 0.25em; font: 600 0.7rem/1 var(--mms-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mms-inchiostro); background: var(--mms-lime); padding: 0.3rem 0.55rem; border-radius: 999px; }
.sv-prossimamente p { display: none; }

/* 3. lavori */
.lv-nota { color: var(--mms-nebbia); max-width: 26rem; }
.lv-indice { margin-top: 1.6rem; }
.lv-indice a { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--mms-linea); font: 400 1.7rem/1.1 var(--mms-serif); text-decoration: none; }
.lv-indice a span { font: 600 0.8rem var(--mms-sans); color: var(--mms-lime); letter-spacing: 0.1em; }
.lv-indice a:hover { color: var(--mms-lime); }

/* 3a-c. casi studio */
.caso { background: var(--c-bg); color: var(--c-ink); --foc: var(--c-ink); }
.caso-food  { --c-bg: var(--mms-food-bg);  --c-ink: var(--mms-food-ink);  --c-acc: var(--mms-food-acc); --c-bg2: var(--mms-food-bg); }
.caso-music { --c-bg: var(--mms-music-bg); --c-ink: var(--mms-music-ink); --c-acc: var(--mms-music-acc); --foc: var(--mms-music-acc); }
.caso-space { --c-bg: var(--mms-space-bg); --c-ink: var(--mms-space-ink); --c-acc: var(--mms-space-acc); --foc: var(--mms-space-acc); }
.caso .occhiello { color: var(--c-acc); }
.caso-num { display: none; }
.caso-nome { font: 400 clamp(2.5rem, 12vw, 4.2rem)/0.95 var(--mms-serif); letter-spacing: -0.02em; margin: 0.6rem 0 0.4rem; }
.caso-sotto { font: italic 400 1.5rem/1.2 var(--mms-serif); color: var(--c-acc); margin-bottom: 0.9rem; }
.caso-testo > p:not(.occhiello):not(.caso-sotto):not(.caso-num) { max-width: 30rem; }
.caso-voci { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.3rem; }
.caso-voci li { border: 1px solid color-mix(in srgb, var(--c-ink) 40%, transparent); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.bottone-caso { display: inline-block; background: var(--c-acc); color: var(--c-bg); padding: 0.9rem 1.4rem; border-radius: 999px; font: 600 0.98rem/1.2 var(--mms-sans); text-decoration: none; transition: transform 0.2s; }
.bottone-caso:hover { transform: translateY(-2px); }
.caso-scena { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; max-width: 40rem; }
.finestra { grid-column: 1 / -1; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c-ink) 25%, transparent); background: var(--c-bg); }
.finestra-barra { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: color-mix(in srgb, var(--c-ink) 12%, var(--c-bg)); font-size: 0.72rem; color: var(--c-ink); }
.finestra-barra i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--c-ink) 40%, transparent); }
.finestra-barra span { margin-left: 8px; opacity: 0.85; }
.telefono { border-radius: 12px; overflow: hidden; border: 3px solid var(--c-ink); }
.post { border-radius: 6px; overflow: hidden; }
.caso-scena img { width: 100%; }

/* 4. metodo */
.mt-linea { display: none; }
.mt-passi { margin-top: 1.4rem; display: grid; gap: 0; }
.mt-passo { border-top: 1px solid var(--mms-linea); padding: 1.1rem 0 1.2rem; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.4rem; }
.mt-num { grid-row: span 2; font: italic 400 2.2rem/1 var(--mms-serif); color: var(--mms-lime); }
.mt-passo h3 { font: 400 1.7rem/1.1 var(--mms-serif); }
.mt-passo p { margin-top: 0.35rem; color: var(--mms-nebbia); max-width: 28rem; }

/* 5. contatti */
.p-contatti { background: var(--mms-lime); color: var(--mms-inchiostro); --foc: var(--mms-inchiostro); display: flex; flex-direction: column; gap: 1.6rem; }
.p-contatti .occhiello { color: var(--mms-inchiostro); }
.p-contatti .titolo-sezione em { color: var(--mms-inchiostro); }
.ct-nota { font-size: 1.12rem; max-width: 26rem; }
.ct-email { margin-top: 1rem; font: 400 clamp(1.7rem, 8.4vw, 3.2rem)/1.05 var(--mms-serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ct-email a { text-underline-offset: 0.12em; text-decoration-thickness: 2px; }
.ct-privacy { margin-top: 0.7rem; font-size: 0.95rem; }
.ct-piede { margin-top: 1.2rem; font-size: 0.9rem; }
.modulo { background: var(--mms-inchiostro); color: var(--mms-calce); --foc: var(--mms-lime); border-radius: 18px; padding: 1.4rem 1.2rem 1.5rem; display: grid; gap: 0.85rem; max-width: 34rem; }
.modulo h3 { font: 400 1.9rem/1 var(--mms-serif); }
.campo { display: grid; gap: 0.25rem; }
.campo label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.campo-nota { font-weight: 400; color: var(--mms-nebbia); }
.campo input, .campo select, .campo textarea { width: 100%; font: 400 1rem/1.3 var(--mms-sans); color: var(--mms-calce); background: var(--mms-inchiostro-2); border: 1px solid color-mix(in srgb, var(--mms-calce) 35%, transparent); border-radius: 8px; padding: 0.7rem 0.8rem; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mms-nebbia) 50%), linear-gradient(135deg, var(--mms-nebbia) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.campo textarea { resize: vertical; min-height: 4.5rem; }
.campo-consenso input[aria-invalid="true"] { outline: 3px solid var(--mms-lime); outline-offset: 2px; }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--mms-lime); box-shadow: 0 0 0 1px var(--mms-lime); }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo-consenso { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.campo-consenso input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--mms-lime); }
.campo-consenso label { font-weight: 400; font-size: 0.9rem; }
.invia { justify-self: start; }
.modulo-esito { min-height: 1.4rem; font-size: 0.95rem; }
.modulo-esito.ok { color: var(--mms-lime); }
.modulo-esito a { color: var(--mms-lime); }
.modulo-avviso { font-size: 0.9rem; color: var(--mms-nebbia); }

/* ---------- modalità pin: scorrimento orizzontale guidato dalla rotella ---------- */
html.pin body { overflow-x: hidden; }
html.pin .rail { position: relative; inset: auto; overflow: visible; scroll-snap-type: none; height: 100vh; }
html.pin .pista { display: flex; width: max-content; height: 100vh; will-change: transform; }
html.pin .pannello { flex: 0 0 auto; width: 100vw; height: 100vh; overflow: hidden; scroll-snap-align: none; padding: 0; position: relative; }
html.pin .pannello > * { max-width: none; }
html.pin .comandi { display: none; }
html.pin .testata { padding-inline: 2.2vw; padding-top: 2vh; }
html.pin .marchio { font-size: 1.5rem; }
html.pin .p-servizi { width: 132vw; }
html.pin .p-lavori { width: 78vw; }
html.pin .caso { width: 138vw; }
html.pin .p-metodo { width: 140vw; }
html.pin .p-contatti { width: 100vw; }
html.pin .rivela > span { will-change: transform; }

html.pin .occhiello { font-size: 0.8rem; }
html.pin .titolo-sezione { font-size: calc(var(--u) * 8.6); margin: 1.2vh 0 2vh; }
html.pin .titolo-sezione.grande { font-size: calc(var(--u) * 13); }

/* apertura */
html.pin .p-apertura { display: block; }
html.pin .titolo { position: absolute; left: 2vw; bottom: 3vh; font-size: min(16.7vw, 31vh); line-height: 0.8; }
html.pin .riga { display: block; }
html.pin .riga em { display: inline; }
html.pin .ap-testo { position: absolute; left: 3vw; top: 20vh; width: min(31rem, 34vw); }
html.pin .ap-sommario { font-size: max(0.8rem, calc(var(--u) * 1.5)); }
html.pin .presa { position: absolute; right: 7vw; top: 10vh; width: min(52vw, 64vh); height: 62vh; flex: none; }
html.pin .presa { touch-action: none; }
html.pin .scorri { display: flex; position: absolute; right: 2.4vw; bottom: 4.5vh; align-items: center; gap: 0.8rem; font: 600 0.78rem/1 var(--mms-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mms-nebbia); }
html.pin .scorri-freccia { width: 5rem; height: 2px; background: var(--mms-lime); position: relative; transform-origin: 0 50%; animation: freccia 2.4s ease-in-out infinite; }
html.pin .scorri-freccia::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--mms-lime); border-right: 2px solid var(--mms-lime); transform: rotate(45deg); }
@keyframes freccia { 0%, 100% { transform: scaleX(0.55); } 50% { transform: scaleX(1); } }

/* servizi */
html.pin .p-servizi { display: flex; align-items: flex-end; padding: 0 5vw 0 6vw; }
html.pin .sv-intro { position: absolute; left: 6vw; top: 18vh; width: 30vw; }
html.pin .sv-nota { font-size: max(0.8rem, calc(var(--u) * 1.25)); max-width: 22rem; }
html.pin .sv-elenco { margin: 0 0 12vh auto; width: 82vw; display: grid; grid-template-columns: repeat(4, 1fr); }
html.pin .sv-voce { border-top: 0; border-left: 1px solid var(--mms-linea); padding: 0 2vw 0 1.6vw; height: 50vh; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr calc(var(--u) * 5.4) calc(var(--u) * 7); align-content: end; }
html.pin .sv-num { grid-row: 1; font-size: calc(var(--u) * 11); padding-top: 2vh; line-height: 0.9; }
html.pin .sv-voce h3 { grid-row: 2; align-self: end; font-size: calc(var(--u) * 2.3); }
html.pin .sv-voce p { grid-row: 3; font-size: max(0.8rem, calc(var(--u) * 1.15)); margin-top: 1.4vh; align-self: start; }
html.pin .sv-prossimamente { opacity: 0.8; }

/* lavori: apertura */
html.pin .p-lavori { display: flex; flex-direction: column; justify-content: center; padding: 0 5vw 0 6vw; }
html.pin .lv-nota { font-size: max(0.8rem, calc(var(--u) * 1.3)); max-width: 26rem; }
html.pin .lv-indice { margin-top: 5vh; width: 32rem; max-width: 100%; }
html.pin .lv-indice a { font-size: calc(var(--u) * 2); padding: 1.4vh 0; }

/* casi */
html.pin .caso { display: block; }
html.pin .caso-testo { position: absolute; left: 5vw; top: 25vh; width: 29vw; }
html.pin .caso-num { display: block; position: absolute; left: -0.3vw; top: -13vh; font: italic 400 calc(var(--u) * 10)/1 var(--mms-serif); color: var(--c-acc); opacity: 0.3; pointer-events: none; }
html.pin .caso-nome { font-size: calc(var(--u) * 5.4); margin: 1.5vh 0 0.6vh; }
html.pin .caso-sotto { font-size: max(0.8rem, calc(var(--u) * 1.9)); margin-bottom: 1.8vh; }
html.pin .caso-testo > p:not(.occhiello):not(.caso-sotto):not(.caso-num) { font-size: max(0.8rem, calc(var(--u) * 1.18)); line-height: 1.5; }
html.pin .caso-voci { margin: 2.2vh 0 3vh; }
html.pin .caso-scena { position: absolute; left: 38vw; top: 0; width: 98vw; height: 100vh; margin: 0; display: block; max-width: none; }
html.pin .caso-scena > figure { position: absolute; }
html.pin .finestra { left: 0; top: 21vh; width: 54vw; box-shadow: 0 2.4vh 6vh color-mix(in srgb, var(--c-ink) 28%, transparent); }
html.pin .finestra-grande { width: 60vw; }
html.pin .telefono { left: 49vw; top: 41vh; width: 13.5vw; box-shadow: 0 2.4vh 6vh color-mix(in srgb, var(--c-ink) 35%, transparent); border-radius: 1.6vw; }
html.pin .caso-space .telefono { left: 55vw; }
html.pin .post { width: 15vw; box-shadow: 0 2vh 5vh color-mix(in srgb, var(--c-ink) 30%, transparent); }
html.pin .post-a { left: 66vw; top: 13vh; transform: rotate(-4deg); }
html.pin .post-b { left: 78vw; top: 45vh; transform: rotate(3deg); }

/* metodo */
html.pin .p-metodo { padding: 0; }
html.pin .mt-intro { position: absolute; left: 6vw; top: 14vh; }
html.pin .mt-linea { display: block; position: absolute; left: 6vw; width: 124vw; top: 38vh; height: 24vh; overflow: visible; }
html.pin .mt-linea path { fill: none; stroke-width: 2px; stroke-linecap: round; }
html.pin .mt-base { stroke: var(--mms-linea); }
html.pin .mt-disegno { stroke: var(--mms-lime); stroke-dasharray: 1; stroke-dashoffset: 1; }
html.pin .mt-passi { position: absolute; left: 6vw; width: 124vw; top: 38vh; height: 24vh; margin: 0; display: block; }
html.pin .mt-passo { position: absolute; width: 0; height: 0; padding: 0; border: 0; display: block; }
html.pin .mt-passo::before { content: ""; position: absolute; left: -0.55vw; top: -0.55vw; width: 1.1vw; height: 1.1vw; min-width: 12px; min-height: 12px; border-radius: 50%; background: var(--mms-lime); box-shadow: 0 0 0 6px color-mix(in srgb, var(--mms-lime) 22%, transparent); }
html.pin .mt-passo::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--off); background: linear-gradient(var(--mms-lime), transparent); opacity: 0.6; }
html.pin .mt-passo:nth-child(1) { left: 12.5%; top: 40%; --off: calc(24vh * 0.6 + 6vh); }
html.pin .mt-passo:nth-child(2) { left: 37.5%; top: 60%; --off: calc(24vh * 0.4 + 6vh); }
html.pin .mt-passo:nth-child(3) { left: 62.5%; top: 40%; --off: calc(24vh * 0.6 + 6vh); }
html.pin .mt-passo:nth-child(4) { left: 87.5%; top: 60%; --off: calc(24vh * 0.4 + 6vh); }
html.pin .mt-passo > * { position: relative; top: var(--off); left: -0.4vw; width: 21vw; }
html.pin .mt-num { font-size: calc(var(--u) * 5); line-height: 1; display: block; }
html.pin .mt-passo h3 { font-size: calc(var(--u) * 2.2); margin-top: 0.5vh; }
html.pin .mt-passo p { font-size: max(0.8rem, calc(var(--u) * 1.1)); margin-top: 1vh; }

/* contatti */
html.pin .p-contatti { display: block; }
html.pin .ct-testo { position: absolute; left: 6vw; top: 17vh; width: 50vw; }
html.pin .p-contatti .titolo-sezione.grande { font-size: calc(var(--u) * 10.5); }
html.pin .ct-nota { font-size: max(0.8rem, calc(var(--u) * 1.35)); }
html.pin .ct-email { font-size: calc(var(--u) * 4.1); margin-top: 3vh; }
html.pin .ct-privacy { font-size: max(0.8rem, calc(var(--u) * 1.05)); }
html.pin .ct-piede { position: absolute; top: 60vh; left: 0; font-size: max(0.8rem, calc(var(--u) * 1)); white-space: nowrap; }
html.pin .modulo { position: absolute; right: 5vw; top: 13vh; width: min(35vw, 36rem); padding: 2.4vh 1.6vw 2.6vh; gap: 1.5vh; }
html.pin .modulo h3 { font-size: calc(var(--u) * 2.1); }
html.pin .campo input, html.pin .campo select, html.pin .campo textarea { padding: 0.55rem 0.75rem; }
html.pin .campo textarea { min-height: 0; height: 9vh; }

/* ---------- schermi larghi in modalità nativa (tablet, movimento ridotto) ---------- */
@media (min-width: 700px) {
  html:not(.pin) .pannello { padding-inline: max(var(--gut), calc((100vw - 44rem) / 2)); }
  html:not(.pin) .titolo { font-size: clamp(5rem, 16vw, 9rem); }
}
@media (max-width: 899px) {
  .menu a:not(.menu-azione) { display: none; }
  .presa-aiuto { font-size: 0.7rem; bottom: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .comandi-nome { display: none; }
}
