/* =========================================================
   NuovAzienda — Comuni · Editorial stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --c-ink: #0E1A2E;
  --c-ink-2: #1F2D48;
  --c-ink-3: #4A5772;
  --c-mute: #6F7A92;
  --c-line: #E5DDD0;
  --c-line-2: #EFE7D9;
  --c-paper: #FAF4E8;
  --c-paper-deep: #F1E8D4;
  --c-white: #FFFFFF;

  --c-brand: #C9572A;          /* terracotta refined */
  --c-brand-deep: #9F4220;
  --c-brand-soft: #F4E2D4;

  --c-green: #5C7A2A;
  --c-green-deep: #455D1F;
  --c-green-soft: #E6ECD5;

  --c-blue: #1F4F7A;
  --c-blue-deep: #143655;
  --c-blue-soft: #DCE7F1;

  --c-gold: #B98828;

  /* Per-page accent (overridden on page sections) */
  --c-accent: var(--c-brand);
  --c-accent-deep: var(--c-brand-deep);
  --c-accent-soft: var(--c-brand-soft);

  --f-display: 'Spectral', 'Source Serif 4', Georgia, serif;
  --f-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --maxw: 1240px;
  --maxw-narrow: 880px;

  --sh-sm: 0 1px 2px rgba(14,26,46,.06), 0 2px 6px rgba(14,26,46,.04);
  --sh-md: 0 10px 30px rgba(14,26,46,.08), 0 2px 8px rgba(14,26,46,.04);
  --sh-lg: 0 30px 80px rgba(14,26,46,.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--c-ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; line-height: 1.3; }

p { text-wrap: pretty; }
.lede {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--c-ink-2);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.kicker {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--c-mute);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--maxw-narrow); }
.stack > * + * { margin-top: var(--gap, 1rem); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--paper { background: var(--c-paper); }
.section--paper-deep { background: var(--c-paper-deep); }
.section--white { background: var(--c-white); }
.section--ink { background: var(--c-ink); color: #DCE2EE; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--c-white); }

.divider {
  height: 1px;
  background: var(--c-line);
  margin: 0 auto;
  max-width: var(--maxw);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: var(--c-ink);
}
.brand__mark {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__mark em { font-style: normal; color: var(--c-brand); }
.brand__divider {
  width: 1px;
  height: 28px;
  background: var(--c-line);
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-mute);
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav__link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-ink-2);
  text-decoration: none;
  position: relative;
  padding: .25rem 0;
}
.nav__link:hover { color: var(--c-brand); }
.nav__link--cta {
  background: var(--c-ink);
  color: var(--c-white);
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  transition: background .2s;
}
.nav__link--cta:hover { background: var(--c-brand); color: var(--c-white); }

@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav__link:not(.nav__link--cta) { display: none; }
  .brand__divider, .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy h1 { margin-top: 1.2rem; }
.hero__copy .lede { margin-top: 1.5rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--c-line);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.hero__meta-item dt {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.hero__meta-item dd {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
}
.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--sh-lg);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Duotone treatment: desaturate and tint with ink + accent */
  filter: grayscale(.55) contrast(1.05) brightness(.95);
  mix-blend-mode: luminosity;
}
.hero__visual::before {
  /* duotone overlay */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--c-ink) 70%, transparent) 0%, color-mix(in srgb, var(--c-accent) 30%, transparent) 100%);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 1;
}
.hero__visual::after {
  /* readability vignette */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(14,26,46,.55), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero__visual-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  color: rgba(255,255,255,.96);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__visual-caption span {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,.85);
  margin-top: .25rem;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { aspect-ratio: 5 / 4; }
}

