/*
Theme Name: TT3 Editorial Portal Theme
Author: Direct Performance
Description: Child theme editoriale riutilizzabile, con struttura ispirata ai portali di contenuto e navigazione rapida.
Template: twentytwentythree
Version: 1.5.5
Text Domain: tt3-child-dp
*/

:root {
  --dp-accent: #38A135;
  --dp-accent-bg: #edf7ed;
  --dp-accent-strong: #2d842b;
  --dp-accent-shadow: rgba(56, 161, 53, 0.08);
  --dp-black: #111111;
  --dp-gray: #555555;
  --dp-muted: #888888;
  --dp-rule: #e5e7eb;
  --dp-white: #ffffff;
  --dp-bg: #fafaf8;
  --dp-surface: #f3f7fd;
  --dp-header-dark: #0f172a;
  --dp-shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --dp-hero-start: #38A135;
  --dp-hero-mid: #2d842b;
  --dp-hero-end: #1f5d1e;
  --dp-hero-text: #ffffff;
  --dp-hero-text-secondary: #1d3447;
  --dp-hero-benefit-bg: #ffffff;
  --dp-hero-benefit-text: #1d3447;
  --dp-hero-benefit-icon: #38A135;
  --dp-hero-gradient: linear-gradient(135deg, var(--dp-hero-start) 0%, var(--dp-hero-mid) 62%, var(--dp-hero-end) 100%);
  --dp-home-bg: var(--dp-accent);
  --dp-home-contrast: var(--dp-accent-strong);
  --dp-sans: "Montserrat", system-ui, sans-serif;
  --dp-prose: 1040px;
  --dp-wide: 1100px;
}

body.single-post,
body.page {
  --dp-page-bg-current: var(--dp-bg);
  font-family: var(--dp-sans);
  background: var(--dp-bg);
  color: var(--dp-black);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.single-post {
  --dp-page-bg-current: var(--dp-home-bg);
}

body.single-post .wp-site-blocks,
body.page .wp-site-blocks {
  padding-top: 0;
}

body.home,
body.blog,
body.archive,
body.error404 {
  --dp-page-bg-current: var(--dp-bg);
  font-family: var(--dp-sans);
  background: var(--dp-bg);
  color: var(--dp-black);
}

body.home {
  --dp-page-bg-current: var(--dp-home-bg);
  background: var(--dp-home-bg);
  color: var(--dp-white);
}

body.blog,
body.archive {
  --dp-page-bg-current: var(--dp-home-bg);
  background: var(--dp-home-bg);
  color: var(--dp-white);
}

body.dp-page-has-latest-posts {
  --dp-page-bg-current: var(--dp-home-bg);
  background: var(--dp-home-bg);
  color: var(--dp-white);
}

body.home .wp-site-blocks {
  min-height: 100vh;
  background: var(--dp-home-bg);
  padding-top: 0;
}

body.blog .wp-site-blocks,
body.archive .wp-site-blocks {
  min-height: 100vh;
  background: var(--dp-home-bg);
  padding-top: 0;
}

body.dp-page-has-latest-posts .wp-site-blocks {
  min-height: 100vh;
  background: var(--dp-home-bg);
  padding-top: 0;
}

/* Header / footer portal-like */
.dp-site-utility-bar {
  background: var(--dp-header-dark);
  color: rgba(255, 255, 255, 0.82);
}

.dp-site-utility-inner {
  max-width: var(--dp-wide);
  margin: 0 auto;
  padding: 10px 20px;
}

.dp-site-utility-inner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.dp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  border-bottom: 0;
  background: var(--dp-page-bg-current, var(--dp-header-bg));
  box-shadow: none;
}

.dp-site-header-inner {
  box-sizing: border-box;
  max-width: var(--dp-wide);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dp-site-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-site-logo {
  font-family: var(--dp-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--dp-black);
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dp-site-logo--image {
  display: inline-flex;
  align-items: center;
}

.dp-site-logo-image {
  display: block;
  width: auto;
  max-width: 250px;
  max-height: 58px;
}

.dp-site-logo:hover {
  color: var(--dp-accent);
}

.dp-site-tagline {
  margin: 0;
  font-size: 12px;
  color: var(--dp-muted);
  line-height: 1.4;
}

.dp-site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.dp-site-nav-wrap {
  display: flex;
  align-items: center;
}

.dp-site-nav-wrap ul,
.dp-site-nav-wrap li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-site-nav-wrap ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.dp-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-site-nav a {
  font-family: var(--dp-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-gray);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dp-site-nav a:hover {
  color: var(--dp-accent);
}

.dp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--dp-accent);
  color: var(--dp-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dp-header-cta:hover {
  background: var(--dp-accent-strong);
  transform: translateY(-1px);
}

.dp-site-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dp-rule);
  border-radius: 6px;
  background: var(--dp-page-bg-current, var(--dp-header-bg));
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.dp-site-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--dp-black);
  display: block;
}

body.home .dp-site-header {
  position: relative;
  min-height: 0;
  border-bottom: 0;
  background: var(--dp-page-bg-current, var(--dp-header-bg));
  box-shadow: none;
}

body.single-post .dp-site-header,
body.blog .dp-site-header,
body.archive .dp-site-header,
body.dp-page-has-latest-posts .dp-site-header {
  position: relative;
  min-height: 0;
  border-bottom: 0;
  background: var(--dp-page-bg-current, var(--dp-header-bg));
  box-shadow: none;
}

body.home .dp-site-header-inner {
  max-width: 980px;
  padding: 28px 32px 10px;
}

body.single-post .dp-site-header-inner,
body.blog .dp-site-header-inner,
body.archive .dp-site-header-inner,
body.dp-page-has-latest-posts .dp-site-header-inner {
  max-width: 1240px;
  padding: 28px 32px 10px;
}

body.home .dp-site-logo {
  color: var(--dp-black);
}

body.single-post .dp-site-logo,
body.blog .dp-site-logo,
body.archive .dp-site-logo,
body.dp-page-has-latest-posts .dp-site-logo {
  color: var(--dp-black);
}

body.home .dp-site-logo:hover {
  color: var(--dp-accent);
}

body.single-post .dp-site-logo:hover,
body.blog .dp-site-logo:hover,
body.archive .dp-site-logo:hover,
body.dp-page-has-latest-posts .dp-site-logo:hover {
  color: var(--dp-accent);
}

body.home .dp-site-nav a {
  color: var(--dp-white);
}

