/* Shortcode [da_home] e [contatti] – stili isolati sotto .dda-home per non interferire con il tema.
   Colori presi dall'app: blu notte, blu azione, carta dei libri della foto di login. */
.dda-home {
	--h-navy: #13213c;
	--h-navy-2: #1c2f52;
	--h-ink: #2b3445;
	--h-muted: #5d6677;
	--h-blue: #1673e6;
	--h-blue-dark: #0f5fc2;
	--h-paper: #fbf8f4;
	--h-beige: #f6f0ea;
	--h-grey: #f3f5f9;
	--h-line: #e5e8ee;
	--h-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--h-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
	font-family: var(--h-sans);
	font-size: 16px;
	line-height: 1.55;
	color: var(--h-ink);
}
.dda-home.alignfull { max-width: none !important; margin-top: 0 !important; margin-bottom: 0 !important; }
/* Temi senza supporto per la larghezza piena: le fasce escono comunque fino ai bordi */
:where(body:not(.wp-theme-twentytwentyfive):not(.wp-theme-twentytwentyfour):not(.wp-theme-twentytwentythree)) .dda-home.alignfull:not(.dda-ct) {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.dda-home *,
.dda-home *::before,
.dda-home *::after { box-sizing: border-box; }
.dda-home h2,
.dda-home h3,
.dda-home h4,
.dda-home p,
.dda-home figure,
.dda-home ul,
.dda-home ol { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.dda-home ul,
.dda-home ol { list-style: none !important; }
.dda-home li { margin: 0 !important; }

.dda-home__wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Fasce con sfondi diversi */
.dda-home__band { padding: clamp(56px, 8vw, 96px) 0; }
.dda-home__band--white { background: #fff; }
.dda-home__band--grey { background: var(--h-grey); }
.dda-home__band--paper { background: var(--h-beige); }
.dda-home__band--last { padding-top: clamp(48px, 7vw, 80px); }
.dda-home__band--hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 480px at 85% 10%, rgba(22, 115, 230, .35), transparent 60%),
		radial-gradient(700px 420px at 0% 100%, rgba(125, 179, 255, .12), transparent 60%),
		linear-gradient(160deg, var(--h-navy) 0%, var(--h-navy-2) 100%);
	color: #dbe3f0;
}

.dda-home__head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.dda-home__head p { margin-top: 10px; font-size: 17px; color: var(--h-muted); }
.dda-home .dda-home__h3 {
	font-family: var(--h-serif) !important;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em !important;
	color: var(--h-navy) !important;
}

/* ── Apertura ──────────────────────────────────────────────────────────── */
.dda-home__hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dda-home__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px !important; font-size: 16px; font-weight: 600; color: #fff; }
.dda-home__brand.is-dark { color: var(--h-navy); }
.dda-home .dda-home__title {
	max-width: 12em;
	font-family: var(--h-serif) !important;
	font-size: clamp(38px, 5.2vw, 64px) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em !important;
	color: #fff !important;
}
.dda-home__lead { max-width: 33em; margin-top: 22px !important; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.6; color: #c4cfe0; }
.dda-home__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px !important; }
.dda-home__pills li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13.5px; color: #dbe3f0; }

/* Pulsanti */
.dda-home__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dda-home .dda-home__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: var(--h-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.dda-home .dda-home__btn--primary { background: var(--h-blue); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(22, 115, 230, .7); }
.dda-home .dda-home__btn--primary:hover { background: var(--h-blue-dark); }
.dda-home .dda-home__btn--ghost { background: transparent; border-color: rgba(19, 33, 60, .3); color: var(--h-navy) !important; }
.dda-home .on-dark .dda-home__btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.dda-home .on-dark .dda-home__btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.dda-home .dda-home__btn:focus-visible { outline: 3px solid rgba(125, 179, 255, .6); outline-offset: 3px; }

/* Estratto di rendiconto */
.dda-home .dda-home__slip {
	position: relative;
	margin: 0 18px 34px 0;
	padding: 28px 28px 22px;
	background: #fff;
	border: 2px solid #0b1730;
	border-radius: 24px;
	color: var(--h-ink);
	box-shadow: 14px 14px 0 0 #6ea8ff;
	transform: rotate(-2deg);
}
/* "Biglietto" timbrato che sporge dal box, come su spartpay.com */
.dda-home__stamp {
	position: absolute;
	right: -22px;
	bottom: -30px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px 12px;
	background: #cfe0fa;
	border: 2px solid #0b1730;
	border-radius: 12px;
	box-shadow: 5px 5px 0 0 #0b1730;
	transform: rotate(5deg);
	color: #0b1730;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dda-home__stamp span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.dda-home__stamp strong { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.dda-home__slip-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px dashed var(--h-line); }
.dda-home__slip-head div { display: flex; flex-direction: column; }
.dda-home__slip-head strong { font-family: var(--h-serif); font-size: 21px; font-weight: 600; color: var(--h-navy); }
.dda-home__slip-head span { font-size: 13.5px; color: var(--h-muted); font-variant-numeric: tabular-nums; }
.dda-home__cover {
	flex: 0 0 38px;
	height: 52px;
	border-radius: 2px 4px 4px 2px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0 3px, transparent 3px), linear-gradient(160deg, #3d6b4f 0%, #1f4733 100%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.dda-home__tiers { display: flex; height: 28px; margin-top: 20px; border: 2px solid #0b1730; border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 700; }
.dda-home__tiers span { display: flex; align-items: center; padding-left: 10px; }
.dda-home__tiers .t2 { border-left: 2px solid #0b1730; }
.dda-home__tiers .t3 { border-left: 2px solid #0b1730; }
.dda-home__tiers .t1 { background: #cfe0fa; color: #134a9a; }
.dda-home__tiers .t2 { background: var(--h-blue); color: #fff; }
.dda-home__tiers .t3 { background: repeating-linear-gradient(135deg, #ece7e1 0 6px, #f5f1ec 6px 12px); }
.dda-home__tiers-legend { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--h-muted); font-variant-numeric: tabular-nums; }
.dda-home__tiers-legend span { position: absolute; top: 0; }
.dda-home__tiers-legend span:nth-child(1) { left: 0; }
.dda-home__tiers-legend span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.dda-home__tiers-legend span:nth-child(3) { right: 0; }
.dda-home__calc { width: 100%; margin: 18px 0 0 !important; border: 0 !important; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.dda-home__calc td { padding: 7px 0 !important; border: 0 !important; background: none !important; vertical-align: baseline; color: var(--h-ink); }
.dda-home__calc td.p { width: 48px; color: var(--h-muted); text-align: right; padding-right: 16px !important; }
.dda-home__calc td.v { text-align: right; white-space: nowrap; color: var(--h-navy); font-weight: 500; }
.dda-home__calc tr.sub td { padding-top: 11px !important; border-top: 1px solid var(--h-line) !important; font-weight: 600; color: var(--h-navy); }
.dda-home__calc tfoot td { padding-top: 12px !important; border-top: 2px solid var(--h-navy) !important; font-size: 17px; font-weight: 700; color: var(--h-navy); }
.dda-home__calc tfoot td.v { font-size: 22px; color: var(--h-navy); }
.dda-home__slip figcaption { margin-top: 14px; padding-top: 12px; padding-right: 150px; border-top: 1px dashed var(--h-line); font-size: 13px; line-height: 1.45; color: var(--h-muted); }

/* ── Box delle funzioni ────────────────────────────────────────────────── */
.dda-home__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dda-home__box {
	padding: 28px 26px;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(19, 33, 60, .04);
	transition: transform .18s, box-shadow .18s;
}
.dda-home__box:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(19, 33, 60, .25); }
.dda-home__box h4,
.dda-home__step h4,
.dda-home__checks strong,
.dda-ct__points strong {
	display: block;
	margin: 16px 0 6px !important;
	font-family: var(--h-sans) !important;
	font-size: 18px !important;
	font-weight: 650 !important;
	line-height: 1.3 !important;
	color: var(--h-navy) !important;
}
.dda-home__box p,
.dda-home__step p,
.dda-home__checks p,
.dda-ct__points p { font-size: 15px; line-height: 1.6; color: var(--h-muted); }
.dda-home__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.dda-home__icon.tone-blu { background: #e3edfd; color: #1a6fe0; }
.dda-home__icon.tone-arancio { background: #ffeddc; color: #df6c0b; }
.dda-home__icon.tone-verde { background: #dff4e7; color: #13934a; }
.dda-home__icon.tone-giallo { background: #fff2d6; color: #d68400; }
.dda-home__icon.tone-viola { background: #eee7fd; color: #7c3aed; }
.dda-home__icon.tone-rosso { background: #fde5e3; color: #d92d20; }

/* ── Come funziona ─────────────────────────────────────────────────────── */
.dda-home__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.dda-home__step {
	position: relative;
	padding: 30px 26px 28px;
	border-radius: 18px;
	background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
	border: 1px solid #e3ebf8;
}
.dda-home__num {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--h-blue);
	color: #fff;
	font-family: var(--h-serif);
	font-size: 26px;
	box-shadow: 0 10px 20px -10px rgba(22, 115, 230, .8);
}
.dda-home__step:not(:last-child)::after { /* freccia verso il passo successivo */
	content: "";
	position: absolute;
	top: 50%;
	right: -16px;
	z-index: 1;
	width: 12px;
	height: 12px;
	border-top: 2px solid #b8cdf0;
	border-right: 2px solid #b8cdf0;
	transform: translateY(-50%) rotate(45deg);
}

/* ── Garanzie ──────────────────────────────────────────────────────────── */
.dda-home__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.dda-home__para { margin-top: 18px !important; font-size: 17px; line-height: 1.65; color: var(--h-muted); max-width: 30em; }
.dda-home__checks { display: grid; gap: 14px; }
.dda-home__checks li { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(19, 33, 60, .05), 0 8px 24px -16px rgba(19, 33, 60, .2); }
.dda-home__checks strong { margin-top: 2px !important; margin-bottom: 4px !important; }
.dda-home__tick { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dff4e7; color: #13934a; }
.dda-home__tick.is-big { width: 60px; height: 60px; margin: 0 auto 16px; }

/* ── Chiusura ──────────────────────────────────────────────────────────── */
.dda-home__final {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 24px;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(125, 179, 255, .35), transparent 60%),
		linear-gradient(135deg, var(--h-blue) 0%, #0d4fb0 100%);
	color: #dbe8ff;
}
.dda-home .dda-home__final h3 { font-family: var(--h-serif) !important; font-size: clamp(28px, 3vw, 38px) !important; font-weight: 400 !important; line-height: 1.15 !important; color: #fff !important; }
.dda-home__final p { margin-top: 8px !important; font-size: 17px; }
.dda-home__final .dda-home__ctas { margin-top: 0; flex-shrink: 0; }
.dda-home__final .dda-home__btn--primary { background: #fff; color: var(--h-navy) !important; box-shadow: none; }
.dda-home__final .dda-home__btn--primary:hover { background: #eaf2fe; }

/* ── [contatti] ────────────────────────────────────────────────────────── */
.dda-ct.alignwide { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; }
.dda-ct__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	padding: clamp(28px, 4vw, 56px);
	border-radius: 24px;
	background: var(--h-beige);
}
.dda-home .dda-ct__title { font-family: var(--h-serif) !important; font-size: clamp(30px, 3.4vw, 44px) !important; font-weight: 400 !important; line-height: 1.1 !important; letter-spacing: -0.01em !important; color: var(--h-navy) !important; }
.dda-ct__text { margin-top: 18px !important; font-size: 17px; line-height: 1.65; color: var(--h-muted); }
.dda-ct__points { display: grid; gap: 18px; margin-top: 30px !important; }
.dda-ct__points li { display: flex; gap: 14px; }
.dda-ct__points .dda-home__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; }
.dda-ct__points strong { margin: 0 0 2px !important; font-size: 16.5px !important; }

.dda-ct__card { padding: clamp(22px, 3vw, 34px); background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(19, 33, 60, .05), 0 24px 48px -24px rgba(19, 33, 60, .3); }
.dda-home .dda-ct__formtitle { font-family: var(--h-sans) !important; font-size: 22px !important; font-weight: 700 !important; color: var(--h-navy) !important; }
.dda-ct__formsub { margin-top: 4px !important; font-size: 14px; color: var(--h-muted); }
.dda-ct__alert { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 14.5px; }
.dda-ct__form { display: grid; gap: 16px; margin-top: 20px; }
.dda-ct__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dda-ct__field { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; }
.dda-ct__field > span { font-size: 14px; font-weight: 600; color: var(--h-navy); }
.dda-home .dda-ct__field input,
.dda-home .dda-ct__field select,
.dda-home .dda-ct__field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #d3d9e3 !important;
	border-radius: 10px !important;
	background: #fbfcfe;
	font-family: var(--h-sans);
	font-size: 16px;
	color: var(--h-ink);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.dda-home .dda-ct__field textarea { resize: vertical; min-height: 110px; }
.dda-home .dda-ct__field input:focus,
.dda-home .dda-ct__field select:focus,
.dda-home .dda-ct__field textarea:focus { outline: 0; border-color: var(--h-blue) !important; background: #fff; box-shadow: 0 0 0 4px rgba(22, 115, 230, .14); }
.dda-home .dda-ct__field [aria-invalid="true"] { border-color: #d92d20 !important; }
.dda-ct__err { font-size: 13px; color: #c0261b; }
.dda-ct__check { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; font-size: 14px; line-height: 1.5; color: var(--h-muted); cursor: pointer; }
.dda-ct__check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--h-blue); }
.dda-ct__check a { color: var(--h-blue); }
.dda-home .dda-ct__submit { width: 100%; margin-top: 4px; border: 0; }
.dda-ct__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dda-ct__done { padding: 36px 8px; text-align: center; }
.dda-home .dda-ct__done h3 { font-family: var(--h-serif) !important; font-size: 30px !important; font-weight: 400 !important; color: var(--h-navy) !important; }
.dda-ct__done p { margin-top: 8px !important; color: var(--h-muted); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
	.dda-home__hero,
	.dda-home__split,
	.dda-ct__grid { grid-template-columns: 1fr; }
	.dda-home .dda-home__slip { max-width: 540px; transform: rotate(-1deg); }
	.dda-home__grid { grid-template-columns: repeat(2, 1fr); }
	.dda-home__steps { grid-template-columns: 1fr; }
	.dda-home__step:not(:last-child)::after { top: auto; bottom: -15px; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
	.dda-home__final { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.dda-home__grid,
	.dda-ct__row { grid-template-columns: 1fr; }
	.dda-home__ctas { flex-direction: column; align-items: stretch; }
	.dda-home .dda-home__slip { padding: 20px 18px 16px; margin-right: 14px; }
	.dda-home__stamp { right: -10px; bottom: -34px; }
	.dda-home__slip figcaption { padding-right: 0; padding-bottom: 34px; }
	.dda-home__calc { font-size: 13.5px; }
	.dda-home__final .dda-home__ctas { width: 100%; }
	.dda-ct__grid { padding: 20px 16px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.dda-home__box,
	.dda-home__btn { transition: none; }
	.dda-home__box:hover { transform: none; }
}
