.hl { background: var(--gg-yellow, #FEC426); color: var(--ink-900); padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ============================================================================
   Unidad Productiva en venta — Gobid España · Prototipo v1
   Design system Gobid en tokens (CSS custom properties) para re-skin fácil
   en Claude Design. Base: Nunito Sans · CTA #FEC426 + ink · neutros cálidos.
   Sin emoji, sin gradientes tech. Accento rojo del logo ES, uso mínimo.
   ============================================================================ */

:root {
  --gg-yellow-ink: #A87700;
  --trace-end: rgba(254, 196, 38, 0);
  /* Marca */
  --gg-yellow:      #FEC426;
  --gg-yellow-hover:#E7B01B;
  --gg-yellow-tint: #FFF3CE;
  --gg-red:         #D51A28;   /* rombo del logo ES — solo micro-acentos */
  --ink:            #141210;   /* texto sobre amarillo y cuerpo oscuro */
  --white:          #FFFFFF;

  /* Neutros cálidos */
  --paper:          #FAF8F3;
  --warm-100:       #F1EEE8;
  --warm-200:       #E4E0D8;
  --warm-300:       #C9C3B8;
  --warm-500:       #8C867B;
  --warm-700:       #46433D;
  --ink-900:        #14120F;
  --ink-800:        #211E19;

  /* Semánticos */
  --bg:             var(--white);
  --bg-alt:         var(--paper);
  --bg-dark:        var(--ink-900);
  --fg:             #1C1A16;
  --fg-muted:       #6B665C;
  --fg-invert:      #F4F1EA;
  --fg-invert-muted:#B6B0A3;
  --border:         var(--warm-200);
  --border-dark:    rgba(255,255,255,.14);
  --accent:         var(--gg-yellow);
  --accent-fg:      var(--ink);
  --danger:         #C93A2A;
  --success:        #1E8F5F;

  /* Tipografía */
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Radios / sombras */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --sh-sm: 0 2px 6px rgba(20,18,16,.06);
  --sh-md: 0 8px 28px rgba(20,18,16,.10);
  --focus: 0 0 0 3px rgba(254,196,38,.5);

  /* Layout — full-screen, fluido, mobile-first */
  --header-h: 110px;
  --maxw: 100%;
  --maxw-narrow: 1100px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --section-y: clamp(56px, 8vw, 112px);
}

/* Reset básico */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* nunca scroll horizontal en móvil */
}
img, svg, video { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.5rem, 2.2vw + .3rem, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
a  { color: inherit; }
strong { font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.measure { max-width: 64ch; }
.lede { font-size: clamp(.94rem, .55vw + .62rem, 1.1rem); color: var(--fg-muted); max-width: 68ch; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
  margin: 0 0 .9rem;
}
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.eyebrow--dot::before { content: ""; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--gg-yellow); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Solo per gli screen reader: nel DOM e nell'albero di accessibilita', non a
   schermo. Serve ai titoli richiesti da aria-labelledby che a schermo sarebbero
   un doppione (il modale dei testi legali). Non display:none, che li
   toglierebbe anche agli screen reader. */
.u-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 800; letter-spacing: .01em; cursor: pointer;
  padding: 14px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn { min-height: 48px; }
.btn--sm { padding: 10px 18px; min-height: 44px; font-size: .92rem; }
.btn--primary { background: var(--gg-yellow); color: var(--ink); }
.btn--primary:hover { background: var(--gg-yellow-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ink { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.btn--ink:hover { background: var(--ink-800); border-color: var(--ink-800); transform: translateY(-1px); }
.btn--ink:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Announce bar */
.announce {
  margin: 0; background: var(--ink-900); color: var(--fg-invert);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-align: center;
  padding: 10px var(--gutter);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { height: 34px; width: auto; }
.header__nav { display: none; gap: clamp(14px, 1.6vw, 26px); margin-left: 12px; }
.header__nav a { color: var(--warm-700); text-decoration: none; font-weight: 700; font-size: clamp(.86rem, 1vw, .95rem); white-space: nowrap; border-bottom: 2px solid transparent; padding-block: 10px; }
.header__nav a:hover { color: var(--ink-900); border-bottom-color: var(--gg-yellow); }
.header__external {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: .88rem; font-weight: 700; color: var(--ink-900); text-decoration: none; white-space: nowrap;
}
.header__external:hover { color: var(--warm-700); text-decoration: underline; }
@media (max-width: 1179px) { .header__external { display: none; } }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch__btn { font: inherit; font-weight: 800; font-size: .82rem; letter-spacing: .04em; background: transparent; color: var(--fg-muted); border: 0; padding: 0 14px; min-height: 44px; min-width: 44px; cursor: pointer; }
.lang-switch__btn.is-active { background: var(--gg-yellow); color: var(--ink); }
.lang-switch__btn:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 560px) {
  .header__external {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: .88rem; font-weight: 700; color: var(--ink-900); text-decoration: none; white-space: nowrap;
}
.header__external:hover { color: var(--warm-700); text-decoration: underline; }
@media (max-width: 1179px) { .header__external { display: none; } }

.header__actions { gap: 8px; }
  .lang-switch__btn { padding: 0 9px; min-width: 40px; font-size: .76rem; letter-spacing: .02em; }
}
@media (max-width: 400px) {
  .lang-switch__btn { padding: 0 6px; min-width: 34px; font-size: .72rem; letter-spacing: 0; }
}

/* Hamburger (solo móvil) */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; border-radius: var(--r-sm); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-900); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }

#perimetro { position: relative; overflow: hidden; }
#activo h2, #perimetro h2 { max-width: none; text-wrap: nowrap; }
#perimetro > .wrap > .section-sub {
  max-width: none; text-wrap: nowrap;
  font-size: clamp(1.5rem, 2.2vw + .3rem, 2.4rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.12; color: var(--ink-900);
  margin: -.1em 0 .7em;
}
@media (max-width: 760px) { #perimetro > .wrap > .section-sub { text-wrap: balance; } }
#perimetro > .wrap > .lede { max-width: none; text-wrap: nowrap; }
@media (max-width: 1400px) { #perimetro > .wrap > .lede { text-wrap: pretty; } }
@media (max-width: 700px) { #activo h2, #perimetro h2 { text-wrap: balance; } }

/* Perímetro — blocchi etichettati */
.pm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 34px 0 20px; }
.pm-head--out { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.pm-head__title { margin: 0; font-size: clamp(1.15rem, 1.1vw + .82rem, 1.5rem); letter-spacing: -.02em; }
.pm-badge {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: var(--r-sm); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.pm-badge--in { background: var(--ink-900); color: var(--white); }
.pm-badge--out { background: #1E8F5F; color: var(--white); }
.pm-badge--yellow { background: var(--gg-yellow); color: var(--ink); }

.hl-y { color: inherit; }
.why-stat__src { margin: 12px 0 0; font-size: .78rem; font-weight: 600; color: var(--fg-muted); }
.why-stat__v strong { font-weight: 800; color: var(--ink-900); }

/* Tre ragioni */
.reasons { margin-top: 28px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 10px 24px -16px rgba(20,18,15,.24);
}
.reason__num {
  position: absolute; top: 6px; right: 18px;
  font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 900; line-height: 1;
  color: var(--warm-100); letter-spacing: -.04em;
}
.reason__kicker {
  position: relative; margin: 0 0 14px; padding-left: 16px;
  font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: var(--warm-700);
}
.reason__kicker::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 8px; height: 8px;
  background: var(--gg-yellow); border-radius: 1px; transform: rotate(45deg);
}
.reason__title { margin: 0 0 12px; font-size: clamp(1.08rem, .7vw + .88rem, 1.28rem); line-height: 1.25; letter-spacing: -.02em; }
.reason__body { margin: 0; color: var(--fg-muted); font-size: clamp(.88rem, .35vw + .76rem, .96rem); line-height: 1.6; }

.pm-potential__label { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warm-700); }
.pm-potential__label { margin-top: 34px; }
.pm-potential { margin: 0; max-width: 92ch; color: var(--fg-muted); font-size: clamp(.94rem, .4vw + .8rem, 1.05rem); line-height: 1.65; }

/* Griglia asset cedibili */
.assetgrid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.assetcard {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-top: 2px solid var(--gg-yellow); border-radius: var(--r-md);
  padding: 16px 18px 14px 42px;
  box-shadow: 0 8px 18px -12px rgba(20,18,15,.22);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.assetcard:hover { transform: translateY(-3px); border-color: var(--warm-300); border-top-color: var(--gg-yellow); box-shadow: 0 16px 28px -14px rgba(20,18,15,.3); }
.assetcard::before {
  content: ""; position: absolute; left: 17px; top: 19px; width: 11px; height: 6px;
  border-left: 2.5px solid var(--gg-yellow); border-bottom: 2.5px solid var(--gg-yellow);
  transform: rotate(-45deg);
}
.assetcard__title { margin: 0 0 4px; font-size: clamp(.94rem, .4vw + .8rem, 1.05rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink-900); }
.assetcard__note { margin: 0; font-size: clamp(.8rem, .3vw + .7rem, .88rem); color: var(--fg-muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .assetcard, .assetcard:hover { transform: none; transition: none; } }

.pm-panel {
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 44px);
  background: var(--ink-900); color: var(--fg-invert);
  border-radius: var(--r-lg); padding: clamp(26px, 4vw, 52px);
}
@media (min-width: 960px) { .pm-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; } }
.pm-panel__title { margin: 14px 0 12px; color: var(--white); font-size: clamp(1.35rem, 1.8vw + .7rem, 2.1rem); letter-spacing: -.03em; line-height: 1.15; }
.pm-panel__body { margin: 0; color: var(--fg-invert-muted); font-size: clamp(.94rem, .4vw + .8rem, 1.05rem); line-height: 1.6; }
.pm-panel__body strong { color: var(--gg-yellow); font-weight: 700; }
.pm-panel__close {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border-dark);
  color: var(--white); font-weight: 700; line-height: 1.5;
  font-size: clamp(.94rem, .4vw + .8rem, 1.05rem);
}
.pm-panel__list { border: 1px solid var(--border-dark); border-radius: var(--r-md); padding: clamp(20px, 2.4vw, 30px); background: rgba(255,255,255,.03); }
.pm-panel__label { margin: 0 0 14px; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--fg-invert-muted); }
.pm-panel__list .crosses { margin: 0; }
.pm-panel__list .crosses li { color: var(--fg-invert-muted); }
.pm-panel__list .crosses li strong { color: var(--white); }
.pm-panel__list .crosses li::before { background: var(--border-dark); }
.pm-panel__lien { margin: 0 0 18px; color: var(--fg-invert-muted); font-size: clamp(.9rem, .35vw + .78rem, 1rem); line-height: 1.55; }
.lien-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lien-opt {
  display: inline; padding: 0 .16em; border: 0; border-radius: 0;
  background: var(--gg-yellow); color: var(--ink);
  font-weight: 800; font-size: clamp(.9rem, .35vw + .78rem, 1rem);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lien-opt--ink, .lien-opt--out { background: var(--gg-yellow); color: var(--ink); }
.lien-opts { gap: 6px 10px; }
.lien-or { font-size: .9rem; color: var(--fg-invert-muted); }
/* Banda dei tre numeri chiave dentro la fascia ink */
.pm-figs {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border-dark);
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.pm-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(16px, 2vw, 28px); }
.pm-fig { min-width: 0; }
.pm-fig__num { white-space: nowrap; }
.pm-fig__num {
  margin: 0 0 6px; font-size: clamp(1.4rem, 1.1vw + .95rem, 1.8rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums;
}
.pm-fig--key .pm-fig__num { color: var(--gg-yellow); }
.pm-fig__label { margin: 0 0 4px; font-size: .9rem; font-weight: 600; color: var(--white); line-height: 1.35; }
.pm-fig__note { margin: 0; font-size: .8rem; color: var(--fg-invert-muted); line-height: 1.45; }
@media (min-width: 820px) {
  .pm-fig--key { padding-left: 20px; border-left: 2px solid var(--gg-yellow); }
}
.pm-fig--key { padding-left: 16px; border-left: 2px solid var(--gg-yellow); }

.pm-panel__liennote { margin: 16px 0 0; font-size: .84rem; color: var(--fg-invert-muted); font-style: italic; }

/* Card gialla: l'unico gravame */
.lienbox { margin-top: 22px; background: #FDF3D4; color: var(--ink-900); border-radius: var(--r-md); padding: clamp(18px, 2vw, 24px); }
.lienbox__label { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lienbox__body { margin: 0 0 16px; font-size: clamp(.88rem, .35vw + .76rem, .96rem); line-height: 1.55; color: var(--warm-700); }
.lienbox__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lienbox__opt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: clamp(.88rem, .3vw + .78rem, .95rem); }
.lienbox__opt--ink { background: var(--ink-900); color: var(--white); }
.lienbox__opt--out { background: transparent; color: var(--ink-900); border: 2px solid var(--ink-900); }
.lienbox__or { font-size: .9rem; color: var(--warm-700); }
.lienbox__note { margin: 14px 0 0; font-size: .82rem; color: var(--warm-700); }

.section-sub {
  margin: -.2em 0 .9em; max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.24rem); font-weight: 700; line-height: 1.35;
  letter-spacing: -.01em; color: var(--warm-700);
}

/* ---------------- Hero (full-screen) ---------------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--paper);
  background-image: url("../assets/min/hero.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  min-height: calc(100vh - var(--header-h));   /* fallback */
  min-height: calc(100svh - var(--header-h));  /* header + hero = exactamente una pantalla */
  display: flex; align-items: center;
  padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 3; }
.hero__inner { position: relative; }
/* scrim solo dietro titolo + lede */
.hero__inner::before {
  content: ""; z-index: -1; pointer-events: none;
  grid-column: 1 / -1; grid-row: 1 / -1;
  margin: -22px -2vw -22px -50vw;
  background: linear-gradient(100deg,
    rgba(250,248,243,.9) 0%,
    rgba(250,248,243,.88) 70%,
    rgba(250,248,243,.72) 86%,
    rgba(250,248,243,.3) 96%,
    rgba(250,248,243,0) 100%);
  filter: blur(16px);
}
.hero__inner {
  width: 100%; display: grid; gap: 24px;
  grid-template-areas: "eyebrow" "title" "subtitle" "lede" "cta" "ainote";
}
.hero__eyebrow { grid-area: eyebrow; color: var(--warm-700); margin-bottom: 0; }
.hero__title { grid-area: title; color: var(--ink-900); max-width: 26ch; margin: 0; text-wrap: balance; font-size: clamp(1.45rem, 4.4vw, 2.2rem); letter-spacing: -.03em; }
.hero__subtitle {
  grid-area: subtitle; margin: 0; max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem); font-weight: 700; line-height: 1.4;
  color: var(--warm-700); letter-spacing: -.01em;
}
.hero__body { grid-area: lede; display: grid; gap: clamp(10px, 1.4vh, 18px); max-width: 62ch; }
.hero__lede { font-size: clamp(1.05rem, 1.9vw, 1.32rem); color: var(--fg); max-width: none; margin: 0; }
.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero__points li { position: relative; padding-left: 28px; font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.45; color: var(--fg); }
.hero__points li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--gg-yellow); border-bottom: 2.5px solid var(--gg-yellow);
  transform: rotate(-45deg);
}
.hero__big {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; letter-spacing: -.03em;
  color: var(--ink-900); background: var(--gg-yellow); padding: 0 .14em;
  line-height: 1; display: inline-block; vertical-align: -.06em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero__closing { margin: 0; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero__closing strong {
  color: var(--ink-900);
  background-image: linear-gradient(var(--gg-yellow), var(--gg-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 5px;
  padding-bottom: 2px;
}
.hero__lede strong {
  color: var(--ink-900); background: none; box-shadow: none;
  text-decoration: underline; text-decoration-color: var(--gg-yellow);
  text-decoration-thickness: 5px; text-underline-offset: 4px; text-decoration-skip-ink: none;
}


/* Hero — fasci di luce animati */
.beams { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.beam {
  position: absolute; top: -34%; height: 176%; min-width: 150px;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(254,196,38,.55) 0%, rgba(254,196,38,.26) 42%, rgba(254,196,38,0) 86%);
  filter: blur(24px);
  animation: beam-sway 20s ease-in-out infinite alternate, beam-glow 7s ease-in-out infinite alternate;
}
.beam--1 { left: 4%;  width: 24vw; --r: 15deg;  animation-duration: 21s, 8s;   animation-delay: 0s, .4s; }
.beam--2 { left: 22%; width: 14vw; --r: 8deg;   animation-duration: 16s, 6.2s; animation-delay: -4s, 1.1s; }
.beam--3 { left: 44%; width: 28vw; --r: -6deg;  animation-duration: 25s, 9.5s; animation-delay: -9s, .2s; }
.beam--4 { left: 66%; width: 17vw; --r: -13deg; animation-duration: 19s, 7.4s; animation-delay: -2s, 1.6s; }
.beam--5 { left: 82%; width: 22vw; --r: -21deg; animation-duration: 23s, 6.8s; animation-delay: -13s, .8s; }
@keyframes beam-sway {
  from { transform: rotate(var(--r)) translateX(-3%) scaleY(1); }
  to   { transform: rotate(calc(var(--r) * .5)) translateX(4%) scaleY(1.08); }
}
@keyframes beam-glow { from { opacity: .18; } to { opacity: .52; } }
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none; opacity: .3; }
  .hero__video { display: none; }
}
/* Telefono: nessun video, resta il poster (mobile-first: niente 17 MB su rete mobile) */
@media (max-width: 900px) { .hero__video { display: none; } }

/* Movimiento del fondo del hero (Ken Burns muy contenido) */
.hero { animation: hero-bg 14s cubic-bezier(.22,.61,.36,1) both; }
@keyframes hero-bg {
  from { background-size: cover, 112% auto; background-position: center, 53% bottom; }
  to   { background-size: cover, cover; background-position: center, center bottom; }
}

/* Countdown: keyline che si estende + tessera dei minuti che pulsa al cambio */
.countdown { position: relative; }
.countdown::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--gg-yellow); transform-origin: left; transform: scaleX(.34);
  animation: cd-rule 1.1s cubic-bezier(.22,.61,.36,1) .5s both;
}
@keyframes cd-rule { from { transform: scaleX(0); } to { transform: scaleX(.34); } }
.cd { animation: cd-in .5s cubic-bezier(.22,.61,.36,1) both; }
.cd:nth-child(1) { animation-delay: .34s; }
.cd:nth-child(2) { animation-delay: .42s; }
.cd:nth-child(3) { animation-delay: .5s; }
@keyframes cd-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Entrada del hero */
.hero__eyebrow, .hero__title, .hero__subtitle, .hero__body, .hero__cta-row, .notice--hero {
  animation: hero-in .6s cubic-bezier(.22,.61,.36,1) both;
}

.hero__title { animation-delay: .06s; }
.hero__subtitle { animation-delay: .09s; }
.hero__body { animation-delay: .12s; }
.hero__cta-row { animation-delay: .18s; }
.countdown { animation: hero-in .6s cubic-bezier(.22,.61,.36,1) .22s both; }
.notice--hero { animation-delay: .24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* CTA: alone giallo che respira, solo prima dell'interazione */
.hero__cta-row .btn--primary { animation: cta-pulse 3.4s ease-in-out 1.4s 3; }
.hero__cta-row .btn--primary:hover { animation: none; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,196,38,0); }
  45% { box-shadow: 0 0 0 10px rgba(254,196,38,.28); }
  70% { box-shadow: 0 0 0 16px rgba(254,196,38,0); }
}

/* Sottolineatura della frase chiave che si disegna */
.hero__lede strong {
  background-image: linear-gradient(var(--gg-yellow), var(--gg-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 5px;
  text-decoration: none; padding-bottom: 4px;
  animation: underline-draw .8s cubic-bezier(.22,.61,.36,1) .7s both;
}
@keyframes underline-draw { from { background-size: 0 5px; } to { background-size: 100% 5px; } }
.hl-draw {
  background-image: linear-gradient(var(--gg-yellow), var(--gg-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 7px;
  padding-bottom: 3px;
  animation: hl-draw .8s cubic-bezier(.22,.61,.36,1) .45s both;
}
@keyframes hl-draw { from { background-size: 0 7px; } to { background-size: 100% 7px; } }
@media (prefers-reduced-motion: reduce) { .hl-draw { animation: none; } }
.hero__cta-row { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.hero__deadline { font-weight: 700; color: var(--fg-muted); font-size: .96rem; display: inline-flex; align-items: center; gap: 9px; }
.hero__deadline::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--gg-yellow); flex: none; }

/* Countdown — tessere-dato del plazo */
.countdown {
  width: 100%;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 16px clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--border); padding-top: 18px;
}
.countdown__head { display: grid; gap: 4px; }
.countdown__label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm-700); margin: 0; white-space: nowrap; }
.countdown__date { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink-900); }
.hero__deadline { display: none; }
.countdown__units { display: flex; flex-wrap: wrap; gap: 10px; }
.cd {
  display: grid; justify-items: center; gap: 2px; min-width: 78px; flex: 0 1 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px 10px;
}
.cd__num { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cd__unit { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.countdown.is-closed .cd__num { color: var(--fg-muted); }

/* Notice / disclaimer */
.notice { border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; background: var(--bg-alt); }
.notice--hero {
  max-width: none; width: 100%; align-self: start; padding: 18px 22px;
  background: rgba(255,255,255,.68); border-color: rgba(20,18,15,.14); color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.notice--hero p { color: var(--ink-900); font-weight: 500; }
.notice--hero .notice__tag { color: var(--ink-900); }
.notice__tag { font-size: .78rem; display: inline-flex; align-items: center; gap: 8px; font-size: .71rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warm-700); margin-bottom: 6px; }
.notice--hero .notice__tag::before { content: ""; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--gg-red); flex: none; }
.notice p { margin: 0; font-size: .93rem; line-height: 1.48; }

/* Banda scadenza + riservatezza (sotto l'hero, tono discreto) */
.deadlineband { background: var(--bg-alt); border-block: 1px solid var(--border); padding-block: clamp(18px, 2.4vw, 30px); }
.deadlineband__inner { display: grid; gap: clamp(16px, 2vw, 28px); align-items: center; }
.deadlineband .countdown { border: 0; padding: 0; margin: 0; animation: none; }
.deadlineband .countdown::after { display: none; }
.deadlineband .cd { background: var(--white); border: 1px solid var(--border); box-shadow: none; }
.deadlineband .countdown__label { color: var(--fg-muted); }
.notice--band { background: transparent; border: 0; border-left: 2px solid var(--gg-yellow); border-radius: 0; padding: 2px 0 2px 16px; max-width: 92ch; }
.notice--band .notice__tag { color: var(--warm-700); }
.notice--band p { color: var(--fg-muted); font-size: clamp(.82rem, .3vw + .7rem, .9rem); line-height: 1.5; }
@media (min-width: 1000px) {
  .deadlineband__inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: clamp(28px, 3.5vw, 64px); }
}

