/*
Theme Name: DirettivoPRO Site
Theme URI: https://www.direttivopro.it/
Author: OpenAI
Description: Tema leggero e coerente con la web app per DirettivoPRO. Non modifica api/, app/ o config/.
Version: 1.0.1
Text Domain: direttivopro-site
*/

:root {
  --dp-bg: #0b1220;
  --dp-surface: #ffffff;
  --dp-surface-2: #f5f7fb;
  --dp-line: #d9e2f0;
  --dp-text: #708090;
  --dp-muted: #475569;
  --dp-primary: #2563eb;
  --dp-primary-2: #1d4ed8;
  --dp-accent: #38bdf8;
  --dp-success: #16a34a;
  --dp-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --dp-radius: 24px;
  --dp-radius-sm: 16px;
  --dp-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dp-text);
  background: linear-gradient(180deg, #eff4ff 0%, #f7f9fc 180px, #f7f9fc 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.72; color: var(--dp-muted); margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.2rem; color: var(--dp-muted); }
li { margin-bottom: 0.55rem; }
h1, h2, h3, h4 {
  color: var(--dp-text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.dp-container {
  width: min(calc(100% - 32px), var(--dp-container));
  margin: 0 auto;
}

.dp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(217, 226, 240, 0.7);
}
.dp-site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--dp-text);
}
.dp-brand__badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-accent));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}
.dp-brand__name { font-size: 1.05rem; }
.dp-brand__sub { display: block; font-size: .78rem; color: var(--dp-muted); font-weight: 600; }

.dp-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dp-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #1e293b;
  font-weight: 600;
}
.dp-nav a:hover,
.dp-nav a.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--dp-primary-2);
}

.dp-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s ease;
}
.dp-button--primary {
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-primary-2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
}
.dp-button--primary:hover { transform: translateY(-1px); }
.dp-button--secondary {
  background: #fff;
  color: var(--dp-primary-2);
  border-color: rgba(37, 99, 235, 0.16);
}
.dp-button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.dp-main { min-height: 60vh; }
.dp-section { padding: 88px 0; }
.dp-section--tight { padding: 64px 0; }
.dp-section--dark {
  background: radial-gradient(circle at top left, #1b3a7a 0%, #0c1530 48%, #0b1220 100%);
  color: #fff;
}
.dp-section--dark p,
.dp-section--dark li,
.dp-section--dark .dp-eyebrow { color: rgba(255,255,255,.78); }
.dp-section--dark h1,
.dp-section--dark h2,
.dp-section--dark h3,
.dp-section--dark h4,
.dp-section--dark strong { color: #fff; }
.dp-section--surface { background: var(--dp-surface); }

.dp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dp-primary-2);
  margin-bottom: 18px;
}
.dp-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-accent));
}

.dp-hero {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 38px;
  align-items: center;
}
.dp-hero__lead { font-size: 1.1rem; max-width: 690px; }
.dp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.dp-hero__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dp-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .12);
  color: #0f172a;
  font-weight: 600;
}
.dp-chip--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}


