/* Vektora Labs · pagine interne (prodotti, studio di ingegneria). Si aggiunge a home.css:
   stessa grammatica della home, più i pezzi che servono solo qui. Nessuna risorsa esterna. */

.top-nav a[aria-current]::after { transform: scaleX(1); }
figure { margin: 0; }

/* titoli di sezione più lunghi di quelli della home */
.display.md { font-size: clamp(2rem, 4.9vw, 5.4rem); line-height: 1; }
.sec-head.split .display.md { max-width: 17ch; }

/* ---------- hero delle pagine prodotto ---------- */
.hero-page { min-height: min(84svh, 860px); }
.hero-page h1 { font-size: clamp(2.6rem, 6.4vw, 7.2rem); line-height: .94; white-space: normal; }
.hero-page .hero-light {
  background:
    radial-gradient(40% 48% at 80% 28%, rgba(96, 88, 255, .5), transparent 70%),
    radial-gradient(24% 30% at 94% 78%, rgba(232, 142, 84, .16), transparent 70%),
    radial-gradient(20% 26% at 62% 10%, rgba(59, 214, 230, .14), transparent 70%);
}
.hero-tag a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.hero-tag a:hover, .hero-foot a:hover { color: var(--fg); }
.ambiti { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 28px; }
.under[aria-current] { color: var(--volt); }
.hero-foot ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 3px; }
.hero-foot ul a:hover { background-size: 100% 1px; }