@media (min-width: 900px) {
  .hero__inner {
    max-width: none; margin-inline: 0; row-gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "eyebrow   ."
      "title     ."
      "subtitle  ."
      "lede      ."
      "cta       ."
      "ainote    .";
  }
  .hero__eyebrow { white-space: normal; width: auto; max-width: none; letter-spacing: .1em; }
  .hero__inner > * { align-self: start; }
  .hero__title { max-width: none; }
  .hero__body { max-width: min(100%, 66ch); }
  .hero__title { font-size: clamp(1.8rem, 2.6vw, 3rem); }
  .hero__inner::before { grid-column: 1 / 2; }
  .notice--hero { margin-top: 8px; max-width: none; }
  .notice--hero p { max-width: none; }
}
/* Laptop 13" e schermi bassi: il hero deve stare in una schermata */
@media (min-width: 900px) and (max-height: 980px) {
  .hero { padding-top: clamp(24px, 4vh, 56px); padding-bottom: clamp(20px, 3vh, 40px); }
  .hero__inner { row-gap: clamp(12px, 1.8vh, 22px); }
  .hero__title { font-size: clamp(1.6rem, 2.1vw + .6vh, 2.5rem); }
  .hero__lede { font-size: clamp(.96rem, .55vw + .35vh, 1.1rem); }
  .countdown { padding-top: 14px; margin-top: 4px; }
  .cd__num { font-size: clamp(1.5rem, 2vh + .7vw, 2.1rem); }
  .notice--hero { padding: 14px 18px; }
  .notice--hero p { font-size: .86rem; line-height: 1.45; }
}
@media (max-height: 780px) {
  .hero { padding-top: clamp(16px, 6vh, 56px); padding-bottom: clamp(16px, 3vh, 32px); }
  .hero__inner { gap: 16px; }
  .hero__title { font-size: clamp(1.7rem, 3vh + 1.4vw, 2.8rem); }
  .hero__lede { font-size: 1.02rem; }
}
@media (max-height: 620px) {
  .hero__inner { gap: 12px; }
  .hero__title { font-size: clamp(1.5rem, 2.4vh + 1.1vw, 2.2rem); }
  .hero__lede { font-size: .98rem; }
  .notice--hero { padding: 13px 16px; }
  .notice p { font-size: .88rem; line-height: 1.4; }
}

