/* Kreacode — home pubblica. Grafite neutra, lime del brand, Michroma per i titoli, Sora per il resto.
   Spaziature sulla griglia di 4 px. Palette e scelte da SCELTE_APPROVATE.md (proposta v20). */

:root {
	--bg: #141414;
	--surface: #202020;
	--raised: #292929;
	--text: #f2f2f2;
	--muted: #a6a6a6;
	--quiet: #8a8a8a;
	--line: #343434;
	--edge: #525252;
	--field: #767676;
	--team-bar: #a6a6a6;
	--lime: #c2f05a;
	--lime-hover: #d0fc6e;
	--lime-press: #a8d94c;
	--ink: #141414;
	--gutter: 72px;
	--section: 120px;
	--header: 104px;
	--header-compact: 72px;
	--ease: cubic-bezier(.215, .61, .355, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 36px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 Sora, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.has-modal { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: Michroma, Sora, sans-serif; font-weight: 400; text-transform: uppercase; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(34px, 3.25vw, 56px); line-height: 1.25; }
h2 { font-size: 44px; line-height: 1.18; }
p { text-wrap: pretty; }

.public-site { overflow-x: clip; }
/* Puntinatura irregolare della grafite: ripetizioni incommensurabili, nessuna griglia visibile.
   Sullo sfondo del body (non su un livello posizionato) per non spostare i livelli assoluti degli strumenti di modifica. */
.public-site { background-color: var(--bg); background-image: radial-gradient(ellipse at 13% 27%, rgba(242, 242, 242, .06) .6px, transparent .9px), radial-gradient(ellipse at 72% 14%, rgba(242, 242, 242, .06) .45px, transparent .75px), radial-gradient(ellipse at 41% 68%, rgba(242, 242, 242, .06) .5px, transparent .8px), radial-gradient(ellipse at 88% 76%, rgba(242, 242, 242, .06) .55px, transparent .85px); background-size: 17px 19px, 23px 31px, 37px 29px, 43px 47px; background-position: 0 0, 5px 11px, 13px 3px, 9px 21px; }

.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1600px; margin-inline: auto; }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }
.body-large { font-size: 20px; line-height: 1.55; }

