/* Livello "premium": texture, pannelli UI, ruota delle otto aree, transizioni tra sezioni.
   Si carica dopo site.css e ne riusa i token. */

:root {
  --dots: radial-gradient(circle at 1px 1px, rgb(12 10 8 / .11) 1px, transparent 1.4px);
  --dots-inv: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .09) 1px, transparent 1.4px);
  --sheet-radius: clamp(20px, 3vw, 40px);
  --shadow-panel: 0 1px 0 rgb(255 255 255 / .6) inset, 0 30px 80px -30px rgb(23 18 14 / .28), 0 12px 24px -12px rgb(23 18 14 / .12);
  --shadow-float: 0 24px 60px -20px rgb(23 18 14 / .35), 0 2px 6px rgb(23 18 14 / .06);
}

/* ---------- announcement bar ---------- */
.topbar { position: relative; z-index: 60; background: var(--color-surface-inverse); color: var(--color-text-inverse); font-size: .8125rem; }
.topbar a { display: flex; justify-content: center; align-items: center; gap: 10px; height: 36px; text-decoration: none; }
.topbar .pill { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-action); color: var(--color-on-action); font-size: .75rem; }
.topbar .go { opacity: .7; transition: transform var(--duration-brand) var(--ease-brand); }
.topbar a:hover .go { transform: translateX(3px); opacity: 1; }
.has-topbar .site-header { top: 36px; }
.has-topbar .site-header.scrolled { top: 0; }
.has-topbar .hero { padding-top: calc(36px + var(--nav-height) + clamp(40px, 6vw, 88px)); }

/* ---------- two-tone headings ---------- */
.tt { color: var(--color-text); }
.tt em { font-style: normal; color: var(--color-text-muted); }
.dark .tt { color: var(--color-text-inverse); }
.dark .tt em { color: rgb(255 255 255 / .5); }