body.single-post .dp-site-nav a,
body.blog .dp-site-nav a,
body.archive .dp-site-nav a,
body.dp-page-has-latest-posts .dp-site-nav a {
  color: var(--dp-white);
}

body.home .dp-site-nav a:hover {
  color: rgba(255, 255, 255, 0.82);
}

body.single-post .dp-site-nav a:hover,
body.blog .dp-site-nav a:hover,
body.archive .dp-site-nav a:hover,
body.dp-page-has-latest-posts .dp-site-nav a:hover {
  color: rgba(255, 255, 255, 0.82);
}

body.home .dp-header-cta {
  background: var(--dp-white);
  color: var(--dp-accent);
}

body.single-post .dp-header-cta,
body.blog .dp-header-cta,
body.archive .dp-header-cta,
body.dp-page-has-latest-posts .dp-header-cta {
  background: var(--dp-white);
  color: var(--dp-accent);
}

body.home .dp-header-cta:hover {
  background: var(--dp-white);
  opacity: 0.94;
}

body.single-post .dp-header-cta:hover,
body.blog .dp-header-cta:hover,
body.archive .dp-header-cta:hover,
body.dp-page-has-latest-posts .dp-header-cta:hover {
  background: var(--dp-white);
  opacity: 0.94;
}

body.home .dp-site-nav-toggle {
  border-color: var(--dp-rule);
  background: var(--dp-header-bg);
}

body.single-post .dp-site-nav-toggle,
body.blog .dp-site-nav-toggle,
body.archive .dp-site-nav-toggle,
body.dp-page-has-latest-posts .dp-site-nav-toggle {
  border-color: var(--dp-rule);
  background: var(--dp-page-bg-current, var(--dp-header-bg));
}

body.home .dp-site-nav-toggle span {
  background: var(--dp-black);
}

body.single-post .dp-site-nav-toggle span,
body.blog .dp-site-nav-toggle span,
body.archive .dp-site-nav-toggle span,
body.dp-page-has-latest-posts .dp-site-nav-toggle span {
  background: var(--dp-black);
}

.dp-site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 36px 20px;
  background: var(--dp-home-bg);
}

body.home .dp-site-footer {
  margin-top: 0;
  background: var(--dp-home-bg);
  border-top-color: rgba(255, 255, 255, 0.2);
}

body.dp-page-has-latest-posts .dp-site-footer {
  margin-top: 0;
  background: var(--dp-home-bg);
  border-top-color: rgba(255, 255, 255, 0.2);
}

.dp-site-footer-inner {
  max-width: var(--dp-wide);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dp-site-footer-brand,
.dp-site-footer-meta {
  flex: 1 1 0;
}

.dp-site-footer-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dp-white);
  letter-spacing: -0.02em;
}

.dp-site-footer-description,
.dp-site-footer-meta p {
  margin: 0;
  font-family: var(--dp-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.dp-site-footer-meta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow-x: auto;
}

.dp-site-footer-meta p {
  white-space: nowrap;
}

.dp-page-wrap {
  max-width: var(--dp-wide);
  margin: 0 auto;
  padding: 48px 20px 96px;
}

/* Pagine (guide / landing): contenitore leggermente più compatto degli articoli */
.dp-page-wrap--page {
  max-width: min(var(--dp-wide), 1020px);
  padding: 40px 18px 72px;
}

body.dp-page-has-latest-posts .dp-page-wrap--page {
  max-width: 1240px;
  padding-top: 24px;
}

body.dp-page-has-latest-posts .dp-article-header {
  border-bottom: 0;
  padding-bottom: 0;
}

body.dp-page-has-latest-posts .dp-title {
  color: var(--dp-white);
}

body.dp-page-has-latest-posts .dp-guide-page-deck {
  color: rgba(255, 255, 255, 0.9);
}

body.dp-page-has-latest-posts .dp-blog-search-form {
  width: min(100%, 680px);
  margin: 24px auto 0;
}

body.dp-page-has-latest-posts .dp-blog-search-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.dp-page-has-latest-posts .dp-blog-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--dp-white);
  color: var(--dp-black);
  font-family: var(--dp-sans);
  font-size: 15px;
}

body.dp-page-has-latest-posts .dp-blog-search-input::placeholder {
  color: #7b7f85;
}

body.dp-page-has-latest-posts .dp-blog-search-button {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--dp-white);
  color: var(--dp-accent);
  font-family: var(--dp-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

body.dp-page-has-latest-posts .dp-blog-search-button:hover {
  opacity: 0.94;
}

body.dp-page-has-latest-posts .dp-body {
  width: 100%;
  max-width: 100%;
}

body.dp-page-has-latest-posts .dp-page-latest-posts-grid {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.dp-article-header {
  border-bottom: 1px solid var(--dp-rule);
  padding-bottom: 30px;
  margin-bottom: 42px;
}

.dp-topic a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-accent);
  text-decoration: none;
}

/* Pagina guida: kicker testuale (stesso stile topic articolo, senza link) */
.dp-guide-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-accent);
}

.dp-guide-page-deck {
  margin: 0;
  max-width: var(--dp-prose);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dp-gray);
}

/* Intro pattern: leggermente più marcata, allineata a home subtitle / corpo */
.dp-body .dp-guide-pattern-lead p {
  font-size: 18px;
  line-height: 1.72;
}

.dp-body .dp-guide-pattern-lead p + p {
  font-size: 17px;
  line-height: 1.78;
}

.dp-guide-privacy-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dp-gray);
}

.dp-guide-download-anchor {
  scroll-margin-top: 72px;
}

/*
 * Pagina guida: su desktop testo a sinistra, form in aside a destra (sticky); su mobile testo poi form.
 * Ordine DOM: main → aside; griglia: colonna 1 = main, colonna 2 = aside.
 */
.dp-guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px 48px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.dp-guide-split__main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.dp-guide-split__aside {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.dp-guide-split__aside .dp-ac-lead-form {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 960px) {
  .dp-guide-split__aside {
    position: sticky;
    top: 72px;
    align-self: start;
  }
}

@media (max-width: 959px) {
  .dp-guide-split {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .dp-guide-split__main,
  .dp-guide-split__aside {
    width: 100%;
    position: static;
  }
}

.dp-title {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--dp-black);
  margin: 18px 0 26px;
  max-width: var(--dp-prose);
}

.dp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.dp-author-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--dp-black);
  font-size: 14px;
  font-weight: 600;
}

.dp-author-link:hover {
  color: var(--dp-accent);
}

.dp-author-link img {
  border-radius: 50%;
}

