/* ==========================================================================
   Pizero — Centralino AI  ·  landing /centralino-ai/
   Brand: Pizero 2026 Design System (deep navy · cyan accent · dosed neon).
   CSS autonomo, senza Tailwind a runtime: pagina leggera e veloce (Core Web Vitals).
   ========================================================================== */

:root {
  --cyan-200: #AEE5F8;
  --cyan-300: #7DD6F5;
  --cyan-400: #54C8F0;
  --cyan-500: #32BDED;
  --cyan-600: #1A9FD4;

  --ink-950: #060B1C;
  --ink-900: #0A1226;
  --ink-850: #0F1830;
  --ink-800: #15203F;
  --ink-750: #1B294F;
  --ink-700: #243663;
  --ink-600: #324780;

  --text-strong: #F3F7FF;
  --text-body: #C4CDE4;
  --text-muted: #8C99BC;
  --text-faint: #59648C;

  --neon-orange: #FE7F0B;
  --neon-coral: #F2476B;
  --neon-purple: #9219CE;
  --neon-violet: #6D28F5;
  --neon-gold: #FFC531;
  --success: #19E68C;

  --grad-rainbow: linear-gradient(90deg, #FE7F0B 0%, #F2476B 42%, #9219CE 76%, #6D28F5 100%);
  --grad-cyan: linear-gradient(120deg, #54C8F0 0%, #32BDED 50%, #1A9FD4 100%);
  --grad-neon: linear-gradient(100deg, #FFA827 0%, #FFB62E 55%, #FFC531 100%);
  --grad-depth: radial-gradient(120% 90% at 50% -10%, #11203F 0%, #0A1226 45%, #060B1C 100%);

  --glow-cyan-sm: 0 0 0 1px rgba(50, 189, 237, 0.35), 0 0 16px rgba(50, 189, 237, 0.30);
  --glow-cyan: 0 0 24px rgba(50, 189, 237, 0.40);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dot-grid: radial-gradient(rgba(124, 152, 200, 0.10) 1px, transparent 1px);

  --font-display: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --gutter: 16px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-300); text-decoration: none; }
a:hover { color: var(--cyan-200); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
strong { color: var(--text-strong); font-weight: 600; }
::selection { background: rgba(50, 189, 237, 0.30); color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--cyan-500); color: var(--ink-950); padding: 8px 14px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- testo */
.eyebrow {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--cyan-500); font-size: 0.75rem; margin: 0 0 1rem;
}
.grad-cyan, .grad-rainbow { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad-cyan { background-image: var(--grad-cyan); }
.grad-rainbow { background-image: var(--grad-rainbow); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 0.875rem; }
.xsmall { font-size: 0.75rem; }

.section { padding: 80px 0; position: relative; }
.section-alt { background: rgba(15, 24, 48, 0.6); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.15; margin-bottom: 1.1rem; }
.section-head p { font-size: 1.075rem; color: var(--text-body); margin: 0; }

/* ---------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.875rem; padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              border-color 220ms var(--ease-out), filter 220ms var(--ease-out), color 220ms var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-lg { font-size: 1rem; padding: 1rem 2rem; }
.btn-sm { font-size: 0.75rem; padding: 0.6rem 1.15rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cyan-500); color: var(--ink-950); box-shadow: var(--glow-cyan-sm); }
.btn-primary:hover { background: var(--cyan-400); color: var(--ink-950); box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cyan-500); border-color: var(--cyan-500); }
.btn-outline:hover { background: rgba(50, 189, 237, 0.12); border-color: var(--cyan-400); color: var(--cyan-300); transform: translateY(-2px); }
.btn-neon { background: var(--grad-neon); color: var(--ink-950); box-shadow: 0 4px 18px rgba(254, 127, 11, 0.32); }
.btn-neon:hover { color: var(--ink-950); filter: brightness(1.08) saturate(1.08); box-shadow: 0 8px 30px rgba(254, 127, 11, 0.45); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(6, 11, 28, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(36, 54, 99, 0.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: none; gap: 28px; font-size: 0.875rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-strong); }
@media (min-width: 1024px) {
  .nav-inner { height: 80px; }
  .nav-logo img { height: 32px; }
  .nav-links { display: flex; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--grad-depth); padding: 112px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 152px 0 112px; min-height: 92vh; display: flex; align-items: center; } }
.dot-matrix {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--dot-grid); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 0%, transparent 78%);
}
.orb { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.orb-cyan { background: rgba(50, 189, 237, 0.15); width: 20rem; height: 20rem; top: -2.5rem; left: 12%; }
.orb-violet { background: rgba(109, 40, 245, 0.10); width: 24rem; height: 24rem; bottom: 0; right: 8%; }

.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.hero-copy { text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  padding: 0.5rem 1rem; border-radius: 999px; margin-bottom: 1.75rem;
  background: rgba(50, 189, 237, 0.10); border: 1px solid rgba(50, 189, 237, 0.30);
  color: var(--cyan-300); font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.35;
}
.pill .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cyan-400); animation: blink 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.4rem); line-height: 1.07; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 36rem; margin: 0 auto 1rem; }
.hero-note { font-size: 0.9rem; color: var(--text-muted); max-width: 36rem; margin: 0 auto 2rem; }
@media (min-width: 1024px) { .hero-sub, .hero-note { margin-left: 0; } }
.hero .btn-row { justify-content: center; }
@media (min-width: 1024px) { .hero .btn-row { justify-content: flex-start; } }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 32rem;
  margin: 3rem auto 0; padding: 0; text-align: center;
}
@media (min-width: 1024px) { .hero-stats { margin-left: 0; text-align: left; } }
.hero-stats div + div { border-left: 1px solid rgba(36, 54, 99, 0.7); padding-left: 12px; }
.hero-stats dt { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.hero-stats dd { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; }

/* immagine dell'assistente nell'hero: ferma, senza animazioni */
.call-wrap { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.call-wrap picture { display: block; }
.hero-figure { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- bande */
.cyan-band { background: linear-gradient(90deg, #1A9FD4 0%, #32BDED 50%, #54C8F0 100%); color: var(--ink-950); padding: 14px 0; text-align: center; }
.cyan-band p { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }
.cyan-band span { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.75; }
.neon-band { background: var(--grad-rainbow); color: #fff; padding: 16px 0; text-align: center; box-shadow: 0 10px 40px rgba(146, 25, 206, 0.28); }
.neon-band p { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; }

/* ---------------------------------------------------------------- card e griglie */
.card {
  background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--radius);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 380ms var(--ease-out);
}
.card-pad { padding: 28px; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(50, 189, 237, 0.45); box-shadow: var(--glow-cyan); }
.card-accent { position: relative; overflow: hidden; }
.card-accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-cyan); opacity: 0.9; }
.card-accent-neon::before { background: var(--grad-rainbow); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.icon-chip {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(50, 189, 237, 0.12); color: var(--cyan-400);
}
.icon-chip svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.95rem; margin: 0; }

/* problema */
.pain { display: flex; gap: 16px; align-items: flex-start; }
.pain .icon-chip { margin: 0; flex: none; background: rgba(242, 71, 107, 0.12); color: var(--neon-coral); }
.pain h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.pain p { margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------------------- schema di funzionamento */
.flow { display: grid; gap: 14px; align-items: stretch; margin-bottom: 56px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; } }
.flow-node { padding: 22px; text-align: center; }
.flow-node .icon-chip { margin: 0 auto 14px; }
.flow-node h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.flow-node p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.flow-arrow { display: grid; place-items: center; color: var(--cyan-500); }
.flow-arrow svg { width: 26px; height: 26px; transform: rotate(90deg); }
@media (min-width: 900px) { .flow-arrow svg { transform: none; } }
.flow-node.is-core { border-color: rgba(50, 189, 237, 0.55); box-shadow: var(--glow-cyan-sm); }

/* passi */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 26px; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; margin-bottom: 14px;
  background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------------------- regole + email */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.15; margin-bottom: 1.1rem; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(50, 189, 237, 0.14); color: var(--cyan-400); margin-top: 1px; }
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; }
.checklist span { font-size: 0.93rem; }

.mail-card { padding: 0; overflow: hidden; box-shadow: var(--shadow-xl); }
.mail-top { padding: 18px 22px; border-bottom: 1px solid var(--ink-700); display: grid; gap: 4px; font-size: 0.8rem; color: var(--text-muted); }
.mail-top .subject { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); font-size: 0.95rem; line-height: 1.35; }
.mail-top .tag { color: var(--neon-gold); }
.mail-body { padding: 18px 22px 22px; font-size: 0.85rem; display: grid; gap: 14px; }
.mail-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.mail-body dt { color: var(--text-muted); }
.mail-body dd { margin: 0; color: var(--text-strong); }
.mail-label { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-500); margin-bottom: 4px; font-weight: 600; }
.mail-body p { margin: 0; }

/* ---------------------------------------------------------------- prova dal vivo */
.try {
  padding: 40px 24px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 0%, rgba(50, 189, 237, 0.16) 0%, rgba(21, 32, 63, 1) 60%);
}
@media (min-width: 768px) { .try { padding: 56px; } }
.try h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin-bottom: 1rem; }
.try p { max-width: 40rem; margin: 0 auto 1.75rem; }
.phone-big { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); color: var(--text-strong); letter-spacing: 0.02em; margin-bottom: 1.5rem; }
.phone-big:hover { color: var(--cyan-300); }

