/* ══ Pony Solutions — design system condiviso (pagine interne) ══ */
:root {
  --bg: #080808;
  --fg: #ffffff;
  --fg-muted: rgba(255,255,255,.84);
  --fg-soft: rgba(255,255,255,.60);
  --surface: #101010;
  --surface-strong: #171717;
  --border: rgba(255,255,255,.14);
  --border-soft: rgba(255,255,255,.10);
  --r-md: 14px;
  --r-lg: 20px;
  --font: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
::selection { background: rgba(255,255,255,.22); color: #080808; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ── sfondo animato (serpenti + pony) ── */
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dots canvas { width: 100%; height: 100%; display: block; }

/* ── nav ── */
nav.top {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none; padding: 0 16px;
}
.nav-inner {
  pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1020px, 100%); height: 44px; padding: 0 5px 0 15px; border-radius: 999px;
  background: rgba(19,19,19,.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07); transition: background-color .3s;
}
nav.top.scrolled .nav-inner { background-color: rgba(14,14,14,.92); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand img { display: block; }
.brand .tld { color: var(--fg-soft); font-weight: 500; }
.nav-links { display: flex; gap: 2px; justify-self: center; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--fg-muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); background: #1c1c1c; }

/* ── bottoni ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font); font-size: 14.5px; font-weight: 550; cursor: pointer;
  border: 0; border-radius: 999px; padding: 10px 19px;
  transition: transform .15s cubic-bezier(.2,.7,.3,1), opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-white { background: var(--fg); color: #0c0c0c; }
.btn-white:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--fg); background: var(--surface-strong); }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.nav-cta { justify-self: end; padding: 8px 16px; font-size: 13.5px; }

/* ── intestazione di pagina ── */
.page-hero { padding: 150px 0 60px; }
.page-hero .kick { font-family: var(--mono); font-size: 12px; color: var(--fg-soft); margin-bottom: 14px; display: block; }
.page-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 600; letter-spacing: -.03em;
  line-height: 1.06; text-wrap: balance;
}
.page-hero p.lead {
  margin-top: 16px; max-width: 620px; font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--fg-muted); line-height: 1.55; text-wrap: pretty;
}
.page-hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

section { padding: 88px 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.sub { margin-top: 12px; color: var(--fg-muted); font-size: 16px; max-width: 60ch; text-wrap: pretty; }

/* ── griglie e card ── */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color .3s, background .3s;
}
a.card:hover { border-color: var(--border); background: #141414; }
.card p { margin-top: 9px; font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; }
.card .go { display: inline-block; margin-top: 14px; font-size: 13.5px; color: var(--fg); font-weight: 600; }

/* elenco puntato senza pallini di sistema */
ul.ticks { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
ul.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--fg-muted); line-height: 1.55; }
ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 11px; height: 6px;
  border-left: 1.8px solid var(--fg); border-bottom: 1.8px solid var(--fg); transform: rotate(-45deg);
}

/* ── testo lungo (legali, articoli) ── */
.prose { max-width: 74ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.72; color: var(--fg-muted); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--border-soft); margin: 34px 0; }

/* ── blocco finale ── */
.endcta { text-align: center; padding: 120px 0 130px; }
.endcta h2 { font-size: clamp(30px, 4.4vw, 46px); }
.endcta p { margin-top: 14px; color: var(--fg-soft); font-size: 14px; }
.endcta .btn { margin-top: 26px; }

/* ── footer ── */
footer.site { border-top: 1px solid var(--border-soft); padding: 60px 0 38px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--fg-soft); max-width: 30ch; line-height: 1.6; }
.foot-col h4 { font-size: 13px; font-weight: 600; color: var(--fg-soft); margin-bottom: 16px; }
.foot-col a { display: block; padding: 5px 0; color: var(--fg-muted); transition: color .2s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  color: var(--fg-soft); font-size: 13px;
}
.foot-bottom .legal { display: flex; gap: 20px; }

@media (max-width: 880px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .nav-links { display: none; }
  .page-hero { padding: 120px 0 44px; }
  section { padding: 64px 0; }
  .endcta { padding: 84px 0 92px; }
}