.skip-link { position: fixed; left: 20px; top: -80px; z-index: 200; padding: 12px 20px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 600; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti e link ---------- */

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 4px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.button:active { transform: scale(.98); }
.button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button.primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.button.primary:active { background: var(--lime-press); border-color: var(--lime-press); }
.button.secondary { border-color: var(--field); color: var(--text); }
.button.secondary:hover { border-color: var(--text); }
.button.compact { min-height: 48px; padding: 12px 20px; font-size: 14px; }

.text-link { display: inline-block; padding: 4px 0; border-bottom: 1px solid var(--field); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; transition: border-color .18s var(--ease); }
.text-link:hover { border-color: var(--text); }
.text-button { padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- Intestazione ---------- */

.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 36px; height: var(--header); border-bottom: 1px solid var(--line); }
/* Logo <krea/code_>: solo bianco e grigio (krea e simboli #F2F2F2 16,5:1, code #A6A6A6 7,6:1 sulla grafite). */
.wordmark { display: block; width: fit-content; flex-shrink: 0; line-height: 0; }
.kc-logo { display: block; width: auto; height: 28px; aspect-ratio: 1031 / 139; overflow: visible; }
.kc-logo-sign, .kc-logo-krea { fill: var(--text); }
.kc-logo-code { fill: var(--muted); }
.site-nav { display: flex; gap: 24px; }
.site-nav a, .login-link { font-size: 14px; font-weight: 500; line-height: 1.65; transition: color .18s var(--ease); }
.site-nav a:hover, .login-link:hover { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 24px; }
/* Testata che ricompare risalendo (1.0.14): fissa in alto, più bassa; il margine sotto tiene lo stesso spazio nella pagina. */
.site-header.is-floating { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); height: var(--header-compact); margin-bottom: calc(var(--header) - var(--header-compact)); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
/* Su telefono "Diventa partner" sta in fondo al menu; sopra gli 800 px è nella testata. */
.nav-join { display: none; }
.menu-button { display: none; min-height: 48px; padding: 8px 0; font-size: 14px; font-weight: 500; }

/* ---------- Apertura con l'occhio ---------- */

.hero.hero-eye { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(640px, calc(100svh - var(--header)), 780px); padding: 96px 0; overflow: clip; background: var(--bg); }
.hero-copy { position: relative; z-index: 2; padding-right: 41%; pointer-events: none; }
.hero-copy a, .hero-copy button, .hero-copy [data-kcs-ed] { pointer-events: auto; }
.eyebrow { margin-bottom: 32px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.hero-description { max-width: 520px; margin-top: 32px; font-size: 18px; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }

.cyber-eye { position: absolute; z-index: 0; inset: 4% 0 4% 49%; pointer-events: none; isolation: isolate; }
.cyber-eye-aura, .cyber-eye-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.cyber-eye-aura { background: radial-gradient(rgba(194, 240, 90, .055) 0%, rgba(194, 240, 90, .02) 36%, rgba(20, 20, 20, 0) 67%); }
.cyber-eye-fallback { display: flex; align-items: center; justify-content: center; padding: 0 4%; perspective: 900px; }
.cyber-eye-object { --crt-unit: 1px; position: relative; width: 100%; aspect-ratio: 4 / 3; transform-style: preserve-3d; transform-origin: 50% 50%; transform: translate3d(-10px, 2px, -95px) rotateY(-8deg) rotateX(1.4deg) rotateZ(.2deg) scale(.96); will-change: transform, opacity; backface-visibility: hidden; }
.cyber-eye-picture, .cyber-eye-layer { position: absolute; inset: 0; transform-origin: 50% 50%; }
.cyber-eye-picture { filter: drop-shadow(0 0 3px rgba(194, 240, 90, .52)) drop-shadow(0 0 13px rgba(194, 240, 90, .133)); }
.cyber-eye-layer > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cyber-eye-upper-layer, .cyber-eye-center-layer { will-change: transform, opacity; }
.cyber-eye-lower-layer { will-change: transform; }
.cyber-eye-bar-axis { position: absolute; left: 18.3333%; top: 10%; width: 87.2414%; height: calc(var(--crt-unit) * 30); margin-top: calc(var(--crt-unit) * -15); transform-origin: 0 50%; transform: rotate(43.4518deg); }
.cyber-eye-bar-draw { position: relative; width: 100%; height: 100%; background: var(--bg); border-radius: 999px; transform-origin: 0 50%; will-change: transform; }
.cyber-eye-bar-draw::before, .cyber-eye-bar-draw::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-radius: 999px; transform: translateY(-50%); background: var(--lime); }
.cyber-eye-bar-draw::before { height: calc(var(--crt-unit) * 22); opacity: .22; }
.cyber-eye-bar-draw::after { height: calc(var(--crt-unit) * 14); box-shadow: 0 0 3px rgba(194, 240, 90, .333); }
.cyber-eye-raster-window { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transform: translateZ(0); will-change: transform; }
.cyber-eye-scanlines { position: absolute; inset: calc(var(--crt-unit) * -14) 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--crt-unit) * 4), var(--bg) calc(var(--crt-unit) * 4), var(--bg) calc(var(--crt-unit) * 7)); will-change: transform; }
.cyber-eye-tracking-band { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--crt-unit) * 38); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--crt-unit) * 2.8), rgba(20, 20, 20, .8) calc(var(--crt-unit) * 2.8), rgba(20, 20, 20, .8) calc(var(--crt-unit) * 5.5)); transform: translateY(calc(var(--crt-unit) * -70)); will-change: transform; }

.motion-button, .eye-motion-control button, .eye-intro-skip, .network-scene figcaption button, .studio-map figcaption button, .hero-motion-control button { min-height: 44px; padding: 12px 0; border-bottom: 1px solid var(--field); color: var(--muted); font-size: 14px; line-height: 1.6; transition: color .18s var(--ease), border-color .18s var(--ease); }
.eye-motion-control button:hover, .eye-intro-skip:hover, .network-scene figcaption button:hover, .studio-map figcaption button:hover, .hero-motion-control button:hover { color: var(--text); border-color: var(--text); }
.eye-motion-control { position: absolute; z-index: 3; right: var(--gutter); bottom: 24px; }
.eye-intro-skip { position: fixed; z-index: 100; right: var(--gutter); bottom: 24px; }

