/* =========================================================
   Apptivity S.r.l. — stylesheet
   ========================================================= */
:root {
  --bg: #050a14;
  --bg-2: #081223;
  --surface: #0d1a2e;
  --surface-2: #161f31;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e8ecf4;
  --muted: #94a0b8;
  --accent: #4cc2ff;      /* azzurro brand */
  --accent-2: #2f7bff;    /* blu */
  --accent-3: #8fb8ff;    /* blu chiaro */
  --grad: linear-gradient(120deg, #ffffff 0%, var(--accent) 45%, var(--accent-2) 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: #021526; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible { outline-offset: 4px; border-radius: 999px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--text); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #000; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: 1.2rem; color: #b7c0d3; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid var(--b); background: transparent; color: var(--text);
  cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #021526; border-color: var(--accent); box-shadow: 0 10px 40px -10px rgba(76, 194, 255, .55); }
.btn-primary:hover { background: #7fd4ff; border-color: #7fd4ff; box-shadow: 0 16px 50px -12px rgba(76, 194, 255, .75); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 10, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; object-fit: contain; filter: drop-shadow(0 0 14px rgba(76, 194, 255, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Montserrat", var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; background: linear-gradient(180deg, #fff 55%, #b9c2cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-family: "Montserrat", var(--font-body); font-size: .72rem; color: #a9b3c0; letter-spacing: .03em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  display: block; padding: 10px 16px; border-radius: 999px; font-size: .95rem; color: #c4cbda;
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav .btn { padding: 11px 20px; margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transform: translateX(-50%); transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(5, 10, 20, .97);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 16px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(5, 10, 20, .97); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 100px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg canvas { width: 100%; height: 100%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(91, 140, 255, .22), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(76, 194, 255, .12), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  font-size: .85rem; color: #cfd6e4;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--text); border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 80px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 18ch; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 36px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(17, 24, 39, .4));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s ease, border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(76, 194, 255, .10), transparent 40%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
  background: rgba(76, 194, 255, .1); border: 1px solid rgba(76, 194, 255, .25); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card .sub { display: block; color: var(--text); font-weight: 500; margin-bottom: 12px; font-size: .98rem; }
.card p { margin: 0; font-size: .97rem; }
.card-num { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); color: rgba(255, 255, 255, .18); font-size: 1rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: 140px; }
.split .sub-title { color: var(--text); font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.split .btn { margin-top: 12px; }
.visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.visual svg { width: 100%; height: 100%; }
.tag-float {
  position: absolute; padding: 10px 16px; border-radius: 14px;
  background: rgba(12, 17, 28, .85); backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
  font-size: .85rem; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.tag-float b { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; }
.footnote { font-size: .82rem; color: #8995ab; margin-top: 18px; }

/* Values list */
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.values span { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .92rem; color: var(--text); }

/* Portfolio / creazioni */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.work {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px;
  border: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-end;
  isolation: isolate;
}
.work:nth-child(1) { grid-column: span 7; }
.work:nth-child(2) { grid-column: span 5; }
.work:nth-child(3) { grid-column: span 5; }
.work:nth-child(4) { grid-column: span 7; }
.work-art { position: absolute; inset: 0 0 30% 0; z-index: -1; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.work-art svg { width: 100%; height: 100%; }
.work:hover .work-art { transform: scale(1.05); }
.work::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 10, 20, .95) 5%, rgba(5, 10, 20, .1) 65%); }
.work-body { padding: 30px; }
.work-body small { color: var(--accent); font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.work-body h3 { margin: 6px 0 6px; }
.work-body p { margin: 0; font-size: .95rem; max-width: 46ch; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.apps > * { min-width: 0; }
.app-card {
  display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(13, 26, 46, .45)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.app-card:hover { border-color: rgba(76, 194, 255, .4); transform: translateY(-4px); }
.app-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.app-icon { width: 88px; height: 88px; border-radius: 22%; flex: none; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); background: var(--surface-2); }
.app-head h3 { margin: 0 0 4px; font-size: 1.5rem; }
.app-sub { margin: 0; font-size: .92rem; color: var(--accent); }
.app-feats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.app-feats li { position: relative; padding-left: 26px; color: #c4cbda; font-size: .95rem; }
.app-feats li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -4px 22px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.shots img { width: 132px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; flex: none; border-radius: 16px; border: 1px solid var(--line-strong); scroll-snap-align: start; background: var(--surface-2); }
.stores { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; height: 44px; transition: transform .2s, opacity .2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 44px; width: auto; }
.store-badge.as { height: 44px; }
.as-badge { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 8px; background: #000; border: 1px solid #a6a6a6; color: #fff; }
.as-badge svg { width: 24px; height: 24px; flex: none; }
.as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.as-text small { font-size: .66rem; letter-spacing: .02em; }
.as-text b { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge.gp img { height: 64px; margin: -10px -9px; } /* il badge Google ha padding interno */
.soon { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .88rem; }
.apps-more { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 36px; color: var(--muted); font-size: .95rem; }
.apps-more a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.apps-more a:hover { color: var(--accent); border-color: var(--accent); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.client { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.client:hover { border-color: rgba(76, 194, 255, .4); transform: translateY(-4px); }
.client-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.client-mono { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); background: rgba(76, 194, 255, .1); border: 1px solid rgba(76, 194, 255, .3); }
.client h3 { margin: 0 0 2px; font-size: 1.25rem; }
.client-loc { margin: 0; font-size: .9rem; }
.client > p { font-size: .97rem; }
.client-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.client-tags li { padding: 5px 12px; border-radius: 999px; font-size: .8rem; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); }
.client-links { margin-top: auto; }
.client-links a { display: inline-block; padding: 4px 0; color: var(--accent); border-bottom: 1px solid rgba(76, 194, 255, .35); }
.client-links a:hover { border-color: var(--accent); }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { pointer-events: auto; max-width: 860px; display: flex; align-items: center; gap: 22px; padding: 20px 24px; border-radius: 18px; background: rgba(10, 20, 38, .97); border: 1px solid var(--line-strong); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .8); backdrop-filter: blur(12px); }
.cookie-inner p { margin: 0; font-size: .92rem; color: #c4cbda; }
.cookie-inner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-inner .btn { flex: none; padding: 12px 22px; }
@media (max-width: 640px) { .cookie-inner { flex-direction: column; align-items: stretch; } }

.form-note { font-size: .88rem; margin-bottom: 18px; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Quotes slider */
.quotes { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.quote-track { position: relative; min-height: 270px; }
.quote {
  position: absolute; inset: 0; opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}
.quote.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote blockquote { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.35; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.quote-mark { width: 46px; height: 46px; margin: 0 auto 26px; color: var(--accent); }
.quote figcaption { color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--grad); color: #07090f; font-family: var(--font-display); font-weight: 700;
}
.quote-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.quote-nav button.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.quote-nav button.arrow:hover { background: rgba(255, 255, 255, .06); border-color: var(--text); }
.quote-nav button.arrow svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; }
.dots { gap: 2px; }
.dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.dots button.active { width: 36px; }
.dots button.active::before { width: 28px; background: var(--accent); }
.quote-nav [data-pause] .i-play { display: none; }
.quote-nav [data-pause][aria-pressed="true"] .i-play { display: block; }
.quote-nav [data-pause][aria-pressed="true"] .i-pause { display: none; }

/* CTA band */
.cta {
  position: relative; border-radius: 36px; padding: 80px 64px; overflow: hidden;
  background: linear-gradient(135deg, #000000, #021a35 45%, #004a8a);
  border: 1px solid var(--line-strong); isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -150px; top: -260px; z-index: -1;
  background: radial-gradient(circle, rgba(76, 194, 255, .28), transparent 65%);
}
.cta::after {
  content: ""; position: absolute; width: 500px; height: 500px; left: -200px; bottom: -300px; z-index: -1;
  background: radial-gradient(circle, rgba(47, 123, 255, .25), transparent 65%);
}
.cta h2 { max-width: 20ch; }
.cta p { max-width: 720px; color: #b7c0d3; }
.cta .btn { margin-top: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: 34px 28px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Prose (about) */
.prose-grid { display: grid; grid-template-columns: 340px 1fr; gap: 80px; }
.prose-grid + .prose-grid { margin-top: 100px; padding-top: 100px; border-top: 1px solid var(--line); }
.prose-grid h2 { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.prose-grid p { font-size: 1.1rem; }
.prose-grid p:first-child::first-letter { }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 90px; }
.contact-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s; display: block; }
a.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-card .card-icon { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; }
.contact-card .card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--text); }
.contact-card small { color: var(--muted); }

.form-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.form {
  padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .88rem; color: #c4cbda; margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76, 194, 255, .14); }
.field input::placeholder, .field textarea::placeholder { color: #7d889e; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field .err { display: none; color: #ff8a8a; font-size: .84rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.captcha { display: flex; align-items: center; gap: 12px; }
.captcha-q {
  flex: none; padding: 14px 18px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-strong);
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; min-width: 120px; text-align: center;
  user-select: none;
}
.captcha input { max-width: 120px; }
.captcha-refresh { width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.captcha-refresh:hover { color: var(--text); border-color: var(--text); }
.captcha-refresh svg { width: 18px; height: 18px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check { min-height: 24px; }

.form .btn { width: 100%; margin-top: 8px; padding: 17px; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status.ok { display: block; background: rgba(76, 194, 255, .1); border: 1px solid rgba(76, 194, 255, .4); color: #c9f9d5; }
.form-status.ko { display: block; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffc9c9; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #021526; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal page */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal ul { color: var(--muted); padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-top .footer-h { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { color: #c4cbda; transition: color .2s; }
.footer-top a:hover { color: var(--accent); }
.footer-top address { font-style: normal; color: #c4cbda; }
.footer-claim { margin-top: 18px; max-width: 34ch; font-size: .95rem; }
.startup-badge { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(76, 194, 255, .08); border: 1px solid rgba(76, 194, 255, .25); color: var(--accent); font-size: .82rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 30px; border-top: 1px solid var(--line); font-size: .85rem; color: #8995ab; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split { gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .prose-grid { grid-template-columns: 1fr; gap: 10px; }
  .prose-grid h2 { position: static; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 90px 0; }
  .cards, .contact-grid, .apps, .clients { grid-template-columns: minmax(0, 1fr); }
  .app-card { padding: 26px 22px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 90px; }
  .work, .work:nth-child(n) { grid-column: span 12; min-height: 280px; }
  .cta { padding: 56px 28px; border-radius: 26px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 26px 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .stat b { font-size: 2rem; }
  .tag-float { display: none; }
}

/* Modalità contrasto elevato (Windows) */
@media (forced-colors: active) {
  .btn, .card, .app-card, .client, .form, .contact-card { border: 1px solid CanvasText; }
  .grad-text, .brand-name { color: CanvasText; background: none; -webkit-text-fill-color: CanvasText; }
  .hero-bg, .hero-grid { display: none; }
}