.dp-sep {
  width: 1px;
  height: 18px;
  background: var(--dp-rule);
}

.dp-date,
.dp-read-time {
  font-size: 13px;
  color: var(--dp-muted);
}

.dp-author-bio {
  font-size: 13px;
  color: var(--dp-gray);
  line-height: 1.6;
  border-top: 1px solid var(--dp-rule);
  margin-top: 14px;
  padding-top: 14px;
  margin-bottom: 18px;
  max-width: var(--dp-prose);
}

.dp-bio-link {
  color: var(--dp-accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}

.dp-share-block {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dp-share-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dp-gray);
  line-height: 1.4;
}

.dp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 40px;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--dp-rule);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-gray);
  text-decoration: none;
  background: var(--dp-white);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.dp-share-btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  color: var(--dp-gray);
}

.dp-share-btn:hover .dp-share-btn-icon {
  color: var(--dp-accent);
}

.dp-share-icon {
  display: block;
}

.dp-share-btn:hover {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}

.dp-summary {
  background: var(--dp-accent-bg);
  border-left: 3px solid var(--dp-accent);
  padding: 18px 24px;
  margin: 0 0 36px;
  border-radius: 0 6px 6px 0;
  max-width: var(--dp-prose);
}

.dp-summary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-accent);
  margin-bottom: 8px;
}

.dp-summary p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dp-gray);
  margin: 0;
}

.dp-body {
  max-width: var(--dp-wide);
}

/* Allineamento contenuto Gutenberg: alcuni Group constrained introducono rientri non voluti */
.dp-body > .wp-block-group,
.dp-body > .wp-block-group.alignwide,
.dp-body > .wp-block-group.alignfull {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.dp-body > .wp-block-group.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dp-body > .wp-block-group > .wp-block-group__inner-container,
.dp-body > .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*
 * Eccezione: i figli constrained sopra usano max-width 100% !important; senza questo il box form AC
 * si allarga a tutta la colonna articolo. Qui si forza larghezza contenuta e centratura.
 */
.dp-body .wp-block-group.dp-ac-lead-form {
  max-width: min(100%, 32.5rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.dp-body > .wp-block-group p,
.dp-body > .wp-block-group h2,
.dp-body > .wp-block-group h3,
.dp-body > .wp-block-group blockquote,
.dp-body > .wp-block-group figure,
.dp-body > .wp-block-group ul,
.dp-body > .wp-block-group ol {
  max-width: 100% !important;
}

/* FAQ spostata dopo </article> (stesso flusso del mock): stessi stili del corpo, senza doppio margine titolo */
.dp-page-wrap > .dp-faq-outside-article.dp-body {
  margin-top: 40px;
}

.dp-page-wrap > .dp-faq-outside-article.dp-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.dp-page-wrap > .dp-faq-outside-article.dp-body > h2:first-child::before {
  display: none;
}

.dp-page-wrap > .dp-faq-outside-article.dp-body .wp-block-accordion {
  margin-top: 12px;
}

.blog-faq {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--dp-rule);
}

.blog-faq h2 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  margin: 0 0 28px;
}

.blog-faq h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.blog-faq p {
  margin: 0;
  line-height: 1.7;
}

.blog-faq > div + div {
  margin-top: 24px;
}

/* H2: linea nera sottile a tutta larghezza + più aria sopra rispetto al paragrafo precedente (mock) */
.dp-body h2 {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  color: var(--dp-black);
  margin: 52px 0 16px;
  padding-top: 10px;
  border-top: 2px solid var(--dp-black);
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dp-body h2::before {
  display: none;
}

/* H2 in Group Gutenberg: forza metrica identica al mock anche con stili globali parent/theme.json */
.dp-body .wp-block-group h2.wp-block-heading {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--dp-black) !important;
  margin: 52px 0 16px !important;
  border-top: 2px solid var(--dp-black) !important;
  padding-top: 10px !important;
  display: inline-block !important;
  width: 100% !important;
}

.dp-body h3 {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--dp-black);
  margin: 32px 0 12px;
}

.dp-body p {
  margin-bottom: 26px;
  line-height: 1.78;
}

.dp-body u {
  text-decoration: none;
}

.dp-body a {
  color: var(--dp-accent);
  text-underline-offset: 3px;
}

.dp-inline-legacy-cta-wrap {
  margin: 44px 0;
  text-align: center;
}

.dp-inline-legacy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  min-width: min(100%, 360px);
  padding: 0 34px;
  border-radius: 999px;
  background: var(--dp-home-bg);
  color: var(--dp-white) !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.14);
}

.dp-inline-legacy-cta:hover {
  opacity: 0.94;
}

.dp-body blockquote {
  margin: 32px 0;
  padding: 18px 28px;
  border-left: 3px solid var(--dp-black);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  border-radius: 0 6px 6px 0;
  background: var(--dp-white);
  color: var(--dp-black);
}

.dp-body figure {
  margin: 36px 0;
}

.dp-body figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--dp-rule);
  display: block;
}

/* Didascalia immagine (Gutenberg usa .wp-element-caption) */
.dp-body figcaption,
.dp-body .wp-element-caption {
  display: block;
  font-size: 13px;
  color: var(--dp-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.dp-body .wp-block-image figcaption {
  text-align: left;
}

/* TOC Easy Table of Contents — come anteprima-template-wide.html (box pulito, no toggle UI) */
.dp-body .ez-toc-container,
.dp-body #ez-toc-container {
  border: 1px solid var(--dp-rule);
  border-radius: 8px;
  background: var(--dp-white) !important;
  margin: 0 0 40px;
  padding: 20px 28px;
  max-width: var(--dp-prose);
  box-sizing: border-box;
  box-shadow: none !important;
}

/* Easy TOC può applicare wrap-left con box stretto: reset completo per match 1:1 mock */
.dp-body #ez-toc-container.ez-toc-container-direction,
.dp-body #ez-toc-container.ez-toc-wrap-left,
.dp-body #ez-toc-container {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: var(--dp-prose) !important;
  margin: 0 0 40px 0 !important;
  padding: 20px 28px !important;
  border: 1px solid var(--dp-rule) !important;
  border-radius: 8px !important;
  background: var(--dp-white) !important;
  box-sizing: border-box !important;
}