/* ---------------- Laptop 13" (1100–1439px): densità e corpi ridotti ---------------- */
@media (min-width: 1100px) and (max-width: 1439px) {
  :root { --section-y: clamp(44px, 5.4vw, 76px); }
  h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
  h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
  .hero__title { font-size: clamp(1.9rem, 3vw, 2.7rem); }
  .hero__lede { font-size: clamp(.98rem, 1.05vw, 1.14rem); }
  /* le colonne di testo lasciano più aria all'immagine */
  .kd-grid,
  #datos-clave > .wrap > .lede,
  #datos-clave > .wrap > .kd-claim,
  #datos-clave > .wrap > h2 { max-width: 64%; }
  #por-que-ahora > .wrap > *,
  #por-que-ahora > .wrap > .lede,
  #por-que-ahora > .wrap > h2,
  #por-que-ahora > .wrap > p { max-width: 60%; }
  .citybg { width: clamp(280px, 30vw, 420px); }
  .why-stat { padding: 16px 15px; }
  .why-stat__k { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
  .kd { padding: 15px 15px; }
  .step { padding: 16px 16px 15px; }
  .step p, .kd__note, .why-stat__v { font-size: .85rem; }
}
/* altezze ridotte tipiche dei portatili: il hero resta in una schermata */
@media (min-width: 900px) and (max-height: 860px) {
  .hero__inner { gap: 14px; }
  .hero__title { font-size: clamp(1.7rem, 3.4vh + 1.1vw, 2.6rem); }
  .hero__lede { font-size: clamp(.94rem, 1.5vh + .3vw, 1.08rem); }
  .countdown { margin-top: 4px; }
  .notice--hero { padding: 13px 16px; }
  .notice--hero p { font-size: .84rem; line-height: 1.45; }
}

/* ---------------- Secciones ---------------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink-800); color: var(--fg-invert); }
.section--dark .eyebrow--dot { color: var(--fg-invert); }
.section--dark .lede { color: var(--fg-invert); }
.section h2 { max-width: 20ch; }
.section > .wrap > .lede { margin-bottom: 2rem; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }

/* Sección "El activo" — fondo con imagen */
#activo {
  position: relative; overflow: hidden;
  background-color: var(--bg-alt);
}
#activo::before {
  /* il livello è largo quanto l'immagine: così le sfumature partono dal suo bordo reale */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 0; right: 0; width: clamp(420px, 52%, 900px); aspect-ratio: 16 / 9;
  background: url("../assets/min/bg_planta.webp") no-repeat right top / contain;
  opacity: .62;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-composite: intersect;
}
#activo > .wrap { position: relative; z-index: 1; }

