/* AV Digital Group · avdgroup.it
   Carattere: Satoshi (Indian Type Foundry, Fontshare Free Font License), servito dal sito. */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg-0: #04060b;
  --bg-1: #070b16;
  --bg-2: #0b1222;
  --bg-3: #111a30;
  --line-d: rgba(148, 163, 184, .13);
  --line-d2: rgba(148, 163, 184, .22);
  --txt-d: #e9eef8;
  --txt-d2: #9aa6bf;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --mist-2: #eaeef5;
  --line-l: #e2e7ef;
  --ink: #0a0f1c;
  --ink-2: #4b5567;
  --ink-3: #8a94a8;
  --blue: #2f6bff;
  --blue-2: #5b8dff;
  --blue-3: #a9c4ff;
  --blue-soft: #eef3ff;
  --cyan: #38bdf8;
  --green: #22c55e;
  --red: #e5484d;
  --grad: linear-gradient(100deg, #4f7dff 0%, #3aa8ff 55%, #8fb0ff 100%);
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 24px;
  --pad: clamp(20px, 4vw, 40px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); background: var(--bg-0); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 200; top: -80px; left: 16px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { top: 16px; }
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.container.narrow { width: min(920px, 100%); }
.icon { flex: none; }

/* ── Tipografia ── */
h1, .h-xl, .h-lg, .h-md, .h-sm { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(44px, 6.4vw, 94px); }
.h-xl { font-size: clamp(34px, 4.3vw, 62px); }
.h-lg { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; }
.h-md { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.025em; }
.h-sm { font-size: 22px; letter-spacing: -.02em; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; }
/* Seconda parte dei titoli: lo stesso blu delle etichette (es. «Chi siamo») */
.muted { color: var(--blue); }
.section-dark .muted, .page-hero .muted { color: var(--blue-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: #fff; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--blue-2); }

/* ── Pulsanti ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .35s; }
.btn:active { transform: scale(.97); }
.btn .btn-arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:hover .icon[class*="arrowUp"], .btn:hover .btn-arrow:only-child { transform: translate(2px, -2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 107, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-primary:hover { background: #3d77ff; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(47, 107, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .18); color: #fff; background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.section-light .btn-ghost, .section-mist .btn-ghost { border-color: var(--line-l); color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.actions.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.text-link .icon { transition: transform .4s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* ── Testata ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header); color: #fff; transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5, 8, 16, .72); border-color: var(--line-d); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 44px; height: auto; }
.brand em { font-style: normal; color: var(--blue-2); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(233, 238, 248, .72); transition: color .25s, background-color .25s; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line-d2); border-radius: 50%; background: rgba(255, 255, 255, .04); cursor: pointer; }
.menu-toggle i { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle i:first-of-type { top: 18px; }
.menu-toggle i:last-of-type { top: 26px; }
.menu-open .menu-toggle i:first-of-type { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle i:last-of-type { top: 22px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header) 0 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: rgba(4, 6, 11, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-d); font-size: clamp(28px, 8vw, 38px); font-weight: 700; letter-spacing: -.03em; opacity: 0; transform: translateY(16px); animation: menu-in .6s var(--ease-out) forwards; animation-delay: calc(60ms + var(--i) * 55ms); }
.mobile-menu nav a[aria-current="page"] { color: var(--blue-2); }
.mobile-menu nav a .icon { color: var(--txt-d2); }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.mobile-menu-foot { display: grid; gap: 16px; margin-top: 32px; }
.mobile-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--txt-d2); }

/* ── Sfondi tecnici: griglia e bagliori ── */
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(148, 163, 184, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .075) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 40%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 62% 40%, #000 25%, transparent 78%); animation: grid-pan 60s linear infinite; }
.hero-grid.faint { opacity: .55; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%); }
@keyframes grid-pan { to { background-position: 64px 64px; } }
.hero-glow { position: absolute; top: -18%; right: -8%; width: min(760px, 80vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(47, 107, 255, .42), rgba(47, 107, 255, 0) 65%); filter: blur(10px); animation: glow-drift 18s ease-in-out infinite alternate; }
.hero-glow.two { top: auto; right: auto; bottom: -30%; left: -14%; width: min(560px, 70vw); background: radial-gradient(circle, rgba(56, 189, 248, .18), rgba(56, 189, 248, 0) 65%); animation-duration: 22s; }
@keyframes glow-drift { to { transform: translate(-40px, 30px) scale(1.06); } }

/* ── Prima schermata ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header) + 48px) 0 96px; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, #0b1530 0%, var(--bg-0) 60%); color: var(--txt-d); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
.hero h1 { color: #fff; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { transform: translateY(108%); transition: transform 1.2s var(--ease-out); }
.js .hero h1 .line + .line > span { transition-delay: .12s; }
.is-ready .hero h1 .line > span { transform: none; }
.hero .lead { max-width: 560px; margin-top: 28px; color: var(--txt-d2); }
.js .hero .eyebrow, .js .hero .lead, .js .hero .actions { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero .lead { transition-delay: .35s; }
.js .hero .actions { transition-delay: .5s; }
.is-ready .hero .eyebrow, .is-ready .hero .lead, .is-ready .hero .actions { opacity: 1; transform: none; }
.hero-visual { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; }
.hero-visual::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .22), transparent 70%); filter: blur(20px); }
.network { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero-visual { opacity: 0; transform: scale(.94); transition: opacity 1.6s var(--ease-out) .2s, transform 1.8s var(--ease-out) .2s; }
.is-ready .hero-visual { opacity: 1; transform: none; }
.node-label { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid rgba(91, 141, 255, .28); border-radius: 999px; background: rgba(7, 11, 22, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); will-change: transform, opacity; opacity: 0; transition: opacity .5s; }
.node-label .icon { color: var(--blue-2); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Testata delle pagine interne ── */
.page-hero { position: relative; padding: calc(var(--header) + 96px) 0 110px; overflow: hidden; background: radial-gradient(110% 100% at 75% 0%, #0b1530 0%, var(--bg-0) 62%); color: var(--txt-d); }
.page-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.page-hero h1 { max-width: 900px; font-size: clamp(40px, 5.4vw, 78px); color: #fff; }
.page-hero .lead { max-width: 680px; margin-top: 26px; color: var(--txt-d2); }
.service-emblem { position: relative; width: clamp(180px, 22vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(91, 141, 255, .2); }
.emblem-ring.r1 { background: conic-gradient(from 0deg, transparent 0 70%, rgba(91, 141, 255, .7) 88%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 67%, #000 68%); mask: radial-gradient(circle, transparent 67%, #000 68%); animation: spin 9s linear infinite; }
.emblem-ring.r2 { inset: 16%; border-style: dashed; border-color: rgba(148, 163, 184, .25); animation: spin 26s linear infinite reverse; }
.emblem-core { position: relative; display: grid; place-items: center; width: 38%; aspect-ratio: 1; border: 1px solid rgba(91, 141, 255, .4); border-radius: 30%; background: linear-gradient(145deg, rgba(47, 107, 255, .3), rgba(7, 11, 22, .9)); color: #fff; box-shadow: 0 0 60px -10px rgba(47, 107, 255, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sezioni ── */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-light { background: var(--paper); }
.section-mist { background: var(--mist); }
.section-dark { overflow: hidden; background: var(--bg-1); color: var(--txt-d); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 860px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head > p { max-width: 640px; margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split-text { display: grid; gap: 20px; font-size: 18px; color: var(--ink-2); }
.split-text .btn { justify-self: start; margin-top: 8px; }
.split-text .text-link { margin-top: 6px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid var(--line-l); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--mist); }
.pill-list .icon { color: var(--blue); }

/* ── Schede ── */
.card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line-l); border-radius: var(--radius); background: var(--paper); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, .1), transparent 45%); transition: opacity .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(47, 107, 255, .35); box-shadow: 0 30px 60px -30px rgba(15, 30, 80, .35); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 26px; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.icon-tile { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--blue-soft); color: var(--blue); transition: transform .6s var(--ease-out), background-color .4s, color .4s; }
.card:hover .icon-tile { transform: rotate(-8deg) scale(1.06); background: var(--blue); color: #fff; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-num { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 600; color: var(--blue); }
.card-link .icon { transition: transform .4s var(--ease-out); }
.card:hover .card-link .icon { transform: translateX(5px); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 320px; }
.services-grid.bento .wide { grid-column: span 2; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card-tags li { padding: 6px 12px; border: 1px solid var(--line-l); border-radius: 999px; background: var(--mist); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: border-color .4s, color .4s, background-color .4s; }
.card:hover .card-tags li { border-color: rgba(47, 107, 255, .25); background: var(--blue-soft); color: var(--blue); }
.section-dark .card { border-color: var(--line-d); background: rgba(255, 255, 255, .025); }
.section-dark .card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 141, 255, .16), transparent 45%); }
.section-dark .card:hover { border-color: rgba(91, 141, 255, .45); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.section-dark .card p { color: var(--txt-d2); }
.section-dark .icon-tile { background: rgba(47, 107, 255, .14); color: var(--blue-2); box-shadow: inset 0 0 0 1px rgba(91, 141, 255, .25); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values-grid.three { grid-template-columns: repeat(3, 1fr); }
.value-card { min-height: 260px; }
.values-grid.three .value-card h3 { margin-top: 0; }

/* ── Parole che scorrono: due righe opposte, velocità legata allo scorrimento, luce che attraversa le parole ── */
.marquee { position: relative; display: grid; gap: 6px; overflow: hidden; padding: 30px 0; background: var(--bg-1); border-bottom: 1px solid var(--line-d); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 14%; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; animation: marquee 60s linear infinite; }
.marquee-row[data-dir="1"] .marquee-track { animation-direction: reverse; }
.js-marquee .marquee-track { animation: none; }
.marquee span { position: relative; font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; white-space: nowrap; color: transparent; background: linear-gradient(100deg, #e9eef8 0%, #e9eef8 38%, #9cc0ff 46%, #ffffff 50%, #9cc0ff 54%, #e9eef8 62%, #e9eef8 100%); background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; animation: word-shine 7s var(--ease) infinite; animation-delay: calc(var(--k) * .42s); transition: transform .5s var(--ease-out); cursor: default; }
.marquee-row[data-dir="1"] span { font-size: clamp(22px, 2.4vw, 34px); opacity: .9; }
.marquee span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.marquee span:hover { background-image: var(--grad); background-size: 100% 100%; animation: none; transform: translateY(-3px); }
.marquee span:hover::after { transform: scaleX(1); }
.spark { width: 22px; height: 22px; flex: none; fill: var(--blue-2); filter: drop-shadow(0 0 8px rgba(91, 141, 255, .8)); animation: spark-spin 6s linear infinite; }
.marquee-row[data-dir="1"] .spark { width: 17px; height: 17px; animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes word-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes spark-spin { to { transform: rotate(360deg); } }

/* ── Portfolio in aggiornamento ── */
.portfolio-soon { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-l); border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -50px rgba(15, 30, 80, .35); }
.soon-visual { position: relative; min-height: 400px; overflow: hidden; background: radial-gradient(90% 80% at 30% 20%, #10204a, var(--bg-0) 70%); }
.mock { position: absolute; display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--line-d2); border-radius: 18px; background: rgba(11, 18, 34, .85); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); }
.mock-a { left: 8%; top: 12%; width: 56%; height: 70%; animation: float-a 9s ease-in-out infinite; }
.mock-b { right: 7%; top: 9%; width: 30%; height: 42%; animation: float-b 11s ease-in-out infinite; }
.mock-c { right: 9%; bottom: 10%; width: 34%; height: 34%; animation: float-a 12s ease-in-out infinite reverse; }
.mock-bar { display: flex; gap: 5px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(148, 163, 184, .35); }
.sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(148, 163, 184, .14), rgba(148, 163, 184, .32), rgba(148, 163, 184, .14)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.sk.w40 { width: 40%; } .sk.w50 { width: 50%; } .sk.w60 { width: 60%; } .sk.w70 { width: 70%; } .sk.w80 { width: 80%; }
.sk.block { height: 46%; border-radius: 12px; background: linear-gradient(135deg, rgba(47, 107, 255, .45), rgba(56, 189, 248, .15)); }
.sk.circle { width: 40px; height: 40px; border-radius: 50%; }
.sk.btn { width: 60%; height: 24px; border-radius: 999px; background: var(--blue); animation: none; }
.chart { display: flex; align-items: flex-end; gap: 8%; height: 100%; padding-top: 10px; }
.chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, rgba(47, 107, 255, .35), var(--blue-2)); transform-origin: bottom; animation: bar 3.2s var(--ease-out) infinite alternate; }
.chart i:nth-child(2) { animation-delay: .2s; } .chart i:nth-child(3) { animation-delay: .4s; } .chart i:nth-child(4) { animation-delay: .6s; } .chart i:nth-child(5) { animation-delay: .8s; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bar { from { transform: scaleY(.55); } }
@keyframes float-a { 50% { transform: translateY(-10px); } }
@keyframes float-b { 50% { transform: translateY(12px); } }
.soon-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 5vw, 64px); }
.soon-copy h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.soon-copy p { margin: 18px 0 32px; color: var(--ink-2); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card .project-media { position: relative; display: block; aspect-ratio: 16 / 11; padding: 7% 12% 0 7%; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #13275e 0%, var(--bg-1) 60%); perspective: 1200px; }
.browser { display: block; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f6; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e2; }
.browser-bar i:first-child { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-url { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.browser img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.phone { position: absolute; right: 5%; bottom: -14%; width: 24%; padding: 5px; border-radius: 22px; background: #0b0f1a; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .12); transform: translateY(var(--py, 0px)); transition: transform .8s var(--ease-out); }
.phone img { width: 100%; height: auto; border-radius: 17px; }
.project-card:hover .browser img { transform: translateY(-6%); }
.project-card:hover .phone { --py: -18px; }
.project-card { overflow: hidden; border: 1px solid var(--line-l); border-radius: 28px; background: var(--paper); transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -45px rgba(15, 30, 80, .45); }
.project-body { padding: 30px 32px 32px; }
.project-cat { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.project-body h3 { margin-top: 8px; font-size: 26px; }
.project-body p { margin-top: 10px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ── Timeline del metodo ── */
.timeline { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.timeline-steps { display: grid; align-content: center; gap: 6px; }
.timeline-steps button { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 18px; width: 100%; padding: 18px 8px 22px; border: 0; background: none; text-align: left; cursor: pointer; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-l); border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--paper); transition: all .4s var(--ease-out); }
.step-t { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.03em; color: var(--ink-3); transition: color .4s; }
.step-bar { position: absolute; left: 70px; right: 8px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line-l); overflow: hidden; }
.step-bar i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.timeline-steps button[aria-selected="true"] .step-n { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(47, 107, 255, .14); }
.timeline-steps button[aria-selected="true"] .step-t { color: var(--ink); }
.timeline-steps button:hover .step-t { color: var(--ink); }
.timeline-steps button[aria-selected="true"] .step-bar i { animation: step-fill var(--step-ms, 6s) linear forwards; }
.timeline.is-paused .step-bar i { animation-play-state: paused; }
@keyframes step-fill { to { transform: scaleX(1); } }
.timeline-panels { position: relative; display: grid; min-height: 380px; }
.timeline-panel { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 56px); border-radius: 32px; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, #142a66 0%, var(--bg-1) 55%); color: var(--txt-d); box-shadow: 0 40px 80px -40px rgba(10, 20, 60, .6); }
.timeline-panel[hidden] { display: none; }
.timeline-panel.is-active { animation: panel-in .7s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.panel-orb { position: absolute; right: -80px; top: -80px; width: 280px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 141, 255, .5), transparent 65%); filter: blur(6px); animation: glow-drift 10s ease-in-out infinite alternate; }
.panel-n { position: relative; font-size: clamp(64px, 8vw, 110px); font-weight: 700; line-height: .9; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline-panel h3 { position: relative; margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px); color: #fff; letter-spacing: -.03em; }
.timeline-panel p { position: relative; max-width: 460px; margin-top: 12px; color: var(--txt-d2); }
.timeline-panel ul { position: relative; display: grid; gap: 10px; margin-top: 26px; }
.timeline-panel li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--txt-d); }
.timeline-panel li .icon { color: var(--blue-2); }

/* ── Invito finale ── */
.section-cta { padding-top: 0; background: inherit; }
.section-mist + .section-cta, .section-cta { background: var(--paper); }
.section-mist + .section-cta { background: var(--mist); }
.cta-panel { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) var(--pad); border-radius: 36px; background: radial-gradient(90% 120% at 50% 120%, #1a3a9a 0%, #0a1430 40%, var(--bg-0) 75%); color: var(--txt-d); text-align: center; isolation: isolate; }
.cta-panel .hero-grid { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 75%); }
.cta-beams { position: absolute; inset: 0; z-index: -1; }
.cta-beams i { position: absolute; bottom: -40%; left: 50%; width: 18%; height: 140%; background: linear-gradient(to top, rgba(47, 107, 255, .55), transparent 70%); filter: blur(30px); transform-origin: bottom center; animation: beam 12s ease-in-out infinite alternate; }
.cta-beams i:nth-child(1) { transform: translateX(-50%) rotate(-28deg); }
.cta-beams i:nth-child(2) { transform: translateX(-50%) rotate(0deg); width: 22%; animation-delay: -4s; background: linear-gradient(to top, rgba(56, 189, 248, .35), transparent 70%); }
.cta-beams i:nth-child(3) { transform: translateX(-50%) rotate(28deg); animation-delay: -8s; }
@keyframes beam { 50% { opacity: .55; } }
.cta-content { position: relative; max-width: 780px; margin-inline: auto; }
.cta-content h2 { font-size: clamp(36px, 5vw, 70px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; color: #fff; }
.cta-content p { max-width: 560px; margin: 24px auto 0; font-size: 19px; color: var(--txt-d2); }

/* ── Servizi: elenco ── */
.service-rows { border-top: 1px solid var(--line-l); }
.service-row { position: relative; display: grid; grid-template-columns: 44px 54px minmax(0, 1.2fr) minmax(0, 1fr) 52px; align-items: center; gap: 28px; padding: 30px 16px; border-bottom: 1px solid var(--line-l); transition: background-color .4s, padding .5s var(--ease-out); }
.service-row:hover { background: var(--mist); padding-left: 28px; }
.row-n { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.row-body { display: grid; gap: 6px; }
.row-title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.row-text { color: var(--ink-2); font-size: 16px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row-tags span { padding: 5px 11px; border: 1px solid var(--line-l); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.row-go { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-l); border-radius: 50%; transition: all .45s var(--ease-out); }
.service-row:hover .row-go { border-color: var(--blue); background: var(--blue); color: #fff; transform: rotate(-35deg); }
.service-row:hover .icon-tile { background: var(--blue); color: #fff; }

/* ── Pagina servizio ── */
.includes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.include { padding: 28px; border: 1px solid var(--line-l); border-radius: 22px; background: var(--paper); transition: transform .5s var(--ease-out), box-shadow .5s; }
.include:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15, 30, 80, .35); }
.include-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.include h3 { margin-top: 18px; font-size: 18.5px; }
.include p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.process-line li { position: relative; padding-top: 34px; }
.process-line li::before { content: ""; position: absolute; left: 0; right: -28px; top: 21px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--line-l)); }
.process-line li:last-child::before { right: 0; background: var(--line-l); }
.process-n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 6px var(--paper), 0 10px 24px -8px rgba(47, 107, 255, .7); }
.process-line h3 { margin-top: 36px; }
.process-line p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { margin-top: 18px; color: var(--ink-2); }
.faq-side a { color: var(--blue); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq details:first-child { border-top: 1px solid var(--line-l); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-l); border-radius: 50%; transition: transform .45s var(--ease-out), background-color .3s, color .3s; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-a { padding: 0 60px 24px 4px; color: var(--ink-2); }
.faq details[open] .faq-a { animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.related { padding-top: clamp(72px, 8vw, 110px); }

/* ── Chi siamo ── */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-l); }
.audience { padding: 36px 32px 8px 0; }
.audience + .audience { padding-left: 32px; border-left: 1px solid var(--line-l); }
.audience-n { font-size: 14px; font-weight: 700; color: var(--blue); }
.audience h3 { margin-top: 16px; font-size: 26px; }
.audience p { margin-top: 10px; color: var(--ink-2); }
.statement { font-size: clamp(28px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; text-align: center; }
.statement-by { margin-top: 24px; text-align: center; color: var(--ink-3); font-weight: 600; }

/* ── Contatti ── */
.contact-section { padding-top: clamp(64px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.contact-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-l); border-radius: 32px; background: var(--paper); box-shadow: 0 40px 80px -50px rgba(15, 30, 80, .4); }
.form-head p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line-l); border-radius: 14px; background: #fbfcfe; font-size: 16px; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #c9d2e0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.field-hint { font-size: 13.5px; color: var(--ink-3); }
.field-error { min-height: 0; font-size: 13.5px; font-weight: 600; color: var(--red); }
.field-error:empty { display: none; }
.field.check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #c3ccda; border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.field.check input::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-out); }
.field.check input:checked { background: var(--blue); border-color: var(--blue); }
.field.check input:checked::after { transform: rotate(45deg) scale(1); }
.field.check label { font-weight: 500; font-size: 15px; color: var(--ink-2); }
.field.check label a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field.check .field-error { grid-column: 2; }
.field.check.has-error input { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.form-status { flex: 1 1 260px; font-size: 15px; font-weight: 600; }
.form-status.ok { color: #12813f; }
.form-status.err { color: var(--red); }
.contact-form.is-sending .btn { opacity: .7; pointer-events: none; }
.contact-form.is-sent { text-align: left; }
.sent-box { display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.sent-box .include-check { width: 52px; height: 52px; background: #e7f8ee; color: #12813f; }
.sent-box p { color: var(--ink-2); }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header) + 24px); }
.contact-card { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line-l); border-radius: 26px; background: var(--paper); transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s; }
.contact-card.highlight { position: relative; overflow: hidden; border: 0; background: radial-gradient(110% 120% at 100% 0%, #1a3480 0%, var(--bg-1) 60%); color: var(--txt-d); }
.contact-card.highlight h2 { color: #fff; }
.contact-card.highlight p { color: var(--txt-d2); font-size: 15.5px; }
.contact-card.highlight .icon-tile { background: rgba(47, 107, 255, .2); color: var(--blue-2); }
.contact-card.highlight .btn { justify-self: start; }
.contact-card.link { grid-template-columns: 54px 1fr 20px; align-items: center; }
.contact-card.link strong { display: block; font-size: 16.5px; overflow-wrap: anywhere; }
.contact-card.link small { color: var(--ink-3); font-size: 14px; }
.contact-card.link > .icon { color: var(--ink-3); transition: transform .4s var(--ease-out), color .3s; }
.contact-card.link:hover { transform: translateY(-3px); border-color: rgba(47, 107, 255, .35); box-shadow: 0 24px 50px -30px rgba(15, 30, 80, .35); }
.contact-card.link:hover > .icon { color: var(--blue); transform: translate(3px, -3px); }
.icon-tile.wa { background: #e8f8ee; color: #1faf5a; }

/* ── Testi legali ── */
.legal { width: min(860px, 100%); display: grid; gap: 44px; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal p + ul { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--blue); font-weight: 600; }

/* ── Piè di pagina ── */
.site-footer { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 110px) 0 36px; background: var(--bg-0); color: var(--txt-d2); }
.footer-glow { position: absolute; left: 50%; top: -260px; width: 900px; height: 420px; margin-left: -450px; border-radius: 50%; background: radial-gradient(ellipse, rgba(47, 107, 255, .22), transparent 70%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 360px; margin-top: 20px; font-size: 15.5px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-social a { padding: 7px 14px; border: 1px solid var(--line-d2); border-radius: 999px; font-size: 14px; color: #fff; }
.site-footer h2 { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 10px; font-size: 15.5px; }
.site-footer ul a { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.site-footer ul a:hover { color: #fff; }
.footer-contacts .icon { color: var(--blue-2); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-d); font-size: 14px; }
.footer-bottom p:last-child { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }

/* ── WhatsApp ── */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #1faf5a; color: #fff; box-shadow: 0 14px 34px -10px rgba(31, 175, 90, .7); transition: transform .4s var(--ease-out), opacity .3s, visibility .3s; }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float.is-away { opacity: 0; visibility: hidden; transform: scale(.8); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faf5a; animation: ring 2.8s var(--ease-out) infinite; }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ── Comparsa allo scorrimento ── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in { transition: opacity .9s var(--ease-out) calc(var(--i, 0) * 90ms), transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); }

/* ── Tablet ── */
@media (max-width: 1120px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.bento .wide:last-child { grid-column: span 1; }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 44px 54px minmax(0, 1fr) 52px; }
  .row-tags { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 460px; margin-top: 8px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .service-emblem { display: none; }
  .split, .faq-wrap, .timeline, .contact-grid { grid-template-columns: 1fr; }
  .portfolio-soon { grid-template-columns: 1fr; }
  .soon-visual { min-height: 300px; }
  .values-grid.three, .audience-grid { grid-template-columns: 1fr; }
  .audience + .audience { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); }
  .audience { padding: 28px 0; }
  .process-line { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-line li::before { right: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .timeline-panels { min-height: 340px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
}

/* ── Telefono ── */
@media (max-width: 600px) {
  :root { --header: 68px; }
  body { font-size: 16.5px; }
  .brand { font-size: 16.5px; }
  .brand img { width: 38px; }
  .hero { padding-bottom: 84px; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 54px); }
  .hero-visual { max-width: 360px; }
  .node-label { font-size: 12px; padding: 6px 10px 6px 8px; }
  .scroll-cue { display: none; }
  .page-hero { padding: calc(var(--header) + 64px) 0 80px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .actions .btn { width: 100%; }
  .services-grid, .values-grid, .includes-grid, .field-row, .process-line { grid-template-columns: 1fr; }
  .services-grid.bento .wide { grid-column: auto; }
  .service-card { min-height: 0; }
  .service-row { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding: 24px 4px; }
  .row-n, .row-go { display: none; }
  .service-row:hover { padding-left: 4px; }
  .timeline-steps button { padding: 14px 4px 18px; grid-template-columns: 40px 1fr; gap: 14px; }
  .step-n { width: 40px; height: 40px; }
  .step-bar { left: 58px; }
  .timeline-panel { border-radius: 24px; }
  .cta-panel { border-radius: 28px; }
  .faq summary { font-size: 17px; }
  .faq-a { padding-right: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-form { border-radius: 24px; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .marquee { padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero h1 .line > span, .js .hero .eyebrow, .js .hero .lead, .js .hero .actions, .js .hero-visual { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.timeline:not(.is-running) .step-bar i { animation-play-state: paused; }