/* Nasconde pulsante collassa / icona lista del plugin (varianti classi EZ TOC) */
.dp-body .ez-toc-container .ez-toc-btn,
.dp-body #ez-toc-container .ez-toc-btn,
.dp-body .ez-toc-container .ez-toc-toggle,
.dp-body #ez-toc-container .ez-toc-toggle,
.dp-body .ez-toc-container a.ez-toc-toggle,
.dp-body #ez-toc-container a.ez-toc-toggle,
.dp-body .ez-toc-container .ez-toc-title-toggle,
.dp-body #ez-toc-container .ez-toc-title-toggle,
.dp-body .ez-toc-container .ez-toc-icon,
.dp-body #ez-toc-container .ez-toc-icon,
.dp-body .ez-toc-container .ez-toc-cssicon,
.dp-body #ez-toc-container .ez-toc-cssicon,
.dp-body .ez-toc-container span[class*="ez-toc-icon"],
.dp-body #ez-toc-container span[class*="ez-toc-icon"],
.dp-body .ez-toc-container label.ez-toc-title-toggle,
.dp-body #ez-toc-container label.ez-toc-title-toggle {
  display: none !important;
}

.dp-body .ez-toc-title-container,
.dp-body #ez-toc-container .ez-toc-title-container {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  position: static;
}

.dp-body .ez-toc-title-container .ez-toc-title,
.dp-body .ez-toc-container > .ez-toc-title,
.dp-body #ez-toc-container > .ez-toc-title {
  position: static !important;
  transform: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--dp-sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--dp-muted) !important;
  text-align: left !important;
  white-space: normal !important;
}

/* EZ TOC in alcune installazioni concatena il titolo "TABLE OF CONTENTS": forziamo il solo label mock */
.dp-body #ez-toc-container .ez-toc-title {
  font-size: 0 !important;
  margin-bottom: 12px !important;
}

.dp-body #ez-toc-container .ez-toc-title::before {
  content: "In questo articolo";
  display: block;
  font-family: var(--dp-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.dp-body #ez-toc-container .ez-toc-title * {
  display: none !important;
}

/* Alcune versioni EZ TOC stampano un secondo titolo box */
.dp-body #ez-toc-container .ez-toc-box-title {
  display: none !important;
}

.dp-body .ez-toc-container nav,
.dp-body #ez-toc-container nav {
  margin: 0;
  padding: 0;
}

.dp-body .ez-toc-list,
.dp-body #ez-toc-container .ez-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-body .ez-toc-list li,
.dp-body #ez-toc-container .ez-toc-list li {
  margin-bottom: 6px;
  color: var(--dp-accent);
}

.dp-body .ez-toc-list .sub,
.dp-body #ez-toc-container .ez-toc-list .sub {
  padding-left: 14px;
  color: var(--dp-gray);
  font-weight: 400;
}

.dp-body .ez-toc-list a,
.dp-body #ez-toc-container .ez-toc-list a {
  font-family: var(--dp-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dp-accent);
  text-decoration: none;
}

.dp-body .ez-toc-list a:hover,
.dp-body #ez-toc-container .ez-toc-list a:hover {
  color: var(--dp-accent-strong);
}

/* Reset contatori plugin (counter-hierarchy / ez-toc-counter) per match col mock */
.dp-body #ez-toc-container.counter-hierarchy ul.ez-toc-list li::before,
.dp-body #ez-toc-container.counter-hierarchy ul.ez-toc-list li a::before,
.dp-body #ez-toc-container.ez-toc-counter ul.ez-toc-list li::before,
.dp-body #ez-toc-container.ez-toc-counter ul.ez-toc-list li a::before {
  content: none !important;
  display: none !important;
}

/* FAQ accordion nativo (WP 6.9: div + button, non details/summary) */
.dp-body .wp-block-accordion-heading {
  margin: 0;
  font-size: inherit;
  font-style: normal;
}

.dp-body .wp-block-accordion {
  margin: 48px 0;
  max-width: var(--dp-prose);
}

.dp-body .wp-block-accordion > h2 {
  margin-top: 0;
  padding-top: 0;
}

/* Titolo H2 dentro accordion: niente linea sezione sopra */
.dp-body .wp-block-accordion > h2::before {
  display: none;
}

.dp-body .wp-block-accordion > h2 {
  border-top: 0;
}

.dp-body .wp-block-accordion-item {
  border-bottom: 1px solid var(--dp-rule);
}

.dp-body .wp-block-accordion-item:last-child {
  border-bottom: none;
}

/* WP 6.9+ accordion: pulsante titolo (non più <details>/<summary>) */
.dp-body .wp-block-accordion-heading__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  border: none;
  background: transparent;
  font-family: var(--dp-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--dp-black);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
  user-select: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.dp-body .wp-block-accordion-heading__toggle-title {
  flex: 1;
}

.dp-body .wp-block-accordion-heading__toggle-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--dp-rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--dp-muted);
  transition: transform 0.25s ease, border-color 0.15s, color 0.15s, background 0.15s;
}

.dp-body .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
  color: var(--dp-accent);
}

.dp-body .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
  transform: rotate(45deg);
  background: var(--dp-accent);
  border-color: var(--dp-accent);
  color: var(--dp-white);
}

.dp-body .wp-block-accordion-panel p {
  margin: 0 0 16px;
  color: var(--dp-gray);
  line-height: 1.75;
  font-size: 15px;
  padding-right: 42px;
}

.dp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--dp-rule);
  max-width: var(--dp-prose);
}

.dp-tag {
  padding: 5px 14px;
  border: 1px solid var(--dp-rule);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-gray);
  text-decoration: none;
  transition: all 0.15s;
}

.dp-tag:hover {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
  background: var(--dp-accent-bg);
}

.dp-newsletter {
  background: var(--dp-hero-gradient);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 40px 48px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 48px;
  align-items: center;
  max-width: var(--dp-wide);
}

.dp-download-box,
.dp-download-cta {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--dp-hero-gradient);
  margin-top: 56px;
  overflow: hidden;
}

.dp-download-box-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
}

.dp-download-box-content {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Titoli “peso hero” come directperformance.it (Montserrat black) */
.dp-download-box-content h4,
.dp-newsletter h4 {
  margin: 0 0 10px;
  font-family: var(--dp-sans);
  font-weight: 900;
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dp-white);
}

.dp-download-box-content p {
  margin: 0 0 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.dp-download-box-cta,
.dp-download-box-cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--dp-white);
  color: var(--dp-black) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, box-shadow 0.15s;
}

.dp-download-box-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.dp-download-box-cta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.dp-download-box-cta:hover,
.dp-download-box-cta .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dp-black) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.dp-download-box-cta .dp-download-box-cta-icon {
  color: var(--dp-black);
}