.band { position: relative; }
.band--planta { overflow: hidden; background-color: var(--bg-alt); }
.band--planta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/min/bg_activo.webp") no-repeat center top / cover;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
}
.band--planta > .section { position: relative; z-index: 1; background: transparent; }
#activo .thesis__list li,
#activo .card { background: rgba(255,255,255,.86); }

/* Sección "La oportunidad" — cabecera centrada + tessere numeradas */
#oportunidad h2,
#por-que-ahora h2,
#datos-clave h2 { max-width: none; text-wrap: balance; }
#por-que-ahora > .wrap > .lede { max-width: none; }
#datos-clave > .wrap > .lede { max-width: none; }
@media (min-width: 1100px) { #datos-clave > .wrap > .lede { max-width: 92ch; text-wrap: balance; } }
#oportunidad > .wrap > .lede,
#oportunidad > .wrap > .measure { max-width: none; }
@media (min-width: 1100px) {
  #oportunidad > .wrap > .lede { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
}
#oportunidad .cards { counter-reset: opc; margin-top: 40px; }
#oportunidad .card { counter-increment: opc; position: relative; padding-right: 84px; }
#oportunidad .card::after {
  content: counter(opc, decimal-leading-zero);
  position: absolute; top: 20px; right: 24px;
  font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em;
  color: var(--warm-300); font-variant-numeric: tabular-nums; line-height: 1;
}
#oportunidad .callout { text-align: left; }
.op-cta { margin: 32px 0 0; }

/* Por qué ahora — immagine circolare di fondo */
.citybg {
  position: absolute; z-index: 0; pointer-events: none;
  /* figlia della sezione, sotto al .wrap (z-index 1) */
  right: clamp(8px, 2vw, 40px); top: clamp(16px, 3vw, 48px);
  width: clamp(300px, 34vw, 640px); aspect-ratio: 1;
  background: url("../assets/min/bg_ciudad.webp") no-repeat center / contain;
  opacity: .62;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-composite: intersect;
}
@media (max-width: 899px) { .citybg { display: none; } }

/* Por qué ahora — fondo animato: keyline urbane che scorrono */
#proceso {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-900);
  background-image: url("../assets/min/bg_proceso.webp");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}
#proceso::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(20,18,15,.9) 0%, rgba(20,18,15,.72) 45%, rgba(20,18,15,.5) 100%);
}
#proceso > .wrap { position: relative; z-index: 2; }

/* Elemento grafico: anello di archi concentrici */
.ring {
  position: absolute; z-index: 1; pointer-events: none;
  top: 50%; right: clamp(-180px, -6vw, -40px);
  width: clamp(320px, 34vw, 620px); aspect-ratio: 1;
  transform: translateY(-50%);
}
.ring__arc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid transparent;
  animation: ring-spin 30s linear infinite;
}
.ring__arc--1 { border-width: 2px; border-top-color: var(--gg-yellow); border-right-color: rgba(254,196,38,.35); animation-duration: 96s; }
.ring__arc--2 { inset: 9%; border-width: 6px; border-top-color: rgba(254,196,38,.14); border-left-color: var(--gg-yellow); animation-duration: 112s; animation-direction: reverse; }
.ring__arc--3 { inset: 19%; border-width: 1px; border-bottom-color: rgba(255,255,255,.22); border-right-color: rgba(255,255,255,.08); animation-duration: 104s; }
.ring__arc--4 { inset: 30%; border-width: 3px; border-top-color: rgba(184,180,171,.4); animation-duration: 120s; animation-direction: reverse; }

/* varianti su fondo chiaro */
.ring--hero { top: 42%; right: clamp(-220px, -8vw, -60px); width: clamp(300px, 30vw, 560px); opacity: .5; }
.ring--thesis { top: 55%; right: clamp(-260px, -10vw, -80px); width: clamp(280px, 26vw, 480px); opacity: .45; }
.ring--hero .ring__arc--3, .ring--thesis .ring__arc--3 { border-bottom-color: rgba(20,18,15,.18); border-right-color: rgba(20,18,15,.07); }
.ring--hero .ring__arc--4, .ring--thesis .ring__arc--4 { border-top-color: rgba(59,58,54,.32); }

