/* BioUpgrade — sito pubblico (landing, blog, pagine legali).
   Tema chiaro e scuro, mobile-first, nessuna dipendenza esterna. */

:root {
  --bg: #f6fbfb;
  --bg-2: #ffffff;
  --bg-3: #eef6f6;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #7c8da3;
  --line: #e2e8f0;
  --brand: #0d9488;
  --brand-2: #0284c7;
  --amber: #d97706;
  --radius: 20px;
  --maxw: 1140px;
  --shadow: 0 18px 48px -24px rgba(15, 23, 42, 0.28);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #070f14;
  --bg-2: #0d1a21;
  --bg-3: #10242c;
  --ink: #eef6f8;
  --ink-2: #a9bdc7;
  --ink-3: #7d93a0;
  --line: #1c323c;
  --brand: #2dd4bf;
  --brand-2: #38bdf8;
  --amber: #fbbf24;
  --shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 8% -10%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 60%),
    radial-gradient(70% 50% at 100% -5%, color-mix(in srgb, var(--brand-2) 18%, transparent) 0%, transparent 62%);
}

h1,
h2,
h3 {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.7rem);
}
h2 {
  font-size: clamp(1.45rem, 3.6vw, 2.2rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.1em;
  color: var(--ink-2);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
}

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.note {
  font-size: 0.85rem;
  color: var(--ink-3);
  border-left: 2px solid var(--line);
  padding-left: 0.9rem;
}

/* ---------------- header ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.6rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__brand img {
  border-radius: 10px;
}

.nav__links {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--ink-2);
}
.nav__links a:hover {
  color: var(--brand);
}

.nav__theme {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav__theme:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
  .nav__theme {
    margin-left: 0;
  }
}

/* ---------------- badge store ---------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-2);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.badge__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}
.badge__txt em {
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.badge__txt strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.badge--soon {
  opacity: 0.62;
  border-style: dashed;
}
.badge__soon {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: var(--amber);
  color: #130c02;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badges--sm .badge {
  padding: 0.55rem 0.9rem;
}

/* ---------------- toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  z-index: 60;
  max-width: 88vw;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg-2);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.toast--on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- hero ---------------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 2.6rem;
  align-items: center;
  padding: clamp(2.6rem, 8vw, 5.6rem) clamp(1rem, 4vw, 2.6rem) clamp(2rem, 6vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 {
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.hero__facts li {
  display: flex;
  flex-direction: column;
}
.hero__facts strong {
  font-family: Archivo, sans-serif;
  font-size: 1rem;
}
.hero__facts span {
  font-size: 0.78rem;
  color: var(--ink-3);
}

@media (min-width: 940px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 4rem;
  }
}

/* mockup telefono (CSS puro) */
.phone {
  width: min(300px, 82vw);
  margin-inline: auto;
  padding: 1.1rem;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-12px) rotate(-0.2deg);
  }
}
.phone__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-3);
}
.phone__pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2) 16%, transparent);
  color: var(--brand-2);
  font-weight: 600;
}
.phone__ring {
  margin: 1.1rem auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--brand) 86%, var(--line) 0);
  position: relative;
}
.phone__ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-2);
}
.phone__ring strong,
.phone__ring span {
  position: relative;
  z-index: 1;
}
.phone__ring strong {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}
.phone__ring span {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.phone__rows {
  display: grid;
  gap: 0.45rem;
}
.phone__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--bg-3);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.phone__row i {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 2px solid var(--line);
  flex: none;
}
.phone__row--done i {
  background: var(--brand);
  border-color: var(--brand);
}
.phone__streaks {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.phone__streaks span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber);
}

/* ---------------- fasce ---------------- */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5rem) clamp(1rem, 4vw, 2.6rem);
}
.band--tint {
  max-width: none;
  background: var(--bg-3);
  border-block: 1px solid var(--line);
}
.band--tint > * {
  max-width: var(--maxw);
  margin-inline: auto;
}
.band--dark {
  max-width: none;
  background: #081318;
  color: #eef6f8;
}
.band--dark h2,
.band--dark .lede {
  color: #eef6f8;
}
.band--dark > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

.grid3 {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.prob {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.prob h3 {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.steps li {
  position: relative;
  padding-top: 2.6rem;
  border-top: 2px solid var(--line);
}
.steps li span {
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: Archivo, sans-serif;
  font-weight: 800;
}

.feats {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .feats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feat {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  box-shadow: var(--shadow);
}
.feat p {
  font-size: 0.92rem;
  flex: 1;
}

.shot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--bg-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-2);
}
.shot em {
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.6rem;
  color: var(--ink-3);
  width: 100%;
}
.shot b {
  padding: 0.26rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-weight: 600;
}
.shot--phases span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font-weight: 600;
}
.shot--streaks span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--amber) 45%, transparent);
  color: var(--amber);
  font-weight: 600;
}
.shot--delta b {
  font-size: 1.3rem;
  font-family: Archivo, sans-serif;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
}
.shot--files span {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px dashed var(--line);
}

