/* CodeGambit — pagine statiche generate (/prezzi/, /settori/*) da scripts/build-pages.mjs.
   Statiche: non passano dalla build di Vite, quindi i token replicano quelli della home
   (section-ink #0e0e0e, oro #d4a96a, ambra #f59e0b, crema #f6f2ed). Se cambiano lì, allinea qui. */
:root {
  --ink: #0e0e0e;
  --cream: #f6f2ed;
  --gold: #d4a96a;
  --accent: #f59e0b;
  --accent-ink: #1a0800;
  --text: rgba(255, 255, 255, 0.92);
  --sub: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --shell: min(70rem, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 50; }
.skip:focus { left: 0; }

/* Barra */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(14, 14, 14, 0.92); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); background-image: radial-gradient(60% 140% at 50% 120%, rgba(212, 169, 106, 0.22), transparent 70%); }
.bar__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--accent); color: var(--accent-ink); }
.brand__word { font-family: "Orbitron", "Space Grotesk", sans-serif; font-weight: 700; }
.nav { display: none; align-items: center; gap: 1.6rem; font-size: 0.875rem; }
.nav > a, .nav summary { color: rgba(255, 255, 255, 0.68); text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav summary:hover, .nav [aria-current="page"] { color: #fff; }
.nav__page { color: #fff !important; }
.nav__drop { position: relative; }
.nav__drop summary { list-style: none; }
.nav__drop summary::-webkit-details-marker { display: none; }
.nav__drop summary::after { content: " ▾"; font-size: 0.7em; }
.nav__panel { position: absolute; top: calc(100% + 0.9rem); left: 50%; translate: -50% 0; display: grid; grid-template-columns: repeat(2, 15rem); gap: 0.25rem; padding: 0.5rem; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav__panel a { display: flex; flex-direction: column; padding: 0.7rem 0.85rem; border-radius: 0.65rem; text-decoration: none; }
.nav__panel a:hover { background: rgba(255, 255, 255, 0.07); }
.nav__panel strong { font-weight: 600; color: #fff; }
.nav__panel span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: filter 0.15s, background 0.15s; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.bar__cta { min-height: 2.4rem; }

/* Apertura */
.intro { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.intro--split { display: grid; gap: 2.5rem; align-items: center; }
.intro--split img { border-radius: 1.25rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .intro--split { grid-template-columns: 1.1fr 1fr; } }
.kicker { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.04em; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; font-weight: 600; }
.lead { max-width: 38rem; margin: 1.25rem 0 0; font-size: 1.1rem; color: var(--sub); }
.note { display: inline-block; margin: 1.5rem 0 0; padding-left: 0.75rem; border-left: 2px solid var(--accent); font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.block { padding: 3rem 0 0; }
.muted { color: var(--sub); }

/* Piani */
.plans { display: grid; gap: 1rem; padding-top: 1rem; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; }
.plan--featured { order: -1; background: linear-gradient(180deg, #3a2410 0%, #1f140a 100%); color: #fff; border-color: rgba(212, 169, 106, 0.55); box-shadow: 0 18px 50px rgba(245, 158, 11, 0.12); }
@media (min-width: 860px) { .plan--featured { order: 0; } }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.plan h3 { margin: 0; font-size: 1.1rem; }
.badge { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; }
.plan__for { margin: 0.25rem 0 0; font-size: 0.9rem; opacity: 0.7; }
.plan__price { margin: 1.25rem 0 1.25rem; }
.plan__price strong { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; }
.plan__price span, .plan__price s { font-size: 0.85rem; opacity: 0.6; }

.plan__from { margin: 1.5rem 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.plan li { display: flex; gap: 0.5rem; }
.plan li svg { flex: none; margin-top: 0.3rem; color: var(--accent); }
.premium { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; transition: border-color 0.15s; }
.premium:hover { border-color: rgba(255, 255, 255, 0.3); }
.premium em { font-style: normal; color: var(--sub); margin-left: 0.4rem; }
.premium small { color: var(--sub); }
.premium__cta { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

/* Confronto */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.compare thead th { font-weight: 600; }
.compare thead small { font-weight: 400; color: var(--sub); }
.compare .yes { color: var(--accent); }
.compare .no { color: rgba(255, 255, 255, 0.3); }

/* Liste */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rows small { color: var(--sub); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); padding-top: 0.25rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.1rem 0; cursor: pointer; font-weight: 500; }
.faq p { margin: 0 0 1.1rem; color: var(--sub); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.chips a:hover { border-color: var(--gold); }

/* Chiusura */
.final { margin-top: 5rem; padding: 5rem 0; background: var(--cream); color: #141414; text-align: center; }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.75rem; }
.final p { margin: 0 auto 2rem; max-width: 32rem; color: rgba(20, 20, 20, 0.7); }
.foot { padding: 2rem 0; font-size: 0.85rem; color: var(--sub); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