/* Connettori animati: linea tratteggiata + punto che scorre una volta */
.trace { position: relative; display: block; height: 0; }
.trace::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background-image: linear-gradient(90deg, currentColor 0 8px, transparent 8px 16px);
  background-size: 16px 2px; color: var(--warm-300); opacity: .55;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.22,.61,.36,1);
}
.section--dark .trace::before { color: rgba(255,255,255,.28); }
.trace.is-anim::before { transform: scaleX(1); }
.trace__dot {
  position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gg-yellow); opacity: 0;
  box-shadow: 0 0 0 4px rgba(254,196,38,.16);
}
.trace.is-anim .trace__dot { animation: trace-run 2.2s cubic-bezier(.4,0,.2,1) .25s 1 forwards; }
@keyframes trace-run {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: var(--trace-end, 100%); opacity: .9; }
}
.trace--cards { margin-bottom: 18px; }
.trace--tl { margin: 30px 0 -14px; }
.trace--tl .trace__dot { animation-duration: 2.6s; }

/* Sweep di luce sui pannelli scuri */
.sweep {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.sweep::before {
  content: ""; position: absolute; top: -60%; left: -40%; width: 32%; height: 220%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.085), rgba(255,255,255,0));
  transform: rotate(18deg);
  animation: sweep-run 18s linear infinite;
}
.dataroom__panel .sweep::before { animation-duration: 15s; }
@keyframes sweep-run {
  0%   { left: -40%; opacity: 0; }
  8%   { opacity: 1; }
  38%  { opacity: 1; }
  46%  { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}
.dataroom__panel { position: relative; }
.dataroom__panel > *:not(.sweep) { position: relative; z-index: 1; }

/* Tick: disegno dell'icona all'ingresso */
.ticks li::before { clip-path: inset(0 0 0 0); }
.ticks.is-anim li::before { animation: tick-draw .4s ease-out both; }
.ticks.is-anim li:nth-child(2)::before { animation-delay: .07s; }
.ticks.is-anim li:nth-child(3)::before { animation-delay: .14s; }
.ticks.is-anim li:nth-child(4)::before { animation-delay: .21s; }
.ticks.is-anim li:nth-child(5)::before { animation-delay: .28s; }
@keyframes tick-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.ring__dot {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 1px; background: var(--gg-yellow); transform: rotate(45deg);
  box-shadow: 0 0 0 8px rgba(254,196,38,.1);
  animation: ring-pulse 4.5s ease-in-out infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(254,196,38,.08); opacity: .8; }
  50%      { box-shadow: 0 0 0 16px rgba(254,196,38,.03); opacity: 1; }
}
@media (max-width: 899px) { .ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .ring__arc, .ring__dot { animation: none; } }

#proceso h2 { text-wrap: nowrap; max-width: none; }
@media (max-width: 1200px) { #proceso h2 { text-wrap: balance; } }

#por-que-ahora {
  position: relative; overflow: hidden;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(20,18,15,.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(20,18,15,.03) 0 1px, transparent 1px 96px);
  animation: why-grid 40s linear infinite;
}
@keyframes why-grid { to { background-position: 96px 0, 0 96px; } }
#por-que-ahora > .wrap { position: relative; z-index: 1; }

@media (min-width: 900px) {
  #por-que-ahora > .wrap > *,
  #por-que-ahora > .wrap > .lede,
  #por-que-ahora > .wrap > h2,
  #por-que-ahora > .wrap > p { max-width: min(62%, 900px); }
}
@media (min-width: 1500px) {
  #por-que-ahora > .wrap > *,
  #por-que-ahora > .wrap > .lede,
  #por-que-ahora > .wrap > h2,
  #por-que-ahora > .wrap > p { max-width: min(60%, 1080px); }
}
/* il titolo passa sopra l'immagine e sta su una riga sui monitor larghi */
#por-que-ahora > .wrap > h2 { position: relative; z-index: 1; }
/* box giallo e fonti a piena larghezza, oltre il limite riservato all'immagine */
#por-que-ahora > .wrap > .why-hook,
#por-que-ahora > .wrap > .why-sources { max-width: none; position: relative; z-index: 1; }
@media (min-width: 1100px) {
  /* il titolo si ferma prima dell'immagine: cap sullo spazio libero, corpo ridotto per starci su una riga */
  #por-que-ahora > .wrap > h2 {
    max-width: calc(100% - clamp(280px, 30vw, 420px) - 40px);
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
    text-wrap: balance;
  }
}
@media (min-width: 1500px) {
  #por-que-ahora > .wrap > h2 { text-wrap: nowrap; font-size: clamp(1.6rem, 1.9vw, 2.2rem); }
}

/* Por qué ahora — tessere-dato normative */
.why-stats {
  margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.why-stat { background: var(--white); padding: 26px 24px; }
.why-stat__k { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--ink-900); margin: 0 0 .5rem; }
.why-stat__v { margin: 0; color: var(--fg-muted); font-size: .93rem; }
/* Sottotitolo interno della sezione: separa il blocco macroeconomico dai dati
   normativi qui sopra. Serve il margine, altrimenti il titolo si appoggia alla
   fascia delle statistiche e sembra la loro didascalia. */
.why-macro { margin: 40px 0 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 74ch; }
.why-macro + .why-close { margin-top: 10px; }
.why-close { margin: 22px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 74ch; }
.why-close strong { color: var(--ink-900); }
.why-hook {
  margin-top: 24px; padding: 20px 22px;
  background: var(--gg-yellow-tint, #FFF3CE); border: 1px solid var(--gg-yellow);
  border-radius: var(--r-md); line-height: 1.55; color: var(--ink-900);
  font-size: clamp(.92rem, .35vw + .8rem, 1rem);
}
.why-hook strong { font-weight: 800; }
.why-close + .why-close { margin-top: 14px; }
.why-sources { margin: 14px 0 0; font-size: .8rem; color: var(--fg-muted); max-width: 96ch; }

@media (min-width: 700px) { .why-stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-stats { grid-template-columns: repeat(3, 1fr); } }
/* nessuna cella vuota: l'ultima tessera occupa la riga se resta sola */
.why-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1000px) { .why-stat:last-child:nth-child(odd) { grid-column: auto; } }
#por-que-ahora { padding-block: calc(var(--section-y) * .68); }
.why-stat { padding: 20px 18px; }

/* Datos clave — fondo veicoli */
#datos-clave { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 76px); }
#datos-clave .kd-cta { margin-bottom: 0; }
#datos-clave::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  /* livello a tutta banda: l'immagine può scalare in altezza senza essere tagliata dal proprio box */
  inset: 0;
  background: url("../assets/min/bg_vehiculos.webp") no-repeat right center / auto 100%;
  opacity: .62;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, rgba(0,0,0,.5) 66%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, rgba(0,0,0,.5) 66%, #000 80%);
}
#datos-clave > .wrap { position: relative; z-index: 1; }
@media (max-width: 899px) { #datos-clave::before { display: none; } }

/* Datos clave — tessere-dato */
.kd-grid {
  margin-top: 8px; display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.kd { background: var(--white); padding: 24px 22px; }
.kd__ico { width: 52px; height: 52px; object-fit: contain; flex: none; }
.kd__body { min-width: 0; }
.kd__label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 6px; }
.kd__value { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink-900); margin: 0 0 6px; }
.kd__note { font-size: .88rem; color: var(--fg-muted); margin: 0; }
.kd-claim { margin: 30px 0 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); max-width: 44ch; text-wrap: pretty; }
.kd-cta { margin: 24px 0 0; }