.dp-newsletter p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
}

.dp-newsletter-copy {
  max-width: 560px;
}

.dp-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dp-newsletter-form input {
  flex: 1 1 240px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-family: var(--dp-sans);
  width: 100%;
  max-width: 360px;
  outline: none;
  background: var(--dp-white);
  color: var(--dp-black);
}

.dp-newsletter-form input::placeholder {
  color: var(--dp-muted);
}

.dp-newsletter-form button {
  padding: 12px 22px;
  background: var(--dp-white);
  color: var(--dp-black);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--dp-sans);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, box-shadow 0.15s;
}

.dp-newsletter-form button:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.dp-newsletter-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.dp-newsletter .dp-newsletter-privacy {
  margin: 10px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  max-width: 560px !important;
}

.dp-newsletter .dp-newsletter-privacy a {
  color: var(--dp-white);
  text-decoration: none;
}

.dp-newsletter-confirmation {
  margin: 8px 0 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/*
 * Skin form “lungo” ActiveCampaign: avvolgi shortcode/blocco plugin in un Gruppo (o HTML)
 * con classe aggiuntiva dp-ac-lead-form. Supporta markup tema (BEM) e form._form dell’embed AC.
 */
.dp-ac-lead-form {
  background: var(--dp-white);
  border: 1px solid var(--dp-rule);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 40px auto 0;
  max-width: min(100%, 32.5rem);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dp-ac-lead-form__inner {
  max-width: 100%;
}

.dp-ac-lead-form__intro {
  margin: 0 0 14px;
}

.dp-ac-lead-form__title {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dp-black);
}

.dp-ac-lead-form__lead {
  margin: 0;
  font-size: 14px;
  color: var(--dp-gray);
  line-height: 1.5;
}

.dp-ac-lead-form__form,
.dp-ac-lead-form form._form,
.dp-ac-lead-form form[class*="_form"] {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  align-items: stretch;
}

.dp-ac-lead-form form._form,
.dp-ac-lead-form form[class*="_form"] {
  gap: 6px;
}

.dp-ac-lead-form ._form-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

/* L’embed AC a volte imposta larghezze fisse sul wrapper: resta dentro il box tema */
.dp-ac-lead-form div[class*="_form_"],
.dp-ac-lead-form form[class*="_form"] {
  max-width: 100% !important;
  box-sizing: border-box;
}

.dp-ac-lead-form ._form_element {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Righe esplicite (no display:contents): wpautop / griglie parent meno ambigue, ordine visivo chiaro */
.dp-ac-lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* Flex: più resistente ai layout globali TT3 che azzerano le griglie sui form */
.dp-ac-lead-form__row--split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px 14px;
  align-items: flex-start;
}

.dp-ac-lead-form__row--split > .dp-ac-lead-form__field {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
}

.dp-ac-lead-form__field--full {
  width: 100%;
}

.dp-ac-lead-form__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  min-height: 0;
}

/* TT3 / Global Styles: alcune installazioni applicano margini alle label nei flussi constrained */
.dp-ac-lead-form label.dp-ac-lead-form__field {
  margin: 0 !important;
}

.dp-ac-lead-form__label,
.dp-ac-lead-form ._form_element label,
.dp-ac-lead-form form._form label,
.dp-ac-lead-form form[class*="_form"] label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dp-black);
  text-transform: none;
  letter-spacing: 0;
}

.dp-ac-lead-form__req {
  color: var(--dp-accent);
  text-decoration: none;
  font-weight: 700;
}

.dp-ac-lead-form__input,
.dp-ac-lead-form form._form input[type="text"],
.dp-ac-lead-form form._form input[type="email"],
.dp-ac-lead-form form._form input[type="tel"],
.dp-ac-lead-form form._form input[type="url"],
.dp-ac-lead-form form._form input[type="number"],
.dp-ac-lead-form form._form textarea,
.dp-ac-lead-form form[class*="_form"] input[type="text"],
.dp-ac-lead-form form[class*="_form"] input[type="email"],
.dp-ac-lead-form form[class*="_form"] input[type="tel"],
.dp-ac-lead-form form[class*="_form"] input[type="url"],
.dp-ac-lead-form form[class*="_form"] input[type="number"],
.dp-ac-lead-form form[class*="_form"] textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--dp-rule);
  background: var(--dp-white);
  color: var(--dp-black);
  font-size: 14px;
  font-family: var(--dp-sans);
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s;
}

.dp-ac-lead-form__input::placeholder,
.dp-ac-lead-form form._form input::placeholder,
.dp-ac-lead-form form._form textarea::placeholder,
.dp-ac-lead-form form[class*="_form"] input::placeholder,
.dp-ac-lead-form form[class*="_form"] textarea::placeholder {
  color: var(--dp-muted);
}

.dp-ac-lead-form__input:focus,
.dp-ac-lead-form form._form input:focus,
.dp-ac-lead-form form._form textarea:focus,
.dp-ac-lead-form form[class*="_form"] input:focus,
.dp-ac-lead-form form[class*="_form"] textarea:focus {
  border-color: var(--dp-black);
}

.dp-ac-lead-form__privacy {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--dp-gray);
}

.dp-ac-lead-form__privacy a {
  color: var(--dp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dp-ac-lead-form__privacy p {
  margin: 0 0 6px;
}

.dp-ac-lead-form__privacy p:last-child {
  margin-bottom: 0;
}

.dp-ac-lead-form__consent {
  margin: 0 0 12px;
  padding: 0;
  border: none;
}

.dp-ac-lead-form__consent-radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.dp-ac-lead-form__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dp-black);
  cursor: pointer;
  margin: 0;
}

.dp-ac-lead-form__radio,
.dp-ac-lead-form form._form input[type="radio"],
.dp-ac-lead-form form[class*="_form"] input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.dp-ac-lead-form__consent-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--dp-gray);
  line-height: 1.45;
}

.dp-ac-lead-form__actions {
  margin: 0;
  width: 100%;
  max-width: 320px;
}

.dp-ac-lead-form__submit,
.dp-ac-lead-form form._form input[type="submit"],
.dp-ac-lead-form form._form button[type="submit"],
.dp-ac-lead-form form[class*="_form"] input[type="submit"],
.dp-ac-lead-form form[class*="_form"] button[type="submit"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 22px;
  background: var(--dp-white);
  color: var(--dp-black);
  border: 2px solid var(--dp-black);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--dp-sans);
  transition: background 0.15s, color 0.15s;
}