/* correlazione */
.corr {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}
@media (min-width: 880px) {
  .corr {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}
.corr__cols {
  display: flex;
  align-items: flex-end;
  gap: 1.6rem;
  height: 220px;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.corr__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #cfe3e8;
}
.corr__bar {
  width: 100%;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #64748b, #334155);
  margin-bottom: 0.7rem;
  animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.corr__col--good .corr__bar {
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
}
@keyframes grow {
  from {
    transform: scaleY(0.02);
    transform-origin: bottom;
  }
}
.corr__col strong {
  font-family: Archivo, sans-serif;
  font-size: 1.1rem;
}
.corr__col em {
  font-style: normal;
  font-size: 0.72rem;
  color: #8ca3ad;
}
.corr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.corr__list li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfe3e8;
  font-size: 0.95rem;
}
.corr__list b {
  font-family: Archivo, sans-serif;
  font-size: 1.2rem;
  color: #2dd4bf;
  margin-right: 0.5rem;
}
.corr__list span {
  display: block;
  font-size: 0.74rem;
  color: #7d93a0;
}

/* piani */
.plans {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}
.plan {
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.plan--pro {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.plan h3 span {
  margin-left: 0.5rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan__price {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.plan__price em {
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 0.4rem;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.plan li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
}

/* card articoli */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card a {
  display: block;
  padding: 1.4rem;
  color: inherit;
}
.card h3 {
  margin: 0.6rem 0 0.4rem;
}
.card p {
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
.card__cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c, var(--brand));
}
.card__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-3);
}

.link-more {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

/* faq */
.faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1rem, 4vw, 2.6rem);
}
.faq__list {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 0.95rem 1.2rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-family: "IBM Plex Mono", monospace;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.final {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5rem) clamp(1rem, 4vw, 2.6rem) clamp(3rem, 8vw, 6rem);
  text-align: left;
}

/* ---------------- contenuto / blog ---------------- */
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2rem) 4rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.crumbs a {
  color: var(--ink-3);
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs b {
  color: var(--ink-2);
  font-weight: 500;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catgrid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 720px) {
  .catgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.catcard {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-left: 4px solid var(--c);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.catcard h2 {
  font-size: 1.2rem;
  color: var(--c);
}
.catcard p {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.catcard span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--ink-3);
}

.sec {
  margin-top: 2.6rem;
  font-size: 1.3rem;
}

.pillar {
  display: block;
  margin-top: 1.8rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, var(--brand)) 8%, var(--bg-2));
  color: inherit;
}
.pillar:hover {
  box-shadow: var(--shadow);
}
.pillar h2 {
  font-size: 1.5rem;
}

.art__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

.brief {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c, var(--brand)) 10%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 26%, transparent);
  margin-bottom: 2rem;
}
.brief h2 {
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c, var(--brand));
  margin-bottom: 0.8rem;
}
.brief ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}
.brief li {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.toc {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin-bottom: 2.4rem;
}
.toc h2 {
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.toc .toc--h3 {
  margin-left: 1rem;
  list-style: none;
  font-size: 0.86rem;
}
.toc a {
  color: var(--ink-2);
}
.toc a:hover,
.toc a.on {
  color: var(--brand);
}

.prose h2 {
  margin-top: 2.6rem;
  scroll-margin-top: 90px;
}
.prose h3 {
  margin-top: 1.8rem;
  font-size: 1.02rem;
  color: var(--ink);
  scroll-margin-top: 90px;
}
.prose blockquote {
  margin: 0 0 1.6rem;
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--brand);
  background: var(--bg-3);
  border-radius: 0 12px 12px 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.prose ul,
.prose ol {
  color: var(--ink-2);
  padding-left: 1.3rem;
}
.prose a {
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

.cta {
  margin: 2.6rem 0;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 7%, var(--bg-2));
}
.cta p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.cta .badges {
  margin-bottom: 0;
}

.related {
  margin-top: 3rem;
}
.related h2 {
  font-size: 1.2rem;
}

.disclaimer {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------------- footer ---------------- */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2.6rem) 2rem;
}
.foot__grid {
  display: grid;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}
.foot h2 {
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.foot ul a {
  color: var(--ink-2);
}
.foot ul a:hover {
  color: var(--brand);
}
.foot__claim {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  max-width: 42ch;
}
.foot__note {
  max-width: var(--maxw);
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* banner consenso (struttura pronta, disattivata) */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(620px, 92vw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.consent[hidden] {
  display: none;
}
.consent p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
}
.consent__btns button {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--ink);
  color: var(--bg-2);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

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