@media (min-width: 600px) { .kd-grid { grid-template-columns: 1fr 1fr; } }
/* matrice 2×2 sulla metà sinistra: l'immagine resta leggibile a destra */
@media (min-width: 900px) {
  .kd-grid { grid-template-columns: 1fr 1fr; max-width: min(66.66%, 1100px); }
  #datos-clave > .wrap > .lede,
  #datos-clave > .wrap > .kd-claim,
  #datos-clave > .wrap > h2 { max-width: min(66.66%, 1100px); }
  .kd { padding: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px); }
  .kd__label { font-size: clamp(.64rem, .3vw + .52rem, .72rem); }
  .kd__value { font-size: clamp(1.02rem, .9vw + .6rem, 1.4rem); }
  .kd__note { font-size: clamp(.8rem, .35vw + .68rem, .9rem); }
  .kd-claim { font-size: clamp(1rem, .9vw + .68rem, 1.3rem); }
  .kd-grid { margin-top: 22px; }
  .kd-claim { margin-top: 22px; }
  .kd-cta { margin-top: 20px; }
}

/* Cards */
.cards { margin-top: 8px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: var(--warm-300); transform: translateY(-2px); }
.section--alt .card { background: var(--white); }
.card__title { color: var(--ink); }
.card__title::before { content:""; display:inline-block; width: 20px; height: 3px; background: var(--gg-yellow); border-radius: 2px; margin-right: 10px; vertical-align: middle; }

.callout {
  margin-top: 26px; border-left: 3px solid var(--gg-yellow); background: var(--gg-yellow-tint);
  padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0;
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center;
}
.callout .ico--callout { grid-row: span 2; width: 72px; height: 72px; margin: 0; }
.callout .eyebrow { grid-column: 2; }
.callout > p:not(.eyebrow) { grid-column: 2; max-width: none; }
.callout .eyebrow { margin-bottom: .4rem; }
.callout p:last-child { margin: 0; }

/* Bloque exclusiones */
.list-block--excl { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 26px; }
.crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .crosses { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 56px); } }
.crosses li { position: relative; padding-left: 26px; line-height: 1.5; color: var(--fg-muted); }
/* Trattino neutro: segnala l'esclusione senza allarmare */
.crosses li::before {
  content: ""; position: absolute; left: 2px; top: .72em; width: 13px; height: 2px;
  background: var(--warm-300); border-radius: 1px;
}

/* Listas con tick */
.list-block__title { margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gg-yellow); border-bottom: 2.5px solid var(--gg-yellow);
  transform: rotate(-45deg);
}

/* Iconos de línea (set Gobid) */
.ico { width: 60px; height: 60px; object-fit: contain; flex: none; }
.ico--block { width: 56px; height: 56px; margin-bottom: 6px; }
.ico--callout { width: 64px; height: 64px; margin-bottom: 2px; }

.activo-cta { margin: 34px 0 0; }
.thesis--strategic { margin-top: 40px; }
/* le card dei segmenti reggono due frasi: altezza uniforme sulla riga */
.segments { align-items: stretch; }
.segment { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.segment p { margin: 0; }

/* Tesis */
.thesis { margin-top: 44px; position: relative; overflow: hidden; }
.thesis__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; perspective: 1400px; }
.thesis__list li {
  position: relative; border: 1px solid var(--border);
  border-top: 2px solid var(--gg-yellow); border-radius: var(--r-lg); padding: 24px 22px 22px;
  background: linear-gradient(180deg, #FFFFFF, var(--bg-alt) 55%, var(--warm-100));
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(20,18,15,.06),
    0 14px 28px -14px rgba(20,18,15,.28);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.thesis__list li:hover {
  transform: translateY(-5px);
  border-color: var(--warm-300); border-top-color: var(--gg-yellow);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(20,18,15,.06),
    0 24px 40px -16px rgba(20,18,15,.36);
}
@media (prefers-reduced-motion: reduce) { .thesis__list li, .thesis__list li:hover { transform: none; transition: none; } }
.thesis__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.thesis__head .thesis__num { margin-bottom: 0; }
.thesis__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--gg-yellow); color: var(--ink); font-weight: 900; font-size: 1.1rem; margin-bottom: 14px; }
.thesis h4 { margin-bottom: .35em; }
.thesis p { margin: 0; color: var(--fg-muted); }

/* Segmentos (a quién va dirigido) — tessere numeradas */
.segments { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 26px; counter-reset: seg; }
.segment {
  counter-increment: seg; background: var(--white);
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 6px; padding: 22px 20px;
}
.segment::before {
  content: counter(seg, decimal-leading-zero); grid-row: 1 / 3; align-self: start;
  font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--warm-300); line-height: 1.1;
}
.segment h3 { grid-column: 2; font-size: 1.08rem; margin: 0; }
.segment p { grid-column: 2; margin: 0; color: var(--fg-muted); }

/* Steps (proceso) — fasi + tessere-passo con connettori */
.phases { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 14px; }
.phase { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 2px solid var(--gg-yellow); }
.phase--b { border-top-color: var(--warm-700); }
.phase__tag { font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--gg-yellow); padding: 5px 10px; border-radius: var(--r-sm); }
.phase--b .phase__tag { background: var(--warm-700); color: var(--white); }
.phase__label { font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--fg-invert-muted); }

.steps { list-style: none; counter-reset: s; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--border-dark);
  border-top: 2px solid var(--gg-yellow); border-radius: var(--r-md); padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 42%, rgba(0,0,0,.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 1px 0 rgba(255,255,255,.05),
    0 18px 34px -18px rgba(0,0,0,.85);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(254,196,38,.34); border-top-color: var(--gg-yellow);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 26px 46px -20px rgba(0,0,0,.95);
}
.step--phase-b:hover { border-color: rgba(184,180,171,.4); border-top-color: var(--warm-300); }
@media (prefers-reduced-motion: reduce) { .step, .step:hover { transform: none; transition: none; } }
.step--phase-b { border-top-color: var(--warm-700); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--gg-yellow); color: var(--ink); font-weight: 900; font-size: 1.15rem; flex: none; }
.step--phase-b .step__num { background: var(--warm-100); color: var(--ink-900); }
.step__phase { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.step__body { min-width: 0; display: grid; gap: 8px; }
.step h3 { color: var(--white); margin: 0; font-size: 1.1rem; }
.step p { color: var(--fg-invert-muted); margin: 0; font-size: .95rem; }
.step__meta {
  justify-self: start; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: var(--fg-invert); background: rgba(255,255,255,.06);
  border: 1px solid var(--border-dark); border-radius: var(--r-sm); padding: 7px 11px;
}
.steps__cta { margin: 0 0 40px; }

@media (max-width: 999px) {
  .phases { display: none; }
}
@media (min-width: 1000px) {
  .step__phase { display: none; }
  .phases { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
  .step { grid-template-columns: 1fr; position: relative; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -13px; width: 9px; height: 9px;
    border-top: 3px solid var(--gg-yellow); border-right: 3px solid var(--gg-yellow);
    transform: rotate(45deg); z-index: 2;
  }
  .step:nth-child(2)::after { border-color: var(--warm-300); }
  .step__num { margin-bottom: 4px; }
}

/* Timeline — calendario y plazos */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.tl { position: relative; padding: 0 0 26px 34px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--warm-200); }
.tl__node { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--warm-300); }
.tl__node { transition: transform .2s ease; }
.tl.is-current .tl__node { border-color: var(--warm-700); }
.tl.is-key .tl__node {
  background: var(--gg-yellow); border-color: var(--gg-yellow);
  transform: scale(1.45); box-shadow: 0 0 0 6px rgba(254,196,38,.18);
}
.tl.is-key .tl__title { font-weight: 900; }
.tl__date { display: block; font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
.tl.is-key .tl__date { color: var(--ink-900); }
.tl__title { font-size: 1.05rem; margin: 0 0 .2em; }
.tl__note { margin: 0; color: var(--fg-muted); font-size: .93rem; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 24px; }
  .tl { padding: 40px 12px 0 0; }
  .tl:not(:last-child)::before { left: 22px; right: -24px; top: 12px; bottom: auto; width: auto; height: 2px; }
  .tl__node { top: 4px; left: 0; }
}

