/* /render, seconda versione (1/12/2026): il prodotto si mostra mentre lavora.
   Un server in 3D da cui escono i fotogrammi di Muybridge, il terminale MCP fermo mentre i passi scorrono,
   quattro campi con lo stesso lotto più avanti ogni volta, il calcolatore volume → server, i piani con la cifra viva.
   Colori e caratteri: vedi la terza veste qui sotto. */
/* Inter, Space Grotesk e Space Mono (SIL Open Font License), ospitati qui: latin e latin-ext per il turco */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/media/render/fonts/inter-400-700-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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/media/render/fonts/inter-400-700-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: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/media/render/fonts/space-grotesk-500-700-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: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/media/render/fonts/space-grotesk-500-700-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: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/media/render/fonts/space-mono-400-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: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/media/render/fonts/space-mono-400-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: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/media/render/fonts/space-mono-700-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: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/media/render/fonts/space-mono-700-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; }

/* Terza veste (2/12/2026, Manuel: "usa lo stesso stile e colori di higgsfield.ai"): fondo grafite, un solo accento lime
   con il testo scuro sopra, titoli in Space Grotesk maiuscolo e stretto, etichette e codice in Space Mono, testo in Inter.
   Le variabili del sito si ridefiniscono solo sulle pagine che hanno .render-pagina, così testata e piede seguono. */