.dp-ac-lead-form__submit:hover,
.dp-ac-lead-form form._form input[type="submit"]:hover,
.dp-ac-lead-form form._form button[type="submit"]:hover,
.dp-ac-lead-form form[class*="_form"] input[type="submit"]:hover,
.dp-ac-lead-form form[class*="_form"] button[type="submit"]:hover {
  background: var(--dp-black);
  color: var(--dp-white);
}

/* -------------------------------------------------------------------------
 * ActiveCampaign embed: select, checkbox, blocchi HTML, fieldset consenso.
 * (Titolo/descrizione in cima al form sono definiti nel builder AC, non nel tema.)
 * ------------------------------------------------------------------------- */
.dp-ac-lead-form form._form select,
.dp-ac-lead-form form[class*="_form"] select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--dp-rule);
  background: var(--dp-white);
  color: var(--dp-black);
  font-size: 14px;
  font-family: var(--dp-sans);
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}

.dp-ac-lead-form form._form select:focus,
.dp-ac-lead-form form[class*="_form"] select:focus {
  border-color: var(--dp-black);
}

.dp-ac-lead-form ._html-code {
  font-size: 12px;
  line-height: 1.45;
  color: var(--dp-gray);
}

.dp-ac-lead-form ._html-code p {
  margin: 0 0 8px;
}

.dp-ac-lead-form ._html-code p:last-child {
  margin-bottom: 0;
}

.dp-ac-lead-form ._html-code a {
  color: var(--dp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Intestazione testuale spesso come H2 + paragrafo nel markup AC */
.dp-ac-lead-form form._form h1,
.dp-ac-lead-form form._form h2,
.dp-ac-lead-form form[class*="_form"] h1,
.dp-ac-lead-form form[class*="_form"] h2 {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--dp-black);
}

.dp-ac-lead-form form._form h2 + p,
.dp-ac-lead-form form[class*="_form"] h2 + p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--dp-gray);
  line-height: 1.5;
}

.dp-ac-lead-form form._form fieldset._form-fieldset,
.dp-ac-lead-form form[class*="_form"] fieldset._form-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  width: 100%;
}

.dp-ac-lead-form form._form fieldset._form-fieldset legend,
.dp-ac-lead-form form[class*="_form"] fieldset._form-fieldset legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dp-black);
}

.dp-ac-lead-form form._form fieldset._form-fieldset label,
.dp-ac-lead-form form[class*="_form"] fieldset._form-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 8px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.dp-ac-lead-form form._form fieldset._form-fieldset input[type="radio"],
.dp-ac-lead-form form[class*="_form"] fieldset._form-fieldset input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.dp-ac-lead-form form._form input[type="checkbox"],
.dp-ac-lead-form form[class*="_form"] input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  flex-shrink: 0;
  vertical-align: middle;
}

/*
 * Wrapper campi AC: in colonna così radio/select multipli non restano appiccicati in una riga;
 * se è un solo <select> resta comunque a tutta larghezza.
 */
.dp-ac-lead-form ._field-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.dp-ac-lead-form ._field-wrapper > label,
.dp-ac-lead-form ._form_element ._field-wrapper label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.dp-related-preview-note {
  font-size: 13px;
  color: var(--dp-muted);
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--dp-rule);
  border-radius: 6px;
}

.dp-related {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--dp-black);
}

.dp-related h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Un solo “slot” rispetto a griglie/flex antenate (articolo / post content TT3). */
.dp-related-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  contain: layout;
}

/*
 * Griglia card: markup div+role=list (no ul/li) per evitare display:contents / stili lista del core.
 * Colonne: inline da PHP; qui solo fallback se manca lo style.
 */
.dp-related-grid-cards {
  margin: 0;
  padding: 0;
  display: grid !important;
  gap: 20px;
  grid-template-columns: repeat(var(--dp-related-cols, 3), minmax(0, 1fr));
  grid-auto-flow: row;
  /* stretch: tutte le card della riga hanno la stessa altezza (quella del contenuto più alto) */
  align-items: stretch;
  width: 100%;
  min-width: 0;
  grid-column: 1;
  box-sizing: border-box;
}

.dp-related-grid-cards > .dp-related-item:empty {
  display: none;
}

/* Residui wpautop: non devono occupare celle nella griglia */
.dp-related-grid-cards > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop: una riga (batte conflitti core/TT3; l’inline PHP resta allineato). */
@media (min-width: 861px) {
  .dp-related-grid-cards[data-dp-related-cols="1"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .dp-related-grid-cards[data-dp-related-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dp-related-grid-cards[data-dp-related-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.dp-related-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Un solo articolo: card a larghezza “da griglia”, non a tutta la colonna del sito */
.dp-related-grid-cards[data-dp-related-cols="1"] .dp-related-item {
  justify-self: start;
  width: 100%;
  max-width: min(100%, 380px);
}

.dp-related-card {
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  background: var(--dp-white);
  border: 1px solid var(--dp-rule);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dp-related-card__media {
  display: block;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dp-rule);
}

.dp-related-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px;
}

.dp-related-card:hover {
  border-color: var(--dp-accent);
  box-shadow: 0 4px 20px var(--dp-accent-shadow);
}

.dp-card-author {
  display: block;
  font-size: 12px;
  color: var(--dp-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.dp-related-card__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--dp-black);
}

.dp-home-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dp-home-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dp-home-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.dp-home-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.dp-home-section-heading p {
  margin: 0;
  max-width: 560px;
  color: var(--dp-gray);
  font-size: 14px;
  line-height: 1.65;
}

.dp-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
}

.dp-home-hero-copy,
.dp-home-hero-panel {
  border-radius: 18px;
  padding: 32px;
  box-sizing: border-box;
}

.dp-home-hero-copy {
  background: var(--dp-hero-gradient);
  color: var(--dp-white);
  box-shadow: var(--dp-shadow-soft);
}

.dp-home-hero--archive .dp-home-hero-copy {
  background: linear-gradient(135deg, var(--dp-accent) 0%, var(--dp-header-dark) 100%);
}

.dp-home-hero-panel {
  background: var(--dp-surface);
  border: 1px solid rgba(26, 86, 219, 0.12);
}

.dp-home-eyebrow,
.dp-home-panel-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dp-home-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.dp-home-panel-label {
  color: var(--dp-accent);
}

.dp-home-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.dp-home-subtitle {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.72;
}

.dp-home-hero-copy .dp-home-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.dp-home-builder-page {
  max-width: 1240px;
}

.dp-home-builder-content {
  width: 100%;
}

.dp-home-search {
  margin-top: 26px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.dp-home-search input {
  flex: 1 1 auto;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: var(--dp-white);
  color: var(--dp-black);
  font-size: 15px;
  font-family: var(--dp-sans);
}

.dp-home-search button {
  min-width: 132px;
  border: none;
  border-radius: 12px;
  background: var(--dp-accent);
  color: var(--dp-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.dp-home-builder-actions {
  margin-top: 26px;
  gap: 12px;
}

.dp-home-builder-actions .wp-block-button__link {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--dp-white);
  color: var(--dp-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dp-home-builder-actions .wp-block-button__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dp-accent-strong);
}

.dp-home-builder-actions .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--dp-white);
}

.dp-home-builder-actions .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--dp-white);
}