/* Data room — trio di mini-card */
.dr-mini-row { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.dr-mini { background: var(--white); padding: 26px 24px; display: grid; gap: 12px; justify-items: start; align-content: start; }
.dr-mini__ico { width: 30px; height: 30px; color: var(--ink-900); }
.dr-mini__title { font-size: 1.05rem; margin: 0; }
.dr-mini__cta {
  appearance: none; border: 0; background: none; padding: 10px 0 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .95rem; color: var(--ink-900);
  text-decoration: none; border-bottom: 2px solid var(--gg-yellow); min-height: 44px;
  display: inline-flex; align-items: center;
}
.dr-mini__cta:hover { color: var(--warm-700); border-bottom-color: var(--ink-900); }
@media (min-width: 800px) { .dr-mini-row { grid-template-columns: repeat(3, 1fr); } }

/* Data room — área reservada */
.dataroom { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.dataroom__panel { position: relative; overflow: hidden; background: var(--ink-900); color: var(--fg-invert); padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(90px, 12vw, 170px); text-align: center; }
/* immagine come fondo del pannello, ancorata in basso */
.dataroom__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/min/bg_dataroom.webp") no-repeat center bottom / 100% auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 72%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 72%, #000 100%);
}
.dataroom__panel .eyebrow { color: var(--gg-yellow); }
.dataroom__title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .4em; }
.dataroom__lede { color: var(--fg-invert-muted); max-width: 52ch; margin: 0 auto 24px; }
.dataroom__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border-dark); font-weight: 700; font-size: .95rem; }
.dataroom__contacts a { color: var(--fg-invert); text-decoration: none; padding-block: 10px; }
.dataroom__contacts a:hover { color: var(--gg-yellow); text-decoration: underline; }
.btn--outline-light {
  background: var(--white); color: var(--ink-900); border: 2px solid var(--white);
}
.btn--outline-light:hover { background: var(--gg-yellow); color: var(--ink); border-color: var(--gg-yellow); transform: translateY(-1px); }
.btn--outline-light:active { transform: translateY(0); }

.dataroom__cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.dataroom__card { background: var(--white); padding: 26px 24px; }
.dataroom__card h4 { font-size: 1.1rem; margin: 0 0 .35em; }
.dataroom__card p:last-child { margin: 0; color: var(--fg-muted); font-size: .95rem; }

/* una sola card: nessuna cella vuota, occupa tutta la riga */
.dataroom__cards { grid-template-columns: 1fr; }

.process-facts { margin-top: 8px; perspective: 1200px; }
.fact {
  position: relative;
  border: 1px solid var(--border-dark);
  border-top-color: rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 42%, rgba(0,0,0,.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 1px 0 rgba(255,255,255,.05),
    0 18px 34px -18px rgba(0,0,0,.85);
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.fact::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--gg-yellow), rgba(254,196,38,.15) 55%, transparent);
  opacity: .55; transition: opacity .3s ease;
}
.fact:hover {
  transform: translateY(-5px) rotateX(2.5deg);
  border-color: rgba(254,196,38,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 26px 46px -20px rgba(0,0,0,.95);
}
.fact:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fact, .fact:hover { transform: none; transition: none; } }
.fact .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gg-yellow); }
.fact .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 1px; transform: rotate(45deg); background: var(--gg-yellow); flex: none; }
.fact__lead { font-size: clamp(1.28rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.01em; color: var(--white); margin: 0 0 .5rem; }
.fact__note { color: var(--fg-invert-muted); font-size: .95rem; margin: 0; }

.statband { background: var(--bg); padding: clamp(28px, 3.5vw, 48px) 0; }
.statband .stats { margin-top: 0; }

/* Tessere-dato (cifras aprobadas) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-top: 40px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--white); padding: clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 24px); }
.stat__num { display: block; font-size: clamp(1.9rem, 2.4vw + 1rem, 3.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: var(--ink-900); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat__label { display: block; color: var(--fg-muted); font-size: clamp(.86rem, .3vw + .74rem, .95rem); text-wrap: pretty; }

/* Contatti — split modulo chiamata + contatti diretti */
.contact-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
@media (min-width: 1000px) {
  /* ogni box prende la propria altezza: nessun vuoto da stretch */
  .contact-grid > .dataroom,
  .contact-grid > .callcard { height: auto; }
}
.contact-grid > .dataroom { margin-top: 0; }
.contact-grid > .callcard { margin-top: 0; }

/* contatti diretti: testo libero, senza box */
.contact-direct { margin: 22px 0 0; display: grid; gap: 6px; max-width: 90ch; color: var(--fg-muted); font-size: clamp(.86rem, .3vw + .74rem, .95rem); }
.contact-direct a { color: var(--ink-900); font-weight: 700; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
.callcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); padding: clamp(22px, 3vw, 34px); }
.callcard__title { margin: 0 0 .4em; }
.callcard__lede { color: var(--fg-muted); margin: 0; max-width: 60ch; }
.callcard .form { margin-top: 22px; }
.form__grid--2 { grid-template-columns: 1fr; }

@media (min-width: 700px) { .form__grid--2 { grid-template-columns: 1fr 1fr; } }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.6); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: modal-in .3s cubic-bezier(.16,1,.3,1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px; background: var(--ink-900); color: var(--fg-invert); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal__title { display: flex; align-items: center; gap: 10px; color: var(--white); margin: 0 0 2px; font-size: 1.25rem; }
.modal__title-ico { width: 22px; height: 22px; flex: none; color: var(--gg-yellow); }
.modal__sub { margin: 0; color: var(--fg-invert-muted); font-size: .82rem; }
.modal__close {
  flex: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: rgba(255,255,255,.12); color: var(--white);
  transition: background .15s ease, color .15s ease;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--gg-yellow); color: var(--ink); }
.modal__body { padding: 28px 28px 0; display: grid; gap: 18px; }
.modal__body p { margin: 0; }
.modal__steps { display: grid; gap: 10px; font-size: .94rem; line-height: 1.6; }
.modal__steps a { color: var(--gg-yellow-ink); font-weight: 700; text-decoration: underline; }
.modal__foot { padding: 20px 28px 28px; }
/* CTA unica a piena larghezza: i testi tradotti sono lunghi e .btn è nowrap */
.modal__cta {
  width: 100%; border-radius: var(--r-md); padding: 20px 32px; font-size: 1.06rem;
  white-space: normal; text-align: center;
}
/* Senza misure esplicite l'SVG si dilata a riempire il flex del bottone */
.modal__cta svg { width: 20px; height: 20px; flex: none; }
/* Su schermi stretti la CTA andrebbe a capo: si stringe come fa il btn-xl di moncaro */
@media (max-width: 560px) {
  .modal__head { padding: 20px; }
  .modal__body { padding: 20px 20px 0; }
  .modal__foot { padding: 16px 20px 20px; }
  .modal__cta { padding: 16px 20px; font-size: .95rem; }
}
.reqbox { border: 1px solid rgba(254,196,38,.45); border-radius: 12px; background: var(--gg-yellow-tint); padding: 18px 20px; }
.reqbox__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--gg-yellow-ink); }
.reqbox__title svg { width: 18px; height: 18px; flex: none; }
.reqbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; line-height: 1.5; color: var(--fg); }
.reqbox__list li { display: flex; align-items: flex-start; gap: 10px; }
.reqbox__list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gg-yellow-ink); }
body.modal-open { overflow: hidden; }

/* Variante con iframe (testi legali serviti da comparsa.php).
   Ha un'altezza propria invece di adattarsi al contenuto perche' un iframe non
   ha contenuto da misurare: senza height collasserebbe all'altezza di default
   di un iframe. E non scorre il dialogo, scorre l'iframe: intestazione e tasto
   di chiusura devono restare visibili mentre si legge il documento.
   Piu' largo del modale normale (940 contro 620) perche' dentro c'e' .popup1
   del CMS, che e' impaginato su 800px. */