/* Stati dell'apertura: impostati in <head> solo alla prima visita della sessione, poi da site.js. */
html:not([data-intro="run"]):not([data-intro="playing"]):not([data-intro="docking"]) .eye-intro-skip { visibility: hidden; pointer-events: none; }
html[data-intro="run"] .eye-intro-skip { visibility: hidden; }
html:is([data-intro="run"], [data-intro="playing"], [data-intro="docking"]) .site-footer,
html:is([data-intro="run"], [data-intro="playing"], [data-intro="docking"]) main > :not(.hero-eye) { visibility: hidden; }
html:is([data-intro="run"], [data-intro="playing"]) .site-header,
html:is([data-intro="run"], [data-intro="playing"]) .hero-copy { visibility: hidden; }
html[data-intro="run"] .cyber-eye { opacity: 0; }
html:is([data-intro="run"], [data-intro="playing"], [data-intro="docking"]) .kcs-ed-layer { visibility: hidden; }
html:is([data-intro="run"], [data-intro="playing"], [data-intro="docking"]) .public-site { background-image: none; }
html:is([data-intro="run"], [data-intro="playing"], [data-intro="docking"]) .hero.hero-eye { overflow: visible; }
html:is([data-intro="playing"], [data-intro="docking"]) .cyber-eye,
html:is([data-intro="playing"], [data-intro="docking"]) :is(.site-header, .hero-copy) { will-change: transform, opacity; }

/* ---------- Servizi ---------- */

.section-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 88px; margin-bottom: 64px; }
.section-intro p { max-width: 460px; font-size: 17px; line-height: 1.65; color: var(--muted); }
/* Titolo lungo (servizi, testo di kreacode.it): occupa tutta la riga, il testo resta nella colonna di destra. */
.section-intro--wide { row-gap: 32px; }
.section-intro--wide h2 { grid-column: 1 / -1; max-width: 1200px; }
.section-intro--wide p { grid-column: 2; }

