:root {
  --paper: #f6f5f1;
  --paper-2: #eeece6;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #3b3a37;
  --muted: #74726c;
  --line: rgba(20, 20, 20, .1);
  --accent: #2c56f5;
  --accent-soft: #9db2ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r: 22px;
  --noise: 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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
h3 { font: 500 1.1rem/1.3 var(--sans); }
em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.label { font: 500 .76rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* pulsanti e link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 15px 26px; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 500 .97rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--accent); }
.link.sm { font-size: .88rem; color: var(--ink-2); border-color: var(--line); }
.link.sm:hover { color: var(--accent); border-color: var(--accent); }

/* navigazione: chiara sull'apertura scura, poi su fondo carta */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: background .3s, box-shadow .3s, color .3s; }
.nav.scrolled { background: rgba(246, 245, 241, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; border-radius: 14px; }
.brand img { width: 56px; height: 56px; border-radius: 14px; transition: transform .2s; }
.brand:hover img { transform: scale(1.05); }
.nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) { text-decoration: none; font-size: .95rem; opacity: .8; transition: opacity .2s; }
.nav a:not(.brand):hover { opacity: 1; }
.nav .nav-cta { opacity: 1; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: none; cursor: pointer; color: inherit; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* apertura chiara: cielo tenue con luci blu e griglia sottile */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef2fc 0%, #f4f4f7 70%, var(--paper) 100%); color: var(--ink); padding: 150px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 65% at 88% 18%, rgba(44, 86, 245, .22), transparent 65%),
  radial-gradient(40% 50% at 5% 95%, rgba(150, 120, 255, .14), transparent 70%),
  linear-gradient(rgba(20, 30, 70, .05) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(90deg, rgba(20, 30, 70, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 60% 30%, #000 40%, transparent 100%); mask-image: radial-gradient(120% 100% at 60% 30%, #000 40%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .05; mix-blend-mode: multiply; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 80px; }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: .96; letter-spacing: -.04em; max-width: 10ch; }
.hero .lead { max-width: 540px; margin: 32px 0 36px; font-size: 1.18rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.founder { display: inline-flex; align-items: center; gap: 16px; margin-top: 44px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); backdrop-filter: blur(10px); text-decoration: none; box-shadow: 0 10px 30px rgba(30, 50, 120, .06); transition: border-color .2s, transform .2s; }
.founder:hover { border-color: var(--ink); transform: translateY(-2px); }
.founder-logo { display: grid; place-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.founder-logo img { width: 110px; }
.founder-text { display: grid; line-height: 1.35; }
.founder-text strong { font-weight: 600; }
.founder-text span { font-size: .9rem; color: var(--muted); }
.founder .arr { width: 20px; height: 20px; color: var(--muted); }
.code-visual { position: relative; justify-self: end; width: 100%; max-width: 540px; padding-bottom: 56px; min-width: 0; }
.hero-grid > * { min-width: 0; }
.editor { border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 40px 80px rgba(30, 50, 120, .16), 0 0 0 1px var(--line); backdrop-filter: blur(16px); }
.editor-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: rgba(238, 240, 247, .8); border-bottom: 1px solid var(--line); }
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7e2; }
.tab { margin-left: 10px; padding: 6px 12px; border-radius: 8px; font: 500 .74rem/1 var(--mono); color: var(--muted); }
.tab.on { margin-left: 16px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tab.on + .tab { margin-left: 0; }
.code { margin: 0; padding: 22px 22px 52px 0; font: 400 .9rem/1.75 var(--mono); color: var(--ink-2); overflow: hidden; counter-reset: ln; }
.code .ln { display: block; white-space: pre; counter-increment: ln; opacity: 0; animation: line-in .45s ease forwards; animation-delay: calc(.35s + var(--i) * .12s); }
.code .ln::before { content: counter(ln); display: inline-block; width: 44px; margin-right: 14px; text-align: right; color: #b9bcc8; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.code .c { color: #8b8f9e; font-style: italic; }
.code .k { color: var(--accent); }
.code .s { color: #b3541e; }
.code .p { color: #7a3cc2; }
.code .b { color: #0f8a6a; }
.code .f { color: #1d2b6b; font-weight: 500; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; vertical-align: -2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal { position: absolute; left: -36px; bottom: 0; min-width: 270px; padding: 16px 20px; border-radius: 14px; background: var(--ink); color: #e8e8e6; font: 400 .82rem/1.7 var(--mono); box-shadow: 0 24px 48px rgba(20, 20, 20, .25); opacity: 0; animation: line-in .5s ease forwards 2s; }
.terminal p { margin: 0; }
.prompt { color: var(--accent-soft); margin-right: 6px; }
.terminal .ok { color: #7ee2a8; }

/* SkiCoach, su fondo "neve" */
.showcase { padding: 80px 0 40px; background: linear-gradient(180deg, var(--paper) 0%, #e8f0ff 45%, var(--paper) 100%); }
.showcase-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 72px; align-items: center; }
.showcase-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #d9e6f5; box-shadow: 0 40px 80px rgba(30, 60, 120, .18); }
.sc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-screen { position: absolute; left: 6%; top: 10%; width: 82%; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 40, 80, .25), 0 0 0 1px rgba(0, 0, 0, .06); }
.sc-phone { position: absolute; right: 5%; bottom: -4%; width: 27%; filter: drop-shadow(0 24px 40px rgba(20, 40, 80, .3)); }
.showcase-text h2 { font-size: clamp(3rem, 6vw, 5.2rem); margin-bottom: 14px; }
.showcase-text .big { font: 600 1.5rem/1.25 var(--display); letter-spacing: -.02em; color: var(--accent); margin-bottom: 18px; }
.showcase-text p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 30px; }
.chips li { font: 500 .76rem/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: rgba(255, 255, 255, .6); }
.showcase-text .link + .link { margin-left: 24px; }

/* caso studio */
.case .section { padding: 48px 0; }
.case-hero { padding: 130px 0 40px; background: linear-gradient(180deg, #e8f0ff 0%, var(--paper) 100%); }
.case-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.case-hero .link.sm { margin-bottom: 40px; }
.case-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); max-width: 14ch; margin-bottom: 28px; }
.case-hero .lead { max-width: 600px; font-size: 1.18rem; color: var(--ink-2); }
.case-hero .chips { margin-bottom: 0; }
.case-phone { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px rgba(30, 60, 120, .18); }
.case-phone .sc-bg { object-position: 75% 100%; }
.case-phone .sc-phone { left: 50%; right: auto; bottom: 0; width: 58%; transform: translateX(-50%); }
.case-band { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; padding: clamp(20px, 4vw, 48px); border-radius: var(--r); background: #f6efe2; }
.case-band img { border-radius: 14px; box-shadow: 0 30px 60px rgba(60, 40, 10, .16); }
.case-split + .case-split { margin-top: 56px; }
.case-split.rev { grid-template-columns: 1fr 1.4fr; }
.case-body { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 24px 72px; }
.case-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.case-body p, .case-body li { color: var(--ink-2); font-size: 1.08rem; }
.case-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.case-body li + li { margin-top: 10px; }
.case-body .stats { margin: 8px 0 24px; }
.case-quote { margin: 0 auto; max-width: 980px; text-align: center; }
.case-quote p { font: 700 clamp(2rem, 4.2vw, 3.4rem)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 24px; }
.case-quote cite { font: 500 .76rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.case-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.case-compare figure { margin: 0; }
.case-compare figcaption { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }
.case-compare figcaption .label { display: block; margin-bottom: 6px; }
.compare-row + .compare-row { margin-top: 72px; }
.compare-row h3 { font: 700 1.6rem/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.compare-row > h3 { margin-bottom: 24px; }
.compare-row p { color: var(--ink-2); font-size: 1.05rem; max-width: 440px; }
.phones { display: flex; gap: 24px; justify-content: center; }
.phones figure { margin: 0; flex: 0 1 260px; text-align: center; }
.phones img { border-radius: 30px; border: 7px solid var(--ink); box-shadow: 0 30px 60px rgba(30, 50, 120, .16); }
.phones figcaption { margin: 16px 0 0; }
.case-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.case-list h3 { margin-bottom: 6px; }
.case-list p { margin: 0; font-size: .95rem; color: var(--muted); }
.case-cta h2 { margin-bottom: 24px; }
.case-cta p { max-width: 560px; color: var(--ink-2); margin-bottom: 32px; }

/* sezioni */
.section { padding: 88px 0; }
.pt0 { padding-top: 0; }
.sel { padding-top: 40px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); max-width: 440px; margin: 0; justify-self: end; }

/* progetti selezionati: griglia a riquadri colorati */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento + .works { margin-top: 32px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); padding: 36px; display: flex; flex-direction: column; gap: 28px; min-height: 420px; }
.tile h3 { font: 700 1.9rem/1.05 var(--display); margin-bottom: 12px; letter-spacing: -.03em; }
.tile p { font-size: .96rem; }
.tile .label { margin-bottom: 14px; }
.tile-text { max-width: 520px; position: relative; z-index: 1; }
.t-limes { grid-column: span 6; background: #efe6d4; color: #3a2f22; }
.t-limes .label { color: #8a6f4d; }
.browser { margin-top: auto; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(20, 20, 20, .1); box-shadow: 0 24px 48px rgba(20, 30, 60, .16); }
.t-limes .browser { border-color: rgba(58, 47, 34, .12); box-shadow: 0 24px 48px rgba(90, 60, 20, .18); }
.t-whistle .browser-bar { background: #f1f3fd; }
.t-whistle .browser-bar i { background: #cfd4ec; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f3efe8; border-bottom: 1px solid rgba(58, 47, 34, .08); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8cfc2; }
.browser-bar span { margin-left: 14px; flex: 0 1 300px; height: 20px; border-radius: 10px; background: #fff; font: 400 .72rem/20px var(--sans); color: var(--muted); padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-scuderia { background: #262b40; color: #e9ebf3; }
.t-scuderia .label { color: rgba(233, 235, 243, .6); }
.t-scuderia .link.sm { color: #e9ebf3; border-color: rgba(255, 255, 255, .3); }
.t-scuderia .tile-logo { padding: 10px; }
.t-whistle { grid-column: span 6; background: #e9edff; color: #1b2352; }
.t-whistle .label { color: #5561a0; }
.tile-row { grid-column: span 6; flex-direction: row; align-items: center; min-height: 0; gap: 24px; padding: 28px; }
.tile-row .tile-logo { width: 88px; border-radius: 16px; padding: 14px; }
.tile-row h3 { font-size: 1.6rem; }

.t-assicur { background: #f6efe2; color: #3b2d17; }
.t-assicur .label { color: #9a7a3f; }
.tile-logo { flex: none; width: 120px; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 18px; padding: 22px; }
.t-assicur .tile-logo { background: rgba(255, 255, 255, .7); }
.tile-logo img { width: 100%; }

/* e ancora */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--line); }
.work { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.work img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.work h3 { margin-bottom: 6px; }
.work p { margin: 0; font-size: .95rem; color: var(--muted); }
.work .link.sm { margin-top: 10px; }
.stores { display: flex; gap: 16px; }
.work.more { display: flex; align-items: center; grid-column: 1 / -1; }
.work.more p { font: 500 1.35rem/1.2 var(--display); letter-spacing: -.02em; color: var(--muted); }
.tag { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 4px; white-space: nowrap; }

/* servizi */
.services-band { background: var(--paper-2); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services li { padding: 32px 28px 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, box-shadow .25s; }
.services li:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(30, 50, 120, .08); }
.num { display: block; font: 500 .8rem/1 var(--mono); color: var(--accent); margin-bottom: 56px; }
.services h3 { font: 700 1.55rem/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 14px; }
.services p { margin: 0; font-size: .95rem; color: var(--muted); }

/* chi sono */
.about { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; }
.about-portrait { position: relative; margin: 0; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 28px; box-shadow: 0 30px 60px rgba(30, 50, 120, .14), 0 0 0 1px var(--line); }
.about-portrait::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(44, 86, 245, .25); border-radius: 32px; z-index: -1; }
.about h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.02; margin-bottom: 28px; }
.about-text p { color: var(--ink-2); font-size: 1.08rem; }
.stats { display: flex; gap: 56px; margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.stats dt { font: 700 3rem/1 var(--display); letter-spacing: -.04em; }
.stats dd { margin: 6px 0 0; font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* contatti: fondo chiaro in tinta con l'apertura */
.contact { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, #eef2fc 100%); padding: 40px 0 96px; }
#chi-sono { padding: 40px 0 64px; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 70% at 100% 100%, rgba(44, 86, 245, .18), transparent 70%),
  linear-gradient(rgba(20, 30, 70, .05) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(90deg, rgba(20, 30, 70, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 100%, #000 40%, transparent 100%); mask-image: radial-gradient(120% 100% at 70% 100%, #000 40%, transparent 100%); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.contact h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: 48px; }
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.05rem; transition: color .2s, padding .2s; }
.channels a:hover { color: var(--accent); padding-left: 6px; }
.channels span { font: 500 .75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form { display: grid; gap: 18px; align-content: start; padding: 36px; border-radius: var(--r); background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(30, 50, 120, .08); backdrop-filter: blur(10px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; }
.form label > span { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form input, .form textarea { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 86, 245, .12); }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.form .check > span { font: 400 .88rem/1.5 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .92rem; color: var(--accent); min-height: 1.4em; }

.footer { background: #eef2fc; color: var(--muted); font-size: .88rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* entrata allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .code .ln, .terminal { opacity: 1; animation: none; }
  .caret { animation: none; }
}

/* responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 380px; gap: 40px; }
  .about { grid-template-columns: 300px 1fr; gap: 56px; }
  .services { grid-template-columns: 1fr 1fr; }
  .showcase-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .t-limes, .t-whistle, .tile-row { grid-column: span 12; }
  .works { grid-template-columns: 1fr; }
  .case-hero-grid, .case-split, .case-split.rev, .case-compare, .case-band { grid-template-columns: 1fr; gap: 44px; }
  .case-split.rev .browser { order: -1; }
  .case-phone { max-width: 440px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav ul { position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 30px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
  .nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem !important; opacity: 1 !important; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border: 0; background: var(--ink); color: #fff; }
  .menu-open .nav ul { opacity: 1; visibility: visible; transform: none; }
  .menu-open .nav { background: var(--paper); }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .code-visual { justify-self: stretch; max-width: none; }
  .terminal { left: 12px; }
  .code { font-size: .74rem; }
  .code .ln::before { width: 34px; margin-right: 10px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 300px; }
  .founder { margin-top: 36px; }
  .showcase, .section, .contact { padding: 64px 0; }
  .pt0 { padding-top: 0; }
  .sel { padding-top: 40px; }
  .showcase { padding-bottom: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head p { justify-self: start; }
  .tile, .tile-row { padding: 26px; min-height: 0; }
  .tile-row { flex-direction: column; align-items: flex-start; }
  .tile-logo { width: 110px; }
  .services, .form .row { grid-template-columns: 1fr; }
  .num { margin-bottom: 28px; }
  .stats { gap: 32px; }
  .form { padding: 24px; }
  .case-hero { padding-top: 110px; }
  .case-body { grid-template-columns: 1fr; }
  .case-body h2:not(:first-child) { margin-top: 32px; }
}
@media (max-width: 420px) {
  .code { font-size: .66rem; padding-right: 12px; }
  .code .ln::before { width: 26px; margin-right: 8px; }
  .terminal { min-width: 0; font-size: .74rem; }
  .founder { gap: 12px; padding: 10px 14px 10px 10px; }
  .founder-logo img { width: 84px; }
  .work { grid-template-columns: 48px 1fr; }
  .work img { width: 48px; height: 48px; }
  .tag { grid-column: 2; padding-top: 0; }
}

/* link: card dei servizi in home cliccabili per intero, link dentro testi e liste delle pagine interne */
.services li { position: relative; }
.services h3 a { text-decoration: none; }
.services h3 a::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.services h3 a::after { content: " →"; color: var(--accent); }
.case-list a, .case-body p a, .case-cta p a { color: inherit; text-decoration-color: rgba(20, 20, 20, .3); text-underline-offset: 3px; }
.case-list a:hover, .case-body p a:hover, .case-cta p a:hover { color: var(--accent); }
.case-body ol { margin: 0 0 1em; padding-left: 1.2em; }
