/* ============================================================================
   Multidialogo — Content pages (DS5)
   Layout per le pagine di contenuto ricostruite da produzione
   (perche-integrare, aggiornamenti, multicerta-manuale-app, cookie-policy,
   recensioni, iscriviti-alla-newsletter, archivio-eventi, replica).
   Usa i token del Design System (colors_and_type.css / ds-body.css).
   Nessuno stile inline nelle pagine: tutto qui.
   ============================================================================ */

.cp { background: #fff; }
.cp-wrap { max-width: 1080px; margin: 0 auto; }
.cp-narrow { max-width: 820px; margin: 0 auto; }

/* ---- hero ---- */
.cp-hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.cp-kicker {
  display: inline-block; font-family: var(--font-sans); font-weight: 800; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.cp-hero h1 {
  font-family: var(--font-sans); font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--md-principale); margin: 0 auto 18px; max-width: 18ch;
}
.cp-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--md-testo);
  max-width: 60ch; margin: 0 auto;
}
.cp-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---- sezioni ---- */
.cp-section { padding: clamp(32px, 5vw, 64px) 0; }
.cp-section.alt { background: var(--md-soft-gray); }
.cp-section h2 {
  font-family: var(--font-sans); font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--md-principale); margin: 0 0 12px;
}
.cp-section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.cp-section-head p { color: var(--md-testo); font-size: 1.05rem; line-height: 1.6; margin: 0; }

/* ---- griglia feature (icona + titolo + testo) ---- */
.cp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cp-features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cp-feature {
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.cp-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cp-feat-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--md-soft-bkg); color: var(--accent); margin-bottom: 18px;
}
.cp-feat-ic svg { width: 26px; height: 26px; }
.cp-feature h3 {
  font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em;
  color: var(--md-principale); margin: 0 0 8px;
}
.cp-feature p { font-size: .95rem; line-height: 1.55; color: var(--md-testo); margin: 0; }

/* ---- step numerati ---- */
.cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: cpstep; }
.cp-steps.stack { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.cp-step {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 26px 26px; box-shadow: var(--shadow-sm);
}
.cp-step-n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-weight: 900; display: grid; place-items: center;
  font-size: 1rem; margin-bottom: 16px;
}
.cp-step h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.05rem; color: var(--md-principale); margin: 0 0 7px; }
.cp-step p { font-size: .95rem; line-height: 1.55; color: var(--md-testo); margin: 0; }

/* ---- changelog / aggiornamenti ---- */
.cp-changelog { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.cp-rel {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.cp-rel-date {
  flex: none; font-family: var(--font-sans); font-weight: 800; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--md-blu-multi); border-radius: 999px;
  padding: 7px 14px; white-space: nowrap;
}
.cp-rel h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.05rem; color: var(--md-principale); margin: 2px 0 0; }

/* ---- prosa lunga (cookie policy, manuale) ---- */
.cp-prose { max-width: 820px; margin: 0 auto; }
.cp-prose h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.cp-prose h2:first-child { margin-top: 0; }
.cp-prose p { font-size: 1rem; line-height: 1.7; color: var(--md-testo); margin: 0 0 16px; }
.cp-prose a { color: var(--accent); font-weight: 600; }
.cp-prose ul { margin: 0 0 16px; padding-left: 22px; }
.cp-prose li { font-size: 1rem; line-height: 1.7; color: var(--md-testo); margin-bottom: 6px; }
.cp-note {
  font-size: .85rem; color: var(--fg-muted); border-left: 3px solid var(--border);
  padding: 4px 0 4px 16px; margin: 0 0 28px;
}

/* ---- CTA band ---- */
.cp-cta {
  text-align: center; background: var(--md-soft-bkg); border-radius: 28px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); max-width: 900px; margin: 0 auto;
}
.cp-cta h2 { margin-bottom: 12px; }
.cp-cta p { color: var(--md-testo); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; margin: 0 auto 24px; }

/* ---- newsletter (form statico) ---- */
.cp-form { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: 24px; padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-md); }
.cp-field { margin-bottom: 18px; }
.cp-field label { display: block; font-family: var(--font-sans); font-weight: 700; font-size: .85rem; color: var(--md-principale); margin-bottom: 7px; }
.cp-field input {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 1rem; padding: 13px 15px;
  border-radius: 13px; border: 1px solid var(--border); background: #fff; color: var(--md-principale);
}
.cp-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,106,43,.12); }
.cp-consent { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.cp-consent legend { font-size: .85rem; font-weight: 600; color: var(--md-principale); padding: 0 6px; }
.cp-consent label { font-size: .9rem; color: var(--md-testo); margin-right: 18px; display: inline-flex; align-items: center; gap: 6px; }
.cp-consent .row { margin-top: 8px; }

/* ---- evento (archivio-eventi) ---- */
.cp-event { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md); }
.cp-event-media { aspect-ratio: 4/3; background: var(--md-soft-gray); }
.cp-event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-event-body { padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(28px, 4vw, 44px) 0; }
.cp-event-body p { font-size: 1.05rem; line-height: 1.6; color: var(--md-testo); margin: 0 0 22px; }
.cp-event-body .cp-actions { justify-content: flex-start; margin-top: 0; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .cp-features, .cp-features.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cp-steps { grid-template-columns: 1fr; }
  .cp-event { grid-template-columns: 1fr; }
  .cp-event-body { padding: 0 28px 32px; }
}
@media (max-width: 560px) {
  .cp-features, .cp-features.cols-3 { grid-template-columns: 1fr; }
  .cp-rel { flex-direction: column; gap: 10px; }
}
