/* ============================================================
   CRA.HTML — Stili specifici di pagina
   ============================================================ */
body {
  background: var(--eng-bg-light);
}
/* ── LAYOUT MAIN ────────────────────────────────────────────── */
body main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
body .page-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eng-accent);
  margin-bottom: 0.8rem;
}

body main h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--eng-text);
}

body main h1 span {
  background: linear-gradient(135deg, var(--eng-accent) 0%, var(--eng-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body .page-intro {
  font-size: 17px;
  color: var(--eng-text-light);
  max-width: 680px;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--eng-border);
  line-height: 1.6;
}

/* ── CARDS ──────────────────────────────────────────────────── */
body .card {
  background: var(--eng-white);
  border: 1px solid var(--eng-border);
  border-radius: 12px;
  padding: 2rem 2.4rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body .card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--eng-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

body .card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: var(--eng-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

body .card p {
  color: var(--eng-text-light);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

body .card p:last-child { margin-bottom: 0; }
body .card strong { color: var(--eng-text); font-weight: 600; }
body .card a { color: var(--eng-accent); text-decoration: none; }
body .card a:hover { text-decoration: underline; }

/* ── TIMELINE ───────────────────────────────────────────────── */
body .timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

body .tl-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

body .tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}

body .tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 113, 184, 0.1);
  border: 2px solid var(--eng-accent);
  color: var(--eng-accent);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body .tl-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--eng-border);
  margin: 4px 0;
}

body .tl-content {
  padding-bottom: 1.6rem;
  flex: 1;
}

body .tl-date {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--eng-accent);
  margin-bottom: 0.2rem;
}

body .tl-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--eng-text);
  margin-bottom: 0.3rem;
}

body .tl-desc {
  font-size: 14px;
  color: var(--eng-text-light);
  line-height: 1.55;
}

/* ── OBLIGATIONS GRID ───────────────────────────────────────── */
body .oblig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

body .oblig-item {
  background: rgba(0, 113, 184, 0.04);
  border: 1px solid rgba(0, 113, 184, 0.14);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

body .oblig-item strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--eng-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

body .oblig-item span {
  font-size: 13px;
  color: var(--eng-text-light);
  line-height: 1.5;
}

/* ── MAPPING TABLE ──────────────────────────────────────────── */
body .mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 0.75rem;
}

body .mapping-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eng-text-grey);
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--eng-border);
}

body .mapping-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--eng-border);
  vertical-align: top;
}

body .mapping-table tr:last-child td { border-bottom: none; }

body .mapping-table td:first-child {
  color: var(--eng-text);
  font-weight: 600;
  white-space: nowrap;
}

body .mapping-table td:last-child { color: var(--eng-text-light); }

body .badge-yes {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: var(--atenys-updates);
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* ── CALLOUT ────────────────────────────────────────────────── */
body .callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(234, 88, 12, 0.04);
  border: 1px solid rgba(234, 88, 12, 0.18);
  border-left: 4px solid var(--atenys-cve);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-top: 0.75rem;
}

body .callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

body .callout p {
  font-size: 14px;
  color: var(--eng-text-light);
  margin: 0;
}

body .callout strong { color: var(--eng-text); }

/* ── CTA BANNER ─────────────────────────────────────────────── */
body .cta-banner {
  background: var(--eng-bg-darker);
  border-radius: 12px;
  padding: 2.4rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

body .cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,113,184,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body .cta-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--eng-white);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

body .cta-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

body .cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Bottone ghost su dark nel banner */
body .cta-banner .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: var(--eng-white);
}

body .cta-banner .btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

/* ── FOOTER PAGINE INTERNE ──────────────────────────────────── */
body footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 5%;
  font-size: 13px;
  color: var(--eng-text-light);
  border-top: 1px solid var(--eng-border);
  background: var(--eng-white);
}

body footer a {
  color: var(--eng-text-light);
  text-decoration: none;
}

body footer a:hover { color: var(--eng-accent); }