/*
VOICE   misurato, autorevole, pratico: come heyfutures.com, ma per chi gestisce cataloghi
IDEA    la scheda prodotto che nasce in un punto e si irradia verso i canali (orbite)
PICTURE orbite concentriche nell'hero; il codice prodotto che si compone dalle scelte
COLOUR  notte #0a0e1a, card #1a1f33, magenta #d2007d, rosa #ed99cb, platino #d8dde6
TYPE    serif di sistema per i titoli (Iowan/Baskerville), sans di sistema per il testo
*/
:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-elev: #141828;
  --bg-card: #1a1f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f8;
  --text-muted: #a8aebd;
  --text-dim: #8a90a3;
  --accent: #d2007d;
  --accent-soft: #ed99cb;
  --accent-glow: rgba(210, 0, 125, 0.25);
  --platinum: #d8dde6;
  --navy: #2d5aa5;
  --serif: 'Iowan Old Style', 'Apple Garamond', Baskerville, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  --maxw: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(4rem, 9vw, 7rem);
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --transition: 0.35s cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme=light], :root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--section-gap) 0; position: relative; }
section.alt { background: var(--bg-elev); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 0.4em 0.9em;
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  background: rgba(210, 0, 125, 0.08);
}
.gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 50%, var(--platinum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { max-width: 760px; margin-bottom: 3rem; display: grid; gap: 1rem; justify-items: start; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 66ch; }
.divider { width: 64px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.6rem 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled { background: rgba(10, 14, 26, 0.92); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer;
}

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden; }
.orbits {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(110vw, 1400px); height: min(110vw, 1400px);
  pointer-events: none; opacity: 0.35; z-index: 0;
}
.orbits .spin { transform-origin: 700px 700px; animation: spin 120s linear infinite; }
.orbits .spin.rev { animation-duration: 180s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-content { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 1.6rem; }
.hero-tagline { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-muted); max-width: 46ch; }
.hero-quote {
  font-family: var(--serif); font-style: italic; color: var(--text-dim); max-width: 52ch;
  padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid var(--border-strong); color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #b8006d; color: #fff; }
.btn:hover { border-color: var(--accent-soft); color: var(--text); }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--accent-soft); }
.stat p { color: var(--text-muted); margin-top: 0.6rem; }

/* CARDS */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: grid; gap: 0.7rem; align-content: start;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(210, 0, 125, 0.12); color: var(--accent-soft);
}
.icon svg { width: 22px; height: 22px; }

/* CONFIGURATORE */
.config { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.config-points { display: grid; gap: 1.2rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.config-points li { padding-left: 1.6rem; position: relative; color: var(--text-muted); }
.config-points li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.config-points b { color: var(--text); font-weight: 600; }
.composer { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1.4rem; }
.composer-label { font-size: 0.85rem; color: var(--text-dim); }
.choices { display: grid; gap: 0.7rem; }
.choice { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.choice .dim { color: var(--text-dim); font-size: 0.9rem; }
.choice .val { color: var(--text); }
.choice code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: var(--accent-soft); font-size: 0.95rem; white-space: nowrap; }
.result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.result code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--text); overflow-wrap: anywhere; }
.result .price { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-soft); white-space: nowrap; }
.sample { font-size: 0.8rem; color: var(--text-dim); }

/* IA */
.privacy-band {
  margin-top: 2rem; display: flex; gap: 1.2rem; align-items: center;
  border: 1px solid var(--accent-glow); background: rgba(210, 0, 125, 0.06);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.privacy-band p { color: var(--platinum); }

/* INTEGRAZIONI */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.flow-col { display: grid; gap: 0.8rem; }
.node { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; }
.node b { display: block; font-weight: 600; }
.node span { color: var(--text-dim); font-size: 0.88rem; }
.hub {
  border: 1px solid var(--accent); background: linear-gradient(160deg, rgba(210, 0, 125, 0.18), rgba(26, 31, 51, 0.9));
  border-radius: 20px; padding: 2rem 1.6rem; text-align: center; display: grid; gap: 0.6rem;
}
.hub .wordmark { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.hub p { color: var(--platinum); font-size: 0.95rem; }
.arrow { color: var(--text-dim); font-size: 1.6rem; }
.paradigm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.paradigm { border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); background: var(--bg-card); }
.paradigm.ours { border-color: var(--accent-glow); }
.paradigm h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.paradigm ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); display: grid; gap: 0.4rem; }

/* AMBITI */
.apps { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.app { border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.6rem 1.1rem; color: var(--platinum); font-size: 0.95rem; }

/* PROCESSO */
.process { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 0.7rem; }
.step-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent-soft); }
.step p { color: var(--text-muted); }

/* PRINCIPI */
.principles { display: grid; gap: 0; border-top: 1px solid var(--border); }
.principle { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--text-muted); }

/* CONTATTI */
.info-block { text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.info-mail { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.2rem); color: var(--text); overflow-wrap: anywhere; }
.info-mail:hover { color: var(--accent-soft); }
.note { font-size: 0.9rem; color: var(--text-dim); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: space-between; align-items: center; }
.footer-inner img { height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-meta { width: 100%; color: var(--text-dim); font-size: 0.85rem; }

/* PRIVACY */
.privacy-wrap { max-width: 760px; margin: 0 auto; padding: 8rem var(--pad-x) 4rem; display: grid; gap: 2rem; }
.privacy-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 0.6rem; }
.privacy-block p { color: var(--text-muted); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .config { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .principle { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 14, 26, 0.97); border-bottom: 1px solid var(--border); padding: 0.6rem var(--pad-x) 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .choice { grid-template-columns: minmax(0, 1fr) auto; }
  .choice .dim { grid-column: 1 / -1; }
  .hero { padding-top: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbits .spin { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}