.dp-visual-stack {
  position: relative;
  display: grid;
  gap: 18px;
}
.dp-visual-photo {
  position: absolute;
  right: -12px;
  top: 18px;
  width: 42%;
  max-width: 220px;
  padding: 10px;
  z-index: 3;
  border-radius: 24px;
}
.dp-visual-photo img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.dp-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217, 226, 240, .9);
  border-radius: 30px;
  box-shadow: var(--dp-shadow);
  padding: 20px;
}
.dp-appshot {
  position: relative;
  z-index: 2;
  margin-top: 0;
  overflow: hidden;
  min-height: 540px;
  background: linear-gradient(160deg, #0f172a 0%, #102448 40%, #1846a5 100%);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
}
.dp-appshot__window {
  background: #fff;
  border-radius: 22px;
  min-height: 500px;
  padding: 18px;
}
.dp-appshot__topbar { display: flex; gap: 8px; margin-bottom: 18px; }
.dp-appshot__dot { width: 10px; height: 10px; border-radius: 50%; background: #dbe4f2; }
.dp-appshot__layout { display: grid; grid-template-columns: 210px 1fr; gap: 16px; }
.dp-appshot__sidebar,
.dp-appshot__content,
.dp-appshot__card {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}
.dp-appshot__sidebar { padding: 16px; display: grid; gap: 12px; }
.dp-appshot__navitem { height: 18px; border-radius: 999px; background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(56,189,248,.15)); }
.dp-appshot__content { padding: 16px; display: grid; gap: 16px; }
.dp-appshot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dp-appshot__card { min-height: 104px; padding: 14px; }
.dp-appshot__line { height: 12px; border-radius: 999px; background: #dbe5f3; margin-bottom: 10px; }
.dp-appshot__line--strong { background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(56,189,248,.55)); }

.dp-grid-2,
.dp-grid-3,
.dp-grid-4 { display: grid; gap: 24px; }
.dp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-card {
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  padding: 28px;
  box-shadow: var(--dp-shadow);
}
.dp-card--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.dp-card--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: none;
}
.dp-card--dark p,
.dp-card--dark li { color: rgba(255,255,255,.78); }
.dp-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(56,189,248,.18));
  color: var(--dp-primary-2);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.dp-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 24px;
}
.dp-stat strong { display: block; font-size: 2rem; color: #fff; margin-bottom: 8px; }
.dp-stat span { color: rgba(255,255,255,.76); }

.dp-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dp-checklist li {
  position: relative;
  padding-left: 34px;
  margin: 0;
}
.dp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,163,74,.12);
  color: var(--dp-success);
  font-weight: 800;
}

.dp-steps { counter-reset: steps; display: grid; gap: 20px; }
.dp-step {
  position: relative;
  padding: 28px 28px 28px 82px;
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
}
.dp-step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 28px;
  top: 26px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.dp-cta {
  background: radial-gradient(circle at top right, rgba(56,189,248,.28), transparent 30%), linear-gradient(135deg, #0f172a, #16316d 70%, #1d4ed8);
  border-radius: 34px;
  color: #fff;
  padding: 38px;
  box-shadow: 0 26px 70px rgba(15,23,42,.24);
}
.dp-cta p { color: rgba(255,255,255,.78); }

.dp-contact-box {
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  padding: 28px;
  box-shadow: var(--dp-shadow);
}
.dp-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dp-contact-list li strong { display: block; color: var(--dp-text); margin-bottom: 4px; }

.dp-page-hero { padding: 64px 0 20px; }
.dp-page-hero__box {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(56,189,248,.1));
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 28px;
  padding: 34px;
}

.dp-site-footer {
  margin-top: 48px;
  background: #0b1220;
  color: #fff;
}
.dp-site-footer p,
.dp-site-footer a,
.dp-site-footer li { color: rgba(255,255,255,.76); }
.dp-site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  padding: 54px 0 24px;
}
.dp-site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0 28px;
  font-size: .94rem;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