:root:has(.render-pagina) {
  --sfondo: #0f1113;
  --sfondo-2: #1c1e20;
  --sfondo-3: #26292c;
  --riempimento: rgba(255, 255, 255, 0.08);
  --testo: #f7f7f8;
  --testo-2: rgba(247, 247, 248, 0.6);
  --testo-3: rgba(247, 247, 248, 0.3);
  --separatore: rgba(255, 255, 255, 0.08);
  --blu: #d1fe17;
  --blu-pulsante: #d1fe17;
  --blu-premuto: #c2ee05;
  --verde: #d1fe17;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --r-lime: #d1fe17;
  --r-inchiostro: #1a1a1a;
  --r-titoli: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --r-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --raggio: 12px;
  --raggio-controllo: 10px;
}
:root:has(.render-pagina) body { background: var(--sfondo); }
:root:has(.render-pagina) .testata { background: rgba(15, 17, 19, 0.85); }
:root:has(.render-pagina) .menu { background: transparent; }
:root:has(.render-pagina) .menu a { font-weight: 500; }
:root:has(.render-pagina) .menu a[aria-current="page"] { background: transparent; color: var(--testo); }
:root:has(.render-pagina) .pulsante { background: var(--r-lime); color: var(--r-inchiostro); font-weight: 600; border-radius: 10px; }
:root:has(.render-pagina) .pulsante:hover { background: var(--blu-premuto); }
:root:has(.render-pagina) .pulsante.secondario { background: var(--riempimento); color: var(--testo); }
:root:has(.render-pagina) .lingua summary, :root:has(.render-pagina) .accedi-link { font-weight: 500; }
:root:has(.render-pagina) .lingua li a[aria-current="page"]::after { color: var(--r-lime); }
:root:has(.render-pagina) .collegamento { color: var(--testo); text-decoration: underline; text-decoration-color: var(--r-lime); text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
:root:has(.render-pagina) :focus-visible { outline-color: var(--r-lime); }
/* il banner dei cookie ha gli stili in linea (consenso.js): qui serve !important */
:root:has(.render-pagina) #consenso { background: #1c1e20 !important; border-color: rgba(255, 255, 255, 0.1) !important; border-radius: 12px !important; font-family: var(--font) !important; }
:root:has(.render-pagina) #consenso a { color: var(--r-lime) !important; }
:root:has(.render-pagina) #consenso button { border-radius: 10px !important; }
:root:has(.render-pagina) #consenso button:last-child { background: var(--r-lime) !important; border-color: var(--r-lime) !important; color: var(--r-inchiostro) !important; }

/* titoli: Space Grotesk maiuscolo, stretto */
.r-meta, .r-h2, .r-passo h3, .r-h2-campo, .r-clausola, .r-h2-diviso, .r-uscita-nome, .r-piano, .r-cifra b, .r-chiusura-frase, .r-ed-contatore b {
  font-family: var(--r-titoli); text-transform: uppercase; letter-spacing: -0.04em; font-weight: 700;
}
.r-clausola { text-transform: none; letter-spacing: -0.02em; font-weight: 600; }
.r-meta-2 { color: var(--r-lime); }
/* etichette e codice: Space Mono */
.r-calcolo-guida, .r-uscita-tipo, .r-uscita dt, .r-stato, .r-cifra span, .r-crediti, .r-ed-barra, .r-ed-righello, .r-ed-trasporto, .r-ed-lavoro em, .r-terminale-barra span { font-family: var(--r-mono); }
.r-calcolo-guida, .r-uscita-tipo, .r-uscita dt { text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }

.render-pagina {
  --r-largo: var(--larghezza);
  --r-bordo: max(var(--margine), calc((100vw - var(--r-largo)) / 2 + var(--margine)));
  --r-chiaro: #1c1e20;
  --r-inchiostro-chiaro: #f7f7f8;
  --r-grande: clamp(2.5rem, 1rem + 5.2vw, 5.5rem);
  --r-medio: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  overflow-x: clip;
}
.render-pagina section { scroll-margin-top: 72px; }
.r-h2 { font-size: var(--r-medio); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0; }

/* ---------- barra delle app e apertura (4/12/2026, sul modello di higgsfield.ai/mcp): titolo centrato con il nome
   dell'app in una pastiglia, pulsante bianco per aggiungere il connettore, "How to connect?" scuro, fondo di cifre ---------- */
.r-app { position: sticky; top: var(--altezza-testata, 52px); z-index: 20; display: flex; justify-content: center; gap: 4px; padding: 0 var(--margine); background: rgba(15, 17, 19, 0.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--separatore); overflow-x: auto; scrollbar-width: none; }
.r-app::-webkit-scrollbar { display: none; }
.r-app-voce { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 14px 12px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--testo-2); font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.r-app-voce:hover { color: var(--testo); }
.r-app-voce[aria-current="page"], .r-app-voce.r-attiva { color: var(--testo); border-bottom-color: var(--testo); }

/* i loghi: monogrammi nei colori delle app, non i marchi */
.r-logo { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; flex: none; font: 700 10px/1 var(--r-mono); font-style: normal; color: #fff; }
.r-logo::before { content: "·"; }
.r-logo-claude { background: #d97757; } .r-logo-claude::before { content: "✳"; font-size: 12px; }
.r-logo-chatgpt { background: #10a37f; } .r-logo-chatgpt::before { content: "G"; }
.r-logo-cursor { background: #f7f7f8; color: #0f1113; } .r-logo-cursor::before { content: "▲"; font-size: 8px; transform: rotate(30deg); }
.r-logo-vscode { background: #0078d4; } .r-logo-vscode::before { content: "❯"; }
.r-logo-codex { background: #f7f7f8; color: #0f1113; } .r-logo-codex::before { content: ">_"; font-size: 8px; letter-spacing: -1px; }
.r-logo-gemini { background: linear-gradient(135deg, #4285f4, #9b72cb 60%, #d96570); } .r-logo-gemini::before { content: "✦"; font-size: 11px; }
.r-logo-windsurf { background: #0b7a75; } .r-logo-windsurf::before { content: "≈"; font-size: 13px; }
.r-logo-altri { background: var(--sfondo-3); color: var(--testo-2); } .r-logo-altri::before { content: "⋯"; font-size: 12px; }

.r-apertura { position: relative; isolation: isolate; min-height: min(78vh, 760px); padding: 96px var(--margine) 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; }
.r-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Ctext x='0' y='14' font-family='monospace' font-size='11' fill='%23ffffff' fill-opacity='0.13'%3E1 / 0 . 1 / 0 /%3C/text%3E%3Ctext x='0' y='34' font-family='monospace' font-size='11' fill='%23ffffff' fill-opacity='0.07'%3E/ 1 . 0 / 1 . 1%3C/text%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%);
  animation: r-cifre 40s linear infinite; }
@keyframes r-cifre { to { background-position: 120px 40px; } }
.r-titolo { margin: 0; max-width: 1100px; }
.r-meta { display: block; font-size: clamp(2.25rem, 0.8rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.r-meta-app { display: flex; justify-content: center; align-items: center; gap: 0.28em; flex-wrap: wrap; }
.r-in:empty { display: none; }
.r-chip { display: inline-flex; align-items: center; gap: 0.22em; color: var(--r-lime); }
.r-chip .r-logo { width: 0.86em; height: 0.86em; border-radius: 0.2em; font-size: 0.42em; }
.r-chip .r-logo::before { font-size: 1em; }
.r-meta-2 { color: var(--testo); }
.r-frase { margin: 0; max-width: 56ch; font-size: var(--title-3); line-height: 1.45; color: var(--testo-2); }
.r-pannello { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.r-pannello[hidden] { display: none; }
.r-azioni { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.render-pagina .pulsante.r-bianco { background: #f7f7f8; color: #0f1113; box-shadow: 0 2px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 0 #9a9b9c; }
.render-pagina .pulsante.r-bianco:hover { background: #fff; }
.render-pagina .pulsante.secondario { background: var(--sfondo-3); color: var(--testo); }
.render-pagina .pulsante.secondario:hover { background: #33373a; }
.r-apertura-nota { margin: 4px 0 0; font-size: var(--footnote); color: var(--testo-3); }
.r-link { padding: 0; border: 0; background: none; color: var(--testo-2); font: inherit; text-decoration: underline; text-decoration-color: var(--r-lime); text-underline-offset: 3px; cursor: pointer; }
.r-link:hover { color: var(--testo); }
.r-nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* comando da copiare (Claude Code), come "Copy and send this to Claude Code" */
.r-copia { width: min(560px, 100%); text-align: left; border-radius: 14px; background: #1c1e20; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; }
.r-copia-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; font-size: 14px; font-weight: 600; }
.r-copia-bottone { padding: 6px 12px; border: 0; border-radius: 8px; background: var(--r-lime); color: var(--r-inchiostro); font: 600 13px/1 var(--font); cursor: pointer; }
.r-copia pre { margin: 0; padding: 14px 16px 16px; border-top: 1px solid var(--separatore); font: 13px/1.6 var(--r-mono); color: var(--testo-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- prompt pronti: pastiglie sopra, scheda con il testo a sinistra e l'editor animato a destra ---------- */
.r-prompt { padding: 8px var(--r-bordo) 72px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.r-prompt-schede { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #17191b; box-shadow: 0 0 0 1px var(--separatore); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.r-prompt-scheda { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--testo-2); font: 500 15px/1 var(--font); cursor: pointer; }
.r-prompt-scheda:hover { color: var(--testo); }
.r-prompt-scheda[aria-selected="true"] { background: var(--sfondo-3); color: var(--testo); }
.r-prompt-scheda em { padding: 3px 6px; border-radius: 6px; background: var(--r-lime); color: var(--r-inchiostro); font: 700 10px/1 var(--r-mono); font-style: normal; text-transform: uppercase; }
.r-prompt-carta { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 36px; border-radius: 20px; background: #131517; box-shadow: 0 0 0 1px var(--separatore); }
.r-prompt-testi { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.r-prompt-pannello h3 { margin: 0 0 14px; font: 700 var(--r-medio)/1.05 var(--r-titoli); letter-spacing: -0.03em; }
.r-prompt-frase { margin: 0; font-size: var(--title-3); line-height: 1.5; color: var(--testo-2); }
.r-prompt-azioni { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.r-prompt-azioni [hidden] { display: none; }
.r-scena { width: 100%; perspective: 2200px; position: relative; z-index: 1; }
.r-palco { transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg)); transform-origin: 50% 40%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- finestre "How to connect?" ---------- */
.r-dialogo { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 8px; border: 0; border-radius: 22px; background: #161819; color: var(--testo); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px rgba(0, 0, 0, 0.6); }
.r-dialogo::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.r-dialogo[open] { display: flex; flex-direction: column; gap: 8px; animation: r-dialogo 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes r-dialogo { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.r-dialogo-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 4px 16px; }
.r-dialogo-testa h2 { margin: 0; font-size: var(--title-3); font-weight: 700; letter-spacing: -0.01em; }
.r-chiudi { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--sfondo-3); color: var(--testo); font-size: 20px; line-height: 1; cursor: pointer; }
.r-chiudi:hover { background: #33373a; }
.r-passi-n { list-style: none; counter-reset: passo; margin: 0; padding: 20px 20px 8px; border-radius: 16px; background: #1e2022; display: flex; flex-direction: column; gap: 22px; }
.r-passi-n[hidden] { display: none; }
.r-passi-n li { counter-increment: passo; position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 4px; }
.r-passi-n li::before { content: counter(passo); position: absolute; left: 0; top: 1px; color: var(--testo-3); font: 600 15px/1.3 var(--font); }
.r-passi-n b { font-size: 16px; font-weight: 600; }
.r-passi-n span { color: var(--testo-2); font-size: 14px; line-height: 1.5; }
.r-url { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 12px 12px 16px; border-radius: 12px; background: #151718; box-shadow: 0 0 0 1px var(--separatore); }
.r-url code { font: 13px/1.5 var(--r-mono); color: var(--testo); overflow-wrap: anywhere; }
.r-url button { flex: none; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--sfondo-3); color: var(--testo); font: 500 13px/1 var(--font); cursor: pointer; }
.r-url button:hover { background: #33373a; }
.r-url button.r-copiato, .r-copia-bottone.r-copiato { background: var(--r-lime); color: var(--r-inchiostro); }
.r-dialogo > .pulsante { align-self: flex-start; margin: 8px 20px 16px 50px; }
.r-altri-schede { display: flex; gap: 4px; flex-wrap: wrap; }
.r-altri-schede button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--testo-2); font: 500 14px/1 var(--font); cursor: pointer; }
.r-altri-schede button:hover { color: var(--testo); }
.r-altri-schede button[aria-selected="true"] { background: #f7f7f8; color: #0f1113; }
.r-dialogo-largo .r-dialogo-testa { padding-left: 6px; align-items: flex-start; }

/* l'editor: disegnato a 1200 × 680 e scalato sulla larghezza disponibile (render.js mette --scala) */
.r-editor { position: relative; width: 100%; aspect-ratio: 1200 / 680; border-radius: 12px; background: #131517; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px -40px rgba(209, 254, 23, 0.18); }
.r-editor-riserva { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.r-ed { position: absolute; left: 0; top: 0; width: 1200px; height: 680px; transform: scale(var(--scala, 1)); transform-origin: 0 0; display: grid; grid-template-rows: 36px 1fr 250px; font: 500 13px/1.3 var(--font); color: #d4d5d6; }
.r-ed-barra { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #1c1e20; color: #898a8b; }
.r-ed-barra i { width: 11px; height: 11px; border-radius: 50%; background: #ff453a; }
.r-ed-barra i:nth-child(2) { background: #ffd60a; }
.r-ed-barra i:nth-child(3) { background: #30d158; margin-right: 8px; }
.r-ed-barra b { color: #f2f2f7; font-weight: 600; }
.r-ed-barra .r-ed-dx { margin-left: auto; }
.r-ed-centro { display: grid; grid-template-columns: 250px 1fr 280px; gap: 2px; background: #0f1113; min-height: 0; }
.r-ed-pannello { background: #17191b; padding: 12px; min-height: 0; overflow: hidden; }
.r-ed-pannello h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #f2f2f7; }
.r-ed-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-ed-media figure { margin: 0; }
.r-ed-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; filter: grayscale(1); }
.r-ed-media figcaption { margin-top: 3px; font-size: 13px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ed-media figure.attivo img { outline: 2px solid #d1fe17; outline-offset: 1px; }
.r-ed-schermo { background: #0f1113; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.r-ed-schermo img { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 2px; }
.r-ed-trasporto { display: flex; align-items: center; gap: 18px; color: #f2f2f7; font-variant-numeric: tabular-nums; }
.r-ed-trasporto span { color: #8e8e93; }
.r-ed-play { width: 0; height: 0; border-left: 11px solid #d1fe17; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.r-ed-coda { display: flex; flex-direction: column; gap: 8px; }
.r-ed-lavoro { background: #23262a; border-radius: 6px; padding: 9px 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.r-ed-lavoro b { font-weight: 600; color: #f2f2f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ed-lavoro em { font-style: normal; color: #8e8e93; font-variant-numeric: tabular-nums; }
.r-ed-lavoro .r-ed-prog { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #383e46; overflow: hidden; }
.r-ed-lavoro .r-ed-prog i { display: block; height: 100%; width: 100%; background: #a855f7; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.r-ed-lavoro.fatto .r-ed-prog i { background: #d1fe17; }
.r-ed-lavoro.fatto em { color: #d1fe17; }
.r-ed-contatore { margin-top: 4px; color: #8e8e93; font-variant-numeric: tabular-nums; }
.r-ed-contatore b { color: #f2f2f7; font-size: 22px; font-weight: 700; display: block; letter-spacing: -0.02em; }
.r-ed-linea { position: relative; background: #17191b; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 26px repeat(4, 1fr); row-gap: 3px; padding-bottom: 8px; }
.r-ed-righello { grid-column: 2; position: relative; color: #8e8e93; font-variant-numeric: tabular-nums; }
.r-ed-righello span { position: absolute; top: 6px; }
.r-ed-nome { grid-column: 1; display: grid; place-items: center; color: #8e8e93; font-weight: 600; background: #1c1e20; }
.r-ed-traccia { grid-column: 2; position: relative; }
.r-ed-clip { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; overflow: hidden; display: flex; background: #a855f7; }
.r-ed-clip.titolo { background: #d1fe17; }
.r-ed-clip.viola { background: #e84393; }
.r-ed-clip.arancio { background: #ffd700; }
.r-ed-clip.foto { background-color: #383e46; background-size: auto 100%; background-repeat: repeat-x; }
.r-ed-clip.foto::after { content: ""; position: absolute; inset: 0; background: rgba(168, 85, 247, 0.25); }
.r-ed-clip.audio { background: #2a300f; }
.r-ed-clip svg { width: 100%; height: 100%; display: block; }
.r-ed-testina { position: absolute; top: 0; bottom: 0; left: calc(44px + var(--x, 0.3) * (100% - 44px)); width: 2px; background: #f7f7f8; z-index: 2; pointer-events: none; }
.r-ed-testina::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid #f7f7f8; }
.r-ed-clip.entra-clip { animation: r-clip 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: var(--d, 0s); }
@keyframes r-clip { from { transform: translateY(14px); opacity: 0; } }

/* ---------- striscia: i dodici fotogrammi scorrono come una pellicola ---------- */
.r-striscia { margin-top: 24px; overflow: hidden; background: #0b0c0e; padding: 16px 0; }
.r-striscia-nastro { display: flex; gap: 12px; width: max-content; animation: r-scorre 40s linear infinite; }
.r-striscia img { width: 240px; max-width: none; height: auto; border-radius: 8px; display: block; }
.r-striscia:hover .r-striscia-nastro { animation-play-state: paused; }
@keyframes r-scorre { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- storia: il terminale resta fermo, i passi scorrono ---------- */
.r-storia { display: grid; grid-template-columns: 5fr 7fr; gap: 0 64px; padding: var(--stacco) var(--r-bordo) 0; align-items: start; }
.r-storia-testi { padding-bottom: 30vh; }
.r-passo { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.4s ease; }
.r-passo.attivo { opacity: 1; }
.r-passo h3 { font-size: var(--r-medio); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.r-passo p { margin: 0; font-size: var(--title-3); line-height: 1.5; max-width: 34ch; }
.r-storia-fermo { position: sticky; top: calc(50vh - 190px); padding-top: 18vh; }
.r-terminale { background: #0b0c0e; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.r-terminale:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.r-terminale-barra { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--sfondo-3); }
.r-terminale-barra i { width: 12px; height: 12px; border-radius: 50%; background: #ff453a; }
.r-terminale-barra i:nth-child(2) { background: #ffd60a; }
.r-terminale-barra i:nth-child(3) { background: var(--verde); }
.r-terminale-barra span { margin-left: 8px; font-size: var(--footnote); color: var(--testo-2); }
.r-terminale { display: grid; }
.r-schermata { grid-area: 2 / 1; margin: 0; padding: 22px 24px 28px; min-height: 300px; overflow-x: auto; font: 400 clamp(13px, 1vw, 14px) / 1.7 var(--r-mono); color: #e5e6e7; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; } /* taste-skill-ignore: codice vero nel terminale */
.r-schermata.attiva { opacity: 1; transform: none; }
.r-pr, .r-ok { color: var(--verde); }
.r-tool { color: #c39bfa; }
.r-cursore { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: #d1fe17; animation: r-lampeggia 1s steps(1) infinite; }
@keyframes r-lampeggia { 50% { opacity: 0; } }

/* ---------- quattro campi, lo stesso lotto più avanti ogni volta ---------- */
.r-campi { margin-top: var(--stacco); display: grid; grid-template-columns: repeat(4, 1fr); min-height: 84svh; }
.r-campo { position: relative; padding: 32px 28px; display: flex; flex-direction: column; }
.r-campo:nth-child(1) { background: #0b0c0e; }
.r-campo:nth-child(2) { background: #16181a; }
.r-campo:nth-child(3) { background: #1c1e20; }
.r-campo:nth-child(4) { background: var(--r-lime); color: var(--r-inchiostro); }
.r-h2-campo { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.r-carta { margin: auto 0; width: min(100%, 260px); align-self: center; background: #23262a; color: #f7f7f8; border-radius: 12px; padding: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 6px; font-size: 14px; transition: transform 0.15s ease; }
.r-campo:hover .r-carta { transform: translateY(-6px); }
.r-carta b { font-size: 15px; }
.r-carta span { color: rgba(247, 247, 248, 0.6); }
.r-campo:nth-child(4) .r-carta { background: #0f1113; }
.r-carta img { width: 100%; height: auto; border-radius: 4px; }
.r-stato { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #f7f7f8 !important; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.r-fatto { background: var(--r-lime); color: var(--r-inchiostro) !important; }
.r-barra { height: 6px; border-radius: 3px; background: #383e46; overflow: hidden; }
.r-barra i { display: block; height: 100%; width: 64%; background: var(--r-lime); transform-origin: left; }
.r-clausola { margin: 0; font-size: clamp(1.25rem, 0.8rem + 1.1vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }

/* ---------- calcolatore: volume a sinistra, server a destra ---------- */
.r-calcolo { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.r-calcolo-scuro, .r-calcolo-chiaro { position: relative; padding: 18svh var(--margine) 120px; }
.r-calcolo-scuro { background: #0b0c0e; padding-left: var(--r-bordo); }
.r-calcolo-chiaro { background: var(--r-chiaro); color: var(--r-inchiostro-chiaro); padding-right: var(--r-bordo); display: flex; justify-content: center; }
.r-calcolo-guida { margin: 0 0 24px; font-size: var(--title-3); color: var(--testo-2); }
.r-ingresso { display: flex; flex-direction: column; gap: 18px; font-size: clamp(1.25rem, 0.9rem + 1vw, 1.5rem); }
.r-ingresso label { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.r-ingresso code { font: inherit; font-family: var(--r-mono); color: var(--testo-2); }
.r-ingresso input, .r-ingresso select { font: inherit; font-family: var(--r-mono); color: var(--r-lime); background: var(--sfondo-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 4px 10px; width: 6.5em; } /* taste-skill-ignore: campi di codice del calcolatore */
.r-ingresso select { width: auto; }
.r-ingresso input:focus-visible, .r-ingresso select:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }
.r-h2-diviso { position: absolute; bottom: 32px; margin: 0; font-size: clamp(2.5rem, 1rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.r-h2-sinistra { left: var(--r-bordo); }
.r-h2-destra { right: var(--r-bordo); color: var(--r-lime); }
.r-uscita { width: min(100%, 480px); background: #0f1113; color: #f7f7f8; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-self: flex-start; transform: perspective(1400px) rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: transform 0.3s ease; }
.r-uscita-tipo { color: rgba(247, 247, 248, 0.5); }
.r-uscita-nome { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.r-uscita-nome.cambia { animation: r-cambia 0.35s ease; }
@keyframes r-cambia { from { opacity: 0; transform: translateY(8px); } }
.r-uscita-dati { color: rgba(247, 247, 248, 0.6); font-size: var(--callout); }
.r-uscita dl { margin: 14px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r-uscita dl div { background: #1c1e20; border-radius: 10px; padding: 12px; }
.r-uscita dt { hyphens: auto; overflow-wrap: anywhere; line-height: 1.3; color: rgba(247, 247, 248, 0.5); }
.r-uscita dd { margin: 4px 0 0; font-size: var(--title-3); font-weight: 700; color: var(--r-lime); font-family: var(--r-titoli); }
.r-uscita .pulsante { align-self: flex-start; margin-top: 6px; }
.r-uscita-nota { font-size: 13px; color: rgba(247, 247, 248, 0.5); line-height: 1.45; }

/* ---------- piani: i nomi sono il titolo, la cifra resta ferma ---------- */
.r-piani { padding: var(--stacco) var(--r-bordo); display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: start; }
.r-piani-nomi { display: flex; flex-direction: column; align-items: flex-start; }
.r-piano { all: unset; font-family: var(--r-titoli); text-transform: uppercase; cursor: pointer; position: relative; font-size: clamp(2.25rem, 0.8rem + 3.6vw, 4.5rem); line-height: 1.12; letter-spacing: -0.04em; font-weight: 700; color: var(--testo-3); transition: color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.r-piano:hover { color: var(--testo-2); transform: translateX(8px); }
.r-piano[aria-pressed="true"] { color: var(--testo); padding-left: 0.5em; }
.r-piano[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.28em; height: 0.28em; margin-top: -0.14em; border-radius: 50%; background: var(--blu); }
.r-piano:focus-visible { outline: 2px solid var(--blu); outline-offset: 4px; border-radius: 6px; }
.r-piani-palco { position: sticky; top: 120px; }
.r-piano-scheda { animation: r-cambia 0.2s ease; }
.r-cifra { margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.r-cifra b { font-size: clamp(3.5rem, 1rem + 6vw, 7.5rem); line-height: 0.9; letter-spacing: -0.05em; }
.r-cifra span { font-size: var(--title-3); color: var(--testo-2); }
.r-piano-scheda p:not(.r-cifra) { font-size: var(--title-3); line-height: 1.5; margin: 0 0 24px; max-width: 34ch; }
.r-piani-nota { margin: 32px 0 0; font-size: var(--callout); color: var(--testo-2); max-width: 40ch; }

/* ---------- il film: Muybridge in movimento ---------- */
.r-film { padding: 0 var(--r-bordo) var(--stacco); display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; }
.r-film-quadro { margin: 0; }
.r-film-quadro video { display: block; width: 100%; height: auto; border-radius: 12px; filter: grayscale(1) contrast(1.05); }
.r-film-testo p { font-size: var(--title-3); line-height: 1.5; margin: 20px 0 0; }

/* ---------- domande: titolo fermo, riquadri pieni ---------- */
.r-domande { padding: 0 var(--r-bordo) var(--stacco); display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.r-domande-titolo { position: sticky; top: 96px; }
.r-domande-elenco { display: flex; flex-direction: column; gap: 8px; }
.r-domande-elenco details { background: var(--sfondo-2); border-radius: var(--raggio-controllo); transition: background 0.25s ease; }
.r-domande-elenco details { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.r-domande-elenco details[open] { background: #23262a; }
.r-domande-elenco details[open] summary::before, .r-domande-elenco details[open] summary::after { background: var(--r-lime); }
.r-domande-elenco summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative; font-size: var(--title-3); font-weight: 600; line-height: 1.3; }
.r-domande-elenco summary::-webkit-details-marker { display: none; }
.r-domande-elenco summary::before, .r-domande-elenco summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease; }
.r-domande-elenco summary::after { transform: rotate(90deg); }
.r-domande-elenco details[open] summary::after { transform: rotate(0deg); }
.r-domande-elenco summary:focus-visible { outline: 2px solid var(--r-lime); outline-offset: -4px; border-radius: var(--raggio-controllo); }
.r-domande-elenco details p { margin: 0; padding: 0 24px 24px; font-size: var(--body); line-height: 1.55; max-width: 60ch; }

/* ---------- chiusura: la frase con lo spazio vuoto ---------- */
.r-chiusura { padding: 0 var(--r-bordo) 0; display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; }
.r-chiusura-foglio { margin: 0; }
.r-chiusura-foglio img { display: block; width: 100%; height: auto; border-radius: 12px; filter: grayscale(1); }
.r-chiusura-vai { margin-top: 32px; }
.r-chiusura-frase { margin: 0; font-size: clamp(2.25rem, 0.8rem + 3.6vw, 4.5rem); line-height: 1.12; letter-spacing: -0.04em; font-weight: 700; }
.r-chiusura-frase input { font: inherit; letter-spacing: inherit; color: var(--r-inchiostro); background: var(--r-lime); border: 0; border-radius: 0.14em; width: 3em; height: 1.08em; padding: 0 0.15em; vertical-align: baseline; -moz-appearance: textfield; }
.r-chiusura-frase input::-webkit-outer-spin-button, .r-chiusura-frase input::-webkit-inner-spin-button { -webkit-appearance: none; }
.r-chiusura-frase input:focus-visible { outline: 3px solid #f7f7f8; outline-offset: 2px; }
.r-chiusura-nota { margin: 24px 0 0; font-size: var(--callout); color: var(--testo-2); }
.r-crediti { margin: 12px 0 0; font-size: var(--footnote); color: var(--testo-2); }

/* l'editor stretto, sotto i 640 pixel di larghezza: 480 × 700, poi scalato */
.r-ed.stretto { width: 480px; height: 700px; grid-template-rows: 34px 1fr 180px; font-size: 15px; }
.r-ed.stretto .r-ed-barra .r-ed-dx { display: none; }
.r-ed.stretto .r-ed-centro { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.r-ed.stretto .r-ed-centro > .r-ed-pannello:first-child { display: none; }
.r-ed.stretto .r-ed-schermo { padding: 10px; gap: 8px; }
.r-ed.stretto .r-ed-schermo img { max-width: none; aspect-ratio: auto; height: 250px; object-fit: cover; }
.r-ed.stretto .r-ed-pannello { padding: 10px 12px; }
.r-ed.stretto .r-ed-pannello h4 { display: none; }
.r-ed.stretto .r-ed-centro > .r-ed-pannello:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.r-ed.stretto .r-ed-coda { display: contents; }
.r-ed.stretto .r-ed-lavoro:nth-child(n + 4) { display: none; }
.r-ed.stretto .r-ed-lavoro { padding: 7px 9px; }
.r-ed.stretto .r-ed-contatore { margin-top: 0; display: flex; align-items: baseline; gap: 8px; align-self: center; padding: 7px 9px; }
.r-ed.stretto .r-ed-contatore b { font-size: 20px; }
.r-ed.stretto .r-ed-linea { grid-template-rows: 24px repeat(3, 1fr); }
.r-ed.stretto .r-ed-linea > :nth-child(2), .r-ed.stretto .r-ed-linea > :nth-child(3) { display: none; }

/* ---------- telefono ---------- */
@media (max-width: 820px) {
  .r-apertura { min-height: 0; padding: 56px 20px 40px; gap: 22px; }
  .r-meta { font-size: 9.5vw; }
  .r-app { justify-content: flex-start; }
  .r-prompt { padding: 0 20px 48px; }
  .r-prompt-carta { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .r-palco { --rx: 4deg; --ry: 0deg; }
  .r-frase { font-size: var(--callout); }
  .r-dialogo > .pulsante { margin-left: 20px; }
  .r-storia { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  /* titolo, poi il terminale, poi i tre passi */
  .r-storia-testi { display: contents; }
  .r-storia-testi > .r-h2 { order: 0; }
  .r-storia-fermo { position: static; order: 1; padding-top: 24px; }
  .r-passo { order: 2; min-height: 0; padding: 24px 0 0; opacity: 1; }
  .r-storia-testi .r-passo:last-child { padding-bottom: 8px; }
  .r-schermata { min-height: 250px; font-size: 13px; line-height: 1.6; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .r-terminale, .r-terminale:hover { transform: none; }
  .r-campi { grid-template-columns: 1fr 1fr; }
  .r-campo { min-height: 0; padding: 40px 20px 48px; }
  .r-h2-campo { order: -2; margin-bottom: 16px; }
  .r-campo .r-clausola { order: -1; margin-bottom: 24px; }
  .r-carta { align-self: stretch; width: auto; max-width: 520px; margin: 0; }
  .r-calcolo { grid-template-columns: 1fr; }
  .r-calcolo-scuro, .r-calcolo-chiaro { padding: 48px 20px; min-height: 0; display: flex; flex-direction: column; }
  .r-h2-diviso { position: static; order: -1; margin-bottom: 24px; }
  .r-h2-diviso { font-size: 11vw; }
  .r-uscita { align-self: stretch; width: 100%; }
  .r-storia-fermo { width: 100%; }
  .r-uscita dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r-calcolo { grid-template-columns: minmax(0, 1fr); }
  .r-uscita { padding: 20px; }
  .r-piani, .r-film, .r-domande { grid-template-columns: 1fr; }
  .r-piani-palco, .r-domande-titolo { position: static; }
  .r-piano { font-size: 10vw; }
  .r-chiusura-frase { font-size: 10vw; }
  .r-chiusura { grid-template-columns: 1fr; }
  .r-striscia img { width: 160px; }
  .r-azioni .pulsante.grande { flex: 1 1 auto; }
}

/* telefono stretto: una colonna dappertutto */
@media (max-width: 600px) {
  .r-campi { grid-template-columns: 1fr; }
  .r-carta { max-width: none; }
  .r-azioni { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .r-prompt-scheda { padding: 8px 12px; font-size: 14px; }
  .r-url { flex-direction: column; align-items: stretch; }
  .r-azioni .pulsante.grande { text-align: center; justify-content: center; }
  .r-azioni .collegamento { text-align: center; }
  .r-meta { font-size: 10vw; }
  .r-h2-diviso { font-size: 9vw; } /* in maiuscolo "SEU SERVIDOR" non entra a 11vw */
  .r-uscita dl { gap: 6px; }
  .r-uscita dl div { padding: 10px; }
  .r-uscita dt { font-size: 11px; letter-spacing: 0; }
  .r-uscita dd { font-size: var(--body); }
  .r-ingresso { font-size: 1.125rem; }
  .r-ingresso input { width: 5.5em; }
  .r-chiusura-frase input { width: 3.2em; }
  .r-piani { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .r-domande-elenco summary { min-height: 64px; padding: 18px 56px 18px 20px; font-size: var(--body); }
  .r-domande-elenco summary::before, .r-domande-elenco summary::after { right: 20px; }
  .r-domande-elenco details p { padding: 0 20px 20px; font-size: var(--callout); }
}

/* senza movimento: tutto fermo, tutto visibile */
@media (prefers-reduced-motion: reduce) {
  .r-palco, .r-terminale, .r-uscita, .r-carta, .r-piano { transition: none; }
  .r-cursore { animation: none; }
  .r-striscia-nastro { animation: none; }
  .r-fondo { animation: none; }
  .r-dialogo[open] { animation: none; }
  .r-ed-clip.entra-clip { animation: none; }
  .r-schermata { transition: none; }
  .r-passo { opacity: 1; }
}
