/* Pingo Development — pagina "Pro": sezioni scure e chiare alternate, mockup 3D */
:root {
  --blue: #0071e3; --link: #0066cc; --link-d: #2997ff;
  --ink: #1d1d1f; --muted: #6e6e73; --light: #f5f5f7; --white: #fff;
  --black: #000; --dark: #101010; --dark-card: #1c1c1e; --dark-line: #2c2c2e; --dmuted: #a1a1a6;
  --r: 28px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--white); line-height: 1.47; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), 100% - 44px); margin: 0 auto; }
.wide { width: min(1440px, 100% - 44px); margin: 0 auto; }

/* sezioni */
section { position: relative; padding: 120px 0; }
.dark { background: var(--black); color: #f5f5f7; }
.light { background: var(--light); }
.white { background: var(--white); }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.dark .eyebrow { color: #86868b; }
.h-sec { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.h-sec.sm { font-size: clamp(32px, 4.5vw, 56px); }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.38; font-weight: 500; color: var(--muted); max-width: 760px; }
.dark .lead { color: var(--dmuted); }
.lead b, .lead strong { color: var(--ink); font-weight: 600; }
.dark .lead b { color: #fff; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }

/* bottoni */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff !important; border-radius: 980px; padding: 12px 24px; font-size: 17px; font-weight: 500; transition: background .2s, transform .2s; }
.pill:hover { background: #0077ed; transform: translateY(-1px); }
.pill.ghost { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1px var(--blue); }
.pill.ghost:hover { background: var(--blue); color: #fff !important; }
.pill.sm { font-size: 14px; padding: 8px 16px; }
.pill.white { background: #fff; color: #000 !important; }
.more { color: var(--link); font-size: 17px; font-weight: 500; }
.more:after { content: " ›"; }
.more:hover { text-decoration: underline; }
.ctas { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.center .ctas { justify-content: center; }

/* reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

/* nav globale */
.gnav { position: absolute; top: 0; left: 0; right: 0; z-index: 100; height: 48px; background: rgba(22,22,23,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.gnav .in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gnav .brand { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.gnav .brand img { width: 22px; height: 22px; }
.gnav ul { list-style: none; display: flex; gap: 30px; }
.gnav ul a { color: #d2d2d7; font-size: 13px; transition: color .2s; }
.gnav ul a:hover { color: #fff; }
.gnav .burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* nav locale (sticky sotto) */
.lnav { position: sticky; top: 0; z-index: 90; margin-top: 48px; background-color: rgba(0,0,0,.8); height: 52px; background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,.12); color: #f5f5f7; }
.lnav .in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.lnav .title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.lnav .links { display: flex; align-items: center; gap: 24px; }
.lnav .links a:not(.pill) { font-size: 12px; color: #d2d2d7; }
.lnav .links a:not(.pill):hover, .lnav .links a.on { color: #fff; }

/* hero */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero .copy { text-align: center; position: relative; z-index: 2; }
.hero .name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: #f5f5f7; }
.hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; margin: 6px 0 18px;
  background: linear-gradient(180deg, #fff 30%, #a8a8ad 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 28px; }
.hero .stage { position: relative; height: min(82vh, 860px); margin-top: -30px; }
.hero .stage canvas { width: 100%; height: 100%; display: block; }
.hero .glow { position: absolute; left: 50%; bottom: -10%; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(120,140,190,.28), transparent); filter: blur(40px); pointer-events: none; }

/* highlights (galleria orizzontale) */
.hl-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hl-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(22px, calc((100vw - var(--max)) / 2)) 30px; scrollbar-width: none; }
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { flex: 0 0 min(82vw, 940px); height: min(72vh, 660px); border-radius: var(--r); scroll-snap-align: center; position: relative; overflow: hidden; background: var(--dark-card); color: #f5f5f7; padding: 44px 48px; display: flex; flex-direction: column; }
.hl-card .cap { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; max-width: 560px; color: #86868b; letter-spacing: -.01em; position: relative; z-index: 2; }
.hl-card .cap b { color: #f5f5f7; font-weight: 600; }
.hl-card .media { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 6%; }
.hl-card .media .browser { width: 92%; margin-bottom: -40px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hl-card .media.phones { gap: 26px; align-items: flex-end; }
.hl-card .media.phones .phone { width: 230px; margin-bottom: -70px; }
.hl-card .media.phones .phone:nth-child(2) { margin-bottom: -20px; }
.hl-card.big-text { background: radial-gradient(circle at 70% 120%, rgba(41,151,255,.45), transparent 60%), var(--dark-card); justify-content: space-between; }
.hl-card .price { font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(90deg, #fff, #86868b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-ctrl { display: flex; justify-content: center; gap: 10px; align-items: center; }
.hl-ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e8e8ed; color: #1d1d1f; font-size: 18px; cursor: pointer; }
.dark .hl-ctrl button { background: #333336; color: #f5f5f7; }
.hl-dots { display: flex; gap: 8px; padding: 0 18px; height: 36px; align-items: center; border-radius: 30px; background: #e8e8ed; }
.dark .hl-dots { background: #333336; }
.hl-dots i { width: 8px; height: 8px; border-radius: 8px; background: #86868b; transition: width .3s, background .3s; }
.hl-dots i.on { width: 40px; background: #1d1d1f; }
.dark .hl-dots i.on { background: #f5f5f7; }

/* cornici piatte (galleria, bento) */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #2a2a2c; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a5a5e; }
.browser .bar span { margin-left: 10px; font-size: 12px; color: #a1a1a6; }
.light .browser .bar, .white .browser .bar { background: #ececef; }
.light .browser .bar span, .white .browser .bar span { color: #6e6e73; }
.browser img { width: 100%; }
.phone { border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #3a3a3c, #111 45%, #2c2c2e); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px #4a4a4c; }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 33px; }

/* visore 3D */
.viewer .stage3d { height: min(76vh, 720px); position: relative; }
.viewer canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); }
.vctl { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: #e8e8ed; border-radius: 980px; }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: 980px; font: 500 14px 'Inter', sans-serif; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.dark .seg { background: #2c2c2e; } .dark .seg button { color: #f5f5f7; } .dark .seg button.on { background: #48484a; }
.swatches { display: flex; gap: 14px; align-items: center; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.swatches button.on { outline-color: #1d1d1f; }
.swatch-name { font-size: 14px; color: var(--muted); min-height: 21px; }

/* storia scroll (telefono che gira) */
.story { padding: 0; }
.story-track { position: relative; }
.story-sticky { position: sticky; top: 52px; height: calc(100vh - 52px); min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(var(--max), 100% - 44px); margin: 0 auto; }
.story-sticky canvas { width: 100%; height: 100%; display: block; }
.story-copy { position: relative; height: 420px; }
.story-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; pointer-events: none; }
.story-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.story-panel img.logo { height: 48px; width: auto; margin-bottom: 18px; border-radius: 12px; }
.story-panel .cat { color: #86868b; font-weight: 600; font-size: 17px; }
.story-panel h3 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 4px 0 14px; }
.story-panel p { color: var(--dmuted); font-size: 19px; max-width: 460px; }
.story-panel .claim { color: #f5f5f7; font-weight: 600; font-size: 21px; margin-top: 14px; }
.story-dots { position: absolute; left: 0; bottom: -36px; display: flex; gap: 8px; }
.story-dots i { width: 8px; height: 8px; border-radius: 8px; background: #48484a; transition: width .3s, background .3s; }
.story-dots i.on { width: 32px; background: #f5f5f7; }

/* vetro smerigliato (mockup Pixelbuddha): griglia uniforme di quadrati */
.gglass { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.gtile { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: #111; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gtile:hover img { transform: scale(1.05); }
@media (max-width: 1068px) { .gglass { grid-template-columns: repeat(2, 1fr); } }

/* portatile */
.laptop .stage3d { height: min(70vh, 640px); }
.laptop canvas { width: 100%; height: 100%; display: block; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { border-radius: var(--r); background: #fff; padding: 36px; overflow: hidden; position: relative; min-height: 300px; display: flex; flex-direction: column; }
.dark .tile { background: var(--dark-card); }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; } .tile.s6 { grid-column: span 6; }
.tile .k { font-size: 17px; font-weight: 600; color: var(--muted); }
.tile .num { font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin-top: auto;
  background: linear-gradient(90deg, #1d1d1f, #6e6e73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile.black .num { background: linear-gradient(90deg, #fff, #86868b); -webkit-background-clip: text; background-clip: text; }
.tile .t { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin-top: 8px; }
.tile.black { background: #000; color: #f5f5f7; }
.tile.orange { background: linear-gradient(150deg, #2a2a2d, #000 70%); color: #fff; }
.tile.orange .k { color: rgba(255,255,255,.8); }
.tile.orange .num { background: none; color: #fff; }
.tile .logos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.tile .logos img { height: 64px; width: 64px; object-fit: contain; border-radius: 18px; background: linear-gradient(160deg, #2a2a2d, #141416); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 24px -12px rgba(0,0,0,.8); padding: 11px; }
.tile .tech { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: auto; }
.tile .tech span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.tile .tech svg { width: 22px; height: 22px; fill: var(--ink); }
.tile .shot { margin: 24px -36px -36px 36px; }
.tile .shot .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-top-right-radius: 0; }

/* app clienti (stile "tutti i modelli") */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.model { text-align: center; display: flex; flex-direction: column; align-items: center; }
.model .phone { width: 190px; margin-bottom: 28px; }
.model img.mlogo { height: 40px; width: 40px; object-fit: contain; margin-bottom: 12px; border-radius: 10px; background: #000; padding: 5px; }
.model h3 { font-size: 24px; letter-spacing: -.01em; }
.model p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; max-width: 240px; }
.model .plat { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.model .links { display: flex; gap: 16px; justify-content: center; }
.model .links a { color: var(--link); font-size: 14px; }

/* piani (confronto) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.plan { background: #fff; border-radius: var(--r); padding: 40px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dark .plan { background: var(--dark-card); }
.plan.best { box-shadow: inset 0 0 0 2px var(--blue); }
.plan .badge { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; height: 18px; }
.plan .chip { width: 64px; height: 64px; border-radius: 18px; margin: 14px 0 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.plan h3 { font-size: 32px; letter-spacing: -.02em; }
.plan .tag { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan .price { font-size: 48px; font-weight: 700; letter-spacing: -.03em; margin: 22px 0 2px; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .vat { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.plan ul { list-style: none; width: 100%; margin: 28px 0 0; border-top: 1px solid #e5e5ea; }
.dark .plan ul { border-color: var(--dark-line); }
.plan li { padding: 14px 0; border-bottom: 1px solid #e5e5ea; font-size: 15px; }
.dark .plan li { border-color: var(--dark-line); }
.plan li b { display: block; font-size: 22px; letter-spacing: -.01em; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
.note a { color: var(--link); }
.faq { max-width: 820px; margin: 64px auto 0; }
.faq details { border-bottom: 1px solid #d2d2d7; padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--link); font-weight: 400; font-size: 28px; line-height: 1; transition: transform .3s; }
.faq details[open] summary:after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 700px; }

/* progetti */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pcard { background: var(--dark-card); border-radius: var(--r); padding: 36px; display: flex; flex-direction: column; }
.pcard .k { color: #86868b; font-weight: 600; font-size: 15px; }
.pcard h3 { font-size: 28px; letter-spacing: -.02em; margin: 4px 0 6px; }
.pcard .sub { color: var(--dmuted); font-size: 15px; }
.pcard .price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 22px 0 4px; }
.pcard .price small { font-size: 15px; color: var(--dmuted); font-weight: 500; }
.pcard ul { list-style: none; margin: 18px 0 26px; }
.pcard li { color: #d2d2d7; font-size: 15px; padding: 6px 0 6px 22px; position: relative; }
.pcard li:before { content: "✓"; position: absolute; left: 0; color: var(--link-d); }
.pcard .pill { margin-top: auto; align-self: flex-start; }
.pcard.best { background: linear-gradient(160deg, #0c1a2e, var(--dark-card) 60%); box-shadow: inset 0 0 0 1px rgba(41,151,255,.45); }

/* valori */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.value { background: #fff; border-radius: var(--r); padding: 40px 36px; }
.value .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--light); display: grid; place-items: center; font-size: 26px; margin-bottom: 22px; }
.value h3 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 17px; }

/* contatti */
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.topics a { border-radius: 980px; padding: 12px 22px; background: var(--dark-card); color: #f5f5f7; font-size: 15px; font-weight: 500; transition: background .2s; }
.topics a:hover { background: var(--blue); }
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.contact { background: var(--dark-card); border-radius: 22px; padding: 28px; text-align: left; }
.contact small { display: block; color: var(--dmuted); font-size: 13px; margin-bottom: 6px; }
.contact b { font-size: 17px; font-weight: 600; word-break: break-word; }

/* footer */
.foot { background: var(--light); color: var(--muted); font-size: 12px; padding: 40px 0 30px; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid #d2d2d7; border-bottom: 1px solid #d2d2d7; margin: 18px 0; }
.foot h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.foot .cols a { display: block; padding: 3px 0; color: #424245; }
.foot .cols a:hover { text-decoration: underline; }
.foot .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* fallback senza WebGL */
.no3d canvas { display: none; }

/* responsive */
@media (max-width: 1068px) {
  .gnav ul { gap: 20px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.s2, .tile.s3, .tile.s4 { grid-column: span 1; } .tile.s6 { grid-column: span 2; }
  .models { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 834px) {
  section { padding: 84px 0; }
  .gnav ul { display: none; }
  .gnav ul.open { display: flex; flex-direction: column; position: absolute; top: 48px; left: 0; right: 0; background: rgba(22,22,23,.97); padding: 18px 22px 26px; gap: 16px; }
  .gnav ul.open a { font-size: 19px; }
  .gnav .burger { display: block; }
  .lnav .links a:not(.pill) { display: none; }
  .plans, .cards3, .values { grid-template-columns: 1fr; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .story-sticky canvas { height: 52vh; }
  .story-copy { height: 260px; text-align: center; }
  .story-panel p { margin: 0 auto; }
  .story-panel img.logo { margin: 0 auto 14px; }
  .story-dots { left: 50%; transform: translateX(-50%); bottom: 10px; }
  .hl-card { padding: 30px 26px; }
  .hl-card .media.phones .phone { width: 160px; }
  .foot .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; } .tile.s6 { grid-column: span 1; }
  .models { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .lnav .title { font-size: 17px; }
  .hero .stage { height: 50vh; }
}

.dark .more { color: var(--link-d); }

/* ===== una sola barra in alto (sticky) ===== */
.gnav { position: sticky !important; top: 0; height: 52px; background: rgba(0,0,0,.78) !important; border-bottom: 1px solid rgba(255,255,255,.1); }
.gnav-r { display: flex; align-items: center; gap: 14px; }
.gnav ul a.on { color: #fff; }

/* ===== video prodotto ===== */
.vid { display: block; width: 100%; height: auto; background: transparent; }
.hero-film { position: relative; width: min(1440px, 100%); margin: 10px auto 0; }
.hero-film .vid { aspect-ratio: 16 / 9; object-fit: cover; }
.hero-film:after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(transparent, #000); pointer-events: none; }
.vbtn { position: absolute; right: 24px; bottom: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(66,66,69,.72); color: #f5f5f7; font-size: 18px; backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.hero-film.ended .vbtn { opacity: 1; }
.hl-card .media.film { align-items: flex-end; padding: 0; }
.hl-card .media.film .vid { width: 100%; height: 78%; object-fit: cover; object-position: center 70%; }

/* sezione con il video che segue lo scroll (macro fotocamere) */
.scrub { padding: 0; }
.scrub-track { height: 320vh; position: relative; }
.scrub-sticky { position: sticky; top: 52px; height: calc(100vh - 52px); overflow: hidden; display: grid; place-items: center; }
.scrub-sticky .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 45%, transparent 70%); }
.scrub-copy { position: relative; z-index: 2; width: min(var(--max), 100% - 44px); height: 100%; }
.sc-line { position: absolute; left: 0; top: 50%; transform: translateY(-40%); max-width: 520px; opacity: 0; transition: opacity .6s, transform .6s; }
.sc-line.on { opacity: 1; transform: translateY(-50%); }
.sc-line h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; letter-spacing: -.03em; color: #f5f5f7; }
.sc-line p { font-size: clamp(19px, 1.8vw, 24px); color: #a1a1a6; margin-top: 16px; font-weight: 500; }

/* video larghi */
.film-wide { margin-top: 56px; border-radius: var(--r); overflow: hidden; }
.film-wide .vid { aspect-ratio: 16 / 10; object-fit: cover; }
.film-laptop { margin-top: 40px; }
.film-laptop .vid { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 834px) {
  .scrub-shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 75%); }
  .sc-line { top: auto; bottom: 8%; transform: none; } .sc-line.on { transform: none; }
  .hero-film .vid { aspect-ratio: 4 / 3; }
}

/* ===== sezione Academy (sfondo chiaro, video a destra) ===== */
.scrub.light .scrub-sticky { background: #f5f5f7; }
.scrub.light .sc-line h2 { color: #1d1d1f; }
.scrub.light .sc-line p { color: #6e6e73; }
.scrub.light .sc-line { max-width: 440px; }
@media (max-width: 834px) {
  .scrub.light .scrub-sticky .vid { object-position: 72% center; }
  .scrub.light .sc-line { background: rgba(245,245,247,.88); backdrop-filter: blur(14px); padding: 18px 20px; border-radius: 20px; }
}

/* ===== app sugli store: schede con iPhone 3D ===== */
.appgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.appcard { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.appcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.appshot { position: relative; height: 420px; display: flex; align-items: flex-end; justify-content: center; padding-top: 34px;
  background: radial-gradient(120% 80% at 50% 100%, #eef0f4 0%, #fff 60%); }
.appshot img { height: 100%; width: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.22)); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.appcard:hover .appshot img { transform: translateY(-8px) rotate(-1.5deg); }
.appinfo { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.apphead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.apphead .mlogo { width: 44px; height: 44px; border-radius: 12px; background: #000; padding: 6px; object-fit: contain; }
.apphead h3 { font-size: 21px; letter-spacing: -.01em; line-height: 1.15; }
.apphead span { font-size: 13px; color: var(--muted); }
.appinfo p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips i { font-style: normal; font-size: 12px; color: #1d1d1f; background: #f5f5f7; border-radius: 980px; padding: 4px 10px; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.store { display: inline-flex; align-items: center; gap: 6px; background: #1d1d1f; color: #fff !important; border-radius: 980px; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.store:hover { background: #000; }
.store svg { width: 15px; height: 15px; fill: #fff; }
.store.muted { background: #f5f5f7; color: var(--muted) !important; }
@media (max-width: 1200px) { .appgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .appgrid { grid-template-columns: 1fr; } .appshot { height: 380px; } }

/* ===== piani di gestione in vetro smerigliato (sfondi dei mockup Pixelbuddha) ===== */
.gplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.gplan { position: relative; border-radius: 34px; overflow: hidden; padding: 28px; min-height: 640px; display: flex;
  background-position: center; background-size: cover; background-repeat: no-repeat; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gplan:hover { transform: translateY(-6px); }
.gplan.best { box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 40px 80px -40px rgba(41,151,255,.6); }
.gpane { position: relative; flex: 1; border-radius: 26px; padding: 34px 30px 30px; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.26), rgba(255,255,255,.08) 45%, rgba(255,255,255,.14));
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.28), 0 30px 60px -30px rgba(0,0,0,.55); }
/* grana come nel vetro dei mockup */
.gpane:before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* riflesso sul bordo in alto a sinistra */
.gpane:after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.35), transparent 45%); }
.gpane > * { position: relative; z-index: 1; }
.gtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gname { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.gbadge { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.9); color: #000; border-radius: 980px; padding: 5px 12px; }
.gtag { color: rgba(255,255,255,.85); font-size: 16px; margin-top: 4px; }
.gprice { font-size: 76px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 30px; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.gprice span { font-size: 18px; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: rgba(255,255,255,.85); }
.gvat { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 10px; }
.ghours { display: inline-block; align-self: flex-start; margin-top: 22px; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 980px;
  background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.gplan ul { list-style: none; margin: 22px 0 28px; }
.gplan li { font-size: 15px; padding: 9px 0 9px 26px; position: relative; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.95); }
.gplan li:before { content: "✓"; position: absolute; left: 2px; font-weight: 700; }
.gbtn { margin-top: auto; text-align: center; background: #fff; color: #000 !important; font-weight: 600; font-size: 17px; border-radius: 980px; padding: 14px 20px;
  transition: transform .2s, box-shadow .2s; }
.gbtn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
#gestione .note { color: #a1a1a6; } #gestione .note a { color: var(--link-d); }
#gestione .faq details { border-color: #333336; } #gestione .faq summary { color: #f5f5f7; } #gestione .faq p { color: #a1a1a6; }
#gestione .faq summary:after { color: var(--link-d); }
@media (max-width: 1000px) { .gplans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } .gplan { min-height: 0; } }

/* ===== CTA che "spuntano" (apertura e footer) ===== */
.pop-ctas, .mega-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pop { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 980px; font-size: 17px; font-weight: 600;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s; }
.pop svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.pop.wa { background: #25d366; color: #04210f !important; box-shadow: 0 14px 40px -14px rgba(37,211,102,.7); }
.pop.wa:hover { background: #2fe374; transform: translateY(-2px) scale(1.02); }
.pop.mail { background: rgba(255,255,255,.1); color: #f5f5f7 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(14px); }
.pop.mail:hover { background: rgba(255,255,255,.18); transform: translateY(-2px) scale(1.02); }
.hero .pop-ctas .pop { opacity: 0; transform: translateY(26px) scale(.85); animation: spunta .9s cubic-bezier(.2,1.4,.4,1) forwards; }
.hero .pop-ctas .pop:nth-child(1) { animation-delay: .7s; }
.hero .pop-ctas .pop:nth-child(2) { animation-delay: .85s; }
.pop-more { display: inline-block; margin-top: 18px; opacity: 0; animation: spunta .8s ease 1.1s forwards; }
@keyframes spunta { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .pop-ctas .pop, .pop-more { animation: none; opacity: 1; transform: none; } }

/* ===== footer unico: contatti + link ===== */
.mega { position: relative; overflow: hidden; background: #000; color: #f5f5f7; padding: 140px 0 36px; }
.mega-glow { position: absolute; left: 50%; top: -10%; width: 1100px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(41,151,255,.35), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(37,211,102,.22), transparent 70%);
  filter: blur(60px); }
.mega-top { position: relative; text-align: center; }
.mega-title { font-size: clamp(56px, 9vw, 128px); line-height: .98; font-weight: 700; letter-spacing: -.045em; margin: 6px 0 22px;
  background: linear-gradient(180deg, #fff 35%, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mega .lead { margin: 0 auto 34px; color: #a1a1a6; }
.mega .topics { margin-top: 34px; }
.mega .topics a { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mega .topics a:hover { background: #25d366; color: #04210f; }
.mega-cols { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-top: 120px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.12); }
.mega-cols h4 { font-size: 13px; color: #f5f5f7; margin-bottom: 12px; font-weight: 600; }
.mega-cols a { display: block; color: #a1a1a6; font-size: 14px; padding: 4px 0; transition: color .2s; }
.mega-cols a:hover { color: #fff; }
.mega-brand .brand { display: inline-flex; align-items: center; gap: 10px; color: #f5f5f7 !important; font-weight: 600; font-size: 17px; padding: 0; }
.mega-brand .brand img { width: 28px; height: 28px; }
.mega-brand p { color: #86868b; font-size: 14px; margin-top: 14px; }
.mega-brand .vat { font-size: 12px; margin-top: 8px; }
.mega-bottom { position: relative; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 50px; font-size: 12px; color: #6e6e73; }
@media (max-width: 834px) { .mega { padding-top: 100px; } .mega-cols { grid-template-columns: 1fr 1fr; } .mega-brand { grid-column: span 2; } .pop { font-size: 15px; padding: 13px 20px; } }

/* ===== barra contatti fluttuante (compare dopo l'apertura e resta) ===== */
.dock { position: fixed; left: 50%; bottom: 22px; z-index: 120; display: flex; gap: 8px; padding: 8px; border-radius: 980px;
  background: rgba(22,22,23,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 20px 50px -18px rgba(0,0,0,.7);
  transform: translate(-50%, 140%) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .6s cubic-bezier(.2,1.3,.4,1), opacity .35s; }
.dock.on { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.dock .pop { padding: 12px 22px; font-size: 15px; }
.dock .pop.wa { box-shadow: 0 8px 24px -10px rgba(37,211,102,.8); }
@media (max-width: 560px) { .dock { bottom: 14px; } .dock .pop { padding: 11px 18px; } }
/* footer senza il blocco "Parliamo del tuo progetto" */
.mega { padding-top: 0; }
.mega-cols { margin-top: 0; padding-top: 64px; border-top: 0; }
.mega { padding-bottom: 110px; } /* spazio per la barra contatti fluttuante */

/* ===== "Numeri che parlano chiaro" in vetro smerigliato su fondale colorato ===== */
.numeri { background-color: #0b0b10; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; }
.numeri:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.5)); pointer-events: none; }
.numeri .wrap { position: relative; }
.numeri .h-sec { color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.35); }
.numeri .tile, .numeri .tile.black, .numeri .tile.orange {
  color: #fff; background: linear-gradient(150deg, rgba(255,255,255,.24), rgba(255,255,255,.07) 45%, rgba(255,255,255,.13));
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.26), 0 30px 60px -30px rgba(0,0,0,.6); }
.numeri .tile:after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,.3), transparent 45%); }
.numeri .tile > * { position: relative; z-index: 1; }
.numeri .tile .k { color: rgba(255,255,255,.8); }
.numeri .tile .t { color: #fff; }
.numeri .tile .num, .numeri .tile.black .num { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.numeri .tile .tech span { color: rgba(255,255,255,.9); }
.numeri .tile .tech svg { fill: #fff; }
.numeri .tile .logos img { background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
@media (max-width: 834px) { .numeri { background-attachment: scroll; } }

/* ===== highlights su telefono: la schermata mobile al posto di quella desktop rimpicciolita ===== */
.only-m { display: none; }
@media (max-width: 834px) {
  .hl-card { flex-basis: 86vw; height: 600px; padding: 30px 24px; }
  .hl-card .media .browser { display: none; }
  .hl-card .media .only-m { display: block; width: 80%; max-width: 310px; margin-bottom: -230px; }
  .hl-card .media.film .vid { height: 72%; object-fit: cover; object-position: center; }
  .hl-card .cap { font-size: 22px; }
}
/* "Guardalo da vicino": solo desktop (su telefono trascinare il 3D è scomodo) */
@media (max-width: 834px) { #vicino { display: none; } }
/* pulsante pacchetto in attesa di Stripe */
.gbtn.wait { opacity: .7; pointer-events: none; }

/* ===== link alle pagine sviluppatore su App Store e Google Play ===== */
.devstores { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 48px; }
.dev { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff !important; border-radius: 16px; padding: 12px 22px 12px 18px;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.dev:hover { transform: translateY(-2px); }
.dev svg { width: 28px; height: 28px; fill: #fff; }
.dev span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.dev small { font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.mega-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 834px) { .mega-cols { grid-template-columns: 1fr 1fr; } }
.scrub-sticky canvas.seq { position: absolute; inset: 0; display: block; }

/* pulsante WhatsApp dell'apertura: azzurro come gli altri pulsanti del sito */
.hero .pop-ctas .pop.wa { background: #0071e3; color: #fff !important; box-shadow: 0 14px 40px -14px rgba(0,113,227,.8); }
.hero .pop-ctas .pop.wa:hover { background: #0077ed; }

/* ===== callout animati sul portatile ("Anche sulla scrivania") ===== */
.lap { position: relative; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co-line { fill: none; stroke: #0071e3; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(0,113,227,.45)); }
.co-dot { fill: #0071e3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.co-ring { fill: rgba(0,113,227,.18); stroke: rgba(0,113,227,.6); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.co-label { position: absolute; transform: translateY(-50%) translateX(var(--from, 0)); width: 200px; padding: 12px 14px; border-radius: 16px; opacity: 0;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -20px rgba(0,0,0,.35); }
.co-label.l { --from: -14px; text-align: right; }
.co-label.r { --from: 14px; }
.co-label b { display: block; font-size: 15px; letter-spacing: -.01em; color: #1d1d1f; }
.co-label span { display: block; font-size: 12.5px; line-height: 1.35; color: #6e6e73; margin-top: 3px; }
.co-scan { position: absolute; left: 22.2%; width: 49.1%; top: 14%; height: 50%; overflow: hidden; border-radius: 6px; opacity: 0; }
.co-scan:before { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(180deg, transparent, rgba(41,151,255,.18) 70%, rgba(41,151,255,.9) 98%, transparent); }
/* partenza: quando il portatile ha finito di aprirsi */
.lap.analizza .co-scan { animation: co-scan-on 1.4s ease forwards; }
.lap.analizza .co-scan:before { animation: co-scan 1.4s cubic-bezier(.4,0,.2,1) forwards; }
.lap.analizza .co-ring { animation: co-pop .5s cubic-bezier(.2,1.6,.4,1) forwards, co-pulse 2.4s ease-out infinite; animation-delay: calc(1.2s + var(--i) * .28s), calc(1.8s + var(--i) * .28s); }
.lap.analizza .co-dot { animation: co-pop .5s cubic-bezier(.2,1.6,.4,1) forwards; animation-delay: calc(1.2s + var(--i) * .28s); }
.lap.analizza .co-line { animation: co-draw .9s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(1.4s + var(--i) * .28s); }
.lap.analizza .co-label { animation: co-label .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(2.05s + var(--i) * .28s); }
@keyframes co-scan-on { 0% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes co-scan { to { top: 100%; } }
@keyframes co-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes co-pulse { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes co-draw { to { stroke-dashoffset: 0; } }
@keyframes co-label { to { opacity: 1; transform: translateY(-50%) translateX(0); } }
@media (max-width: 1100px) { .callouts { display: none; } }
@media (prefers-reduced-motion: reduce) { .lap.analizza * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* barra fluttuante: WhatsApp blu come il resto del sito */
.dock .pop.wa { background: #0071e3; color: #fff !important; box-shadow: 0 8px 24px -10px rgba(0,113,227,.85); }
.dock .pop.wa:hover { background: #0077ed; }
/* logo Google Play a colori (non ereditare il bianco) */
svg.gp path { fill: revert-layer; }
.dev svg.gp, .store svg.gp { fill: initial; }