.dp-home-search-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.dp-home-highlights {
  display: grid;
  gap: 14px;
}

.dp-home-highlight-card {
  background: var(--dp-white);
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: 14px;
  padding: 18px;
}

.dp-home-highlight-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dp-home-highlight-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-style: normal;
}

.dp-home-highlight-card p {
  margin: 0;
  color: var(--dp-gray);
  font-size: 14px;
  line-height: 1.65;
}

.dp-home-section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-home-section-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dp-black);
}

.dp-home-section-header p {
  margin: 0;
  max-width: 640px;
  color: var(--dp-gray);
  font-size: 15px;
  line-height: 1.7;
}

.dp-home-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.dp-home-cat-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--dp-rule);
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-gray);
  text-decoration: none;
  background: var(--dp-white);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.dp-home-cat-link:hover {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
  transform: translateY(-1px);
}

.dp-home-cat-link.is-active {
  background: var(--dp-accent-bg);
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}

.dp-home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
}

.dp-home-featured-card,
.dp-home-card,
.dp-home-side-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.dp-home-featured-card {
  display: grid;
  grid-template-columns: minmax(220px, 44%) minmax(0, 1fr);
}

.dp-home-featured-image-link,
.dp-home-card-image-link {
  display: block;
  text-decoration: none;
}

.dp-home-featured-image,
.dp-home-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-home-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.dp-home-featured-title {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.dp-home-featured-title a,
.dp-home-side-title a,
.dp-home-card-title a {
  color: var(--dp-black);
  text-decoration: none;
}

.dp-home-featured-title a:hover,
.dp-home-side-title a:hover,
.dp-home-card-title a:hover {
  color: var(--dp-accent);
}

.dp-home-featured-summary {
  margin: 0;
  color: var(--dp-gray);
  font-size: 15px;
  line-height: 1.7;
}

.dp-home-side-list {
  display: grid;
  gap: 14px;
}

.dp-home-side-card {
  padding: 20px;
}

.dp-home-side-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-accent);
}

.dp-home-side-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dp-home-side-meta {
  margin: 0;
  color: var(--dp-muted);
  font-size: 12px;
  font-weight: 700;
}

.dp-home-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dp-home-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dp-home-card-image {
  height: 220px;
}

.dp-home-card-image--placeholder {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--dp-hero-gradient);
  color: var(--dp-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dp-home-card .dp-topic,
.dp-home-card-title,
.dp-home-summary,
.dp-home-card-meta {
  margin-left: 20px;
  margin-right: 20px;
}

.dp-home-card .dp-topic {
  margin-top: 18px;
}

.dp-home-card .dp-topic span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-accent);
}

.dp-home-card-title {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.dp-home-summary {
  color: var(--dp-gray);
  font-size: 15px;
  line-height: 1.72;
}

.dp-home-card-meta {
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--dp-rule);
}

.dp-home-card-author,
.dp-home-card-readtime {
  font-size: 12px;
  color: var(--dp-muted);
  font-weight: 700;
}

.dp-home-card-sep {
  width: 1px;
  height: 12px;
  background: var(--dp-rule);
}

.dp-home-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-home-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--dp-rule);
  background: var(--dp-white);
  color: var(--dp-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.dp-home-pagination .page-numbers.current,
.dp-home-pagination .page-numbers:hover {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}

.dp-home-latest-preview-note {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--dp-rule);
  border-radius: 8px;
  color: var(--dp-muted);
  font-size: 13px;
}

.dp-home-simple {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1260px;
  padding: 12px 16px 72px;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.dp-home-simple-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 42px auto 0;
  padding: 16px 0 0;
  text-align: center;
}

.dp-home-simple-kicker {
  margin: 0 0 14px;
  color: var(--dp-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dp-home-simple-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(64px, 7.8vw, 104px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--dp-hero-text);
}

.dp-home-simple-title-line {
  display: block;
}

.dp-home-simple-title-line--dark {
  color: var(--dp-hero-text-secondary);
}

.dp-home-simple-subtitle {
  margin: 26px 0 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
}

.dp-home-simple-benefits {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 560px;
  width: 100%;
}

.dp-home-simple-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--dp-hero-benefit-bg);
  color: var(--dp-benefit-text-color, var(--dp-hero-benefit-text));
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

.dp-home-simple-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--dp-hero-benefit-icon);
  flex-shrink: 0;
}

.dp-home-simple-benefit-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dp-home-simple-benefit-icon i {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.dp-home-simple-benefit-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dp-home-simple-closing {
  margin: 28px auto 0;
  max-width: 700px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.dp-home-simple-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dp-home-simple-section + .dp-home-simple-section {
  padding-top: 36px;
}

.dp-home-simple-section-title {
  margin: 0;
  text-align: left;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dp-white);
}

.dp-home-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.dp-home-simple-card {
  min-height: 100%;
  padding: 34px 30px 30px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: var(--dp-white);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12);
  text-align: center;
}

.dp-home-simple-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  color: var(--dp-accent);
}