.service-rows { border-bottom: 1px solid var(--line); }
.service-row { border-top: 1px solid var(--line); }
.service-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) 80px; align-items: center; gap: 40px; padding: 36px 0; cursor: pointer; }
.service-head h3 { font-size: 28px; line-height: 1.3; }
.service-trigger { display: block; width: 100%; font: inherit; text-transform: inherit; text-align: left; color: inherit; line-height: inherit; }
.service-intro { font-size: 16px; line-height: 1.65; color: var(--muted); }
.service-action { justify-self: end; font-size: 14px; line-height: 1.65; color: var(--muted); transition: color .18s var(--ease); }
.service-head:hover .service-action, .service-open .service-action { color: var(--text); }
.service-content { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 80px; padding: 4px 0 40px; }
.service-content > p { max-width: 540px; font-size: 17px; line-height: 1.65; }
.kc-tags { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 16px; }
/* Formati come elenco di testo separato da punti (1.0.14): non sembrano pulsanti. */
.kc-tags li { font-size: 15px; line-height: 1.6; }
.kc-tags li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--quiet); }
.service-note { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Sezioni con rete animata ---------- */

.network-section { position: relative; isolation: isolate; overflow: hidden; }
.network-section::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(20, 20, 20, .74) 0%, rgba(20, 20, 20, .66) 42%, rgba(20, 20, 20, .6) 65%, rgba(20, 20, 20, .72) 100%), linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0) 24%, rgba(20, 20, 20, 0) 76%, #141414 100%); }
.network-section > .network-content { position: relative; z-index: 2; }
.network-scene { position: relative; margin: 0; }
.network-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.network-viewport { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .78; }
.network-viewport canvas, .network-viewport .network-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; }
.network-viewport canvas { opacity: 0; }
.network-fallback-layer { position: absolute; inset: 0; will-change: transform; backface-visibility: hidden; }
.network-backdrop .network-fallback { top: 50%; bottom: auto; height: auto; aspect-ratio: 560 / 320; transform: translateY(-50%); }
.network-scene[data-renderer="webgl"] .network-viewport canvas { opacity: 1; }
.network-scene[data-renderer="webgl"] .network-fallback-layer { display: none; }
.network-scene figcaption { position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; pointer-events: auto; }
.network-scene figcaption button { text-shadow: 0 1px 6px #141414; }
.network-scene figcaption button:disabled { cursor: default; }

/* ---------- Tutela del cliente ---------- */

/* Scanline lievi e ferme sulle fasce grigie: richiamo al monitor dell'occhio, sempre sotto i testi.
   Nella fascia Tutela stanno nella sfumatura sopra la rete: sotto, la sfumatura le cancellerebbe. */
.trust-section, .partner-section, .studio-map-viewport { --scanline: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, .14) 3px, rgba(0, 0, 0, .14) 4px); }
.trust-section { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.trust-section.network-section::after { background: var(--scanline), linear-gradient(90deg, rgba(32, 32, 32, .8) 0%, rgba(32, 32, 32, .7) 42%, rgba(32, 32, 32, .7) 64%, rgba(32, 32, 32, .78) 100%), linear-gradient(0deg, #202020 0%, rgba(32, 32, 32, 0) 24%, rgba(32, 32, 32, 0) 76%, #202020 100%); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 96px; }
.trust-intro { max-width: 420px; margin-top: 24px; font-size: 18px; line-height: 1.7; }
.trust-points > div { padding-bottom: 28px; }
.trust-points > div + div { padding-top: 28px; border-top: 1px solid var(--line); }
.trust-points h3 { font-size: 20px; line-height: 1.3; }
.trust-points p { max-width: 520px; margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.trust-legal { margin-top: 8px; padding: 8px 0; font-size: 14px; line-height: 1.65; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--field); transition: color .18s var(--ease); }
.trust-legal:hover { color: var(--text); }

/* ---------- Studio ---------- */

.studio-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 96px; }
.studio-visual { position: relative; padding-bottom: 36px; }
/* Mappa di Milano (1.0.10), al posto della foto: stesso riquadro 7:6, il pulsante di pausa sotto, l'attribuzione nell'angolo. */
.studio-map { position: relative; margin: 0; }
.studio-map-viewport { position: relative; isolation: isolate; aspect-ratio: 7 / 6; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.studio-map-viewport canvas, .studio-map-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.studio-map-fallback { object-fit: cover; transition: opacity .6s ease; }
.studio-map-viewport canvas { opacity: 0; transition: opacity .6s ease; }
.studio-map[data-renderer="webgl"] .studio-map-viewport canvas { opacity: 1; }
.studio-map[data-renderer="webgl"] .studio-map-fallback { opacity: 0; }
/* Scanline (1.0.12) come nelle fasce Tutela e Area partner: sopra la mappa, sotto l'attribuzione; il riquadro "Milano." resta fuori. */
.studio-map-viewport::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--scanline); pointer-events: none; }
.studio-map-credit { position: absolute; top: 12px; right: 12px; z-index: 1; margin: 0; padding: 2px 8px; background: rgba(32, 32, 32, .88); color: var(--muted); font-size: 12px; line-height: 1.5; }
.studio-map-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.studio-map-credit a:hover { color: var(--text); }
.studio-map figcaption { position: absolute; left: 0; top: 100%; }
.studio-map figcaption button:disabled { cursor: default; }
.studio-address { position: absolute; right: -24px; bottom: 8px; min-width: 208px; padding: 24px 32px; border: 1px solid var(--line); background: var(--raised); box-shadow: 8px 8px 0 var(--bg); font-size: 28px; line-height: 1.2; }
.studio-address span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; }
.studio-copy .body-large { margin-top: 28px; }
.studio-copy .muted { margin-top: 16px; font-size: 17px; line-height: 1.65; }
/* Team con i nomi oscurati: una barra piena al posto del nome, lunghezze diverse riga per riga. */
.team { margin: 40px 0 32px; }
.team-title { font-size: 20px; line-height: 1.3; }
.team-list { margin-top: 20px; border-bottom: 1px solid var(--line); }
.team-list li { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.team-name { display: block; width: 128px; height: 20px; border: 1px solid var(--team-bar); background: var(--team-bar); }
.team-list li:nth-child(3n + 2) .team-name { width: 96px; }
.team-list li:nth-child(3n) .team-name { width: 160px; }
.team-name.kc-trace-pending { background-color: transparent; }
.team-role { font-size: 16px; line-height: 1.65; }
.team-note { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--muted); }