/* ---------- Badge / Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  font-weight: 500;
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__title h2 { margin-top: .6rem; max-width: 16ch; }
.section-head__lede {
  max-width: 44ch;
  padding-bottom: .25rem;
  color: var(--c-ink-3);
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center h2 { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.btn--primary:hover {
  background: var(--c-accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--c-accent) 45%, transparent);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-white); }
.btn--dark {
  background: var(--c-ink);
  color: var(--c-white);
}
.btn--dark:hover { background: var(--c-ink-2); transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Initiative cards (home) ---------- */
.initiatives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
.initiative {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.9rem 2rem;
  text-decoration: none;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.initiative::before {
  /* tinted top accent */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--c-accent);
}
.initiative--brand { --c-accent: var(--c-brand); --c-accent-deep: var(--c-brand-deep); --c-accent-soft: var(--c-brand-soft); }
.initiative--green { --c-accent: var(--c-green); --c-accent-deep: var(--c-green-deep); --c-accent-soft: var(--c-green-soft); }
.initiative--blue  { --c-accent: var(--c-blue);  --c-accent-deep: var(--c-blue-deep);  --c-accent-soft: var(--c-blue-soft); }
.initiative:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--c-accent);
}
.initiative__num {
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-accent);
}
.initiative__num::after { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; margin-left: .6rem; vertical-align: middle; }
.initiative h3 { font-size: 1.55rem; }
.initiative__lede {
  color: var(--c-ink-3);
  font-size: 1rem;
  line-height: 1.55;
}
.initiative__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--c-line);
  margin-top: auto;
}
.initiative__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .55rem;
  align-items: start;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--c-ink-2);
}
.initiative__list li::before {
  content: "";
  margin-top: .55em;
  height: 6px; width: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}
.initiative__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-accent);
}
.initiative:hover .initiative__cta { gap: .85rem; }

@media (max-width: 960px) { .initiatives { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .initiatives { grid-template-columns: 1fr; } }

/* ---------- Benefits grid (small features) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.feature {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
  margin-bottom: .25rem;
}
.feature__icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--c-ink-3); font-size: .98rem; }

/* ---------- Big numbers band ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.numbers__cell {
  padding: 2.4rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.numbers__cell:last-child { border-right: none; }
.numbers__value {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-white);
}
.numbers__value sup {
  font-size: .45em;
  vertical-align: super;
  color: var(--c-brand);
  font-weight: 600;
  margin-left: .15em;
}
.numbers__label {
  margin-top: .9rem;
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
  max-width: 24ch;
}
@media (max-width: 920px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers__cell:nth-child(2) { border-right: none; } }
@media (max-width: 520px) { .numbers { grid-template-columns: 1fr; } .numbers__cell { border-right: none; } }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.step__num {
  font-family: var(--f-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .08em;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.step__body { color: var(--c-ink-3); font-size: 1.02rem; line-height: 1.6; }
.step__body ul { padding-left: 1.1rem; margin-top: .5rem; }
.step__body li { margin-bottom: .3rem; }

@media (max-width: 760px) {
  .step { grid-template-columns: 50px 1fr; }
  .step__body { grid-column: 1 / -1; padding-left: 50px; padding-right: 0; margin-top: .5rem; }
}

/* ---------- Pull quote ---------- */
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 2rem 0;
}
.pullquote__mark {
  font-family: var(--f-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: .35;
}
.pullquote blockquote {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--c-ink);
  margin: 0 auto;
  max-width: 22ch;
  text-wrap: balance;
}
.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--c-line);
}
.faq__item {
  border-bottom: 1px solid var(--c-line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--c-ink);
  letter-spacing: -.01em;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-accent);
  text-align: center;
  transition: transform .25s;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--c-accent-deep); }