.modal__dialog--frame {
  max-width: 940px; height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
/* Barra col solo tasto di chiusura: il titolo del documento lo scrive gia'
   comparsa.php dentro l'iframe, ripeterlo qui sopra lo mostrava due volte.
   Resta nel DOM per aria-labelledby, solo invisibile (.u-sr-only). */
.modal__dialog--frame .modal__head { align-items: center; padding: 12px 14px; }
.modal__frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--white); }

/* ---------------- Formulario ---------------- */
.form { margin-top: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; max-width: 100%; min-width: 0;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--fg); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gg-yellow); box-shadow: var(--focus); }
.field textarea { resize: vertical; }
.field__hint { color: var(--fg-muted); font-size: .82rem; }
.field__err { color: var(--danger); font-size: .82rem; min-height: 1em; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field--check { flex-direction: column; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .92rem; cursor: pointer; }
.check { padding-block: 6px; min-height: 44px; align-content: center; }
.check input { margin-top: 2px; width: 28px; height: 28px; min-height: 28px; accent-color: var(--gg-yellow); flex: none; }
.check a { text-decoration: underline; padding-block: 8px; display: inline-block; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 20px; }
.form__fallback { margin: 0; font-size: .88rem; color: var(--fg-muted); }
.form__fallback a { color: var(--fg); text-decoration: underline; display: inline-block; padding-block: 10px; }
.form__status { margin-top: 16px; font-weight: 700; }
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--danger); }

/* ---------------- FAQ ---------------- */
#faq > .wrap { max-width: var(--maxw); }
/* dentro la banda condivisa le due sezioni non raddoppiano il padding */
.band--planta #calendario { padding-bottom: 0; }
.band--planta #faq { padding-top: clamp(32px, 4vw, 56px); }
#faq h2 { max-width: none; }
@media (min-width: 700px) { #faq h2 { white-space: nowrap; } }
.accordion { margin-top: 24px; display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) {
  .accordion { grid-template-columns: 1fr 1fr; gap: 14px clamp(20px, 2.5vw, 40px); }
}
.qa { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); padding: 0 20px; }
.qa summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 800; font-size: 1.4rem; color: var(--gg-yellow); line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 18px; color: var(--fg-muted); }

/* ---------------- Gobid.es / quién gestiona ---------------- */
.eyebrow--rule { display: inline-flex; align-items: center; gap: 12px; color: var(--warm-700); }
.eyebrow--rule::before { content: ""; width: 26px; height: 3px; background: var(--gg-yellow); border-radius: 1px; flex: none; }

.qs { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.qs__main h2 { max-width: 26ch; }
.qs__body { max-width: 56ch; color: var(--fg); }
.qs__cta { margin: 24px 0 0; }
.qs__panel {
  background: var(--ink-900); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 32px); display: grid; justify-items: center; align-content: center; gap: 16px;
}
.qs__mark { background: var(--white); border-radius: var(--r-md); padding: 14px 20px; display: block; }
.qs__mark img { height: 44px; width: auto; }
.qs__mark--group { margin-top: 4px; }
.qs__mark--group img { width: clamp(190px, 22vw, 280px); height: auto; }
.qs__badge { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-invert-muted); text-align: center; }

.qs__note { margin: 30px 0 0; font-size: .88rem; font-weight: 700; color: var(--fg-muted); max-width: 80ch; }

.qs-facts { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.qs-fact { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 24px; }
.qs-fact__num { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 900; letter-spacing: -.03em; color: var(--ink-900); margin: 0 0 .35rem; }
.qs-fact h3 { font-size: 1rem; margin: 0 0 .5em; }
.qs-fact p:last-child { margin: 0; color: var(--fg-muted); font-size: .92rem; }

@media (min-width: 900px) {
  .qs { grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 80px); }
  .qs__panel { margin-top: 46px; align-self: start; }
  .qs-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- Contacto ---------------- */
.contacts { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 12px; }
.contact { border-top: 3px solid var(--gg-yellow); padding-top: 16px; }
.contact h3 { margin-bottom: .1em; }
.contact__role { color: var(--fg-muted); margin: 0 0 .6rem; font-size: .92rem; }
.contact p { margin: 0 0 .3rem; }
.contact a { text-decoration: none; display: inline-block; padding-block: 10px; }
.contact a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.footer__badges { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border-dark); }
.footer__badges[hidden] { display: none; }
.fbadge { display: flex; align-items: flex-start; gap: 14px; }
.fbadge__ico { width: 26px; height: 26px; color: var(--gg-yellow); flex: none; }
.fbadge__title { margin: 0 0 4px; font-weight: 800; color: var(--white); font-size: .98rem; }
.fbadge__note { margin: 0; color: var(--fg-invert-muted); font-size: .87rem; }
@media (min-width: 800px) { .footer__badges { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.hero__inner > .notice__ai { margin: 0 0 4px; order: -1; }
.notice__ai { grid-area: ainote; margin: 10px 0 0; font-size: .82rem; font-style: italic; color: var(--fg-muted); }

.site-footer { background: var(--ink-900); color: var(--fg-invert); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer__payoff { font-size: 1.15rem; font-weight: 700; color: var(--fg-invert); margin: 0; }
.footer__payoff strong { color: var(--gg-yellow); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin: 14px 0; }
.footer__links a { color: var(--fg-invert); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid transparent; padding-block: 10px; }
.footer__links a:hover { border-bottom-color: var(--gg-yellow); }
.footer__entity { color: var(--fg-invert-muted); font-size: .82rem; margin: 0; }

/* ---------------- Responsive ---------------- */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .segments { grid-template-columns: 1fr 1fr; }
  .segments .segment:last-child { grid-column: 1 / -1; }
  .segment { padding: 26px 24px; }
  .thesis__list { grid-template-columns: repeat(3, 1fr); }
  /* liste da 4 punti: 2×2, così nessuna card resta orfana su una riga */
  .thesis__list:has(> li:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.1fr 1.4fr; align-items: start; }
}
/* Móvil / tablet: nav en panel desplegable + hamburger */
@media (max-width: 1119px) {
  .nav-toggle { display: inline-flex; }
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 6px var(--gutter) 14px; box-shadow: var(--sh-md);
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .header__nav a:last-child { border-bottom: 0; }
}
@media (max-width: 559px) {
  .header__cta { display: none; }   /* la CTA principal vive en el hero; evita apretar el header */
}
@media (min-width: 1120px) {
  .header__nav { display: flex; }
}

@media (max-width: 559px) {
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; }
  .steps__cta .btn,
  .kd-cta .btn,
  .activo-cta .btn,
  .op-cta .btn,
  .qs__cta .btn { width: 100%; white-space: normal; text-align: center; padding-inline: 16px; }
  .hero__deadline { font-size: .92rem; }
  .header__logo img { height: 28px; }
  .countdown__units { gap: 6px; }
  .cd { min-width: 0; padding: 10px 8px 8px; }
  .cd__unit { font-size: .72rem; letter-spacing: .05em; }
  .segment { padding: 20px 16px; column-gap: 14px; }
  .segment::before { font-size: 1.35rem; }
  .contact a { display: inline-block; padding-block: 6px; }
  /* Su telefono il documento legale e' lungo: gli si da' tutta l'altezza utile. */
  .modal { padding: 10px; }
  .modal__dialog--frame { height: calc(100vh - 20px); }
  .modal__dialog--frame .modal__head { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Titoli delle card: una sola misura in tutta la pagina (riferimento: profilo dell'opportunità) */
.kd__value,
.thesis__list h4,
.step h3,
.tl__title,
.segment h3,
.qs-fact h3,
.list-block__title { font-size: clamp(1rem, .55vw + .78rem, 1.2rem); }

/* Titoli dei pannelli: un gradino sopra le card, mai sopra l'h2 di sezione */
.dataroom__title,
.callcard__title,
.modal__title { font-size: clamp(1.15rem, .8vw + .88rem, 1.45rem); }

/* Testo corrente delle card: una sola misura */
.kd__note,
.thesis__list p,
.step p,
.tl__note,
.segment p,
.why-stat__v,
.dataroom__lede,
.dataroom__contacts,
.callcard__lede,
.qa summary { font-size: clamp(.86rem, .3vw + .74rem, .95rem); }