.photo-placeholder, .photo { position: relative; overflow: hidden; border: 1px solid var(--line); background-color: var(--surface); }
.photo-placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); background-image: radial-gradient(#525252 .5px, transparent .8px); background-size: 5px 5px; }
.photo-placeholder::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--line); pointer-events: none; }
.photo-placeholder > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); text-align: center; }
.photo-placeholder span { font-size: 16px; line-height: 1.65; }
.photo-placeholder small { font-size: 14px; line-height: 1.65; color: var(--quiet); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Come lavoriamo ---------- */

.workflow-section { padding-block: var(--section); }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 56px; }
.workflow li { padding-top: 24px; border-top: 1px solid var(--line); }
.workflow h3 { font-size: 20px; line-height: 1.3; }
.workflow p { max-width: 288px; margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Area partner ---------- */

.partner-section { padding-block: var(--section); background: var(--scanline), var(--surface); border-block: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; gap: 96px; }
.partner-copy .body-large { max-width: 440px; margin-top: 24px; }
.partner-copy .muted { max-width: 440px; margin-top: 16px; font-size: 16px; line-height: 1.7; }
.partner-copy .button { margin-top: 32px; }
.product-preview { padding: 0 28px; border: 1px solid var(--edge); border-radius: 8px; background: var(--bg); box-shadow: 16px 16px 0 var(--raised); }
.product-preview-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--muted); }
.demo-label { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); font-size: 13px; line-height: 1.5; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 16px; }
.preview-heading h3 { font-size: 24px; line-height: 1.3; }
.preview-heading > span { font-size: 13px; line-height: 1.65; color: var(--muted); white-space: nowrap; }
.preview-project { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 -16px; padding: 24px 16px; border-top: 1px solid var(--line); }
.preview-project.active { border: 1px solid var(--field); border-left: 3px solid var(--lime); border-radius: 4px; background: var(--raised); padding-left: 14px; }
.preview-project.active + .preview-project { border-top-color: transparent; }
.preview-project > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preview-project strong { font-family: Michroma, Sora, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.3; text-transform: uppercase; }
.preview-project > div > span { font-size: 13px; line-height: 1.65; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 4px 8px; border: 1px solid var(--field); border-radius: 4px; background: var(--raised); font-size: 13px; line-height: 1.5; color: var(--muted); }
.status-badge.is-current { color: var(--text); }
.status-badge.is-current::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.preview-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--muted); }
.preview-bottom a { color: var(--text); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 4px; }
.preview-bottom a:hover { text-decoration-color: var(--text); }

/* ---------- Listino ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pricing-item { padding: 32px 32px 32px 0; }
.pricing-item + .pricing-item { padding-left: 32px; border-left: 1px solid var(--line); }
.pricing-item h3 { font-size: 24px; line-height: 1.3; }
.pricing-item p { max-width: 360px; min-height: 80px; margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.price { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.price span { font-size: 14px; line-height: 1.65; color: var(--muted); }
.price strong { font-size: 28px; font-weight: 500; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.pricing-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.pricing-foot > span { max-width: 500px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Casi studio ---------- */

