/* Lorenzo Zugaro — sito principale (siti e grafica), versione scura con la luce verde.
   Base del cilindro in style.css; qui apertura, blocchi e piè di pagina. Era: v5: la home col cilindro, versione scura con la luce verde.
   Sotto l'apertura pochi blocchi, ognuno con una cosa sola: servizi, perché io, test, contatti. */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  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: "Inter"; src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root { --lime: #c8ea88; --line: rgb(255 255 255 / .1); --panel: rgb(255 255 255 / .04); --w: 1120px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { height: auto; min-height: 100%; }
body { background-image: none !important; }
.scene { background: radial-gradient(60vmax 50vmax at 50% 42%, rgb(69 182 73 / .26), transparent 62%); }

/* barra: si scurisce quando si scorre */
.topbar { transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled { background: rgb(11 13 16 / .78) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }

.wrap { width: 100%; max-width: calc(var(--w) + var(--gx) + var(--gx-r)); margin: 0 auto; padding-left: var(--gx); padding-right: var(--gx-r); }
.blk { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.blk__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.blk__head h2 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.blk__head p { margin: 14px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--muted); }

/* servizi: quattro schede, una frase e un prezzo */
.svc { display: grid; gap: 14px; }
.svc a { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: 26px; border-radius: 22px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); text-decoration: none; transition: background .25s, box-shadow .25s, transform .25s; }
.svc a:hover { background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(200 234 136 / .35); transform: translateY(-2px); }
.svc .ico { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: rgb(200 234 136 / .12); }
.svc h3 { margin: 2px 0 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.svc p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.svc .price { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 16px; color: var(--lime); font-variant-numeric: tabular-nums; }
.svc .go { position: absolute; right: 22px; top: 24px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s, stroke .25s; }
.svc a:hover .go { transform: translate(2px, -2px); stroke: var(--lime); }
@media (min-width: 760px) { .svc { grid-template-columns: 1fr 1fr; } }

.ico { fill: none; stroke: #f1f3f2; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .a { stroke: var(--lime); stroke-width: 1.9; }
.ico .f { fill: #f1f3f2; stroke: none; }
.ico .a.f { fill: var(--lime); }

/* perché io: foto e tre punti */
.why { display: grid; gap: 40px; align-items: center; }
.why__pic { position: relative; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgb(69 182 73 / .35), rgb(11 13 16) 70%); box-shadow: inset 0 0 0 1px var(--line); }
.why__pic img { position: absolute; left: 50%; bottom: 0; width: 82%; height: auto; transform: translateX(-50%); }
.why ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: w; }
.why li { counter-increment: w; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.why li::before { content: counter(w); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0b0d10; font-weight: 800; }
.why b { display: block; font-size: 20px; letter-spacing: -.02em; }
.why li p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.why .cred { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .why { grid-template-columns: 380px minmax(0, 1fr); gap: 72px; } }

/* test: la fascia verde */
.test { background: var(--lime); color: #0b0d10; padding-block: clamp(64px, 9vw, 112px); }
.test__in { display: grid; gap: 26px; align-items: center; }
.test h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; max-width: 15ch; }
.test p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #33461f; max-width: 30em; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 16px; white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: #0b0d10; color: #f1f3f2; }
.btn--dark .dot { background: var(--lime); }
.btn--lime { background: var(--lime); color: #0b0d10; }
.btn--lime .dot { background: #1f8a2c; }
.btn--ghost { color: #f1f3f2; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
@media (min-width: 860px) { .test__in { grid-template-columns: minmax(0, 1fr) auto; } }

/* contatti */
.end { position: relative; overflow: hidden; isolation: isolate; }
.end::before { content: ""; position: absolute; z-index: -1; width: 1000px; height: 1000px; left: 50%; bottom: -640px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgb(69 182 73 / .4), rgb(200 234 136 / .08) 45%, transparent 68%); }
.end h2 { margin: 0; font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1; max-width: 13ch; }
.end p { margin: 18px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 32em; }
.end .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.end .mail { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 40px; }
.end .mail a { color: var(--fg); text-decoration: none; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.end .mail a:hover { color: var(--lime); }

/* piè di pagina */
.foot { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot a, .foot button { color: var(--muted); font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .25); text-underline-offset: .2em; }
.foot a:hover, .foot button:hover { color: var(--fg); }

/* la finestrella delle info, sul tema scuro */
.infobox__card { color: #0d0d0f; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------------------------------------------------------------- apertura (dalla versione B scelta da Lorenzo) */
/* anteprime: testo dell'apertura */
.hero-text { position: relative; z-index: 35; display: grid; justify-items: center; text-align: center; gap: 12px; margin-top: 26px; }
.h1 { margin: 0; font-size: clamp(26px, 7vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.h1 span { color: var(--accent-ink); }
.sub { margin: 0; max-width: 34ch; font-size: clamp(15px, 3.8vw, 18px); line-height: 1.45; color: var(--muted); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
@media (max-width: 420px) { .acts .cta { padding: 10px 15px; font-size: 15px; } }
.cta--line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(13,13,15,.16); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root { --photo-w: min(70vw, 300px, (100svh - 372px) * .667); }
@media (min-width: 768px) { :root { --photo-w: min(400px, (100svh - 362px) * .667); } }
@media (min-width: 1100px) { :root { --photo-w: min(460px, (100svh - 366px) * .667); } }
html.intro .hero-text { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.intro.p5 .hero-text { opacity: 1; transform: none; }
/* B · Notte: fondo scuro, luce verde dietro, card bianche */
:root { --bg: #0b0d10; --fg: #f1f3f2; --muted: #9aa3a0; --accent-ink: #c8ea88; color-scheme: dark; }
body { background-image: radial-gradient(60vmax 50vmax at 50% 38%, rgb(69 182 73 / .26), transparent 62%); }
.topbar { background: transparent; }
.card { color: #0d0d0f; --muted: #6e6e75; background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.74)); }
.card { box-shadow: 0 1px 2px rgb(0 0 0 / calc(.3 * var(--d))), 0 18px 34px -14px rgb(0 0 0 / calc(.7 * var(--d))), 0 0 40px -10px rgb(69 182 73 / calc(.35 * var(--d))), inset 0 1px 0 #fff; }
.ground { background: radial-gradient(closest-side, rgb(69 182 73 / .45), rgb(69 182 73 / .15) 55%, transparent 100%); }
.photo { filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.cta { color: #0d0d0f; background: #c8ea88; border-color: #c8ea88; box-shadow: 0 14px 30px -12px rgb(200 234 136 / .45); }
.cta--line { color: #f1f3f2; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.cta .dot { background: #1f8a2c; }
.legal { color: #9aa3a0; }
.legal a:hover, .legal button:hover { color: #fff; }
.menu { background: #0b0d10; }

/* ---------------------------------------------------------------- lavori: copertine tipografiche */
.works { display: grid; gap: 14px; }
.work { position: relative; display: grid; align-content: space-between; min-height: 280px; padding: 26px; border-radius: 24px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--c1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.work::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 85% 15%, var(--c2), transparent 60%); opacity: .9; transition: transform .5s; }
.work:hover::before { transform: scale(1.15); }
.work__type { margin: 0; font-size: 13.5px; font-weight: 600; opacity: .85; }
.work__name { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.work__desc { margin: 10px 0 0; font-size: 15px; opacity: .85; max-width: 26em; }
.work__go { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .16); display: grid; place-items: center; transition: background .2s; }
.work__go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work:hover .work__go { background: rgb(255 255 255 / .3); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { .works { grid-template-columns: 1fr 1fr; } .work--wide { grid-column: span 2; } }
@media (min-width: 1100px) { .works { grid-template-columns: repeat(3, 1fr); } }

/* come lavoro */
.steps3 { display: grid; gap: 14px; counter-reset: s; }
.steps3 > div { counter-increment: s; padding: 26px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.steps3 > div::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 750; color: var(--lime); margin-bottom: 12px; }
.steps3 h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.steps3 p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.owned { margin-top: 22px; display: flex; gap: 10px; align-items: center; color: var(--fg); font-weight: 600; }
.owned::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--lime); flex: none; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }

/* rimando ad AiDocuBase */
.adb { padding-block: 0; border-top: 0; }
.adb__box { display: grid; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #BEEA7A; color: #0F2A44; box-shadow: 0 30px 80px -40px rgb(190 234 122 / .55); }
.adb__logo { width: 64px; height: auto; }
.adb__box h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.adb__box p { margin: 8px 0 0; color: #23415e; line-height: 1.5; max-width: 40em; }
.btn--adb { background: #0F2A44; color: #EEF4F9; }
.btn--adb:focus-visible, .adb__box a:focus-visible { outline-color: #0F2A44; }
@media (min-width: 900px) { .adb__box { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; } }

/* contatti con modulo */
.contact { display: grid; gap: 40px; align-items: start; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.4 var(--font-ui); color: var(--fg); background: rgb(255 255 255 / .05); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.field select option { color: #0d0d0f; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lime); flex: none; }
.consent a { color: var(--fg); }
.hp { position: absolute; left: -9999px; }
.form button { border: 0; cursor: pointer; font-family: inherit; justify-self: start; }
.form__msg { margin: 0; font-size: 15px; min-height: 1.4em; }
.form__msg.ok { color: var(--lime); }
.form__msg.err { color: #ffab86; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.topbar .logo { padding-block: 10px; }

/* scelta multipla nel modulo: pillole da spuntare */
.chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.chips legend .opt { font-weight: 400; color: var(--muted); }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px; border: 1.5px solid var(--line); background: rgb(255 255 255 / .04); transition: background .15s, border-color .15s, color .15s; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; opacity: .55; flex: none; }
.chip:hover span { border-color: rgb(200 234 136 / .5); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: #0b0d10; }
.chip input:checked + span::before { opacity: 1; background: #0b0d10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c8ea88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: #0b0d10; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------------------------------------------------------------- lavori: card che scorrono in orizzontale */
.railhead { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 40px); }
.railhead .blk__head { margin-bottom: 0; }
.railnav { display: flex; gap: 10px; }
.railbtn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); transition: background .2s, opacity .2s; }
.railbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(45deg); }
.railbtn--prev svg { transform: rotate(-135deg); }
.railbtn:hover:not(:disabled) { background: var(--lime); color: #0b0d10; }
.railbtn:disabled { opacity: .3; cursor: default; }
.rail { --pad: max(var(--gx), (100% - var(--w)) / 2); list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 22px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; cursor: grab; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .2); border-radius: 6px; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .pj { pointer-events: none; }
.rail > li { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
.pj { display: grid; grid-template-rows: auto auto; height: 100%; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; background: var(--c1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 20px 50px -30px rgb(0 0 0 / .8); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; user-select: none; -webkit-user-drag: none; }
.pj:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(200 234 136 / .35), 0 30px 60px -30px rgb(69 182 73 / .45); }
.pj .pjlogo { aspect-ratio: 4 / 3; border-radius: 0; }
.pj__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: radial-gradient(circle at 100% 0%, var(--c2), transparent 70%), var(--c1); }
.pj__type { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.pj__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .16); flex: none; transition: background .2s, transform .2s; }
.pj__go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pj:hover .pj__go, .nextpj:hover .pj__go { background: var(--lime); transform: rotate(45deg); }
.pj:hover .pj__go svg, .nextpj:hover .pj__go svg { stroke: #0b0d10; }
.pj:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* il riquadro del logo, con la scritta di riserva */
.pjlogo { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--panel); color: var(--ink); border-radius: 24px; }
.pjlogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16% 18%; background: var(--panel); }
.pjlogo--big { aspect-ratio: 1; width: min(100%, 360px); justify-self: center; box-shadow: 0 30px 80px -40px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(255 255 255 / .08); }
.wm { font-size: clamp(26px, 3.2vw, 34px); line-height: 1; letter-spacing: -.03em; text-align: center; padding: 0 12px; }
.pjlogo--big .wm { font-size: clamp(34px, 6vw, 52px); }
.wm--sun { font-weight: 800; }
.wm--sun::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .18em; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 .12em #fde68a; vertical-align: .05em; }
.wm--heavy { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.wm--tech { font-weight: 300; text-transform: lowercase; letter-spacing: .08em; }
.wm--tech::after { content: "."; color: #3b82f6; font-weight: 800; }
.wm--serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------------------------------------------------------------- pagina del singolo lavoro */
.pjhead { position: relative; padding: calc(var(--bar-h) + clamp(36px, 7vw, 80px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.pjhead::before { content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 60% at 80% 30%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%); }
.pjhead__in { display: grid; gap: 40px; align-items: center; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 0; }
.back:hover { color: var(--fg); }
.pjhead__type { margin: 22px 0 0; color: var(--lime); font-weight: 650; font-size: 15px; }
.pjhead h1 { margin: 8px 0 0; font-size: clamp(46px, 9vw, 96px); font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.pjhead__lead { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); }
.pjhead .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 900px) { .pjhead__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } }

/* mockup: computer e telefono */
.mock { padding-block: clamp(20px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.devices { position: relative; padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 64px) clamp(56px, 9vw, 110px); border-radius: 32px;
  background: radial-gradient(70% 90% at 70% 20%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 70%), var(--c1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.lap { border-radius: 16px; overflow: hidden; background: #15171b; box-shadow: 0 40px 90px -40px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .1); }
.lap__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1d2025; }
.lap__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.lap__bar span { margin-left: 10px; flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .06); color: #9aa3a0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; overflow: hidden; background: #0b0d10; isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(#fff, #000); }
.screen--lap { aspect-ratio: 1440 / 900; }
.screen .pjlogo { position: absolute; inset: 0; border-radius: 0; }
.screen__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: #fff; }
.screen.is-live iframe { opacity: 1; }
.screen__note { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 13px; color: var(--ink, #9aa3a0); }
.screen.is-live .screen__note { display: none; }
.phone { position: absolute; right: clamp(10px, 4vw, 48px); bottom: clamp(12px, 3vw, 36px); width: clamp(118px, 17vw, 200px); padding: 5px; border-radius: 22px; background: #15171b;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .14); }
.phone::before { content: ""; position: absolute; left: 50%; top: 9px; width: 30%; height: 5px; border-radius: 999px; background: #0b0d10; transform: translateX(-50%); z-index: 3; }
.screen--phone { aspect-ratio: 390 / 844; border-radius: 17px; }
@media (max-width: 600px) { .phone { width: 36vw; padding: 4px; border-radius: 15px; } .phone::before { top: 7px; height: 4px; } .screen--phone { border-radius: 11px; } .devices { padding-bottom: clamp(70px, 24vw, 110px); } }
@media (min-width: 1100px) { .phone { padding: 7px; border-radius: 28px; } .phone::before { top: 12px; height: 6px; } .screen--phone { border-radius: 21px; } }
.screen--phone .wm { font-size: clamp(13px, 1.8vw, 20px); }

/* cosa ho fatto */
.pjdone { display: grid; gap: 28px; }
.done { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.done li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; line-height: 1.45; }
.done li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 4px; background: var(--lime); flex: none; }
@media (min-width: 900px) { .pjdone { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } .done { grid-template-columns: 1fr 1fr; } }

/* prossimo lavoro */
.pjnext__in { display: grid; gap: 16px; }
.nextpj { position: relative; display: grid; gap: 6px; align-content: end; min-height: 220px; padding: 28px; border-radius: 26px; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 90% 10%, var(--c2), transparent 65%), var(--c1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.nextpj .pj__go { position: absolute; top: 22px; right: 22px; }
.nextpj__k { font-size: 14px; opacity: .8; }
.nextpj__n { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.nextpj__t { font-size: 15px; opacity: .85; }
.nextcta { display: grid; align-content: center; gap: 10px; padding: 28px; border-radius: 26px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.nextcta h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.nextcta p { margin: 0 0 8px; color: var(--muted); }
.nextcta .btn { justify-self: start; }
@media (min-width: 860px) { .pjnext__in { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- pagine dei servizi */
.srvhead::before { background: radial-gradient(50% 60% at 80% 30%, rgb(69 182 73 / .32), transparent 70%); }
.srvhead h1 { font-size: clamp(40px, 7vw, 76px); max-width: 13ch; }
.srvprice { margin: 22px 0 0; font-size: 22px; font-weight: 800; color: var(--lime); letter-spacing: -.02em; }
.srvprice span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.srvico { justify-self: center; display: grid; place-items: center; width: min(100%, 320px); aspect-ratio: 1; border-radius: 40px;
  background: radial-gradient(circle at 30% 25%, rgb(200 234 136 / .28), rgb(69 182 73 / .08) 60%), rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(200 234 136 / .22), 0 40px 90px -50px rgb(69 182 73 / .7); }
.srvico .ico { width: 46%; height: auto; stroke-width: 1.1; }
.srvico .ico .a { stroke-width: 1.4; }
.rail--few { padding-top: 0; }
.dfaq { display: grid; gap: 10px; }
.dfaq details { border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.dfaq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 17px; }
.dfaq summary::-webkit-details-marker { display: none; }
.dfaq summary::after { content: "+"; color: var(--lime); font-size: 22px; line-height: 1; transition: transform .2s; }
.dfaq details[open] summary::after { transform: rotate(45deg); }
.dfaq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.55; }
.others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.others p { width: 100%; margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.others a { padding: 10px 16px; border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 15px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.others a:hover { box-shadow: inset 0 0 0 1px var(--lime); }

/* dentro l'anteprima: pagina nascosta finché non è portata in alto */
html.fw body { opacity: 0; }

/* ---------------------------------------------------------------- lavori: card a ventaglio, quella al centro più grande */
.rail--cf { position: relative; --cw: min(64vw, 340px); gap: 0; padding: 30px calc(50% - var(--cw) / 2) 40px; scroll-padding-inline: 0; scrollbar-width: none; perspective: 1400px; }
.rail--cf::-webkit-scrollbar { display: none; }
.rail--cf > li { flex: 0 0 var(--cw); scroll-snap-align: center; position: relative; pointer-events: none; }   /* tocca solo la card, non lo spazio vuoto */
.rail--cf > li > .cf { pointer-events: auto; }
.cf { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; background: var(--c1);
  transform-origin: 50% 60%; will-change: transform; box-shadow: 0 30px 60px -28px rgb(0 0 0 / .85), inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: box-shadow .3s; -webkit-user-drag: none; user-select: none; }
.cf .pjlogo { position: absolute; inset: 0; border-radius: 0; padding-bottom: 30%; }
.cf .pjlogo .wm { font-size: clamp(28px, 6vw, 40px); }
.cf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .72) 100%); pointer-events: none; }
.cf__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 20px 22px 22px; }
.cf__name { display: flex; align-items: center; gap: 9px; font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; letter-spacing: -.03em; }
.cf__name i { width: 14px; height: 14px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 2px rgb(255 255 255 / .85); flex: none; }
.cf__type { font-size: 14.5px; font-weight: 600; opacity: .92; }
.cf__go { font-size: 13px; opacity: .7; }
.cf.is-center { box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 0 2px rgb(200 234 136 / .0), inset 0 0 0 1px rgb(255 255 255 / .12); }
.cf.is-center .cf__go { opacity: 1; color: var(--lime); }
.cf:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.rail--cf.is-drag .cf { pointer-events: none; }

/* loghi veri nelle card: bianchi sul colore del marchio (scelta di Lorenzo); la versione a colori resta come riserva */
.cf .pjlogo img { inset: 0 0 30% 0; height: 70%; padding: 14% 16% 6%; }
.cf__white { position: absolute; inset: 0; display: none; background: radial-gradient(120% 90% at 50% 10%, var(--c2), var(--c1) 70%); }
.cf__white img { position: absolute; inset: 0 0 30% 0; width: 100%; height: 70%; object-fit: contain; padding: 14% 16% 6%; }
.loghi--bianco .cf__white { display: block; }
.loghi--bianco .cf .pjlogo { visibility: hidden; }
.railnav { flex-wrap: wrap; align-items: center; }

/* pagina del progetto: il marchio a colori e in bianco */
.board { padding-block: clamp(8px, 2vw, 20px) clamp(40px, 6vw, 72px); }
.board__in { display: grid; gap: 16px; }
.board figure { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 28px; padding: clamp(28px, 6vw, 64px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.board img { width: 100%; height: 100%; object-fit: contain; max-width: 420px; }
.board__b { background: radial-gradient(120% 90% at 50% 10%, var(--c2), var(--c1) 70%); }
@media (min-width: 800px) { .board__in { grid-template-columns: 1fr 1fr; } }
.pjlogo--big img { padding: 18%; }
.board__in { grid-template-columns: minmax(0, 1fr); }
.board figure { min-width: 0; overflow: hidden; }
.board img { max-height: 360px; }
@media (min-width: 800px) { .board__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* loghi a colori: in basso la fascia prende il colore del marchio */
.loghi--colori .cf:not(.cf--foto)::after { background: linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--c1) 92%, transparent) 78%, var(--c1) 100%); }
@media (max-width: 699px) { .railbtn { display: none; } }
.board figure { position: relative; padding: 0; }
.board img { position: absolute; inset: 14%; width: 72%; height: 72%; max-width: none; max-height: none; object-fit: contain; }
/* card a ventaglio: un solo logo, già bianco (o nero per Beesign), sempre visibile */
.cf__white { display: block; }

/* galleria del progetto */
.gal__grid { display: grid; gap: 16px; }
.gal__item { margin: 0; display: grid; gap: 10px; min-width: 0; }
.gal__open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -40px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(255 255 255 / .06); }
.gal__open img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gal__open:hover img { transform: scale(1.025); }
.gal__open:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.gal__item figcaption { font-size: 14px; color: var(--muted); }
@media (min-width: 800px) { .gal__grid { grid-template-columns: 1fr 1fr; gap: 22px; } .gal__item--wide { grid-column: 1 / -1; } }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 6 8 / .94); color: #f1f3f2; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(92vw, 1400px); }
.lightbox img { max-width: 100%; max-height: 82dvh; border-radius: 14px; }
.lightbox figcaption { color: #9aa3a0; font-size: 15px; }
.lightbox__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox button:hover { background: rgb(200 234 136 / .9); color: #0b0d10; }
.lightbox button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* pagina del progetto: il racconto */
.story__in { display: grid; gap: 22px; }
.story h2 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.story p { margin: 0 0 18px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--muted); max-width: 38em; }
.story p:first-child { color: var(--fg); }
@media (min-width: 900px) { .story__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }
.foot__nc { display: block; margin-top: 4px; opacity: .75; }

.pjhead__lead a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