@media (max-width: 1080px) {
  .dp-hero,
  .dp-grid-4 { grid-template-columns: 1fr 1fr; }
  .dp-grid-3,
  .dp-site-footer__grid,
  .dp-appshot__layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .dp-site-header__inner { min-height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .dp-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .dp-header-actions { width: 100%; }
  .dp-header-actions .dp-button { flex: 1; }
  .dp-hero,
  .dp-grid-2,
  .dp-grid-3,
  .dp-grid-4 { grid-template-columns: 1fr; }
  .dp-appshot { min-height: auto; }
  .dp-appshot__window { min-height: auto; }
  .dp-appshot__grid { grid-template-columns: 1fr; }
  .dp-section { padding: 64px 0; }
  .dp-page-hero { padding-top: 40px; }
  .dp-cta { padding: 28px; }
}

.dp-visual-stack { display:grid; gap:18px; }
.dp-illustration-card {
  background: linear-gradient(135deg, #0f172a 0%, #14366f 55%, #2563eb 100%);
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(15,23,42,.18);
  overflow: hidden;
}
.dp-illustration-card img { width: 100%; border-radius: 22px; }
.dp-illustration-card--floating { background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%); border:1px solid var(--dp-line); }


/* Giro 2: affinamenti layout home */
.dp-hero { grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr); gap: 54px; }
.dp-hero > div:first-child { max-width: 680px; }
h1 { font-size: clamp(2.15rem, 4.5vw, 4.2rem); max-width: 11ch; }
.dp-hero__lead { font-size: 1.06rem; max-width: 620px; }
.dp-hero__actions { gap: 12px; margin-top: 30px; }
.dp-hero__meta { margin-top: 22px; gap: 10px; }
.dp-chip {
  padding: 8px 12px;
  background: rgba(255,255,255,.72);
  border-color: rgba(37, 99, 235, .10);
  color: #334155;
  font-weight: 700;
  font-size: .92rem;
}
.dp-visual-stack { position: relative; display:block; }
.dp-appshot { min-height: 500px; padding: 16px; }
.dp-appshot__window { min-height: 468px; }
.dp-appshot__layout { grid-template-columns: 185px 1fr; }
.dp-appshot__sidebar { gap: 10px; }
.dp-visual-badge {
  position: absolute;
  left: -28px;
  bottom: 22px;
  width: min(290px, 62%);
  padding: 18px 18px 16px;
  border-radius: 22px;
}
.dp-visual-badge__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: var(--dp-primary-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dp-visual-badge strong { display:block; font-size: 1.02rem; line-height: 1.35; margin-bottom: 8px; }
.dp-visual-badge span { display:block; color: var(--dp-muted); line-height: 1.55; font-size: .94rem; }
.dp-grid-2 { gap: 32px; }
.dp-problem-copy { font-size: 1.08rem; color: #334155; }
.dp-card h3 { margin-bottom: 14px; }
.dp-checklist { gap: 14px; }
.dp-checklist li { line-height: 1.58; }
.dp-dark-copy { max-width: 560px; padding-right: 8px; }
.dp-stat-grid { align-self: stretch; }
.dp-stat { min-height: 154px; display: flex; flex-direction: column; justify-content: flex-start; }
.dp-stat strong { font-size: 1.55rem; line-height: 1.1; }
.dp-section--dark .dp-grid-2 { align-items: center; }

@media (max-width: 1080px) {
  .dp-hero { grid-template-columns: 1fr; gap: 28px; }
  .dp-hero > div:first-child { max-width: none; }
  h1 { max-width: none; }
  .dp-visual-badge { left: 18px; bottom: 18px; width: min(320px, calc(100% - 36px)); }
}

@media (max-width: 820px) {
  .dp-hero__meta { gap: 8px; }
  .dp-chip { font-size: .86rem; }
  .dp-visual-badge { position: static; width: 100%; margin-top: 14px; }
  .dp-appshot { min-height: auto; }
  .dp-appshot__layout { grid-template-columns: 1fr; }
  .dp-dark-copy { max-width: none; padding-right: 0; }
}

@media (max-width: 900px) {
  .dp-hero { grid-template-columns: 1fr; }
  .dp-visual-photo { position: relative; right: auto; top: auto; width: min(72%, 260px); max-width: none; margin: 0 0 -16px auto; }
  .dp-appshot { margin-top: 0; }
}


.dp-dark-copy h2,
.dp-dark-copy p,
.dp-dark-copy .dp-eyebrow {
  color: #fff !important;
}
.dp-dark-copy .dp-eyebrow {
  opacity: .9;
}


/* Fix leggibilità sezione scura */
.dp-section--dark .dp-dark-copy .dp-eyebrow,
.dp-section--dark .dp-dark-copy h2,
.dp-section--dark .dp-dark-copy p {
  color: #ffffff !important;
}
.dp-section--dark .dp-dark-copy .dp-eyebrow { opacity: .9; }
.dp-section--dark .dp-dark-copy p { color: rgba(255,255,255,.86) !important; }


.dp-hero-photo {
  padding: 12px;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
  overflow: hidden;
  background: #fff;
}

.dp-hero-photo img {
  display: block;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .dp-hero-photo { max-width: 760px; margin: 0 auto; }
}


.dp-section--dark .dp-dark-copy h2,
.dp-section--dark .dp-dark-copy h2 a,
.dp-section--dark .dp-dark-copy p,
.dp-section--dark .dp-dark-copy .dp-eyebrow,
.dp-section--dark .dp-dark-copy .dp-eyebrow::before {
  color: #fff !important;
}
.dp-section--dark .dp-dark-copy h2 {
  color: #fff !important;
}
.dp-section--dark .dp-dark-copy p {
  color: rgba(255,255,255,.88) !important;
}
.dp-section--dark .dp-dark-copy .dp-eyebrow {
  color: rgba(255,255,255,.92) !important;
}
/* FIX SEZIONE SCURA */
.dp-section--dark .dp-dark-copy h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dp-section--dark .dp-dark-copy p {
  color: rgba(255,255,255,0.88) !important;
}

.dp-section--dark .dp-dark-copy .dp-eyebrow {
  color: rgba(255,255,255,0.92) !important;
}

.dp-section--dark .dp-dark-copy .dp-eyebrow::before {
  background: #4da3ff !important;
}
.dp-section--dark {
  background: linear-gradient(135deg, #0f2d69 0%, #021433 100%);
  color: #ffffff;
}

.dp-section--dark .dp-dark-copy h2,
.dp-section--dark .dp-dark-copy p,
.dp-section--dark .dp-dark-copy .dp-eyebrow {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
section.dp-section.dp-section--dark .dp-dark-copy h2,
section.dp-section.dp-section--dark .dp-dark-copy h2 strong,
section.dp-section.dp-section--dark .dp-dark-copy h2 span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Patch 1.0.1: responsive polish + hero wow */
:root {
  --dp-text: #0f172a;
  --dp-muted: #475569;
  --dp-primary: #2353e6;
  --dp-primary-2: #163fc4;
  --dp-accent: #5fd4ff;
  --dp-shadow: 0 24px 72px rgba(15, 23, 42, 0.12);
}

body {
  color: var(--dp-text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 24%),
    linear-gradient(180deg, #f1f6ff 0%, #f7f9fc 220px, #f7f9fc 100%);
}

p,
ul,
li {
  color: var(--dp-muted);
}

h1,
h2,
h3,
h4,
.dp-brand,
.dp-contact-list li strong,
.dp-step h3,
.dp-card h3 {
  color: var(--dp-text);
}

.dp-section {
  position: relative;
  overflow: hidden;
}

.dp-site-header {
  background: rgba(247, 250, 255, 0.80);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dp-site-header__inner {
  gap: 18px;
}

.dp-brand {
  min-width: 0;
}

.dp-brand__badge {
  position: relative;
  flex: 0 0 auto;
}

.dp-brand__badge::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.24);
}

.dp-nav {
  gap: 8px;
}

.dp-nav a,
.dp-nav .menu-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}

.dp-nav a:hover,
.dp-nav a.is-active,
.dp-nav .current-menu-item > a,
.dp-nav .current_page_item > a {
  background: rgba(37, 99, 235, 0.10);
  color: var(--dp-primary-2);
}

.dp-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
}

.dp-button--secondary {
  background: rgba(255,255,255,.82);
}

.dp-card,
.dp-contact-box,
.dp-page-hero__box,
.dp-step,
.dp-cta,
.dp-appshot,
.dp-visual-badge,
.dp-stat {
  backdrop-filter: blur(10px);
}

.dp-card,
.dp-contact-box,
.dp-page-hero__box,
.dp-step {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.dp-card,
.dp-contact-box,
.dp-step,
.dp-stat,
.dp-page-hero__box,
.dp-cta,
.dp-appshot,
.dp-visual-badge,
.dp-button {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.dp-card:hover,
.dp-contact-box:hover,
.dp-step:hover,
.dp-stat:hover,
.dp-page-hero__box:hover,
.dp-visual-badge:hover {
  transform: translateY(-3px);
}

.dp-hero {
  align-items: center;
  gap: 44px;
}

.dp-hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.dp-hero__meta {
  gap: 10px;
}

.dp-chip {
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.dp-visual-stack {
  min-height: 100%;
}

.dp-visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.dp-visual-orb--one {
  top: -22px;
  right: 12%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(95, 212, 255, 0.45) 0%, rgba(95, 212, 255, 0.08) 68%, transparent 100%);
}

.dp-visual-orb--two {
  bottom: 8px;
  left: -24px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.04) 72%, transparent 100%);
}

.dp-appshot {
  position: relative;
  min-height: 560px;
  padding: 18px;
  background: linear-gradient(145deg, #0f172a 0%, #16316d 52%, #2563eb 100%);
}

.dp-appshot::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events: none;
}

.dp-appshot__window {
  position: relative;
  min-height: 524px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.dp-appshot__topbar {
  margin-bottom: 16px;
}

.dp-appshot__layout {
  grid-template-columns: 180px 1fr;
  gap: 14px;
}

.dp-appshot__sidebar {
  background: linear-gradient(180deg, #eff5ff 0%, #f8fbff 100%);
}

.dp-appshot__navitem {
  height: 16px;
}

.dp-appshot__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(95,212,255,.16));
}

.dp-appshot__hero-copy {
  min-width: 0;
}

.dp-appshot__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(37,99,235,.14);
  color: var(--dp-primary-2);
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dp-appshot__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dp-appshot__card {
  min-height: 118px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.dp-appshot__timeline {
  display: grid;
  gap: 12px;
}

.dp-appshot__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.dp-appshot__time {
  font-weight: 800;
  color: var(--dp-primary-2);
}

.dp-appshot__row-main {
  min-width: 0;
}

.dp-avatar-group {
  display: flex;
  align-items: center;
}

.dp-avatar {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.dp-avatar:first-child {
  margin-left: 0;
}

.dp-visual-badge {
  z-index: 3;
  max-width: 320px;
  background: rgba(255,255,255,.94);
}

.dp-visual-badge--top {
  top: 20px;
  right: -24px;
  left: auto;
  bottom: auto;
  width: min(290px, 56%);
}

.dp-visual-badge strong {
  color: var(--dp-text);
}

.dp-grid-4 {
  gap: 24px;
}

.dp-stat {
  background: rgba(255,255,255,.13);
}

.dp-site-footer__grid {
  align-items: start;
}

@media (max-width: 1140px) {
  .dp-hero {
    gap: 32px;
  }

  .dp-visual-badge--top {
    right: 10px;
  }
}

@media (max-width: 940px) {
  .dp-site-header__inner {
    padding: 14px 0;
  }

  .dp-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dp-nav::-webkit-scrollbar {
    display: none;
  }

  .dp-header-actions {
    width: 100%;
  }

  .dp-header-actions .dp-button {
    flex: 1;
  }

  .dp-hero {
    grid-template-columns: 1fr;
  }

  .dp-hero > div:first-child {
    max-width: none;
  }

  .dp-appshot,
  .dp-appshot__window {
    min-height: auto;
  }

  .dp-visual-badge,
  .dp-visual-badge--top {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  .dp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .dp-container {
    width: min(calc(100% - 24px), var(--dp-container));
  }

  .dp-site-header__inner {
    align-items: stretch;
  }

  .dp-brand__sub {
    display: none;
  }

  .dp-nav a,
  .dp-nav .menu-item a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: .94rem;
  }

  .dp-header-actions {
    flex-direction: column;
  }

  .dp-header-actions .dp-button {
    width: 100%;
  }

  .dp-button {
    width: 100%;
  }

  .dp-section {
    padding: 56px 0;
  }

  .dp-card,
  .dp-contact-box,
  .dp-step,
  .dp-page-hero__box,
  .dp-cta {
    padding: 22px;
    border-radius: 24px;
  }

  .dp-appshot {
    padding: 14px;
    border-radius: 26px;
  }

  .dp-appshot__window {
    padding: 14px;
    border-radius: 20px;
  }

  .dp-appshot__layout,
  .dp-appshot__hero,
  .dp-appshot__row,
  .dp-site-footer__grid,
  .dp-grid-2,
  .dp-grid-3,
  .dp-grid-4 {
    grid-template-columns: 1fr;
  }

  .dp-appshot__hero {
    gap: 10px;
  }

  .dp-appshot__row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .dp-appshot__grid {
    grid-template-columns: 1fr;
  }

  .dp-stat {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .dp-hero__actions,
  .dp-hero__meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dp-chip {
    justify-content: center;
  }
}


/* Patch 1.0.6: CTA dark section white text */
.dp-cta h1,
.dp-cta h2,
.dp-cta h3,
.dp-cta .dp-eyebrow,
.dp-cta .dp-eyebrow a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dp-cta p,
.dp-cta li,
.dp-cta a:not(.dp-button) {
  color: rgba(255,255,255,.88) !important;
  -webkit-text-fill-color: rgba(255,255,255,.88) !important;
}

/* Patch 1.0.7: page hero text + footer logo */
.dp-page-hero__box h1 {
  max-width: 14ch !important;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.dp-page-hero__box .dp-hero__lead,
.dp-page-hero__box p {
  max-width: 720px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.dp-page-hero__box {
  padding: clamp(28px, 4vw, 42px);
}

.dp-footer-logo,
.dp-footer-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.dp-footer-logo .custom-logo {
  display: block;
  width: auto;
  max-width: min(280px, 100%);
  max-height: 64px;
}

.dp-site-footer__tagline {
  margin: 0 0 14px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

@media (max-width: 900px) {
  .dp-page-hero__box h1 {
    max-width: 12ch !important;
  }
}

@media (max-width: 760px) {
  .dp-page-hero__box h1 {
    max-width: none !important;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    line-height: 1.02;
  }

  .dp-page-hero__box .dp-hero__lead,
  .dp-page-hero__box p {
    max-width: none;
    font-size: 1rem;
  }

  .dp-footer-logo .custom-logo {
    max-height: 52px;
  }
}


/* Patch 1.0.8: footer text contrast */
.dp-site-footer h3,
.dp-site-footer .dp-contact-list strong,
.dp-site-footer__bottom p {
  color: #fff !important;
}

.dp-site-footer__bottom p {
  margin: 0;
}


/* Patch 1.0.9: restore home hero, refine informazioni title, footer brand text */
.home .dp-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
  gap: 42px;
  align-items: center;
}

.home .dp-hero > div:first-child {
  max-width: 640px;
}

.home .dp-hero > div:first-child h1 {
  max-width: 8.4ch;
  margin-bottom: 20px;
  font-size: clamp(3.35rem, 6.9vw, 5.05rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.home .dp-hero > div:first-child .dp-hero__lead {
  max-width: 620px;
}

.home .dp-appshot__window {
  padding: 0;
  overflow: hidden;
  background: url("assets/images/app_dashboard_real.png") center top / cover no-repeat;
}

.home .dp-appshot__window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(1px);
}

.home .dp-appshot__topbar,
.home .dp-appshot__layout {
  display: none;
}

.dp-page-hero__box--balanced h1 {
  max-width: 12ch !important;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.dp-page-hero__box--balanced .dp-hero__lead,
.dp-page-hero__box--balanced p {
  max-width: 740px;
}

.dp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dp-footer-brand__text {
  display: grid;
  gap: 2px;
}

.dp-footer-brand__name {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dp-footer-brand__sub {
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
}

.dp-footer-brand .custom-logo-link,
.dp-footer-brand .custom-logo {
  display: block;
}

.dp-footer-brand .custom-logo {
  width: auto;
  max-width: 56px;
  max-height: 56px;
  border-radius: 18px;
}

@media (max-width: 940px) {
  .home .dp-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home .dp-hero > div:first-child h1 {
    max-width: none;
    font-size: clamp(2.3rem, 9vw, 3.55rem);
    line-height: 0.98;
  }

  .dp-page-hero__box--balanced h1 {
    max-width: none !important;
    font-size: clamp(2.15rem, 9vw, 3.3rem);
    line-height: 1.02;
  }

  .dp-footer-brand {
    align-items: flex-start;
  }

  .dp-footer-brand__name {
    font-size: 1.35rem;
  }

  .dp-footer-brand__sub {
    font-size: .86rem;
  }
}


/* Patch 1.0.10: restore mobile hero text balance only */
@media (max-width: 760px) {
  .home .dp-hero > div:first-child h1 {
    max-width: 8.4ch;
    font-size: clamp(2.2rem, 8.8vw, 3.05rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
  }

  .dp-page-hero__box--balanced h1 {
    max-width: 9.8ch !important;
    font-size: clamp(2rem, 8.2vw, 2.8rem);
    line-height: 1.01;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 560px) {
  .home .dp-hero > div:first-child h1 {
    max-width: 8.1ch;
    font-size: clamp(2.1rem, 8.9vw, 2.9rem);
  }

  .dp-page-hero__box--balanced h1 {
    max-width: 9.2ch !important;
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }
}


/* Patch 1.0.11: restore mobile title wrapping like earlier stable version */
@media (max-width: 760px) {
  .home .dp-hero > div:first-child h1 {
    max-width: none !important;
    font-size: clamp(2.3rem, 9vw, 3.55rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em;
  }

  .dp-page-hero__box--balanced h1 {
    max-width: none !important;
    font-size: clamp(2.15rem, 9vw, 3.3rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 560px) {
  .home .dp-hero > div:first-child h1 {
    max-width: none !important;
    font-size: clamp(2.3rem, 9vw, 3.15rem) !important;
  }

  .dp-page-hero__box--balanced h1 {
    max-width: none !important;
    font-size: clamp(2.05rem, 8.8vw, 2.95rem) !important;
  }
}


/* Patch 1.0.12: page hero titles like stable mobile sample + CTA white text only */
.dp-cta h1,
.dp-cta h2,
.dp-cta h3,
.dp-cta .dp-eyebrow,
.dp-cta .dp-eyebrow a,
.dp-cta p,
.dp-cta li,
.dp-cta a:not(.dp-button) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dp-page-hero__box h1,
.dp-page-hero__box--balanced h1 {
  max-width: 13.2ch !important;
  font-size: clamp(2.7rem, 5vw, 4.7rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em !important;
  text-wrap: balance;
}

.dp-page-hero__box .dp-hero__lead,
.dp-page-hero__box p,
.dp-page-hero__box--balanced .dp-hero__lead,
.dp-page-hero__box--balanced p {
  max-width: 740px;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.72;
}

@media (max-width: 900px) {
  .dp-page-hero__box h1,
  .dp-page-hero__box--balanced h1 {
    max-width: none !important;
    font-size: clamp(2.15rem, 7.8vw, 3rem) !important;
    line-height: 0.98 !important;
    text-wrap: balance;
  }
}

@media (max-width: 560px) {
  .dp-page-hero__box h1,
  .dp-page-hero__box--balanced h1 {
    font-size: clamp(2.05rem, 7.6vw, 2.7rem) !important;
  }
}


/* Patch 1.0.13: mobile rescue only */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.dp-site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.dp-site-header .custom-logo {
  width: auto;
  height: auto;
  max-width: 188px;
  max-height: 64px;
}

@media (max-width: 820px) {
  .dp-site-header__inner {
    min-height: auto;
    padding: 14px 0 18px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .dp-brand {
    width: 100%;
    gap: 10px;
  }

  .dp-site-header .custom-logo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 24px;
  }

  .dp-nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .dp-nav::-webkit-scrollbar {
    display: none;
  }

  .dp-nav a,
  .dp-nav .menu-item a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    white-space: nowrap;
  }

  .dp-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dp-header-actions .dp-button {
    width: 100%;
    min-height: 56px;
  }

  .home .dp-hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: stretch;
  }

  .home .dp-hero > div:first-child {
    max-width: none !important;
  }

  .home .dp-hero > div:first-child h1 {
    max-width: none !important;
    font-size: clamp(2.2rem, 10vw, 3.35rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.05em !important;
    text-wrap: balance;
  }

  .home .dp-hero__lead,
  .home .dp-hero > div:first-child p {
    max-width: none !important;
    font-size: 1rem;
    line-height: 1.66;
  }

  .home .dp-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home .dp-hero__actions .dp-button {
    width: 100%;
  }

  .home .dp-hero__meta {
    display: none;
  }

  .home .dp-visual-stack {
    display: grid;
    gap: 16px;
  }

  .home .dp-visual-badge,
  .home .dp-visual-badge--top {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .home .dp-appshot {
    min-height: auto;
    padding: 12px;
    border-radius: 28px;
  }

  .home .dp-appshot__window {
    min-height: 0;
    aspect-ratio: 0.82;
    border-radius: 20px;
    background-position: center top;
  }

  .dp-page-hero__box,
  .dp-page-hero__box--balanced {
    padding: 24px 20px;
  }

  .dp-page-hero__box h1,
  .dp-page-hero__box--balanced h1 {
    max-width: none !important;
    font-size: clamp(2.15rem, 9vw, 3.15rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance;
  }

  .dp-page-hero__box .dp-hero__lead,
  .dp-page-hero__box p,
  .dp-page-hero__box--balanced .dp-hero__lead,
  .dp-page-hero__box--balanced p {
    max-width: none !important;
    font-size: 1rem;
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .dp-container {
    width: min(calc(100% - 24px), var(--dp-container));
  }

  .dp-site-header .custom-logo {
    max-width: 96px;
    max-height: 96px;
  }

  .home .dp-hero > div:first-child h1 {
    font-size: clamp(2.05rem, 9.8vw, 2.9rem) !important;
  }

  .home .dp-appshot__window {
    aspect-ratio: 0.74;
  }

  .dp-page-hero__box h1,
  .dp-page-hero__box--balanced h1 {
    font-size: clamp(2rem, 9.4vw, 2.75rem) !important;
  }
}