.case-section, .faq-section { padding-top: 0; }
/* Senza Listino (visitatori) i casi studio seguono la fascia Area partner: serve lo spazio sopra. */
.partner-section + .case-section { padding-top: var(--section); }
/* Senza Listino e senza Casi studio (1.0.17) è la FAQ a seguire la fascia Area partner. */
.partner-section + .faq-section { padding-top: var(--section); }
/* Nota per gli amministratori finché i casi studio non sono pubblicati per i partner. */
.case-admin-note { margin-top: 32px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.case-admin-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 4px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case-grid .photo-placeholder, .case-grid .photo { aspect-ratio: 8 / 5; }
.case-grid h3 { margin-top: 24px; font-size: 22px; line-height: 1.3; }
.case-grid dl { margin-top: 16px; }
.case-grid dl > div { display: flex; justify-content: space-between; gap: 32px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-section { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); gap: 96px; }
.faq-section .muted { margin-top: 24px; font-size: 16px; line-height: 1.7; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; gap: 28px; padding: 28px 0; cursor: pointer; list-style: none; color: var(--muted); transition: color .18s var(--ease); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--text); }
.faq-question-title { flex: 1; font-size: 20px; font-weight: 500; line-height: 1.45; }
.faq-show, .faq-hide { flex-shrink: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.faq-hide, .faq-list details[open] .faq-show { display: none; }
.faq-list details[open] .faq-hide { display: inline; }
.faq-list details > p { max-width: 568px; padding-bottom: 24px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* ---------- Chiusura con la rete orbitale ---------- */

.final-cta.cta-orbit { min-height: 460px; padding-block: var(--section); border-top: 1px solid var(--line); }
.final-cta.cta-orbit::after { display: none; }
.hero-network { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: var(--bg); }
.hero-network canvas { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; opacity: .9; }
.hero-network-placeholder { will-change: transform; backface-visibility: hidden; perspective: 900px; }
.hero-network-placeholder > img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 20, 20, .91) 0%, rgba(20, 20, 20, .7) 38%, rgba(20, 20, 20, .15) 100%), linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0) 35%, rgba(20, 20, 20, 0) 70%, rgba(20, 20, 20, .5) 100%); }
.hero-motion-control { position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; }
.cta-copy { max-width: 1200px; }
.cta-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-top: 36px; }
.cta-bottom p { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* ---------- Piè di pagina ---------- */

.site-footer { padding-top: 48px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; align-content: start; }
.site-footer nav a { font-size: 15px; line-height: 1.65; transition: color .18s var(--ease); }
.site-footer nav a:hover { color: var(--muted); }
.footer-contact { font-size: 15px; line-height: 1.65; }
.footer-contact p { margin-top: 8px; color: var(--muted); }
.footer-whatsapp { display: block; margin-top: 8px; color: var(--text); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 4px; }
.footer-whatsapp:hover { text-decoration-color: var(--text); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer-legal { font-size: 13px; line-height: 1.65; color: var(--muted); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 4px; }
.footer-legal:hover { color: var(--text); }

/* ---------- Finestre ---------- */

.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--field); border-radius: 8px; background: var(--raised); color: var(--text); box-shadow: 0 32px 128px rgba(20, 20, 20, .6); overflow: auto; }
.modal::backdrop { background: rgba(20, 20, 20, .8); backdrop-filter: blur(8px); }
.modal[open] { animation: kc-modal-in .22s var(--ease); }
@keyframes kc-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-inner { padding: 32px; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.modal h2 { margin-bottom: 20px; font-size: 26px; line-height: 1.3; }
.modal .body-large { font-size: 18px; }
.modal .muted { margin-top: 16px; font-size: 16px; line-height: 1.7; }
.modal .button { margin-top: 20px; }
.placeholder-box { margin: 24px 0; padding: 24px; border: 1px dashed var(--edge); background: var(--surface); }
.placeholder-box strong { font-size: 16px; font-weight: 500; }
.placeholder-box p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Effetti tech (anime.js 4.5): decodifica dei titoli, linee tracciate, righe al passaggio ---------- */

.kc-scrambling { position: relative; color: transparent; }
.kc-scrambling > .kc-scramble-ghost { position: absolute; inset: 0; pointer-events: none; }
.kc-scramble-line { display: block; overflow: hidden; white-space: nowrap; }
.kc-trace-pending { border-color: transparent !important; }
.kc-trace-pending.photo-placeholder::after { border-color: transparent; }
.kc-trace { position: absolute; z-index: 2; overflow: visible; pointer-events: none; fill: none; shape-rendering: crispEdges; }
.service-head, .faq-list summary { position: relative; }
.kc-row-line { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 1px; background: var(--muted); pointer-events: none; transform: scaleX(0); }

/* ---------- Pagine semplici ---------- */

.plain-page { min-height: 60vh; padding-block: 96px; }
.plain-page h1 { max-width: 900px; margin-bottom: 32px; }
.plain-page .body-large { max-width: 680px; }
.plain-content { max-width: 720px; font-size: 17px; line-height: 1.7; }
.plain-content > * + * { margin-top: 20px; }
.plain-content a { text-decoration: underline; text-underline-offset: 4px; }
.plain-content h2 { font-size: 28px; margin-top: 48px; }

/* ---------- Modifica in pagina (solo amministratori) ---------- */

.service-head [data-kcs-ed], .faq-list summary [data-kcs-ed] { cursor: text; }

/* ---------- Responsive ---------- */

@media (min-width: 1700px) {
	.hero.hero-eye { min-height: clamp(640px, calc(100svh - var(--header)), 860px); }
}

@media (max-width: 1280px) {
	:root { --gutter: 48px; --section: 96px; }
	h2 { font-size: 36px; line-height: 1.2; }
	.site-header { gap: 24px; }
	.site-nav { gap: 20px; }
	.trust-grid, .studio-section, .partner-grid, .faq-section { gap: 48px; }
	.pricing-item h3 { font-size: 22px; }
	.pricing-item p { min-height: 108px; }
	.workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.workflow p { max-width: 392px; }
	.footer-top { gap: 48px; }
}

@media (max-width: 1100px) {
	.site-nav { display: none; }
	.menu-button { display: block; }
	.site-header .site-nav.is-open { position: absolute; z-index: 30; top: calc(100% + 1px); left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 28px; border: 1px solid var(--field); border-radius: 4px; background: var(--raised); }
	.site-nav.is-open a { font-size: 16px; }
	.hero-copy { padding-right: 44%; }
	.cyber-eye { left: 52%; right: -4%; }
	.section-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.section-intro--wide p { grid-column: 1; }
	.section-intro p { max-width: 620px; }
	.service-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) 64px; }
	.service-content { gap: 48px; }
}

