/* TecnoReport – sito di presentazione */
:root {
  --red: #c8102e;
  --red-2: #e0283f;
  --wine: #7d091e;
  --ink: #1d2025;
  --ink-2: #4a505a;
  --muted: #6b7280;
  --line: #e7e3df;
  --bg: #fbfaf8;
  --soft: #f3f0ec;
  --dark: #121417;
  --dark-2: #1b1e23;
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(29, 32, 37, .35), 0 8px 20px -12px rgba(29, 32, 37, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.65 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.soft { background: var(--soft); }
.dark { background: var(--dark); color: #eef0f3; }
.dark p, .dark small { color: #a9b0bb; }
.eyebrow {
  display: inline-block; font: 600 .78rem/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.1em; padding: .55em .9em; border-radius: 99px; background: rgba(200, 16, 46, .08);
}
.dark .eyebrow { color: #ff6b7f; background: rgba(255, 80, 100, .12); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sub { font-size: 1.08rem; }
.grad { background: linear-gradient(100deg, var(--red-2), var(--wine)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: 15px 26px; border-radius: 14px; border: 0; cursor: pointer;
  font: 600 1rem Inter, sans-serif; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--red-2), var(--wine));
  box-shadow: 0 14px 30px -12px rgba(200, 16, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(200, 16, 46, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .92rem; border-radius: 12px; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- barra di avanzamento + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red-2), var(--wine)); }
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(251, 250, 248, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem Sora, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { color: var(--red); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:not(.btn):hover { color: var(--ink); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(224, 40, 63, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(125, 9, 30, .08), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 32, 37, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 32, 37, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 500; }
.hero-3d { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; opacity: 0; transition: opacity .6s; animation: bob 6s ease-in-out infinite; }
.no-webgl .hero-fallback { opacity: 1; }
.float-card {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 14px; font-size: .88rem; font-weight: 500; white-space: nowrap;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .7);
  animation: bob 6s ease-in-out infinite;
}
.float-card b { color: var(--red); }
.fc1 { top: 9%; left: -2%; }
.fc2 { bottom: 16%; right: -2%; animation-delay: -2s; }
.fc3 { bottom: 4%; left: 8%; animation-delay: -4s; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.ok { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink-2); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; border-radius: 2px; background: var(--red); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- strip ---------- */
.strip { background: linear-gradient(90deg, var(--wine), var(--red)); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.strip-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.strip span { font: 600 1.05rem Sora, sans-serif; padding: 0 28px; white-space: nowrap; }
.strip span::before { content: "✦"; margin-right: 28px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- prima/dopo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { padding: 28px; border-radius: var(--radius); }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.compare li { padding-left: 28px; position: relative; }
.before { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.before h3 { color: var(--muted); }
.before li { color: var(--muted); }
.before li::before { content: "✕"; position: absolute; left: 0; color: #b8b2ab; font-weight: 700; }
.after { background: linear-gradient(160deg, #fff, #fff4f5); box-shadow: var(--shadow), inset 0 0 0 1px rgba(200, 16, 46, .18); transform: translateY(-14px); }
.after h3 { color: var(--red); }
.after li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ---------- step ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 90, 110, .5), transparent); }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .35), 0 30px 60px -30px rgba(200, 16, 46, .6); }
.step-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red-2), var(--wine)); box-shadow: 0 14px 30px -10px rgba(224, 40, 63, .7); margin-bottom: 22px; position: relative; z-index: 1; }
.step-ico svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.step-ico.sign svg { width: 46px; stroke-width: 5; }
.num { position: absolute; top: 22px; right: 24px; font: 800 2.4rem Sora, sans-serif; color: rgba(255, 255, 255, .07); }

/* firme che si disegnano */
.sig { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .sig, .sig.in { animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- documento 3D ---------- */
.doc-stage { perspective: 1600px; display: grid; place-items: center; min-height: 520px; }
.doc-stack { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1.3; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-22deg) rotateZ(4deg); transition: transform .8s var(--ease); }
.paper { position: absolute; inset: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 40px 70px -30px rgba(29, 32, 37, .45); }
.p3 { transform: translateZ(-60px) translate(26px, 26px); background: #efe9e4; }
.p2 { transform: translateZ(-30px) translate(13px, 13px); background: #f7f3ef; }
.p1 { padding: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 11px; line-height: 1.3; }
.doc-head { display: grid; grid-template-columns: 38px 1fr 90px; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 3px solid var(--red); }
.doc-head img { width: 38px; }
.doc-head b { display: block; font: 700 11px Sora, sans-serif; color: var(--wine); }
.doc-head small { color: var(--muted); }
.barcode { width: 100%; height: 34px; }
.barcode rect { fill: var(--ink); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-grid div { padding: 8px; border-radius: 6px; background: var(--soft); }
.doc-grid small, .doc-sign small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.doc-lines { display: grid; gap: 8px; padding: 6px 0; }
.doc-lines i { height: 7px; border-radius: 4px; background: #ece7e2; }
.doc-lines i.s { width: 60%; }
.doc-tot { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 8px; background: #fff4f5; color: var(--wine); }
.doc-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc-photos small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.doc-photos i { aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(135deg, #3a3f47, #6b7280 55%, #c8102e 140%); }
.doc-photos i:nth-of-type(2) { background: linear-gradient(160deg, #e6dcd4, #9aa1ab); }
.doc-photos i:nth-of-type(3) { background: linear-gradient(120deg, #1d2025, #7d091e); }
.doc-sign { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-sign div { border-top: 1px dashed #cfc8c1; padding-top: 6px; }
.doc-sign svg { height: 40px; width: 100%; }
.doc-sign .sig { stroke: #1f3b8a; stroke-width: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 36px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(200, 16, 46, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks b { color: var(--ink); }
.ticks.light li { color: #b8bec8; }
.ticks.light b { color: #fff; }
.ticks.light li::before { background-color: rgba(255, 90, 110, .16); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease);
  transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 40, 63, .12), transparent 60%); }
.card:hover { box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .25), var(--shadow); }
.card:hover::before { opacity: 1; }
.card p { font-size: .95rem; margin: 0; }
.card.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #fff, #fff1f3); display: flex; flex-direction: column; }
.card.big h3 { font-size: 1.6rem; }
.ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 15px; background: var(--soft); margin-bottom: 18px; transform: translateZ(30px); }
.sig-pad { margin-top: auto; padding-top: 24px; position: relative; }
.sig-pad svg { height: 120px; width: 100%; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1.5px #e9d6d9; }
.sig-pad .sig { stroke: #1f3b8a; stroke-width: 3.2; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.sig-pad span { position: absolute; right: 16px; bottom: 10px; font-size: .75rem; color: var(--muted); }

/* ---------- monte ore ---------- */
.hours { position: relative; display: grid; place-items: center; min-height: 460px; padding-bottom: 90px; perspective: 1200px; }
.ring-card { width: min(360px, 100%); padding: 34px; border-radius: 28px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; text-align: center; transform-style: preserve-3d; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; }
.ring .track { stroke: var(--soft); }
.ring .bar { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 527.8; stroke-dashoffset: 527.8; transition: stroke-dashoffset 2s var(--ease); }
.ring-txt { position: absolute; left: 0; right: 0; top: 34px; aspect-ratio: 1; display: grid; place-content: center; transform: translateZ(40px); }
.ring-txt b { font: 800 2.8rem Sora, sans-serif; }
.ring-txt small { color: var(--muted); }
.ring-meta { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.badge { padding: 4px 10px; border-radius: 99px; font-weight: 600; font-size: .8rem; }
.badge.ok { background: #dcfce7; color: #166534; }
.alert-card { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow), inset 0 0 0 1px #f5c9cf; animation: bob 7s ease-in-out infinite; }
.alert-card small { display: block; color: var(--muted); font-size: .82rem; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); } }
.mini-btn { padding: 7px 12px; border-radius: 10px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 600; }

/* ---------- statistiche ---------- */
.split.rev > :first-child { order: 0; }
.chart-card { padding: 30px; border-radius: 26px; background: linear-gradient(160deg, #1f2329, #16181c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -40px rgba(224, 40, 63, .5); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.kpis div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.kpis small { display: block; font-size: .78rem; }
.kpis b { font: 700 1.6rem Sora, sans-serif; color: #fff; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 220px; align-items: end; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bars div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bars div::before, .bars div::after { content: ""; display: block; border-radius: 6px; transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.bars div::before { height: calc(var(--h) - var(--c)); background: linear-gradient(var(--red-2), var(--wine)); border-radius: 6px 6px 0 0; }
.bars div::after { height: var(--c); background: #f4b6bf; border-radius: 0 0 2px 2px; }
.bars.in div::before, .bars.in div::after { transform: scaleY(1); }
.bars div:nth-child(2)::before, .bars div:nth-child(2)::after { transition-delay: .08s; }
.bars div:nth-child(3)::before, .bars div:nth-child(3)::after { transition-delay: .16s; }
.bars div:nth-child(4)::before, .bars div:nth-child(4)::after { transition-delay: .24s; }
.bars div:nth-child(5)::before, .bars div:nth-child(5)::after { transition-delay: .32s; }
.bars div:nth-child(6)::before, .bars div:nth-child(6)::after { transition-delay: .4s; }
.bars span { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: .78rem; color: #8a919c; }
.legend { display: flex; gap: 20px; margin-top: 42px; font-size: .82rem; color: #a9b0bb; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.legend .l1::before { background: var(--red-2); }
.legend .l2::before { background: #f4b6bf; }

/* ---------- offline + barcode ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-xl { display: grid; grid-template-rows: 420px auto; align-items: center; gap: 28px; padding: 36px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); perspective: 1200px; }
.feature-xl h3 { font-size: 1.5rem; }
.feature-xl > div:first-child, .feature-xl > .phone, .feature-xl > .scanner { justify-self: center; }
.phone { width: 220px; height: 400px; padding: 12px; border-radius: 36px; background: #1d2025; box-shadow: var(--shadow), inset 0 0 0 2px #3a3f47; position: relative; transform: rotateY(-14deg) rotateX(8deg); transform-style: preserve-3d; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 26px; background: var(--bg); padding: 42px 14px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; font-size: 11px; }
.ph-top { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.ph-top img { width: 20px; }
.off { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: #fef3c7; color: #92400e; font-style: normal; font-size: 10px; }
.ph-field { padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ph-field small { display: block; color: var(--muted); font-size: 9px; }
.ph-field svg { height: 30px; width: 100%; }
.ph-field .sig { stroke: #1f3b8a; stroke-width: 2; }
.ph-queue { margin-top: auto; padding: 9px 10px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 8px; font-size: 10.5px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.scanner { width: min(340px, 100%); height: 220px; padding: 34px 30px; border-radius: 22px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; overflow: hidden; transform: rotateX(14deg) rotateY(12deg); transform-style: preserve-3d; display: flex; flex-direction: column; justify-content: center; }
.barcode.big { height: 100px; }
.digits { text-align: center; font: 600 15px/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; margin-top: 10px; }
.laser { position: absolute; left: 14px; right: 14px; height: 2px; top: 30%; background: #ff2442; box-shadow: 0 0 12px 3px rgba(255, 36, 66, .55); animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: 68%; } }

/* ---------- automazioni ---------- */
.auto { display: grid; grid-template-columns: 1fr 120px 1fr 120px 1fr; align-items: center; }
.auto-node { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.auto-node span { font-size: 2rem; display: block; margin-bottom: 10px; }
.auto-node b { display: block; font-family: Sora, sans-serif; margin-bottom: 6px; }
.auto-node small { color: var(--muted); font-size: .88rem; }
.auto-line { height: 2px; background: repeating-linear-gradient(90deg, #d9cfc8 0 8px, transparent 8px 14px); position: relative; }
.auto-line i { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(200, 16, 46, .15); animation: travel 2.6s ease-in-out infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 12px); } }

/* ---------- sicurezza ---------- */
.shield-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shield-grid li { padding: 20px; border-radius: 18px; background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s var(--ease), box-shadow .3s; }
.shield-grid li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .35); }
.shield-grid b { display: block; color: #fff; margin-bottom: 4px; }
.shield-grid b::before { content: "🔒"; margin-right: 8px; }
.shield-grid small { font-size: .88rem; }

/* ---------- dispositivi ---------- */
.devices { position: relative; height: 380px; max-width: 900px; margin: 0 auto 70px; perspective: 1800px; }
.dev { position: absolute; transform-style: preserve-3d; }
.scr { background: #fff; border-radius: 8px; height: 100%; overflow: hidden; padding: 14px; }
.laptop { left: 6%; top: 0; width: 62%; height: 300px; padding: 12px; border-radius: 16px 16px 4px 4px; background: #23272e; transform: rotateX(8deg) rotateY(14deg); box-shadow: var(--shadow); }
.laptop .base { position: absolute; left: -7%; right: -7%; bottom: -16px; height: 16px; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd3d8, #a9aeb6); }
.tablet { right: 12%; top: 70px; width: 26%; height: 270px; padding: 10px; border-radius: 20px; background: #23272e; transform: rotateY(-18deg) rotateX(6deg) translateZ(60px); box-shadow: var(--shadow); }
.mobile { right: 2%; top: 150px; width: 13%; min-width: 92px; height: 210px; padding: 7px; border-radius: 18px; background: #23272e; transform: rotateY(-24deg) translateZ(120px); box-shadow: var(--shadow); }
.ui-rows { display: grid; gap: 10px; }
.ui-rows i { height: 34px; border-radius: 6px; background: linear-gradient(90deg, #fbe5e8 0 18%, #f3f0ec 18%); }
.ui-rows i:first-child { background: linear-gradient(90deg, var(--red) 0 30%, transparent 30%); height: 14px; }
.ui-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-cards i { height: 100px; border-radius: 8px; background: var(--soft); box-shadow: inset 0 4px 0 var(--red); }
.ui-cards.one { grid-template-columns: 1fr; }
.ui-cards.one i { height: 56px; background: #2a2e35; }
.dark-ui { background: #16181c; padding: 8px; border-radius: 12px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.numbers b { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem) Sora, sans-serif; background: linear-gradient(135deg, var(--red-2), var(--wine)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .3), var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; font: 600 1.05rem Sora, sans-serif; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--red); font-size: 1.3rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(70% 90% at 20% 30%, rgba(224, 40, 63, .14), transparent 70%), var(--bg); }
.cta-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.cta-logo img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(125, 9, 30, .25)); animation: bob 7s ease-in-out infinite; }
.contact { display: grid; gap: 14px; margin-top: 26px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.contact input, .contact textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .12); }
.contact .btn { justify-self: start; }
.small { font-size: .88rem; margin: 0; }
.small a { color: var(--red); font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.foot nav a:hover { color: var(--red); }
.foot small { color: var(--muted); }
.foot small a { color: var(--red); font-weight: 600; text-decoration: none; }
.foot small a:hover { text-decoration: underline; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.after.reveal.in { transform: translateY(-14px); }
.tilt { transition: transform .5s var(--ease), opacity .9s var(--ease), box-shadow .4s var(--ease); will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 960px) {
  .menu { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 22px; background: rgba(251, 250, 248, .97); backdrop-filter: blur(14px); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; justify-content: center; }
  .menu.open { transform: none; visibility: visible; }
  .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-in, .split, .cta-in, .duo { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-3d { max-width: 520px; margin: 0 auto; }
  .split.rev > :first-child { order: 2; }
  .auto { grid-template-columns: 1fr; gap: 0; }
  .auto-line { width: 2px; height: 50px; margin: 0 auto; background: repeating-linear-gradient(180deg, #d9cfc8 0 8px, transparent 8px 14px); }
  .auto-line i { left: 50% !important; margin-left: -6px; top: 0; animation-name: travelv; }
  .cta-logo { max-width: 280px; margin: 0 auto; }
  .devices { height: 300px; }
  .laptop { height: 230px; }
  .tablet { height: 210px; top: 60px; }
  .mobile { height: 170px; top: 120px; }
}
@keyframes travelv { from { top: 0; } to { top: calc(100% - 12px); } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .compare, .shield-grid, .contact .row { grid-template-columns: 1fr; }
  .after, .after.reveal.in { transform: none; }
  .bento, .steps { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; grid-row: auto; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .float-card { font-size: .76rem; padding: 8px 12px; }
  .fc1 { left: 0; } .fc2 { right: 0; }
  .alert-card { position: relative; right: auto; bottom: auto; margin-top: 18px; }
  .hours { min-height: 0; }
  .feature-xl { padding: 24px; grid-template-rows: auto auto; }
  .doc-stage { min-height: 420px; }
  .devices { height: 230px; }
  .laptop { width: 74%; left: 0; height: 180px; }
  .tablet { width: 34%; right: 6%; height: 160px; top: 50px; }
  .mobile { height: 130px; top: 90px; min-width: 70px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .sig { stroke-dashoffset: 0; }
}

/* link brochure nell'intestazione */
.dl-link { align-self: center; font-weight: 600; color: var(--red); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.dl-link:hover { border-bottom-color: var(--red); }