/* ---------- hero ---------- */
.hero-x { position: relative; overflow: clip; padding-bottom: 0; }
.hero-x::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 14px 14px; -webkit-mask-image: radial-gradient(90% 70% at 70% 10%, #000 20%, transparent 75%); mask-image: radial-gradient(90% 70% at 70% 10%, #000 20%, transparent 75%); pointer-events: none; }
.hero-x .wrap { position: relative; }
.hero-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.hero-top .hero-copy { grid-column: 1 / span 8; }
.hero-top .display { max-width: 17ch; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.25rem); line-height: .98; letter-spacing: -0.035em; }
.hero-aside { grid-column: 9 / span 4; display: grid; gap: 20px; padding-bottom: 6px; }
.hero-aside .lead { color: var(--color-text-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-box { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 12px; background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px var(--color-border), 0 8px 24px -16px rgb(0 0 0 / .3); backdrop-filter: blur(8px); }
.cta-box span { font-size: .9375rem; color: var(--color-text-muted); white-space: nowrap; }
.avatars { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--color-text-muted); }
.avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px #fff; }

/* the stage that holds the product-style panel */
.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); padding: clamp(16px, 3vw, 48px) clamp(12px, 3vw, 48px) 0; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, var(--color-surface) 0%, #ece8e4 100%); overflow: hidden; perspective: 1600px; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 12px 12px; opacity: .55; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.stage .curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.panel { position: relative; max-width: 1120px; margin: 0 auto; border-radius: 14px 14px 0 0; background: #fff; box-shadow: var(--shadow-panel); transform-origin: 50% 0; transform: rotateX(var(--tilt, 14deg)) scale(var(--zoom, .94)); transition: transform .1s linear; will-change: transform; }
.chrome { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid #eeebe8; font-size: .75rem; color: var(--color-text-muted); }
.chrome .lights { display: flex; gap: 6px; }
.chrome .lights i { width: 10px; height: 10px; border-radius: 50%; background: #e3dfdb; }
.chrome .crumb { margin: 0 auto; padding: 4px 12px; border-radius: 6px; background: var(--color-surface); }
.panel-body { display: grid; grid-template-columns: 200px 1fr 260px; min-height: 420px; }
.p-side { border-right: 1px solid #eeebe8; padding: 16px 10px; display: grid; gap: 2px; align-content: start; font-size: .8125rem; }
.p-side b { font-weight: 500; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); padding: 10px 10px 6px; }
.p-side span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #45423f; }
.p-side span i { width: 6px; height: 6px; border-radius: 50%; background: #d9d5d1; flex: none; }
.p-side span.on { background: var(--color-surface); color: var(--color-text); }
.p-side span.on i { background: var(--color-text); }
.p-side span.lit i { background: var(--color-accent); }
.p-main { padding: 22px 24px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.p-head h4 { font-size: 1.375rem; }
.p-head small { display: block; font-size: .75rem; color: var(--color-text-muted); margin-bottom: 4px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--color-surface); font-size: .75rem; }
.seg span { padding: 5px 10px; border-radius: 6px; color: var(--color-text-muted); }
.seg span.on { background: #fff; color: var(--color-text); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #eeebe8; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #eeebe8; }
.kpi { background: #fff; padding: 14px; display: grid; gap: 6px; }
.kpi small { font-size: .6875rem; color: var(--color-text-muted); }
.kpi strong { font-weight: 400; font-size: 1.375rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .q { font-size: .6875rem; color: var(--color-text-muted); }
.chart { position: relative; height: 170px; border-radius: 12px; background: linear-gradient(#fff, #fff) padding-box; box-shadow: inset 0 0 0 1px #eeebe8; padding: 12px 14px 22px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gridl { stroke: #f0edea; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--color-text); stroke-width: 1.6; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.chart .area { fill: url(#gArea); opacity: 0; }
.in .chart .line, .chart.in .line { animation: draw 2.2s var(--ease-out) .3s forwards; }
.in .chart .area, .chart.in .area { animation: fade 1.2s ease 1.2s forwards; }
.chart .note { position: absolute; left: 14px; bottom: 6px; font-size: .625rem; color: var(--color-text-muted); }
.chart .tip { position: absolute; right: 18px; top: 14px; padding: 6px 10px; border-radius: 8px; background: var(--color-surface-inverse); color: #fff; font-size: .75rem; opacity: 0; transform: translateY(6px); }
.in .chart .tip { animation: pop .5s var(--ease-out) 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }
.p-right { border-left: 1px solid #eeebe8; padding: 18px 16px; display: grid; gap: 12px; align-content: start; }
.p-right h5 { font-size: .75rem; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.piece { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px #eeebe8; font-size: .8125rem; }
.piece i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--color-surface); font-style: normal; font-size: .75rem; }
.piece small { display: block; color: var(--color-text-muted); font-size: .6875rem; }
.piece.ok i { background: var(--color-action); }
.p-right .verdict { margin-top: 4px; padding: 12px; border-radius: 10px; background: var(--color-surface); font-size: .8125rem; line-height: 1.4; }

/* floating cards over the stage */
.float { position: absolute; z-index: 2; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); padding: 14px 16px; font-size: .8125rem; width: 230px; transform: translate3d(0, var(--fy, 0px), 0); }
.float small { display: block; font-size: .6875rem; color: var(--color-text-muted); margin-bottom: 6px; }
.float strong { display: block; font-weight: 400; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.float .row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f0edea; }
.float .row:first-of-type { border-top: 0; }
.float-a { left: clamp(8px, 3vw, 40px); top: 52%; }
.float-b { right: clamp(8px, 3vw, 40px); top: 18%; }
.float-a .bar { height: 6px; border-radius: 3px; background: var(--color-surface); overflow: hidden; margin-top: 4px; }
.float-a .bar i { display: block; height: 100%; width: var(--w); background: var(--color-text); border-radius: 3px; }
.badge-ai { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--color-action); font-size: .6875rem; }

/* ticker */
.ticker { position: relative; z-index: 3; display: flex; align-items: center; height: 52px; margin: 0 calc(var(--pad-x) * -1); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: #fff; overflow: hidden; font-size: .8125rem; }
.ticker .label { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 18px 0 var(--pad-x); background: #fff; position: relative; z-index: 2; box-shadow: 16px 0 16px -8px #fff; text-transform: uppercase; letter-spacing: .05em; font-size: .6875rem; }
.ticker .label i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgb(90 181 112 / .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(90 181 112 / 0); } 100% { box-shadow: 0 0 0 0 rgb(90 181 112 / 0); } }
.track { display: flex; gap: 36px; width: max-content; animation: marquee 48s linear infinite; padding-left: 24px; }
.track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--color-text-muted); }
.track b { font-weight: 400; color: var(--color-text); padding: 2px 7px; border-radius: 6px; background: var(--color-surface); font-variant-numeric: tabular-nums; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- client grid ---------- */
.proof { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: 40px; }
.proof h2 { grid-column: 1 / span 7; }
.proof .link { grid-column: 10 / span 3; justify-self: end; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; text-decoration: none; color: var(--color-text-muted); }
.text-link:hover { color: var(--color-text); }
.text-link .arrow { transition: transform var(--duration-brand) var(--ease-brand); }
.text-link:hover .arrow { transform: translateX(3px); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 132px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-border); }
.logo { position: relative; display: grid; place-items: center; padding: 16px; text-align: center; box-shadow: inset -1px -1px 0 var(--color-border); color: #57534f; transition: background-color .3s var(--ease-brand), color .3s; }
.logo:hover { background: var(--color-surface); color: var(--color-text); }
.logo .wm { font-size: 1.125rem; line-height: 1.1; letter-spacing: -0.01em; }
.logo .wm.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.logo .wm.caps { text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 600; }
.logo .wm.bold { font-weight: 600; letter-spacing: -0.03em; }
.logo .kind { position: absolute; left: 12px; bottom: 10px; font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.logo:hover .kind { opacity: 1; transform: none; }
.logo .corner { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); font-size: .7rem; opacity: 0; transition: opacity .3s; }
.logo:hover .corner { opacity: 1; }
.logo-feature { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.logo-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.logo-feature:hover img { transform: scale(1.1); }
.logo-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(12 10 8 / .78)); }
.logo-feature .cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; }
.logo-feature .cap small { font-size: .75rem; opacity: .8; }
.logo-feature .cap strong { font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; }

/* ---------- problem cards with UI fragments ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--color-surface); overflow: hidden; min-height: 520px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(23 18 14 / .35); }
.pcard .top { padding: 24px 24px 0; display: grid; gap: 10px; }
.pcard h3 { font-size: var(--type-h4-size); line-height: 1.2; }
.pcard h3 em { font-style: normal; color: var(--color-text-muted); }
.pcard .viz { position: relative; flex: 1; margin-top: 24px; min-height: 280px; }
.pcard .viz::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 12px 12px; opacity: .6; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.pcard .viz svg.dash { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui { position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px -16px rgb(23 18 14 / .35), 0 0 0 1px rgb(0 0 0 / .03); font-size: .75rem; }
/* leads list */
.leads { left: 24px; right: -24px; bottom: -12px; padding: 8px; }
.leads .lrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 8px; opacity: 0; transform: translateX(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.in .leads .lrow { opacity: 1; transform: none; }
.leads .lrow:nth-child(2) { transition-delay: .12s; } .leads .lrow:nth-child(3) { transition-delay: .24s; } .leads .lrow:nth-child(4) { transition-delay: .36s; } .leads .lrow:nth-child(5) { transition-delay: .48s; }
.leads .lrow + .lrow { border-top: 1px solid #f2efec; }
.leads .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); font-size: .6875rem; }
.leads small { display: block; color: var(--color-text-muted); font-size: .6875rem; }
.st { padding: 3px 8px; border-radius: var(--radius-pill); font-size: .6875rem; white-space: nowrap; }
.st.miss { background: #fbe9e7; color: #9a3b2f; }
.st.wait { background: #fdf4dc; color: #85631a; }
.st.ok { background: #e6f4ea; color: #2c6e3f; }
/* bottleneck */
.hub { position: absolute; inset: 0; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg path { fill: none; stroke: #b9b3ae; stroke-width: 1.2; stroke-dasharray: 3 4; }
.in .hub svg path { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.hub .node { position: absolute; transform: translate(-50%, -50%); padding: 7px 11px; border-radius: 9px; background: #fff; box-shadow: 0 8px 20px -12px rgb(23 18 14 / .4), 0 0 0 1px rgb(0 0 0 / .03); font-size: .75rem; white-space: nowrap; }
.hub .node.me { padding: 12px 16px; background: var(--color-surface-inverse); color: #fff; font-size: .8125rem; box-shadow: 0 0 0 0 rgb(228 242 34 / .5); }
.in .hub .node.me { animation: halo 2.4s infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgb(228 242 34 / .55); } 80%, 100% { box-shadow: 0 0 0 18px rgb(228 242 34 / 0); } }
.hub .node.me small { display: block; font-size: .625rem; opacity: .6; }
/* month calendar */
.cal { left: 24px; right: 24px; bottom: 24px; padding: 14px; }
.cal .ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .75rem; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .grid i { aspect-ratio: 1; border-radius: 6px; background: var(--color-surface); font-style: normal; font-size: .625rem; display: grid; place-items: center; color: #9b9895; }
.cal .grid i.dim { background: transparent; }
.cal .grid i.end { background: var(--color-surface-inverse); color: #fff; }
.cal .flag { position: absolute; right: -10px; top: -26px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-float); font-size: .6875rem; display: grid; gap: 2px; }
.cal .flag b { font-weight: 400; font-size: .8125rem; }
.cal .flag2 { left: -10px; right: auto; top: -64px; }
.cal .flag2 b { color: #9a3b2f; }

/* ---------- eight areas wheel ---------- */
.wheel-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.wheel { grid-column: 1 / span 6; position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .seg-a { fill: #fff; stroke: var(--color-surface); stroke-width: 4; cursor: pointer; transition: fill .35s var(--ease-brand), transform .45s var(--ease-out); transform-origin: 50% 50%; transform-box: view-box; }
.wheel .seg-a:hover { fill: #fbfaf9; }
.wheel .seg-a.on { fill: var(--color-action); }
.wheel .seg-a.ads { fill: #fff; }
.wheel .seg-a.ads.on { fill: var(--color-action); }
.wheel .lbl { font-size: 13px; fill: var(--color-text); pointer-events: none; font-family: var(--font-sans); }
.wheel .lbl.num { fill: var(--color-text-muted); font-size: 11px; }
.wheel .ring { fill: none; stroke: #ded9d5; stroke-dasharray: 2 5; }
.wheel .center { position: absolute; inset: 31%; border-radius: 50%; background: var(--color-surface-inverse); color: #fff; display: grid; place-items: center; text-align: center; padding: 12px; box-shadow: 0 30px 60px -25px rgb(0 0 0 / .5); }
.wheel .center small { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: 6px; }
.wheel .center strong { display: block; font-weight: 400; font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); line-height: 1.1; }
.wheel .center .swap { transition: opacity .25s, transform .25s; }
.wheel .center .swap.out { opacity: 0; transform: translateY(6px); }
.area-detail { grid-column: 8 / span 5; display: grid; gap: 20px; }
.area-detail .meta { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--color-text-muted); }
.area-detail .meta .prog { flex: 1; height: 2px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.area-detail .meta .prog i { display: block; height: 100%; width: 0; background: var(--color-text); }
.area-detail .meta .prog i.run { animation: progress 5s linear forwards; }
@keyframes progress { to { width: 100%; } }
.area-detail h3 { font-size: var(--type-h2-size); line-height: 1.05; }
.area-detail .desc { font-size: var(--type-lead-size); color: var(--color-text-muted); min-height: 3.2em; }
.measure-card { display: grid; gap: 6px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); }
.measure-card span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.measure-card p { font-size: 1.0625rem; }
.area-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.area-nav button { height: 34px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); font: inherit; font-size: .8125rem; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.area-nav button[aria-pressed="true"] { background: var(--color-text); color: #fff; box-shadow: none; }
.area-detail .fade { transition: opacity .3s var(--ease-brand), transform .3s var(--ease-brand); }
.area-detail .fade.out { opacity: 0; transform: translateY(8px); }

/* ---------- sheets: sezioni che salgono sopra la precedente ---------- */
.sheet { position: relative; z-index: 2; border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; margin-top: calc(var(--sheet-radius) * -1); }
.sheet.dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--dots-inv); background-size: 14px 14px; -webkit-mask-image: radial-gradient(70% 50% at 85% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 50% at 85% 0%, #000, transparent 70%); pointer-events: none; }
.sheet > .wrap, .hero-x > .wrap { position: relative; z-index: 1; }
.glow { position: absolute; pointer-events: none; width: 60vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(228 242 34 / .16), transparent 62%); filter: blur(20px); }

/* ---------- metodo: sticky + progress rail ---------- */
.method { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.method-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-height) + 40px); align-self: start; display: grid; gap: 20px; }
.method-steps { grid-column: 7 / span 6; position: relative; display: grid; gap: clamp(56px, 8vw, 120px); padding-left: 56px; list-style: none; margin: 0; }
.rail { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: rgb(255 255 255 / .12); border-radius: 2px; }
.rail i { display: block; width: 100%; height: var(--p, 0%); background: var(--color-action); border-radius: 2px; box-shadow: 0 0 16px rgb(228 242 34 / .6); }
.mstep { position: relative; display: grid; gap: 14px; }
.mstep .n { position: absolute; left: -56px; top: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #2a2828; color: #fff; transition: background-color .4s, color .4s; }
.mstep.active .n { background: var(--color-action); color: var(--color-on-action); }
.mstep h3 { font-size: var(--type-h3-size); }
.mstep p { color: var(--color-text-inverse-muted); max-width: 32em; }
.mviz { margin-top: 10px; padding: 18px; border-radius: 14px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font-size: .75rem; color: rgb(255 255 255 / .7); }
.bars8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 110px; }
.bars8 div { display: grid; gap: 6px; align-content: end; height: 100%; text-align: center; }
.bars8 i { display: block; border-radius: 4px 4px 2px 2px; background: rgb(255 255 255 / .16); height: 0; transition: height 1s var(--ease-out); }
.bars8 i.miss { background: repeating-linear-gradient(45deg, rgb(255 255 255 / .14) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.bars8 span { font-size: .5625rem; opacity: .6; }
.active .bars8 i { height: var(--h); }
.mviz .legend { display: flex; gap: 16px; margin-top: 12px; font-size: .6875rem; opacity: .7; }
.mviz .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: rgb(255 255 255 / .16); }
.mviz .legend span.m::before { background: repeating-linear-gradient(45deg, rgb(255 255 255 / .2) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.levers { display: flex; flex-wrap: wrap; gap: 8px; }
.levers span { padding: 7px 11px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); transition: background-color .5s, color .5s, opacity .5s, box-shadow .5s; }
.active .levers span { opacity: .35; }
.active .levers span.pick { opacity: 1; background: var(--color-action); color: var(--color-on-action); box-shadow: none; }
.route svg { width: 100%; height: 120px; overflow: visible; }
.route .plan { fill: none; stroke: rgb(255 255 255 / .25); stroke-dasharray: 4 5; }
.route .real { fill: none; stroke: var(--color-action); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease-out); }
.active .route .real { stroke-dashoffset: 0; }
.route circle { fill: var(--color-surface-inverse); stroke: rgb(255 255 255 / .5); }
.route circle.fix { stroke: var(--color-action); }
.route text { fill: rgb(255 255 255 / .6); font-size: 10px; font-family: var(--font-sans); }

/* ---------- statement: parole che si accendono con lo scroll ---------- */
.statement { padding: clamp(96px, 14vw, 200px) 0; text-align: left; }
.statement p { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 22ch; }
.statement .w { color: rgb(12 10 8 / .14); transition: color .25s linear; }
.statement .w.lit { color: var(--color-text); }
.statement .sign { margin-top: 32px; display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--color-text-muted); }
.statement .sign img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }

/* ---------- casi: carte impilate ---------- */
.stack { display: grid; gap: 28px; }
.stack .case { position: sticky; top: calc(var(--nav-height) + 24px + var(--i, 0) * 14px); transform-origin: 50% 0; box-shadow: 0 -1px 0 rgb(0 0 0 / .02), 0 30px 60px -40px rgb(23 18 14 / .35); transition: transform .2s linear, filter .2s linear; transform: scale(var(--s, 1)); }
.stack .case .case-num { position: absolute; right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); font-size: .75rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.case .spark { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--color-surface); overflow: hidden; margin-top: 8px; }
.case .spark i { display: block; height: 100%; width: 0; background: var(--color-action); transition: width 1.4s var(--ease-out); }
.case.in .spark i, .case-stats.in ~ .spark i { width: 100%; }
.stat .val { transition: color .3s; }

/* ---------- CTA band con gradiente sfumato ---------- */
.mist { position: relative; overflow: hidden; border-radius: var(--sheet-radius); margin: 0 var(--pad-x); padding: clamp(72px, 10vw, 140px) var(--pad-x); color: var(--color-text); isolation: isolate; }
.mist::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: radial-gradient(40% 50% at 20% 30%, #f6f9c8 0%, transparent 70%), radial-gradient(45% 60% at 85% 70%, #d9d4ce 0%, transparent 70%), radial-gradient(50% 60% at 60% 10%, #ffffff 0%, transparent 70%), linear-gradient(120deg, #efece8, #c9c3bd); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.mist::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dots); background-size: 14px 14px; opacity: .45; }
.mist svg.dash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.mist-inner { max-width: 720px; margin: 0 auto; text-align: center; display: grid; gap: 18px; justify-items: center; }
.mist .composer { width: 100%; margin-top: 12px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgb(23 18 14 / .45), inset 0 0 0 1px rgb(0 0 0 / .05); padding: 14px; display: grid; gap: 10px; text-align: left; }
.mist .composer textarea { width: 100%; min-height: 96px; border: 0; resize: none; font: inherit; font-size: 1.0625rem; color: var(--color-text); outline: none; background: transparent; }
.mist .composer .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mist .composer .hint { font-size: .75rem; color: var(--color-text-muted); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chipset button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); font: inherit; font-size: .8125rem; cursor: pointer; backdrop-filter: blur(6px); }
.chipset button:hover { background: #fff; }

/* ---------- about con parallax ---------- */
.about-media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }
.about-media { box-shadow: 0 30px 60px -40px rgb(23 18 14 / .5); }
.about-media .tagline { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 16px; border-radius: 12px; background: rgb(255 255 255 / .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 2px; font-size: .8125rem; }
.about-media .tagline b { font-weight: 500; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--color-border); font-size: .9375rem; }
.timeline span { color: var(--color-text-muted); font-size: .8125rem; }

/* ---------- footer gigante ---------- */
.mega { font-size: clamp(5rem, 22vw, 22rem); line-height: .8; letter-spacing: -0.06em; font-weight: 500; margin: clamp(40px, 6vw, 80px) 0 -0.06em; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .18); user-select: none; white-space: nowrap; }
.mega span { -webkit-text-stroke: 0; color: var(--color-action); }
.site-footer { position: relative; overflow: hidden; border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; margin-top: calc(var(--sheet-radius) * -1); z-index: 3; }

/* ---------- reveal più ricco ---------- */
.js .reveal { filter: blur(6px); }
.js .reveal.in { filter: none; transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out), filter var(--duration-reveal) var(--ease-out); }
.js .split .wd { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--k) * 45ms + var(--d, 0s)); }
.js .split.in .wd { opacity: 1; transform: none; filter: none; }

/* cursor glow on dark cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgb(228 242 34 / .10), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* ---------- ecommerce extras ---------- */
.store { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 420px; }
.store .pdp { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-right: 1px solid #eeebe8; }
.store .pimg { border-radius: 12px; background: radial-gradient(60% 60% at 50% 45%, #fff 0%, #ebe6e1 70%); position: relative; overflow: hidden; }
.store .pimg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff, #c9c1b8 60%, #8f877e); box-shadow: 0 30px 40px -20px rgb(0 0 0 / .4); }
.store .pinfo { display: grid; gap: 10px; align-content: start; font-size: .8125rem; }
.store .pinfo .ln { height: 10px; border-radius: 4px; background: var(--color-surface); }
.store .pinfo .ln.w60 { width: 60%; } .store .pinfo .ln.w80 { width: 80%; } .store .pinfo .ln.w40 { width: 40%; }
.store .pinfo .title { height: 18px; width: 85%; border-radius: 5px; background: #e4e0dc; }
.store .pinfo .buy { height: 40px; border-radius: 8px; background: var(--color-text); margin-top: 6px; }
.store .pinfo .sw { display: flex; gap: 6px; } .store .pinfo .sw i { width: 22px; height: 22px; border-radius: 50%; background: #d8d2cc; } .store .pinfo .sw i:first-child { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-text); }
.funnel { padding: 22px; display: grid; gap: 14px; align-content: start; }
.funnel h5 { font-size: .75rem; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.fstep { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; font-size: .8125rem; }
.fstep .fb { height: 28px; border-radius: 6px; background: var(--color-surface); position: relative; overflow: hidden; }
.fstep .fb i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--color-text); border-radius: 6px; transition: width 1.2s var(--ease-out); }
.in .fstep .fb i { width: var(--w); }
.fstep.leak .fb i { background: repeating-linear-gradient(45deg, #e4f222 0 6px, #d6e41a 6px 12px); }
.fstep.leak span { display: flex; align-items: center; gap: 6px; }
.fstep.leak span::after { content: "perdita"; font-size: .625rem; padding: 2px 6px; border-radius: 99px; background: #fbe9e7; color: #9a3b2f; }
.funnel .todo { margin-top: 6px; padding: 12px; border-radius: 10px; background: var(--color-surface); display: grid; gap: 8px; font-size: .75rem; }
.funnel .todo div { display: flex; align-items: center; gap: 8px; }
.funnel .todo div::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #b9b3ae; flex: none; }
.funnel .todo div.done::before { background: var(--color-text); box-shadow: none; }
.funnel .schema { font-size: .625rem; color: var(--color-text-muted); }
.reviews-marquee { overflow: hidden; margin: 0 calc(var(--pad-x) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-marquee .track { gap: var(--gutter); animation-duration: 60s; padding-left: 0; }
.reviews-marquee .review { width: min(440px, 80vw); flex: none; }
.reviews-marquee:hover .track { animation-play-state: paused; }
.svc-ui { position: relative; height: 150px; margin: 4px -4px 8px; border-radius: 12px; background: var(--color-surface); overflow: hidden; }
.svc-ui::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 10px 10px; opacity: .7; }
.svc-ui .ui { font-size: .6875rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .panel-body { grid-template-columns: 170px 1fr; }
  .p-right { display: none; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .logo-feature { grid-column: span 2; }
}
@media (max-width: 860px) {
  .has-topbar .site-header { top: 36px; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-top > * { grid-column: 1 / -1 !important; }
  .panel-body { grid-template-columns: 1fr; min-height: 0; }
  .p-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .float { display: none; }
  .proof { grid-template-columns: 1fr; } .proof > * { grid-column: 1 / -1 !important; justify-self: start !important; }
  .logos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 104px; }
  .logo-feature { grid-column: span 2; grid-row: span 2; }
  .pcards { grid-template-columns: 1fr; }
  .pcard { min-height: 460px; }
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel, .area-detail { grid-column: 1 / -1; }
  .wheel { max-width: 420px; }
  .method { grid-template-columns: 1fr; }
  .method-head { position: static; grid-column: 1 / -1; }
  .method-steps { grid-column: 1 / -1; margin-top: 40px; }
  .stack .case { position: relative; top: auto; transform: none !important; }
  .store { grid-template-columns: 1fr; }
  .store .pdp { border-right: 0; border-bottom: 1px solid #eeebe8; }
  .timeline div { grid-template-columns: 80px 1fr; }
}
@media (max-width: 560px) {
  .topbar .hide-sm { display: none; }
  .cta-box { display: none; }
  .p-main { padding: 16px; }
  .p-head { flex-direction: column; align-items: flex-start; }
  .chart { height: 140px; }
  .method-steps { padding-left: 48px; }
  .mstep .n { left: -48px; width: 34px; height: 34px; }
  .rail { left: 16px; }
  .bars8 span { display: none; }
  .fstep { grid-template-columns: 90px 1fr; }
  .store .pdp { grid-template-columns: 1fr; }
  .store .pimg { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .track, .mist::before { animation: none !important; }
  .panel { transform: none !important; }
  .js .reveal, .js .split .wd { filter: none !important; }
  .statement .w { color: var(--color-text) !important; }
  .chart .line { stroke-dashoffset: 0; } .chart .area, .chart .tip { opacity: 1; transform: none; }
}

/* header che diventa scuro sopra le sezioni scure */
.site-header.on-dark.scrolled { background: rgb(26 25 25 / .78); box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.site-header.on-dark .wordmark, .site-header.on-dark .nav a { color: #fff; }
.site-header.on-dark .menu-toggle { background: rgb(255 255 255 / .1); }
.site-header.on-dark .menu-toggle i { background: #fff; }
.menu-open .site-header.on-dark .nav a { color: var(--color-text); }
.logo { text-decoration: none; }
.panel { max-width: 1000px; }
.float-a { left: clamp(8px, 2vw, 32px); top: 56%; }
.float-b { right: clamp(8px, 2vw, 32px); top: 30%; }
.stack .case { padding-top: clamp(52px, 5vw, 64px); }
.stack .case .case-num { top: clamp(20px, 2vw, 24px); }
.mega { margin-bottom: -0.12em; }
#metodo .case { background: var(--color-surface); box-shadow: 0 30px 60px -40px rgb(23 18 14 / .35), inset 0 0 0 1px rgb(0 0 0 / .03); }
.funnel .fstep .fb i { background: #3a3837; }
/* barre della diagnosi: altezza in % su un contenitore flex con altezza definita */
.bars8 div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.bars8 i { flex: none; }

/* badge Shopify Select Partner (file ufficiali, non modificati) */
.select-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.select-badge { display: inline-block; flex: none; line-height: 0; transition: opacity var(--duration-brand); }
.select-badge:hover { opacity: .8; }
.select-row .select-badge img { height: 64px; width: auto; }
.select-row .rating { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--color-border); font-size: .875rem; line-height: 1.35; color: var(--color-text-muted); text-decoration: none; }
.select-row .rating b { font-weight: 500; color: var(--color-text); }
.select-row .rating .stars { color: var(--color-text); letter-spacing: 1px; }
.select-row .rating:hover { color: var(--color-text); }
.badge-proof { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 18px 14px 10px; border-radius: var(--radius-12); box-shadow: inset 0 0 0 1px var(--color-border-inverse); color: var(--color-text-inverse-muted); text-decoration: none; font-size: .875rem; line-height: 1.4; transition: background-color var(--duration-brand); }
.badge-proof:hover { background: rgb(255 255 255 / .05); color: #fff; }
.badge-proof img { height: 52px; width: auto; flex: none; }
.ecom-callout .select-badge img { height: 48px; width: auto; }
@media (max-width: 560px) {
  .select-row .rating { padding-left: 0; border-left: 0; }
  .select-row .select-badge img { height: 56px; }
}
.logo-feature .cap .cap-badge { position: static; inset: auto; transform: none; object-fit: contain; display: block; height: 52px; width: auto; margin: 0 0 4px -8px; }
@media (max-width: 860px) { .logo-feature .cap .cap-badge { height: 44px; } }
.logo-feature .cap { text-align: left; justify-items: start; }
#negozi .logo-feature::after { background: linear-gradient(180deg, transparent 20%, rgb(12 10 8 / .55) 50%, rgb(12 10 8 / .88)); }