.dp-home-simple-card-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.dp-home-simple-card-eyebrow {
  margin: 0 0 14px;
  color: var(--dp-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dp-home-simple-card-title {
  margin: 0 0 18px;
  color: var(--dp-black);
  font-size: clamp(24px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.dp-home-simple-card-title a {
  color: inherit;
  text-decoration: none;
}

.dp-home-simple-card-title a:hover {
  color: var(--dp-accent);
}

.dp-home-simple-card-text {
  margin: 0;
  color: #70757a;
  font-size: 16px;
  line-height: 1.75;
}

.dp-home-simple-grid--articles {
  gap: 26px;
}

.dp-home-simple-card--article {
  padding: 0;
  border: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dp-home-simple-article-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
}

.dp-home-simple-article-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-home-simple-article-media--placeholder {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(135deg, var(--dp-accent-strong) 0%, var(--dp-accent) 100%);
}

.dp-home-simple-article-media--placeholder span {
  color: var(--dp-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dp-home-simple-article-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 26px;
}

.dp-home-simple-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.dp-home-simple-card--article .dp-home-simple-card-eyebrow,
.dp-home-simple-article-reading-time {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dp-home-simple-card--article .dp-home-simple-card-eyebrow {
  color: var(--dp-accent);
}

.dp-home-simple-article-reading-time {
  color: var(--dp-muted);
}

.dp-home-simple-article-sep {
  width: 1px;
  height: 12px;
  background: var(--dp-rule);
}

.dp-home-simple-card--article .dp-home-simple-card-title {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.12;
}

.dp-home-simple-card--article .dp-home-simple-card-text {
  color: var(--dp-gray);
}

.dp-home-simple-article-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--dp-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.dp-home-simple-article-link:hover {
  color: var(--dp-accent-strong);
}

.dp-home-simple-empty {
  margin: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}

.dp-blog-listing-section {
  margin-top: 12px;
}

.dp-blog-listing-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.dp-blog-listing-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--dp-white);
  color: var(--dp-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dp-blog-listing-more:hover {
  opacity: 0.94;
}

.dp-404-wrap {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
}

.dp-404-card {
  width: 100%;
  max-width: var(--dp-prose);
  border: 1px solid var(--dp-rule);
  border-radius: 12px;
  background: var(--dp-white);
  padding: 38px 34px;
}

.dp-404-code {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dp-accent);
}

.dp-404-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dp-404-text {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dp-gray);
}

.dp-404-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--dp-rule);
  background: var(--dp-white);
  color: var(--dp-gray);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dp-404-btn:hover {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}

.dp-404-btn-primary {
  border-color: var(--dp-accent);
  background: var(--dp-accent);
  color: var(--dp-white);
}

.dp-404-btn-primary:hover {
  background: var(--dp-accent-strong);
  border-color: var(--dp-accent-strong);
  color: var(--dp-white);
}

@media (max-width: 980px) {
  .dp-download-box,
  .dp-download-cta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dp-download-box-media img {
    min-height: 180px;
  }

  .dp-home-simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

}

@media (max-width: 860px) {
  .dp-site-utility-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dp-site-header {
    height: auto;
    min-height: 64px;
  }

  .dp-site-header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    align-items: flex-start;
  }

  .dp-site-brand {
    max-width: calc(100% - 116px);
  }

  .dp-site-logo {
    font-size: 21px;
  }

  .dp-site-tagline {
    display: none;
  }

  .dp-site-header-actions {
    margin-left: auto;
    gap: 10px;
  }

  .dp-header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .dp-site-nav-toggle {
    display: inline-flex;
  }

  .dp-site-nav-wrap {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    background: var(--dp-white);
    border: 1px solid var(--dp-rule);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 120;
  }

  .dp-site-nav-wrap.is-open {
    display: block;
  }

  .dp-site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .dp-site-nav li a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .dp-site-nav li a:hover {
    background: var(--dp-accent-bg);
  }

  .dp-site-footer-inner {
    flex-direction: column;
  }

  .dp-site-footer-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .dp-page-wrap {
    padding: 36px 16px 72px;
  }

  .dp-page-wrap--page {
    padding: 32px 14px 64px;
  }

  body.dp-page-has-latest-posts .dp-page-wrap--page {
    padding-top: 18px;
  }

  .dp-home-hero,
  .dp-home-feature-grid,
  .dp-home-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dp-home-section-header p {
    max-width: none;
  }

  .dp-home-hero-copy,
  .dp-home-hero-panel,
  .dp-home-featured-body,
  .dp-home-side-card {
    padding: 24px;
  }

  .dp-home-featured-card {
    grid-template-columns: 1fr;
  }

  .dp-home-featured-image {
    min-height: 240px;
  }

  .dp-home-search {
    flex-direction: column;
  }

  .dp-home-search button {
    min-height: 48px;
  }

  .dp-404-card {
    padding: 28px 22px;
  }

  .dp-newsletter {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

  .dp-ac-lead-form {
    padding: 20px 18px;
  }

  .dp-download-box-content {
    padding: 20px 20px 22px;
  }

  .dp-download-box-content h4,
  .dp-newsletter h4 {
    font-size: 24px;
  }

  .dp-newsletter-form {
    flex-direction: row;
    align-items: center;
  }

  .dp-newsletter-form input {
    max-width: none;
  }

  .dp-related-grid-cards {
    gap: 14px;
  }

  /* !important batte grid-template-columns inline da PHP su viewport piccoli */
  .dp-related-grid-cards[data-dp-related-cols="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .dp-ac-lead-form__row--split {
    flex-wrap: wrap;
  }

  .dp-ac-lead-form__row--split > .dp-ac-lead-form__field {
    flex: 1 1 100%;
  }

  .dp-home-simple {
    gap: 40px;
    padding: 40px 16px 56px;
  }

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

  .dp-home-simple-card {
    padding: 30px 24px 26px;
  }
}

@media (max-width: 520px) {
  body.dp-page-has-latest-posts .dp-blog-search-controls {
    flex-direction: column;
    align-items: stretch;
  }

  body.dp-page-has-latest-posts .dp-blog-search-button {
    width: 100%;
  }

  .dp-home-builder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dp-home-builder-actions .wp-block-button,
  .dp-home-builder-actions .wp-block-button__link {
    width: 100%;
  }

  .dp-site-header-actions {
    align-items: center;
  }

  .dp-header-cta {
    display: none;
  }

  .dp-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .dp-home-card-title,
  .dp-home-featured-title {
    font-size: 26px;
  }

  .dp-related-grid-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/*
 * Blocco newsletter: evita che form/figli con display:contents (tema / Global Styles)
 * partecipino come celle a una griglia antenata (es. accanto a “Ultimi articoli”).
 */
.wp-block-tt3-child-dp-newsletter-box {
  display: block;
  width: 100%;
}

.wp-block-tt3-child-dp-newsletter-box form.dp-ac-form {
  display: block !important;
}

.wp-block-tt3-child-dp-newsletter-box .dp-newsletter form.dp-ac-form {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wp-block-tt3-child-dp-related-posts {
  display: block !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/*
 * Blocchi guida solo per l'editor (pattern "guida mock").
 * Non devono comparire sul sito pubblico.
 */
.dp-editor-help {
  display: none !important;
}