@media (max-width: 800px) {
	:root { --gutter: 24px; --section: 80px; --header: 88px; --header-compact: 64px; }
	/* Zone da toccare di almeno 44 px (1.0.14). */
	.login-link { display: inline-flex; align-items: center; min-height: 44px; }
	.site-nav.is-open a { display: flex; align-items: center; min-height: 44px; }
	.site-header .site-nav.is-open .nav-join { display: flex; flex-basis: 100%; grid-column: 1 / -1; justify-content: center; min-height: 48px; margin-top: 8px; font-size: 15px; }
	h1 { font-size: clamp(28px, 7.4vw, 44px); line-height: 1.3; }
	h2 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.25; }
	.body-large { font-size: 18px; }
	.header-actions { gap: 24px; }
	.header-actions .button { display: none; }
	.hero.hero-eye { display: block; min-height: 0; padding: 64px 0 448px; }
	.hero-copy { max-width: 640px; padding-right: 0; }
	.eyebrow { margin-bottom: 24px; }
	.hero-description { margin-top: 28px; }
	.button-row { margin-top: 32px; }
	.cyber-eye { inset: auto 0 32px; height: 400px; }
	.eye-motion-control { bottom: 4px; }
	.section-intro { margin-bottom: 40px; }
	.service-head { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 28px 0; }
	.service-head h3 { font-size: 22px; }
	.service-intro { display: none; }
	.service-head .service-action { grid-row: 1; grid-column: 2; }
	/* Su mobile la frase di presentazione compare quando il servizio è aperto. */
	.service-open .service-intro { display: block; grid-column: 1 / -1; grid-row: 2; }
	.service-content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 32px; }
	.service-content > p { max-width: 620px; }
	.trust-grid, .studio-section, .partner-grid, .faq-section { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.trust-intro, .trust-points p { max-width: 620px; font-size: 17px; }
	.network-viewport { opacity: .78; }
	.network-section::after { background: linear-gradient(90deg, rgba(20, 20, 20, .64), rgba(20, 20, 20, .58)), linear-gradient(0deg, #141414, transparent 30%, transparent 70%, #141414); }
	.trust-section.network-section::after { background: var(--scanline), linear-gradient(90deg, rgba(32, 32, 32, .68), rgba(32, 32, 32, .62)), linear-gradient(0deg, #202020, transparent 30%, transparent 70%, #202020); }
	.trust-section, .workflow-section { padding-bottom: 96px; }
	.studio-visual { max-width: 580px; }
	.studio-address { right: 12px; }
	.studio-copy { max-width: 580px; }
	.workflow { margin-top: 40px; }
	.workflow p { font-size: 17px; }
	.partner-copy .body-large, .partner-copy .muted { max-width: 600px; }
	.partner-copy .muted { font-size: 17px; }
	.product-preview { max-width: 600px; padding: 0 20px; box-shadow: 8px 8px 0 var(--raised); }
	.preview-project { margin: 0 -12px; padding: 20px 12px; }
	.preview-project.active { padding-left: 10px; }
	.pricing-grid { grid-template-columns: minmax(0, 1fr); }
	.pricing-item, .pricing-item + .pricing-item { padding: 28px 0; border-left: 0; }
	.pricing-item + .pricing-item { border-top: 1px solid var(--line); }
	.pricing-item p { min-height: 0; max-width: 620px; font-size: 17px; }
	.price { gap: 8px; margin-top: 24px; }
	.price strong { font-size: 24px; }
	.pricing-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
	.case-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.faq-list details > p { font-size: 17px; }
	.final-cta.cta-orbit { min-height: 400px; padding-bottom: 112px; }
	.hero-shade { background: linear-gradient(90deg, rgba(20, 20, 20, .93), rgba(20, 20, 20, .74) 50%, rgba(20, 20, 20, .4)), linear-gradient(0deg, #141414 0%, transparent 30%, transparent 80%, rgba(20, 20, 20, .5)); }
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom { flex-wrap: wrap; gap: 8px 16px; }
	.footer-bottom > span:first-child { width: 100%; }
	.modal-inner { padding: 24px; }
	.modal h2 { font-size: 24px; }
}

@media (max-width: 520px) {
	:root { --gutter: 20px; --section: 64px; }
	.body-large { font-size: 17px; }
	.kc-logo { height: 24px; }
	.hero.hero-eye { padding: 48px 0 368px; }
	.cyber-eye { left: 0; right: 0; bottom: 40px; height: 316px; }
	.button-row { flex-direction: column; align-items: flex-start; gap: 20px; }
	/* Una colonna: le voci lunghe non vanno a capo e si leggono come un elenco. */
	.site-header .site-nav.is-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 24px 24px; }
	.studio-address { padding: 20px 24px; font-size: 24px; min-width: 160px; }
	/* Mappa più stretta: il riquadro della città scende sotto la mappa e ne copre solo il bordo. */
	.studio-visual { padding-bottom: 64px; }
	.studio-address { bottom: 0; }
	.team-list li { grid-template-columns: 128px minmax(0, 1fr); gap: 20px; }
	.team-name { width: 96px; }
	.team-list li:nth-child(3n + 2) .team-name { width: 72px; }
	.team-list li:nth-child(3n) .team-name { width: 120px; }
	.workflow { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
	.workflow p { max-width: none; }
	.preview-heading h3 { font-size: 22px; }
	.preview-project { flex-wrap: wrap; gap: 12px; }
	.preview-project > div { flex: 1 1 140px; }
	.product-preview-top, .preview-bottom { font-size: 13px; }
	.faq-list summary { gap: 20px; padding: 24px 0; }
	.faq-question-title { font-size: 18px; }
	.final-cta.cta-orbit { padding-bottom: 100px; }
	.hero-shade { background: linear-gradient(90deg, rgba(20, 20, 20, .81), rgba(20, 20, 20, .42)), linear-gradient(0deg, #141414, transparent 35%, transparent 70%, rgba(20, 20, 20, .5)); }
	.site-footer nav { gap: 12px; }
	.footer-top { grid-template-columns: minmax(0, 1fr); }
	.modal .modal-inner { padding: 20px; }
	.modal h2 { font-size: clamp(18px, 5.8vw, 26px); }
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
	.eye-intro-skip { display: none; }
}