/* ---------------------------------------------------------------- FAQ (details/summary: nessun JS) */
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-family: var(--font-display); font-weight: 600; color: var(--text-strong); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--cyan-400); transition: transform 300ms var(--ease-out); }
.faq details[open] { border-color: rgba(50, 189, 237, 0.40); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; font-size: 0.95rem; }
.faq .answer p:last-child { margin: 0; }

/* ---------------------------------------------------------------- form */
.form { padding: 28px; display: grid; gap: 20px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.field {
  width: 100%; background: var(--ink-850); border: 1px solid var(--ink-700); border-radius: 12px;
  color: var(--text-strong); padding: 0.8rem 1rem; font: inherit; font-size: 1rem;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field::placeholder { color: var(--text-faint); }
.field:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(50, 189, 237, 0.30); }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%238C99BC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
textarea.field { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--text-muted); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--cyan-500); flex: none; }
.form-feedback { margin: 0; text-align: center; font-size: 0.9rem; }
.form-feedback.ok { color: var(--success); }
.form-feedback.err { color: var(--neon-coral); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink-950); border-top: 1px solid rgba(36, 54, 99, 0.7); padding: 48px 0; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h2 { font-size: 0.875rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.875rem; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text-strong); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--ink-800); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--text-faint); }
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------- animazioni */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill .dot { animation: none; }
  .card, .btn { transition: none; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 8px; }
