/* CraftByMarco — pagine interne. Stesso mondo della home: la carta, le polaroid, la Traccia.
   Ogni pagina ha la sua apertura (collage di lavori, foglio, corta); componenti fisici: fogli, filo e mollette,
   calendari a strappo, post-it, scontrino, righello. */

/* ---------------------------------------------------------------- apertura con l'inquadratura dello studio */
.page-hero { position: relative; padding-block: 40px 70px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 80% 20%, rgba(69, 51, 33, .55), transparent 70%); pointer-events: none; }
.page-hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.page-hero h1 { font-size: clamp(46px, 6vw, 88px); }
.page-hero .lead { margin-top: 24px; }
.page-photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #2a2521; }
.page-photo img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.page-photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .08); pointer-events: none; }
.page-photo figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #f3e9da; background: rgba(22, 23, 24, .55); padding: 7px 9px; }
.times { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 30px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--weak); }
.times div { display: grid; }
.times dt { font: 600 36px/1 var(--display); color: var(--amber); }
.times dt span { font: 500 13px/1 var(--font); margin-left: 2px; }
.times dd { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.times-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------- indice di pagina: linguette numerate da toccare */
.subnav { position: sticky; top: var(--nav); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 9px max(var(--gutter), calc((100vw - var(--max)) / 2)); background: rgba(22, 23, 24, .95); border-block: 1px solid var(--weak); }
@supports (backdrop-filter: blur(1px)) { .subnav { background: rgba(22, 23, 24, .86); backdrop-filter: blur(12px); } }
.subnav::before { content: 'In questa pagina'; display: none; flex: none; font: 600 10.5px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.subnav ol { position: relative; display: flex; gap: 6px; flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; counter-reset: sub; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.subnav ol::-webkit-scrollbar { display: none; }
.subnav li { flex: none; }
.subnav li:last-child { padding-right: 40px; }
.subnav a { counter-increment: sub; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px 0 11px; border: 1px solid rgba(103, 107, 104, .95); background: var(--surface-2); font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.subnav a::before { content: counter(sub, decimal-leading-zero); font: 600 11px/1 var(--font); letter-spacing: .05em; color: var(--amber); }
.subnav a:hover { border-color: var(--amber); background: #1f1c16; }
.subnav a[aria-current] { background: var(--amber); border-color: var(--amber); color: var(--price); font-weight: 600; }
.subnav a[aria-current]::before { color: var(--price); }
@media (min-width: 1080px) {
  .subnav::before { display: block; }
  .subnav ol { -webkit-mask-image: none; mask-image: none; }
  .subnav li:last-child { padding-right: 0; }
}

/* ---------------------------------------------------------------- sezioni */
.section { padding-block: 84px; border-top: 1px solid var(--weak); }
.section-head { margin-bottom: 40px; max-width: 780px; }
.section-head .lead { margin-top: 18px; }
.section--warm { background: radial-gradient(80% 90% at 15% 20%, rgba(237, 181, 103, .08), transparent 60%), radial-gradient(60% 70% at 90% 90%, rgba(69, 51, 33, .5), transparent 70%), var(--bg); }

/* offerte complete */
.offers--full .offer .desc { margin: 14px 0 18px; }

/* piani social */
.plans { display: grid; gap: 14px; }
.plan { background: var(--price); border: 1px solid var(--weak); padding: 24px 22px; display: flex; flex-direction: column; }
.plan.is-featured { border-color: rgba(237, 181, 103, .5); }
.plan h3 { font-size: 30px; }
.plan .plan-price { font: 600 44px/1 var(--display); color: var(--amber); margin: 14px 0 18px; }
.plan .plan-price span { font: 500 14px/1 var(--font); color: var(--muted); margin-left: 4px; }
.plan dl { margin: 0; border-top: 1px solid var(--weak); }
.plan dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--weak); font-size: 14px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; }
.plan dd.none { color: var(--muted); }
.plans-foot { display: grid; gap: 30px; margin-top: 40px; }
.plans-foot h3 { font-size: 26px; margin-bottom: 14px; }
.plans-foot p { color: var(--muted); font-size: 15px; }

/* listino delle piccole cose: uno scontrino di carta */
.receipt { position: relative; max-width: 760px; padding: 34px 30px 30px; transform: rotate(-.4deg); }
.receipt .sheet-kicker { margin-bottom: 18px; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--ink-line); font-size: 15.5px; color: var(--ink); }
.receipt li::after { content: ''; order: 2; border-bottom: 1.5px dotted rgba(51, 46, 37, .35); transform: translateY(-4px); }
.receipt li .item { order: 1; }
.receipt li .cost { order: 3; font: 600 19px/1 var(--display); color: #7a4a18; white-space: nowrap; }
.receipt li small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.receipt .receipt-group { font: 600 14.5px/1.55 var(--font); color: var(--ink); padding: 26px 0 8px; border: 0; display: block; }
.receipt .receipt-group::after { display: none; }
.receipt-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }

/* il laboratorio: quattro schede, ognuna con il suo stato scritto */
.lab-cards { display: grid; gap: 16px; }
.lab-card { position: relative; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--weak); padding: 26px 22px 22px; }
.lab-card[data-state="prova"] { border-style: dashed; border-color: var(--line); }
.lab-card[data-state="lavori"] { border-style: dashed; border-color: var(--weak); background: transparent; }
.lab-state { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 10px; font: 600 11px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; }
.lab-state::before { content: ''; width: 7px; height: 7px; flex: none; }
.lab-card[data-state="fatto"] .lab-state { background: var(--amber); color: var(--price); }
.lab-card[data-state="fatto"] .lab-state::before { background: var(--price); }
.lab-card[data-state="prova"] .lab-state { border: 1px solid var(--amber); color: var(--amber); }
.lab-card[data-state="prova"] .lab-state::before { border: 1px solid var(--amber); }
.lab-card[data-state="lavori"] .lab-state { border: 1px dashed var(--line); color: var(--muted); }
.lab-card[data-state="lavori"] .lab-state::before { border: 1px dashed var(--muted); }
.lab-card h3 { font-size: clamp(28px, 2.6vw, 34px); }
.lab-card > p:not(.lab-state) { color: var(--muted); margin-top: 12px; font-size: 15px; }
.lab-card .actions { margin-top: auto; padding-top: 22px; gap: 10px 22px; }

/* cosa non facciamo: la cosa, cancellata a mano; accanto il perché */
.no-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--weak); }
.no-list li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--weak); }
.no-what { position: relative; justify-self: start; font: 600 clamp(30px, 3.4vw, 44px)/1.05 var(--display); color: var(--muted); letter-spacing: -.01em; }
.no-what::after { content: ''; position: absolute; left: -4px; right: -6px; top: 50%; height: 17px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12C30 7 58 14 90 9s70 3 107-2' fill='none' stroke='%23EDB567' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform-origin: 0 50%; transform: scaleX(1); }
html.motion .no-list li.reveal:not(.is-in) .no-what::after { transform: scaleX(0); }
html.motion .no-list li .no-what::after { transition: transform .7s .25s var(--ease); }
.no-why { color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 60ch; }
.no-why strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- cosa facciamo: l'apertura e' un collage di lavori veri */
.hero-collage { position: relative; margin: 0 0 34px; aspect-ratio: 5 / 4; }
.hc-piece { position: absolute; overflow: hidden; box-shadow: 0 26px 54px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3); }
.hc-piece img { display: block; width: 100%; }
.hc-browser { left: 0; top: 2%; width: 80%; background: #202223; border: 1px solid var(--weak); transform: rotate(-1.6deg); }
.hc-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--weak); }
.hc-bar::before { content: ''; width: 7px; height: 7px; background: #62a86f; flex: none; }
.hc-app { left: 10%; bottom: 0; width: 66%; border-radius: 10px; transform: rotate(1.4deg); }
.hc-phone { right: 0; top: 14%; width: 28%; aspect-ratio: 390 / 780; border: 6px solid #0c0d0d; border-radius: 24px; background: #0c0d0d; transform: rotate(3.2deg); }
.hc-phone img { height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }
.hero-collage figcaption { position: absolute; left: 0; bottom: -30px; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html.motion .hc-piece { animation: piece-in .9s var(--ease) both; }
html.motion .hc-app { animation-delay: .18s; }
html.motion .hc-phone { animation-delay: .32s; }
@keyframes piece-in { from { opacity: 0; translate: 0 24px; } }

/* ---------------------------------------------------------------- contatti: apertura corta, subito il pulsante */
.page-hero--short { padding-block: 64px 58px; }
.page-hero--short::before { background: radial-gradient(50% 90% at 12% 0%, rgba(237, 181, 103, .12), transparent 70%), radial-gradient(60% 80% at 90% 30%, rgba(69, 51, 33, .5), transparent 70%); }
.page-hero--short h1 { font-size: clamp(50px, 8vw, 116px); max-width: 12ch; }
.page-hero--short .lead { max-width: 56ch; }
.page-hero--short .btn { min-height: 58px; font-size: 15.5px; padding-inline: 24px; }

/* ---------------------------------------------------------------- come lavoriamo: l'apertura e' il foglio stesso */
.page-hero--paper { padding-block: 44px 76px; }
.page-hero--paper::before { background: radial-gradient(60% 80% at 50% 10%, rgba(69, 51, 33, .6), transparent 70%); }
.hero-sheet { position: relative; max-width: 980px; padding: 44px 26px 34px; margin: 26px 0 30px; transform: rotate(-.6deg); }
.hero-sheet .clip-l { left: 14%; } .hero-sheet .clip-r { right: 14%; }
.hero-sheet .sheet-kicker { margin-bottom: 18px; }
.hero-sheet h1 { color: var(--ink); font-size: clamp(44px, 7.2vw, 96px); line-height: .94; }
.hero-sheet h1 em { color: #B8621F; }
html.motion .hero-sheet { animation: sheet-in .9s var(--ease) both; transform-origin: 50% 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-18px) rotate(-3deg); } }

/* ---------------------------------------------------------------- lavori: l'apertura e' lo studio in 3D */
.page-hero--3d { padding-block: 34px 64px; }
.page-hero--3d::before { background: radial-gradient(60% 70% at 85% 0%, rgba(69, 51, 33, .55), transparent 70%); }
.s3d-head { position: relative; display: grid; gap: 18px; margin-bottom: 26px; }
.page-hero--3d h1 { font-size: clamp(44px, 5vw, 72px); }
.s3d-head .lead { margin-top: 0; }
.s3d { position: relative; margin: 0; }
.s3d-stage { position: relative; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; max-height: 78svh; overflow: hidden; background: var(--bg); }
.s3d-poster, .s3d-canvas, .s3d-canvas canvas, .s3d-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.s3d-poster, .s3d-video { object-fit: cover; }
.s3d-poster { transition: opacity .9s var(--ease); }
.s3d-canvas { opacity: 0; transition: opacity .9s var(--ease); cursor: grab; }
.s3d-canvas:active { cursor: grabbing; }
.s3d-canvas canvas { display: block; }
.s3d[data-live] .s3d-poster { opacity: .16; }
.s3d[data-ready] .s3d-canvas { opacity: 1; }
.s3d[data-ready] .s3d-poster { opacity: 0; }
.s3d-play { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; border: 1px solid rgba(237, 181, 103, .65); background: rgba(22, 23, 24, .8); color: var(--text); font: 600 12.5px/1 var(--font); transition: border-color .2s, background .2s; }
.s3d-play:hover { border-color: var(--amber); background: #1f1c16; }
.s3d-play .icon { width: 15px; height: 15px; color: var(--amber); }
.s3d-play .i-play { fill: var(--amber); stroke: none; }
.s3d-play .i-stop { display: none; stroke-width: 2.6; }
.s3d-play[aria-pressed="true"] .i-play { display: none; }
.s3d-play[aria-pressed="true"] .i-stop { display: block; }
.s3d-load { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); flex-wrap: wrap; justify-content: center; gap: 2px 10px; text-align: center; }
.s3d-load small { font-size: 12.5px; font-weight: 500; opacity: .75; }
.s3d-hint { position: absolute; left: 50%; bottom: 92px; z-index: 2; margin: 0; max-width: none; padding: 7px 12px; background: rgba(22, 23, 24, .8); border-left: 2px solid var(--amber); font: 500 13px/1.3 var(--font); color: var(--text); white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.s3d[data-hint="on"] .s3d-hint { opacity: 1; transform: translate(-50%, 0); }
.s3d[data-fallback] .s3d-hint { display: none; }
.s3d-status { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; margin: 0; max-width: none; font: 500 13px/1.4 var(--font); color: var(--muted); }
.s3d-status:empty { display: none; }
.s3d-states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.s3d-states button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 6px; border: 1px solid rgba(103, 107, 104, .95); background: var(--surface-2); color: var(--text); font: 500 13px/1 var(--font); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.s3d-states button:hover { border-color: var(--amber); background: #1f1c16; }
.s3d-states .num { font: 600 11px/1 var(--font); color: var(--amber); letter-spacing: .05em; }
.s3d-states button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--price); font-weight: 600; }
.s3d-states button[aria-pressed="true"] .num { color: var(--price); }
.s3d figcaption { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.s3d figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 440px) { .s3d-states .num { display: none; } .s3d-states button { font-size: 12.5px; padding: 0 4px; } }
/* "Esplorate la stanza": lo stage diventa tutto lo schermo, le fasi restano in basso */
.s3d-exit { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border: 1px solid rgba(237, 181, 103, .65); background: rgba(22, 23, 24, .85); color: var(--text); font: 600 13px/1 var(--font); transition: border-color .2s, background .2s; }
.s3d-exit:hover { border-color: var(--amber); background: #1f1c16; }
.s3d-exit .icon { width: 16px; height: 16px; color: var(--amber); }
/* "Esplorate la stanza": il pulsante grande, in basso al centro della scena */
.s3d-explore { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); justify-content: flex-start; gap: 14px; min-height: 60px; padding: 10px 24px 10px 18px; font-size: 16px; white-space: nowrap; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.s3d-explore:active { transform: translate(-50%, 1px); }
.s3d-explore .icon { width: 24px; height: 24px; color: var(--price); }
.s3d-explore small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; opacity: .75; }
/* l'avviso entrando: gesto (dito o mouse, dal tipo di puntatore) e l'invito ai punti luminosi */
.s3d-help { position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(460px, calc(100% - 24px)); margin: 0; padding: 12px 16px 12px 12px; background: rgba(22, 23, 24, .88); border-left: 2px solid var(--amber); color: var(--text); transform: translateX(-50%); transition: opacity .6s var(--ease); pointer-events: none; }
.s3d-help p { margin: 0; font: 500 14px/1.45 var(--font); }
.s3d-help b { color: var(--amber); font-weight: 600; }
/* i punti luminosi sui quadri: toccandoli la camera si avvicina */
.s3d-spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.s3d-spot { position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: none; pointer-events: auto; }
.s3d-spot-dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #FFE2B3; box-shadow: 0 0 0 3px rgba(237, 181, 103, .55), 0 0 18px 6px rgba(237, 181, 103, .6); }
.s3d-spot-dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(237, 181, 103, .85); animation: spot-pulse 1.9s ease-out infinite; }
@keyframes spot-pulse { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.s3d-spot-label { position: absolute; left: 50%; top: calc(100% - 2px); transform: translateX(-50%); padding: 4px 8px; background: rgba(22, 23, 24, .88); color: var(--text); font: 500 12px/1.2 var(--font); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.s3d-spot:hover .s3d-spot-label, .s3d-spot:focus-visible .s3d-spot-label { opacity: 1; }
.s3d-spot:focus-visible { outline-offset: 0; border-radius: 50%; }
.s3d[data-help="off"] .s3d-help { opacity: 0; }
html.s3d-lock, html.s3d-lock body { overflow: hidden; }
.s3d.is-exploring .s3d-stage { position: fixed; inset: 0; z-index: 150; width: auto; height: auto; max-height: none; min-height: 0; aspect-ratio: auto; margin: 0; }
.s3d.is-exploring .s3d-exit { top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); }
.s3d.is-exploring .s3d-play, .s3d.is-exploring .s3d-explore, .s3d.is-exploring .s3d-hint, .s3d.is-exploring .s3d-poster { display: none; }
.s3d.is-exploring .s3d-states { position: fixed; z-index: 151; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(520px, calc(100vw - 24px)); margin: 0; transform: translateX(-50%); }
.s3d.is-exploring .s3d-states button { width: 100%; padding: 0 6px; background: rgba(28, 29, 30, .92); }
.s3d.is-exploring .s3d-states button[aria-pressed="true"] { background: var(--amber); }

/* le quattro tappe: foglietti appesi a un filo (verticale sul telefono, orizzontale sugli schermi larghi) */
.line-notes { position: relative; list-style: none; margin: 0; padding: 6px 0 0 38px; display: grid; gap: 30px; }
.line-notes::before { content: ''; position: absolute; left: 13px; top: -24px; bottom: -12px; width: 2px; background: linear-gradient(180deg, #a07e58, #7a5c40); border-radius: 2px; }
.line-note { position: relative; }
/* il foglietto e' un pezzo a parte: la molletta resta ferma sul filo, la carta ci gira intorno */
.note-paper { position: relative; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(92, 70, 40, .08)), var(--grain); background-blend-mode: normal, multiply; padding: 26px 20px 22px; box-shadow: 5px 12px 26px rgba(0, 0, 0, .3), 1px 2px 4px rgba(0, 0, 0, .2); --rr: var(--r, 0deg); transform: rotate(var(--rr)); transform-origin: 0 30px; }
.line-note .peg { left: -34px; top: 16px; margin: 0; transform: rotate(-90deg); transform-origin: 50% 50%; z-index: 3; }
.line-note .note-when { display: inline-block; font: 600 12.5px/1.3 var(--font); color: #7a4a18; background: rgba(184, 98, 31, .12); padding: 6px 9px; }
.line-note h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; font: 600 clamp(28px, 2.6vw, 34px)/1.05 var(--display); color: var(--ink); }
.line-note h3 .n { font: 600 13px/1 var(--font); color: #9C6A2E; letter-spacing: .06em; }
.note-paper > p:not(.note-when):not(.note-get) { margin-top: 10px; font-size: 16px; line-height: 1.58; color: var(--ink-soft); }
.line-note .mark-circle, .line-note .mark-under { color: var(--ink); }
.note-get { margin-top: 16px; padding: 9px 11px; border: 1.5px solid #B8621F; color: #7a3f14; font: 600 13.5px/1.45 var(--font); transform: rotate(-1.2deg); }
/* l'entrata delle tappe, una dopo l'altra: prima la molletta sul filo, poi il foglietto che scende, oscilla e si
   ferma. Con "riduci movimento" solo una dissolvenza. Senza JavaScript le tappe sono gia' li'. */
#tappe { overflow-x: clip; }                      /* mentre oscillano, i foglietti non devono far comparire la barra orizzontale */
.line-notes.is-waiting .line-note:not(.is-hung) .peg, .line-notes.is-waiting .line-note:not(.is-hung) .note-paper { opacity: 0; }
html.motion .line-note.is-hung .peg { animation: peg-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 260ms); }
html.motion .line-note.is-hung .note-paper { animation: note-swing 1.5s both; animation-delay: calc(var(--i, 0) * 260ms + 260ms); }
@keyframes peg-in { from { opacity: 0; translate: 0 -16px; } }
@keyframes note-swing {
  0% { opacity: 0; transform: translateY(-10px) rotate(calc(var(--rr) - 11deg)); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  18% { opacity: 1; }
  38% { transform: rotate(calc(var(--rr) + 5deg)); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  60% { transform: rotate(calc(var(--rr) - 2.4deg)); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  80% { transform: rotate(calc(var(--rr) + .9deg)); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { transform: rotate(var(--rr)); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) .line-note.is-hung .peg, html:not(.motion-forced) .line-note.is-hung .note-paper { animation: none !important; transition: opacity .45s ease !important; transition-duration: .45s !important; }
}

/* i due orologi: calendari a strappo, i giorni si cancellano quando entrano nello schermo */
.pads { display: grid; gap: 30px; align-items: start; }
.pad { position: relative; color: var(--ink); background: var(--paper); box-shadow: 6px 14px 30px rgba(0, 0, 0, .32), 1px 2px 4px rgba(0, 0, 0, .2); }
.pad-top { position: relative; height: 34px; background: linear-gradient(180deg, #2c2b29, #1a1918); }
.pad-top::before { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 12px; margin-top: -6px; background: radial-gradient(circle at 6px 6px, #8e8b86 0 3px, #3a3835 3.4px 5.5px, transparent 6px) 0 0 / 34px 12px; background-repeat: space no-repeat; }
.pad-body { padding: 24px 22px 26px; background-image: linear-gradient(160deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 45%, rgba(92, 70, 40, .08)), var(--grain); background-blend-mode: normal, multiply; }
.pad h3 { font: 600 11.5px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pad-big { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 18px; font: 500 15px/1 var(--font); color: var(--ink-soft); }
.pad-big b { font: 600 clamp(84px, 9vw, 120px)/.82 var(--display); color: var(--ink); letter-spacing: -.02em; }
.pad-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pad-days li { position: relative; aspect-ratio: 1; border: 1px solid var(--ink-line); font: 600 11px/1 var(--font); color: var(--ink-soft); padding: 4px; }
.pad-days li::after { content: ''; position: absolute; inset: 32% 10% 8% 28%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'%3E%3Cpath d='M6 7c9 8 19 17 28 27M33 6C24 15 15 24 7 34' fill='none' stroke='%23332E25' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: 0; transform: scale(.4) rotate(-12deg); }
.pad-days li.is-goal { border-color: #B8621F; color: #7a3f14; }
.pad-days li.is-goal::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'%3E%3Cpath d='M20 4C8 4 3 13 5 22c2 10 13 15 22 12 9-3 12-13 9-21C33 6 25 3 17 5' fill='none' stroke='%23B8621F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); inset: 6%; }
.pad.is-in .pad-days li::after { animation: day-off .35s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .11s); }
@keyframes day-off { to { opacity: .82; transform: none; } }
.pad-goal { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.pad-goal b { color: #7a3f14; font-weight: 600; }

/* dopo la consegna: le regole scritte sui post-it */
.postits { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.postit { position: relative; min-height: 132px; padding: 22px 14px 16px; color: #3a2a12; background: linear-gradient(170deg, #f6dd9c, #efc978 70%, #e8bd66); font-size: 14px; line-height: 1.45; box-shadow: 3px 8px 16px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .2); transform: rotate(var(--r, 0deg)); }
.postit::before { content: ''; position: absolute; left: 50%; top: -9px; width: 58px; height: 18px; margin-left: -29px; background: rgba(243, 240, 232, .38); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transform: rotate(-3deg); }
.postit b { display: block; font: 600 20px/1.05 var(--display); color: #2a1d0c; margin-bottom: 8px; }
.postit strong { font-weight: 700; }
html.motion .postit.reveal:not(.is-in) { opacity: 0; transform: translateY(10px) rotate(calc(var(--r, 0deg) + 4deg)); }

/* il mese social: un righello con tre bandierine */
.ruler-box { background: var(--surface-2); border: 1px solid var(--weak); padding: 30px 18px 22px; }
.ruler { position: relative; height: 112px; }
.ruler-band { position: absolute; left: 0; right: 0; top: 0; padding: 6px 10px; background: rgba(237, 181, 103, .13); border-left: 2px solid var(--amber); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruler-scale { position: absolute; left: 0; right: 0; top: 60px; height: 22px; border-top: 2px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 29)) 0 0 / 100% 9px no-repeat; }
.ruler-scale i { position: absolute; top: 12px; left: calc((var(--d) - 1) / 29 * 100%); transform: translateX(-50%); font: 600 11px/1 var(--font); font-style: normal; color: var(--muted); }
.ruler-scale i:first-child { transform: none; }
.ruler-scale i:last-child { transform: translateX(-100%); }
.ruler-range { position: absolute; top: 44px; height: 8px; left: 0; width: calc(9 / 29 * 100%); border: 2px solid var(--amber); border-bottom: 0; }
.ruler-flag { position: absolute; top: 36px; left: calc((var(--d) - 1) / 29 * 100%); width: 34px; height: 26px; padding: 3px 0 0 7px; border-left: 2px solid var(--amber); background: linear-gradient(var(--amber), var(--amber)) 0 0 / 28px 16px no-repeat; font: 700 11px/1 var(--font); color: var(--price); }
.ruler-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.ruler-notes li { padding: 14px 0; border-top: 1px solid var(--weak); color: var(--muted); font-size: 15px; }
.ruler-notes b { display: block; font: 600 20px/1.1 var(--display); color: var(--text); margin-bottom: 4px; }
.ruler-notes li.is-plan b { color: var(--amber); }

/* domande */
.faq { border-top: 1px solid var(--weak); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--weak); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 clamp(19px, 1.8vw, 23px)/1.3 var(--display); letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--amber), var(--amber)) center / 14px 1.6px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 1.6px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; padding: 0 0 24px; max-width: 70ch; }

/* ---------------------------------------------------------------- lavori */
.case { display: grid; gap: 26px; }
.browser { background: #202223; border: 1px solid var(--weak); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--weak); }
.browser-bar::before { content: ''; width: 7px; height: 7px; background: #62a86f; }
.browser img { width: 100%; }
.case-prints { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-prints .print { padding: 10px 10px 16px; }
.case-prints .print:nth-child(1) { transform: rotate(-1.4deg); }
.case-prints .print:nth-child(2) { transform: rotate(1.2deg) translateY(12px); }
.case-prints .print-pic { aspect-ratio: 1.3; }
.case-prints .print-caption p { font-size: 12.5px; }
/* il pannello dimostrativo: la stessa logica della dashboard di Marco-OS, tema chiaro caldo, colori solo qui dentro */
.pdemo { --pd-bg: #EDE7DC; --pd-sup: #F9F6F0; --pd-sup2: #F1ECE3; --pd-line: #D9CFC0; --pd-line2: #C9BDA9; --pd-txt: #231D16; --pd-mute: #5F564B; --pd-oro: #8E5A0A; --pd-oro-f: #EDB567; --pd-red: #A13A22; --pd-red-bg: #F8E6E0; --pd-green: #276640; --pd-green-bg: #E2F1E6; --pd-yellow: #7E5207; --pd-yellow-bg: #F7EBCB;
  position: relative; min-height: 540px; background: var(--pd-bg); color: var(--pd-txt); border: 1px solid #3B403D; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); font-family: var(--font); font-size: 14px; }
.pd-loading { padding: 40px 22px; color: var(--pd-mute); }
.pd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--pd-sup); }
.pd-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.pd-brand b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.pd-brand span { font-size: 12.5px; color: var(--pd-mute); }
.pd-reset { min-height: 36px; padding: 0 12px; border: 1px solid var(--pd-line2); border-radius: 9px; background: transparent; color: var(--pd-mute); font-size: 12.5px; }
.pd-reset:hover { color: var(--pd-txt); border-color: var(--pd-oro); }
/* le quattro viste: linguette vere e numerate, come la barra dei capitoli della home (bordo, fondo, l'attiva in ambra) */
.pd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 12px 0; background: var(--pd-sup); }
.pd-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 8px; border: 1px solid var(--pd-line2); background: #fff; color: var(--pd-txt); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s; }
.pd-tab .num { font: 600 11px/1 var(--font); color: var(--pd-oro); letter-spacing: .05em; }
.pd-tab:hover { border-color: var(--pd-oro); }
.pd-tab[aria-selected="true"] { background: var(--pd-oro-f); border-color: var(--pd-oro-f); color: #0C0E0E; font-weight: 600; }
.pd-tab[aria-selected="true"] .num { color: #0C0E0E; }
/* l'invito a mano: una freccia d'inchiostro verso le schede, sparisce al primo tocco */
.pd-invite { display: flex; align-items: flex-start; gap: 6px; margin: 0; max-width: none; padding: 6px 14px 0 18px; background: var(--pd-sup); color: var(--pd-oro); font: 600 13.5px/1.2 var(--font); transition: opacity .4s var(--ease), max-height 0s .4s, padding 0s .4s; max-height: 60px; overflow: hidden; }   /* prima sfuma, poi si chiude di colpo: niente animazione dell'altezza */
.pd-invite svg { width: 34px; height: 26px; flex: none; }
.pd-invite .ink { fill: none; stroke: var(--pd-oro); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; animation: ink-draw .9s .4s var(--ease) forwards; }
.pd-invite span { padding-top: 12px; }
.pd-invite.is-gone { opacity: 0; max-height: 0; padding-top: 0; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 420px) { .pd-tab { font-size: 12px; gap: 5px; padding: 0 4px; } .pd-tab .num { font-size: 10px; } }
.pdemo :focus-visible { outline: 2px solid var(--pd-oro); outline-offset: 2px; }
.pd-body { padding: 18px 16px 22px; }
.pd-panel:focus { outline: none; }
.pd-hello { font-size: 15px; font-weight: 500; margin-bottom: 14px; color: var(--pd-txt); max-width: none; }
.pd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.pd-kpi { display: grid; gap: 4px; padding: 12px; background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 12px; }
.pd-kpi b { font: 600 clamp(22px, 3vw, 30px)/1 var(--display); color: var(--pd-oro); }
.pd-kpi span { font-size: 12px; color: var(--pd-mute); line-height: 1.3; }
.pd-kpi.warn b { color: var(--pd-red); }
.pd-cols { display: grid; gap: 12px; }
.pd-box { background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 12px; padding: 14px; }
.pd-box h4, .pd-lane h4 { display: flex; justify-content: space-between; align-items: center; font: 600 11.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--pd-mute); margin: 0 0 10px; }
.pd-check, .pd-due, .pd-pay, .pd-clients, .pd-lane ul { list-style: none; margin: 0; padding: 0; }
.pd-check li { border-top: 1px solid var(--pd-line); }
.pd-check li:first-child { border-top: 0; }
.pd-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-check label { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 34px; cursor: pointer; min-height: 44px; }
.pd-check label::before { content: ''; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border: 1.5px solid var(--pd-line2); border-radius: 6px; background: #fff; transition: background .2s, border-color .2s; }
.pd-check input:checked + label::before { background: var(--pd-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--pd-green); }
.pd-check input:focus-visible + label::before { outline: 2px solid var(--pd-oro); outline-offset: 2px; }
.pd-check .is-done .pd-t { text-decoration: line-through; color: var(--pd-mute); }
.pd-t { font-weight: 500; }
.pd-c, .pd-t small { display: block; font-size: 12px; color: var(--pd-mute); font-weight: 400; }
.pd-due li, .pd-pay li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pd-line); }
.pd-due li:first-child, .pd-pay li:first-child { border-top: 0; }
.pd-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; font: 600 11.5px/1.1 var(--font); font-style: normal; white-space: nowrap; }
.pd-pill.late { background: var(--pd-red-bg); color: var(--pd-red); }
.pd-pill.soon { background: var(--pd-yellow-bg); color: var(--pd-yellow); }
.pd-pill.ok { background: var(--pd-green-bg); color: var(--pd-green); }
.pd-pill.neutral { background: var(--pd-sup2); color: var(--pd-mute); }
.pd-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.pd-chip { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--pd-line2); border-radius: 999px; background: var(--pd-sup); color: var(--pd-txt); font-size: 13px; font-weight: 500; }
.pd-chip[aria-pressed="true"] { background: var(--pd-txt); color: var(--pd-sup); border-color: var(--pd-txt); }
.pd-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 78%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.pd-lane { scroll-snap-align: start; background: var(--pd-sup2); border-radius: 12px; padding: 12px 10px; min-height: 280px; }
.pd-lane h4 span { font: 600 12px/1 var(--font); color: var(--pd-txt); background: var(--pd-sup); border-radius: 999px; padding: 4px 8px; letter-spacing: 0; }
.pd-lane ul { display: grid; gap: 8px; }
.pd-card { display: grid; gap: 6px; padding: 11px 11px 10px; background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 10px; }
.pd-card b { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.pd-chipc { font-size: 11.5px; color: var(--pd-oro); font-weight: 600; }
.pd-cardfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pd-move { width: 36px; height: 36px; border: 1px solid var(--pd-line2); border-radius: 9px; background: #fff; color: var(--pd-txt); font-size: 16px; line-height: 1; }
.pd-move:hover { border-color: var(--pd-oro); color: var(--pd-oro); }
.pd-empty { color: var(--pd-mute); font-size: 12.5px; padding: 8px 2px; }
.lane-done .pd-card { opacity: .75; }
.pd-clients { background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 12px; overflow: hidden; }
.pd-clients > li + li { border-top: 1px solid var(--pd-line); }
.pd-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: var(--pd-txt); min-height: 56px; }
.pd-row:hover { background: var(--pd-sup2); }
.pd-cname b { display: block; font-weight: 600; }
.pd-cname small { font-size: 12px; color: var(--pd-mute); }
.pd-next { grid-column: 1 / -1; order: 3; font-size: 13px; color: var(--pd-mute); }
.pd-detail { padding: 0 14px 14px; font-size: 13.5px; color: var(--pd-txt); }
.pd-detail p { max-width: none; }
.pd-detail p + p { margin-top: 6px; }
.pd-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; padding: 14px 12px 10px; background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 12px; margin-bottom: 12px; }
.pd-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.pd-bar i { align-self: end; display: block; width: 100%; background: var(--pd-line2); border-radius: 6px 6px 2px 2px; transition: height .5s var(--ease); }
.pd-bar.is-now i { background: var(--pd-oro-f); }
.pd-barv { font-size: 10.5px; color: var(--pd-mute); white-space: nowrap; }
.pd-barm { font-size: 11.5px; font-weight: 600; color: var(--pd-mute); }
.pd-pay { background: var(--pd-sup); border: 1px solid var(--pd-line); border-radius: 12px; padding: 4px 14px; }
.pd-pay li { grid-template-columns: 1fr auto auto; }
.pd-pay b { font-weight: 600; }
.pd-pay .is-paid .pd-t { color: var(--pd-mute); }
.pd-mark { min-height: 36px; padding: 0 12px; border: 1px solid var(--pd-green); border-radius: 9px; background: #fff; color: var(--pd-green); font-size: 12.5px; font-weight: 600; }
.pd-mark:hover { background: var(--pd-green-bg); }
.pd-live { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); max-width: calc(100% - 28px); padding: 9px 14px; border-radius: 10px; background: var(--pd-txt); color: var(--pd-sup); font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.pd-live.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) {
  .pdemo { min-height: 560px; }
  .pd-body { padding: 22px 22px 26px; }
  .pd-cols { grid-template-columns: 1fr 1fr; }
  .pd-lanes { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .pd-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; align-items: center; }
  .pd-next { grid-column: auto; order: 0; }
}
.demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
.demo-cards .print { padding: 10px 10px 16px; }
.demo-cards .print:nth-child(odd) { transform: rotate(-.8deg); }
.demo-cards .print:nth-child(even) { transform: rotate(.9deg); }
.demo-cards .print-pic { aspect-ratio: 390 / 560; }
.demo-cards .print-pic img { object-position: top; }
.demo-cards .print-caption h3 { font-size: 22px; }
.restyle-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 14px; }
.motion-card h3 { font: 600 clamp(24px, 2.2vw, 30px)/1.1 var(--display); color: var(--text); }
.motion-card { margin: 0; }
.motion-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #efe7d4; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.motion-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.motion-card figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.honest { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--amber); padding: 4px 0 4px 14px; margin-top: 18px; max-width: 70ch; }

/* ---------------------------------------------------------------- contatti */
.channels { display: grid; gap: 14px; }
.channel { display: grid; gap: 8px; padding: 22px 20px; background: var(--surface-2); border: 1px solid var(--weak); text-decoration: none; transition: border-color .2s; }
a.channel:hover { border-color: var(--amber); }
.channel .eyebrow { margin-bottom: 4px; }
.channel strong { font: 600 clamp(22px, 2vw, 28px)/1.1 var(--display); overflow-wrap: anywhere; }
.channel.is-main strong { font-size: clamp(28px, 3vw, 40px); }
.channel .wa-big { width: 54px; height: 54px; stroke: #7fd3a3; stroke-width: 1.2; margin-bottom: auto; }
.channel span { color: var(--muted); font-size: 14px; }
.channel.is-main { background: #17231d; border-color: #2c4a3b; }
.channel.is-main strong { color: #b7e4c9; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--weak); }
.next-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--weak); }
.next-steps li::before { counter-increment: s; content: '0' counter(s); font: 600 30px/1 var(--display); color: var(--amber); }
.next-steps b { display: block; font: 600 22px/1.2 var(--display); margin-bottom: 6px; }
.next-steps span { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- privacy e 404 */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 46px 0 16px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); }
.legal .updated { font-size: 13px; color: var(--muted); }
.lost { position: relative; min-height: calc(100svh - var(--nav)); display: grid; align-items: end; overflow: hidden; }
.lost-photo { position: absolute; inset: 0; margin: 0; }
.lost-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.lost-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 8%, rgba(22, 23, 24, .75) 45%, rgba(22, 23, 24, .2) 100%); }
.lost-inner { position: relative; padding-block: 60px 70px; }
.lost .note-print { width: 230px; padding: 12px 12px 18px; transform: rotate(-3deg); margin-bottom: 30px; }
.lost .note-print .print-pic { aspect-ratio: 1; background: #d9d1bf; display: grid; place-items: center; font: 600 64px/1 var(--display); color: rgba(51, 46, 37, .25); }

/* ---------------------------------------------------------------- schermi larghi */
@media (min-width: 760px) {
  .page-hero { padding-block: 60px 90px; }
  .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .page-photo { aspect-ratio: 5 / 4; }
  .section { padding-block: 110px; }
  .page-hero--3d { padding-block: 36px 96px; }
  .s3d-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 56px; margin-bottom: 28px; }
  .s3d-head .eyebrow { margin-bottom: 14px; }
  .s3d-stage { width: 100%; margin-inline: 0; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--nav) - 312px); min-height: 380px; }
  .s3d-states { display: flex; }
  .s3d-states button { width: auto; padding: 0 16px 0 13px; }
  .s3d-play { left: 18px; top: 18px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
  .plans-foot { grid-template-columns: 1fr 1fr; gap: 60px; }
  .lab-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .no-list li { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; }
  .hero-sheet { padding: 60px 64px 50px; }
  .pads { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ruler-box { padding: 38px 36px 26px; }
  .ruler-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
  .case { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 34px; }
  .demo-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel.is-main { grid-column: 1 / -1; }
  .receipt { padding: 44px 48px 40px; }
}
@media (min-width: 900px) {
  .line-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 58px 0 0; align-items: start; }
  .line-notes::before { left: 0; right: 0; top: 18px; bottom: auto; width: auto; height: 44px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 50' preserveAspectRatio='none'%3E%3Cpath d='M0 6Q500 50 1000 6' fill='none' stroke='%23927353' stroke-width='2.2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .note-paper { transform-origin: 50% 0; }
  .line-note .peg { left: 50%; top: -40px; margin-left: -7px; transform: none; }
  .line-note:nth-child(2), .line-note:nth-child(3) { margin-top: 9px; }
}
@media (min-width: 1080px) {
  .channels { grid-template-columns: 1.3fr 1fr 1fr; }
  .channel.is-main { grid-column: auto; grid-row: span 2; align-content: space-between; }
}
@media (max-width: 759px) {
  .page-hero { padding-top: 0; }
  .note-paper { --rr: calc(var(--r, 0deg) * .45); }
  #tappe { overflow-x: clip; }
  .ruler { height: 132px; }
  .ruler-band { white-space: normal; line-height: 1.35; }
  .ruler-range { top: 64px; }
  .ruler-flag { top: 56px; }
  .ruler-scale { top: 82px; }
  .page-hero--short, .page-hero--paper, .page-hero--3d { padding-top: 34px; }
  .page-hero-grid .page-photo { order: -1; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 5 / 4; }
  .postit { min-height: 150px; }
}
.channel-body { display: grid; gap: 8px; }

/* ---------------------------------------------------------------- lavori: i video, due verticali (9:16, come si guardano sul telefono) */
.vid-pair { display: grid; gap: 34px; align-items: start; }
.vid-pair .motion-card { max-width: 360px; }
.vid-pair .restyle-top { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------------------------------------------------------------- lavori: immagini con l'AI, tre prove di precisione */
.pa-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pa-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid rgba(103, 107, 104, .95); background: var(--surface-2); color: var(--text); font: 500 13.5px/1 var(--font); transition: background .2s, border-color .2s; }
.pa-tabs button:hover { border-color: var(--amber); background: #1f1c16; }
.pa-tabs .num { font: 600 11px/1 var(--font); color: var(--amber); letter-spacing: .05em; }
.pa-tabs button[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--price); font-weight: 600; }
.pa-tabs button[aria-selected="true"] .num { color: var(--price); }
.pa-stage { position: relative; display: grid; overflow: hidden; isolation: isolate; }
.pa-panel { grid-area: 1 / 1; display: grid; gap: 14px; background: var(--bg); }
.pa-wipe { position: absolute; inset: -40% -60%; pointer-events: none; opacity: 0; z-index: 5; }
.pa-result { margin: 0; display: grid; gap: 18px; }
.pa-result figcaption { display: grid; gap: 12px; align-content: start; }
.pa-asked { margin: 0; font: 600 clamp(19px, 1.7vw, 23px)/1.35 var(--font); color: var(--text); max-width: 34ch; }
.pa-check { display: flex; gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.pa-check .icon { flex: none; width: 26px; height: 26px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--amber); stroke: var(--price); stroke-width: 2.4; }
.pa-check b { color: var(--text); font-weight: 600; }
.pa-full { justify-self: start; font-size: 14px; color: var(--text); }
.pa-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: #ece6da; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.pa-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pa-frame.lens-armed { touch-action: none; }
.pa-lens { position: absolute; left: 0; top: 0; z-index: 2; width: 170px; height: 170px; border-radius: 50%; border: 2px solid var(--amber); background: #fff no-repeat; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .5); opacity: 0; pointer-events: none; transition: opacity .15s; }
.pa-frame.lens-on .pa-lens { opacity: 1; }
.pa-lens-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid rgba(22, 23, 24, .3); background: rgba(255, 255, 255, .94); color: #161718; font: 600 13px/1 var(--font); }
.pa-lens-toggle .icon { width: 17px; height: 17px; }
.pa-lens-toggle[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .pa-frame { cursor: zoom-in; } .pa-frame.lens-on { cursor: none; } .pa-lens-toggle { display: none; } }
.pa-lens-hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.pa-wipe .wipe-line { position: absolute; width: 2px; border-radius: 2px; background: #FFE2B3; box-shadow: 0 0 4px 1px rgba(237, 181, 103, .95), 0 0 16px 3px rgba(237, 181, 103, .45); }
@media (min-width: 760px) {
  .vid-pair { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 44px; }
}
@media (min-width: 900px) {
  .pa-result { display: flex; gap: 48px; align-items: center; }
  .pa-result figcaption { flex: 1 1 300px; }
  .pa-frame { flex: 0 1 auto; aspect-ratio: var(--ar); width: auto; min-width: 0; height: min(600px, 70svh); background: transparent; box-shadow: none; }
  .pa-frame img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .4)); }
}