/* ---------- hero dello studio: la V come reperto ---------- */
.hero-studio .hero-in { grid-template-columns: minmax(0, 1fr) minmax(270px, 400px); grid-template-rows: auto 1fr auto; }
.hero-studio h1 { grid-row: 2; }
.hero-studio .hero-side { grid-row: 2 / 4; }
.hero-studio .trust { grid-column: 1; grid-row: 3; }
.hero-studio .hero-foot { gap: clamp(14px, 2vw, 28px); }
.hero-studio h1 { font-size: clamp(2.5rem, 6.5vw, 7.3rem); line-height: .93; }
.hero-studio h1 .sub { margin-top: .32em; font-size: .46em; line-height: 1.12; }
.hero-studio h1 .sub em { font-size: 1em; letter-spacing: -.02em; }
.hero-studio .hero-light {
  background:
    radial-gradient(38% 42% at 72% 40%, rgba(64, 96, 255, .58), transparent 70%),
    radial-gradient(26% 30% at 90% 74%, rgba(59, 214, 230, .2), transparent 70%),
    radial-gradient(22% 26% at 56% 16%, rgba(122, 118, 255, .2), transparent 70%);
}
.trust { list-style: none; margin: 26px 0 0; padding: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: #b9b2a5; }
.trust li { padding: 9px 0; border-top: 1px solid var(--line); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.trust li::before { content: "+"; color: var(--volt); margin-right: 12px; }
.trust.in-riga { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.4vw, 34px); margin-top: clamp(22px, 2.6vw, 38px); }
.trust.in-riga li { padding: 5px 0; border: 0; }

/* anello di sigle intorno alla V */
.orbit-t { stroke: none; animation: giro 110s linear infinite, affiora-b 1.6s .8s both; }
.orbit-t text { font-family: var(--mono); font-size: 12.5px; fill: rgba(201, 197, 255, .6); }
@keyframes giro { from { transform: rotateX(66deg) rotateZ(0); } to { transform: rotateX(66deg) rotateZ(360deg); } }

/* la lente: dentro il cerchio la V mostra struttura e misure. --sx/--sy li imposta home.js (unità del disegno). */
.vee-xray { clip-path: circle(13% at calc((var(--sx, 47) + 6) / 76 * 100%) calc(9.2% + (var(--sy, 24) - 2) / 76 * 100%)); }
.vee-xray text { font-family: var(--mono); font-size: 1.45px; fill: #bff6ff; }
.lens { transform: translate(calc(var(--sx, 47) * 1px), calc(var(--sy, 24) * 1px)); opacity: calc(.45 + var(--near, .5) * .55); }
.reticolo { animation: affiora-b 1.4s 1s both; }

/* scansione: una lama di luce scende lungo la V */
.scan { opacity: 0; }
.vee-fx.scansione .scan { animation: scansione 2.4s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes scansione { 0% { opacity: 0; transform: translateY(0); } 8%, 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(46px); } }

.hero-hex { position: absolute; z-index: -1; pointer-events: none; }   /* i byte sotto la lente: posizione e misure le dà studio.js */

/* barra in fondo alla hero: i passi di ogni acquisizione e l'impronta della V */
.hero-foot ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 44px); flex: 1; color: #d6d0c4; }
.hero-foot ol li + li::before { content: "/"; color: var(--volt); margin-right: clamp(16px, 3vw, 44px); }
.hero-foot .custodia { gap: 6px clamp(10px, 1.5vw, 24px); }
.hero-foot .custodia li + li::before { margin-right: clamp(10px, 1.5vw, 24px); }
html.js .custodia li { color: var(--mute); transition: color .6s; }
html.js .custodia li.on { color: var(--fg); }
.hash { display: none; align-items: baseline; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.hash.ok { display: inline-flex; }
.hash output { color: #7ae6f2; min-width: 20ch; font-variant-numeric: tabular-nums; }

/* ---------- hero dei prodotti: la V come software in costruzione ---------- */
.hero-prodotti h1 { font-size: clamp(2.6rem, 7.6vw, 8.4rem); line-height: .93; white-space: normal; }
.hero-prodotti .hero-light {
  background:
    radial-gradient(38% 42% at 72% 40%, rgba(96, 88, 255, .58), transparent 70%),
    radial-gradient(26% 30% at 90% 72%, rgba(232, 142, 84, .2), transparent 70%),
    radial-gradient(22% 26% at 56% 18%, rgba(59, 214, 230, .18), transparent 70%);
}
.hero-prodotti .hero-foot { gap: clamp(14px, 2vw, 28px); }
.hash.codice output { min-width: 37ch; color: #c9c5ff; }

/* moduli d'interfaccia intorno alla V. --f (0-1) è quanto il puntatore è vicino al modulo: lo imposta prodotti.js */
.moduli { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(201, 197, 255, .62); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.modulo { --f: 0; opacity: calc(.4 + var(--f) * .6); transform: translate(calc(var(--mx, 0) * var(--d) * -1px), calc(var(--my, 0) * var(--d) * -1px)); animation: affiora-b 1.1s var(--t) both; }
.m1 { --d: 14; --t: 1.05s; } .m2 { --d: 22; --t: 1.3s; } .m3 { --d: 10; --t: 1.55s; }
.m4 { --d: 18; --t: 1.15s; } .m5 { --d: 26; --t: 1.4s; } .m6 { --d: 12; --t: 1.65s; }
.corpo { animation: deriva 11s ease-in-out infinite alternate; }
.m2 .corpo, .m5 .corpo { animation-duration: 14s; animation-direction: alternate-reverse; }
.m3 .corpo, .m4 .corpo { animation-duration: 9s; }
@keyframes deriva { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.pannello { fill: rgba(11, 10, 9, .55); }
.pieno { fill: rgba(201, 197, 255, .7); stroke: none; }
.pieno.tenue { fill: rgba(201, 197, 255, .38); }
.acc { opacity: var(--f); }
.acc.pieno, .avanza { fill: #7ae6f2; }
.sel { fill: #0b0a09; stroke: #7ae6f2; stroke-width: 1.2; }
.filo { stroke: #7ae6f2; stroke-dasharray: 2 9; opacity: calc(.3 + var(--f) * .7); animation: flusso 2.6s linear infinite; }
.moduli.build .filo { animation-duration: .7s; opacity: 1; }
@keyframes flusso { to { stroke-dashoffset: -22; } }
/* piccoli gesti dentro i moduli: l'interfaccia è viva */
.caret { animation: batte 1.1s steps(1) infinite; }
@keyframes batte { 50% { opacity: 0; } }
.knob { animation: scatta 5s var(--ease) infinite; }
@keyframes scatta { 0%, 42% { transform: translateX(0); } 50%, 92% { transform: translateX(18px); fill: #7ae6f2; } 100% { transform: translateX(0); } }
.cursore { animation: scorre 7s ease-in-out infinite alternate; }
@keyframes scorre { from { transform: translateX(-46px); } to { transform: translateX(30px); } }
.barra { transform-box: fill-box; transform-origin: 50% 100%; animation: cresce 4.6s ease-in-out infinite alternate; }
.b1 { animation-delay: -.8s; } .b2 { animation-delay: -1.9s; } .b3 { animation-delay: -3.1s; } .b4 { animation-delay: -2.4s; }
@keyframes cresce { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.avanza { transform-box: fill-box; transform-origin: 0 50%; animation: avanza 6s var(--ease) infinite; }
@keyframes avanza { 0% { transform: scaleX(.05); } 80%, 100% { transform: scaleX(1); } }

/* costruzione: prima il tracciato delle facce, poi le facce si ricompongono. La avvia prodotti.js */
.fili-v path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.vee-fx.build .fili-v path { animation: traccia 2.3s ease-out both; }
@keyframes traccia { 0% { opacity: 1; stroke-dashoffset: 1; } 42% { stroke-dashoffset: 0; } 72% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.vee.build .f { animation: monta-b 1.1s var(--ease) both; }
.vee.build .f1 { animation-delay: .62s; } .vee.build .f2 { animation-delay: .74s; } .vee.build .f3 { animation-delay: .98s; }
.vee.build .f4 { animation-delay: .82s; } .vee.build .f5 { animation-delay: .7s; }
@keyframes monta-b { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.72); } }

/* ispettore: dentro il riquadro che segue il puntatore la V mostra il suo "codice". --sx/--sy li imposta home.js */
.vee-codice {
  clip-path: inset(
    calc(9.2% + (var(--sy, 24) - 2) / 76 * 100% - 11%)
    calc(100% - (var(--sx, 47) + 6) / 76 * 100% - 11%)
    calc(90.8% - (var(--sy, 24) - 2) / 76 * 100% - 11%)
    calc((var(--sx, 47) + 6) / 76 * 100% - 11%)
    round 2.5%);
}
.vee-top text { font-family: var(--mono); font-size: 1.5px; fill: rgba(201, 197, 255, .75); stroke: none; }
.vee-top text.etich { font-size: 1.7px; font-weight: 700; fill: #0b0a09; }

/* ---------- testo a due colonne e terne ---------- */
.duo-testo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.duo-testo .big { grid-column: 1 / 7; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.16; letter-spacing: -.02em; }
.duo-testo .resto { grid-column: 8 / 13; color: #c9c3b6; font-size: 1.06rem; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 150px); border-top: 1px solid var(--line); }
.trio > div { padding: clamp(22px, 3vw, 44px) clamp(18px, 2.4vw, 40px) 0 0; }
.trio > div + div { padding-left: clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.trio h3 { margin: 0 0 12px; font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.trio p { color: var(--mute); max-width: 34ch; }
.trio[data-r] > div:nth-child(2) { transition-delay: .08s; }

/* ---------- elenchi a righe (variante dell'indice della home) ---------- */
.index.tagged li { grid-template-columns: minmax(0, 2.3fr) minmax(0, 5fr) minmax(0, 5.7fr); }
.index.duo li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.index.tagged h3, .index.duo h3 { font-size: clamp(1.4rem, 2.5vw, 2.5rem); line-height: 1.06; }
.index.dopo { margin-top: clamp(56px, 7vw, 110px); }
.ink .index { border-top-color: rgba(241, 237, 228, .5); }
.ink .index li { border-bottom-color: var(--line); }
.ink .index p { color: var(--mute); }
.ink .index li::before { background: var(--bone); }
@media (hover: hover) {
  .ink .index li:hover { color: var(--ink); }
  .ink .index li:hover p, .ink .index li:hover .tag { color: var(--mute-b); }
}

.per { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 44px); margin-top: clamp(34px, 4vw, 60px); font-size: 15px; }
.per ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2.4vw, 36px); }
.per li + li::before { content: "/"; color: var(--volt); margin-right: clamp(14px, 2.4vw, 36px); }
.bone .per li + li::before { color: var(--volt-b); }

/* ---------- prodotti ---------- */
.work:last-of-type { margin-bottom: 0; }
.works .work h3 { font-size: clamp(1.8rem, 3.1vw, 3.2rem); }
.works .work-a .work-shot { grid-column: 1 / 8; }
.works .work-a .work-txt { grid-column: 9 / 13; }
.work-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.app-ico { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 20px; }
.spec.wide { max-width: none; }
.spec dd { text-align: right; }
.spec dd.ok { color: #7ae6f2; }
.cap { margin-top: 14px; font-size: 14px; color: var(--mute); }
.nota { margin-top: 18px; font-size: 13.5px; color: var(--mute); max-width: 60ch; }
.galleria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); margin-top: clamp(22px, 3vw, 44px); }
.prod-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 32px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(48px, 6vw, 100px); }
.prod-side .sec-lead { margin-top: 0; max-width: none; }
.con-tel { position: relative; margin-right: 9%; margin-bottom: clamp(70px, 10vw, 150px); }

/* gli stessi pezzi su fondo chiaro */
.bone .pill.solid { background: var(--ink); color: var(--fg); }
.bone .pill.solid i { background: var(--volt-b); color: #fff; }
.bone .frame { box-shadow: 0 0 0 1px rgba(11, 10, 9, .14), 0 60px 110px -60px rgba(11, 10, 9, .6); }
.bone .cap, .bone .nota { color: var(--mute-b); }
.bone .work-n { color: var(--bone); -webkit-text-stroke-color: rgba(11, 10, 9, .16); }
.bone .work-txt > p:not(.tag) { color: var(--mute-b); }
.bone .spec div { border-color: var(--line-b); }
.bone .spec dt { color: var(--mute-b); }
.bone .spec dd.ok { color: var(--volt-b); }
.bone .phone { box-shadow: 0 0 0 1px rgba(11, 10, 9, .2), 0 40px 70px -30px rgba(11, 10, 9, .6); }

/* ---------- contatto riservato ---------- */
.contatto { position: relative; overflow: clip; isolation: isolate; }
.contatto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 6vw, 110px); align-items: start; }
.contatto .sec-lead { max-width: 44ch; }
.modulo { display: grid; gap: 26px; }
.modulo .riga { display: grid; grid-template-columns: 1fr 1fr; gap: 26px clamp(18px, 2.4vw, 36px); }
.modulo label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); }
.modulo input, .modulo select, .modulo textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(241, 237, 228, .34); border-radius: 0; background: none;
  color: var(--fg); font: 400 1.06rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; caret-color: var(--volt);
}
.modulo select {
  appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23f1ede4' stroke-width='1.4'/></svg>") right 2px center / 12px 8px no-repeat;
}
.modulo option { background: var(--ink-2); color: var(--fg); }
.modulo textarea { min-height: 124px; resize: vertical; }
.modulo ::placeholder { color: #837c70; }
.modulo input:hover, .modulo select:hover, .modulo textarea:hover { border-bottom-color: rgba(241, 237, 228, .6); }
.modulo input:focus, .modulo select:focus, .modulo textarea:focus { outline: none; border-bottom-color: var(--volt); box-shadow: 0 1px 0 var(--volt); }
.modulo button.pill { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-note { font-size: 13.5px; color: var(--mute); max-width: 62ch; }

/* metodo dello studio: quattro passi invece di tre, con titoli più lunghi */
.steps.quattro .step.is-on { flex-grow: 2.4; }
.steps.quattro .step-t { font-size: clamp(1.05rem, 1.5vw, 1.6rem); line-height: 1.08; letter-spacing: -.03em; }
.steps.quattro .step.is-on .step-t { font-size: clamp(1.9rem, 3.8vw, 4rem); line-height: 1; letter-spacing: -.045em; }

/* ---------- schermi stretti ---------- */
@media (max-width: 980px) {
  .duo-testo .big, .duo-testo .resto { grid-column: 1 / -1; }
  .index.tagged li, .index.duo li { grid-template-columns: 1fr; gap: 8px; }
  .index.tagged p, .index.duo p { grid-column: 1; }
  .prod-head, .contatto-grid { grid-template-columns: 1fr; }
  .hero-studio .hero-in { grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); }
  .hash { display: none !important; }
}
@media (max-width: 760px) {
  .hero-page h1 { font-size: clamp(2.4rem, 11.4vw, 4.4rem); }
  .hero-studio .hero-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .hero-studio h1, .hero-studio .hero-side, .hero-studio .trust { grid-row: auto; }
  .trust.in-riga { display: block; margin-top: 0; }
  /* il testo è più lungo di quello della home: il titolo parte sotto la punta della V invece di salirle sopra */
  .hero-studio h1 { font-size: clamp(2.3rem, 11vw, 4.4rem); margin-top: max(0px, calc(27svh + 25vw - 138px)); }
  .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: 24px 0 30px; border-left: 0; }
  .trio > div + div { border-top: 1px solid var(--line); }
  .galleria { grid-template-columns: 1fr; }
  .per { flex-direction: column; gap: 10px; }
  .modulo .riga { grid-template-columns: 1fr; }
  .con-tel { margin-bottom: 90px; }
  /* prodotti: la scultura al centro e i moduli un poco più stretti, così restano nello schermo */
  .hero-prodotti .sculpt { right: -6vw; }
  .moduli { transform: scale(.9); }
  .steps.quattro .step-t { font-size: 1.35rem; }
  .steps.quattro .step.is-on .step-t { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}