.faq__body {
  padding: 0 0 1.6rem;
  color: var(--c-ink-3);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 68ch;
}
.faq__body p + p { margin-top: .8rem; }
.faq__body a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Editorial image band ---------- */
.image-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.image-band__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
}
.image-band__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) contrast(1.05) brightness(.95);
  mix-blend-mode: luminosity;
}
.image-band__media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-ink) 70%, transparent), color-mix(in srgb, var(--c-accent) 35%, transparent));
  mix-blend-mode: color;
}
.image-band__copy h2 { max-width: 14ch; }
.image-band__copy .lede { margin-top: 1.2rem; }
.image-band__list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.image-band__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .9rem;
  align-items: start;
  color: var(--c-ink-2);
  font-size: 1.02rem;
  line-height: 1.5;
}
.image-band__list li svg {
  width: 22px; height: 22px;
  color: var(--c-accent);
  margin-top: .15rem;
}
@media (max-width: 800px) {
  .image-band { grid-template-columns: 1fr; }
  .image-band__media { aspect-ratio: 5 / 4; }
}
.image-band--reverse .image-band__media { order: 2; }
@media (max-width: 800px) {
  .image-band--reverse .image-band__media { order: 0; }
}

/* ---------- Comparison table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.compare__col {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
}
.compare__col--accent {
  background: var(--c-ink);
  color: #DCE2EE;
  border-color: var(--c-ink);
}
.compare__col--accent h3 { color: var(--c-white); }
.compare__head {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
  margin-bottom: .6rem;
}
.compare__col--accent .compare__head { color: rgba(255,255,255,.55); }
.compare__col h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.compare__list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: .7rem;
}
.compare__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .98rem;
  line-height: 1.5;
}
.compare__list li svg { width: 20px; height: 20px; margin-top: .15rem; color: var(--c-accent); }
.compare__col--accent .compare__list li svg { color: var(--c-brand); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Highlight card ---------- */
.highlight {
  background: var(--c-ink);
  color: #DCE2EE;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.highlight::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-brand) 35%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.highlight__body { position: relative; }
.highlight h2 { color: var(--c-white); max-width: 16ch; }
.highlight p { color: rgba(255,255,255,.85); max-width: 48ch; }
.highlight p + p { margin-top: 1rem; }
.highlight strong { color: var(--c-brand); font-weight: 600; }
.highlight a { color: var(--c-brand); }

.highlight__meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  padding: 1.8rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
}
.highlight__meta-item dt {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  margin-bottom: .25rem;
}
.highlight__meta-item dd {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--c-white);
}
@media (max-width: 800px) { .highlight { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.cta-section {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--c-ink);
  color: #DCE2EE;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c-accent) 38%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section .section-head h2,
.cta-section .section-head__title h2 { color: var(--c-white); }
.cta-section .section-head__lede,
.cta-section .lede { color: rgba(255,255,255,.85); }
.cta-section .eyebrow { color: var(--c-brand); }

.form-card {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 3rem auto 0;
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--sh-lg);
}
.form-card__head { margin-bottom: 2rem; }
.form-card__head h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.form-card__head p { color: var(--c-ink-3); }

.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.field label {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  font-weight: 500;
}
.field label .req { color: var(--c-accent); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.form-card .btn { width: 100%; justify-content: center; padding: 1.2rem 1.6rem; }
.form-fineprint {
  text-align: center;
  margin-top: 1.2rem;
  font-size: .82rem;
  color: var(--c-ink-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #B8C2D6;
  padding: 4rem 0 2rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer__brand .brand__mark { color: var(--c-white); font-size: 1.6rem; }
.site-footer__brand p { margin-top: .9rem; color: rgba(255,255,255,.6); font-size: .95rem; max-width: 28ch; line-height: 1.55; }
.site-footer h4 {
  color: var(--c-white);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .96rem; transition: color .2s; }
.site-footer a:hover { color: var(--c-brand); }
.site-footer__base {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}

@media (max-width: 860px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Page accent variants ---------- */
body[data-accent="brand"]  { --c-accent: var(--c-brand);  --c-accent-deep: var(--c-brand-deep);  --c-accent-soft: var(--c-brand-soft); }
body[data-accent="green"]  { --c-accent: var(--c-green);  --c-accent-deep: var(--c-green-deep);  --c-accent-soft: var(--c-green-soft); }
body[data-accent="blue"]   { --c-accent: var(--c-blue);   --c-accent-deep: var(--c-blue-deep);   --c-accent-soft: var(--c-blue-soft); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }
.muted { color: var(--c-ink-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Print */
@media print {
  .site-header, .cta-section, .site-footer__base, .nav__link--cta { display: none; }
  body { background: white; color: black; }
}


/* =========================================================
   LLM-friendly additions: In breve · Use case · Glossario · Comparativa
   ========================================================= */

/* ---------- In breve ---------- */
.in-breve { padding-top: 4rem; padding-bottom: 4rem; }
.in-breve__grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.in-breve__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.in-breve__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.in-breve__row dt {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
  padding-top: .25rem;
}
.in-breve__row dd {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.in-breve__pull {
  position: sticky;
  top: 6rem;
  background: var(--c-paper-deep);
  padding: 2rem 1.75rem;
  border-radius: var(--r-md);
  border-left: 4px solid var(--c-accent);
}
.in-breve__sentence {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--c-ink);
  font-style: italic;
}
.in-breve__sentence--muted {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--c-mute);
  margin-top: 1.25rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .in-breve__grid { grid-template-columns: 1fr; gap: 2rem; }
  .in-breve__row { grid-template-columns: 1fr; gap: .35rem; padding: 1rem 0; }
  .in-breve__pull { position: static; }
}

/* ---------- Use case ---------- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.use-case {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.use-case__tag {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  font-weight: 600;
}
.use-case__title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
}
.use-case__body {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--c-ink-2);
}
.use-case__outcome {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
  font-size: .9rem;
  color: var(--c-ink-3);
}
.use-case__outcome strong { color: var(--c-accent-deep); }

@media (max-width: 900px) {
  .use-cases { grid-template-columns: 1fr; }
}

/* ---------- Glossario inline ---------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2.5rem;
  margin-top: 2.5rem;
}
.glossary__item {
  border-top: 1px solid var(--c-line);
  padding-top: 1rem;
}
.glossary__term {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--c-accent-deep);
  margin-bottom: .35rem;
  text-transform: none;
}
.glossary__def {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--c-ink-2);
}
@media (max-width: 760px) {
  .glossary { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Comparativa Centro-Nord / Sud ---------- */
.comp-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}
.comp-table th, .comp-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.5;
}
.comp-table thead th {
  background: var(--c-paper-deep);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.comp-table tbody th {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--c-ink-2);
  font-size: .95rem;
  background: rgba(0,0,0,.015);
  width: 32%;
}
.comp-table td {
  color: var(--c-ink-2);
}
.comp-table td strong { color: var(--c-ink); }
.comp-table__note {
  font-size: .8rem;
  color: var(--c-mute);
  font-family: var(--f-mono);
  margin-top: 1rem;
  line-height: 1.55;
}

/* ---------- Guida hero (sotto-pagina) ---------- */
.guide-hero {
  padding: 5rem 0 3rem;
  background: var(--c-paper-deep);
  border-bottom: 1px solid var(--c-line);
}
.guide-toc {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.guide-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  transition: border-color .2s, transform .2s;
}
.guide-toc a:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.guide-toc a::after { content: "→"; color: var(--c-accent); }

/* ---------- FAQ estese (paragrafo always-visible) ---------- */
.faq--open .faq__item { background: transparent; border-bottom: 1px solid var(--c-line); border-radius: 0; padding: 1.5rem 0; }
.faq--open .faq__item summary { font-family: var(--f-display); font-size: 1.25rem; color: var(--c-ink); cursor: default; padding-right: 0; }
.faq--open .faq__item summary::-webkit-details-marker { display: none; }
.faq--open .faq__item summary::after { display: none; }
.faq--open .faq__body { margin-top: .75rem; }
.faq--open .faq__body p { color: var(--c-ink-2); }
