/*
Theme Name: DAMALOGIX
Theme URI: https://damalogix.com
Author: DAMALOGIX
Description: Tema a blocchi su misura per DAMALOGIX — Design. Intelligence. Production. Bilingue IT/EN.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: damalogix
*/

:root {
	--dmx-verde: #10B21B;
	--dmx-blu: #0440A0;
	--dmx-grafite: #3E4145;
	--dmx-rosso: #C81922;
	--dmx-notte: #0A1A33;
	--dmx-testo: #1A1C20;
	--dmx-muted: #5B6472;
	--dmx-bordo: #DDE2EA;
	--dmx-chiaro: #F3F5F8;
	--dmx-radius: 10px;
	--dmx-shadow: 0 18px 40px -24px rgba(10, 26, 51, .45);
	--dmx-tricolore: linear-gradient(90deg, var(--dmx-verde) 0 33.33%, var(--dmx-blu) 33.33% 66.66%, var(--dmx-grafite) 66.66%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--dmx-blu); color: #fff; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--dmx-blu); outline-offset: 3px; }

/* ================= HEADER ================= */
.dmx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	padding-top: 1rem; padding-bottom: 1rem;
	transition: padding .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dmx-header.is-scrolled { padding-top: .6rem; padding-bottom: .6rem; border-color: var(--dmx-bordo); box-shadow: 0 8px 24px -18px rgba(10, 26, 51, .5); }
.admin-bar .dmx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dmx-header { top: 46px; } }
.dmx-logo { display: block; line-height: 0; }
.dmx-logo img { height: 44px; width: auto; transition: height .25s ease; }
.dmx-header.is-scrolled .dmx-logo img { height: 38px; }
.dmx-header-right { gap: 1.4rem !important; }
.dmx-header .wp-block-navigation-item__content { color: var(--dmx-testo); text-decoration: none; padding: .35rem 0 !important; position: relative; }
.dmx-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--dmx-tricolore);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.dmx-header .wp-block-navigation-item__content:hover::after,
.dmx-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.dmx-header .dmx-nav-cta > .wp-block-navigation-item__content {
	background: var(--dmx-rosso); color: #fff; border-radius: 999px; padding: .5rem 1.1rem !important; transition: background .2s ease;
}
.dmx-header .dmx-nav-cta > .wp-block-navigation-item__content::after { display: none; }
.dmx-header .dmx-nav-cta > .wp-block-navigation-item__content:hover { background: var(--dmx-blu); }
.dmx-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--dmx-bordo); border-radius: 999px; font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .06em; }
.dmx-lang a { text-decoration: none; color: var(--dmx-muted); padding: .25rem .6rem; border-radius: 999px; line-height: 1.2; }
.dmx-lang a:hover { color: var(--dmx-blu); }
.dmx-lang a.is-active { background: var(--dmx-notte); color: #fff; }
/* Menu mobile */
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff !important; font-size: 1.4rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem !important; }
@media (max-width: 600px) { .dmx-logo img { height: 36px; } .dmx-header-right { gap: .8rem !important; } }

/* ================= TIPOGRAFIA DI SEZIONE ================= */
.dmx-eyebrow {
	font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .22em;
	text-transform: uppercase; color: var(--dmx-rosso); margin-bottom: .4rem !important;
	display: flex; align-items: center; gap: .7rem;
}
.dmx-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--dmx-tricolore); flex: none; }
.dmx-dark .dmx-eyebrow { color: #7FA8FF; }
.dmx-intro { max-width: 720px; color: var(--dmx-muted); font-size: 1.125rem; }
.dmx-dark .dmx-intro { color: rgba(255, 255, 255, .82); }
.dmx-center { text-align: center; }
.dmx-center .dmx-eyebrow { justify-content: center; }
.dmx-center .dmx-intro { margin-left: auto !important; margin-right: auto !important; }
.dmx-section-head { margin-bottom: clamp(1.75rem, 3vw, 2.75rem) !important; }
.dmx-section-head h2 { margin-top: .2rem; }
.dmx-dark h1, .dmx-dark h2, .dmx-dark h3 { color: #fff; }
.dmx-dark a:not(.wp-element-button) { color: #fff; }

/* ================= SFONDI SCURI E FOTO ================= */
.dmx-dark { background-color: var(--dmx-notte); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dmx-dark.dmx-grid-bg::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .1;
	background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
}
.dmx-photo-bg { background-size: cover; background-position: center; }
.dmx-photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,26,51,.97) 0%, rgba(10,26,51,.86) 45%, rgba(10,26,51,.4) 100%); }
.dmx-cta.dmx-photo-bg::before { background: rgba(10,26,51,.84); }

.dmx-bg-hero { background-image: url(assets/img/foto/hero-pcb.jpg); background-position: 70% center; }
.dmx-bg-pcb { background-image: url(assets/img/foto/pcb-macro.jpg); }
.dmx-bg-lab { background-image: url(assets/img/foto/laboratorio.jpg); }
.dmx-bg-automazione { background-image: url(assets/img/foto/automazione.jpg); }
.dmx-bg-energia { background-image: url(assets/img/foto/energia.jpg); }
.dmx-bg-siderurgia { background-image: url(assets/img/foto/siderurgia.jpg); }
.dmx-bg-macchine { background-image: url(assets/img/foto/macchine.jpg); }
.dmx-bg-chimica { background-image: url(assets/img/foto/chimica.jpg); }
.dmx-bg-acque { background-image: url(assets/img/foto/acque.jpg); }
.dmx-bg-aerospazio { background-image: url(assets/img/foto/aerospazio.jpg); }
.dmx-bg-radar { background-image: url(assets/img/foto/radar.jpg); }
.dmx-bg-spazio { background-image: url(assets/img/foto/spazio.jpg); }
.dmx-bg-radioastronomia { background-image: url(assets/img/foto/radioastronomia.jpg); }
.dmx-bg-strumentazione { background-image: url(assets/img/foto/strumentazione.jpg); }
.dmx-bg-video { background-image: url(assets/img/foto/video.jpg); }

/* ================= HERO HOME ================= */
.dmx-hero-home { min-height: min(86vh, 780px); display: flex; flex-direction: column; justify-content: center; }
.dmx-hero-home h1 { font-size: clamp(2.5rem, 6vw, 4.6rem) !important; line-height: 1.04; letter-spacing: -.02em; max-width: 13ch; margin: .4rem 0 1.2rem; }
.dmx-hero-home h1 em { font-style: normal; background: linear-gradient(90deg, #22C62E, #3D7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dmx-hero-home .dmx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; color: rgba(255,255,255,.86); }
.dmx-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: transparent; }
.dmx-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--dmx-notte); border-color: #fff; }
.dmx-certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem !important; }
.dmx-certs span {
	font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .08em;
	padding: .38rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.06);
}

/* ================= HERO PAGINE INTERNE ================= */
.dmx-page-hero { padding-top: clamp(4rem, 9vw, 7rem) !important; padding-bottom: clamp(3rem, 7vw, 5rem) !important; }
.dmx-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem) !important; max-width: 20ch; margin: .3rem 0 1rem; }
.dmx-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--dmx-tricolore); }

/* ================= GRIGLIE ================= */
.dmx-grid { display: grid !important; gap: 1.25rem; }
.dmx-grid > * { margin: 0 !important; }
.dmx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dmx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dmx-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .dmx-grid--4, .dmx-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dmx-grid--2, .dmx-grid--3, .dmx-grid--4 { grid-template-columns: 1fr; } }

/* ================= CARD ================= */
.dmx-card {
	--c: var(--dmx-blu);
	position: relative; background: #fff; border: 1px solid var(--dmx-bordo); border-radius: var(--dmx-radius);
	padding: 1.75rem !important; height: 100%; overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dmx-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.dmx-card:hover { transform: translateY(-4px); box-shadow: var(--dmx-shadow); border-color: transparent; }
.dmx-card--verde { --c: var(--dmx-verde); }
.dmx-card--blu { --c: var(--dmx-blu); }
.dmx-card--grafite { --c: var(--dmx-grafite); }
.dmx-card--rosso { --c: var(--dmx-rosso); }
.dmx-card h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.dmx-card p { color: var(--dmx-muted); margin: 0 0 .6rem; }
.dmx-card p:last-child { margin-bottom: 0; }
.dmx-card ul { padding-left: 0; margin: .4rem 0 0; list-style: none; }
.dmx-card li { position: relative; padding-left: 1.2rem; margin-bottom: .45rem; color: var(--dmx-testo); font-size: .97rem; }
.dmx-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.dmx-badge {
	display: inline-block; font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .14em;
	text-transform: uppercase; padding: .22rem .6rem; border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c) !important;
	margin-bottom: .9rem !important;
}
.dmx-card .dmx-role { font-weight: 600; color: var(--dmx-testo); }
.dmx-card .dmx-site { font-size: .9rem; margin-top: 1rem; }
.dmx-card .dmx-site a { color: var(--c); font-weight: 600; text-decoration: none; }
.dmx-card .dmx-site a:hover { text-decoration: underline; }

/* Monogrammi DA · MA · LOGI */
.dmx-mono { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 3.6rem !important; line-height: 1 !important; letter-spacing: -.02em; color: var(--c) !important; margin: 0 0 .9rem !important; }
.dmx-company { padding: 2rem !important; }
.dmx-company h3 { font-size: 1.45rem; }

/* ================= ICONE ================= */
.dmx-ico { --i: none; padding-top: 5.4rem !important; }
.dmx-ico::after {
	content: ""; position: absolute; left: 1.75rem; top: 1.9rem; width: 48px; height: 48px; border-radius: 12px;
	background-color: color-mix(in srgb, var(--c) 12%, white);
	background-image: var(--i); background-repeat: no-repeat; background-position: center; background-size: 26px;
}
.dmx-i-design   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230440A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.dmx-i-layers   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3Cpath d='m2 18 10 4 10-4'/%3E%3C/svg%3E"); }
.dmx-i-factory  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l6 4v-4l6 4V6l6 3v12z'/%3E%3Cpath d='M7 17h2M12 17h2M17 17h1'/%3E%3C/svg%3E"); }
.dmx-i-support  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }
.dmx-i-user     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230440A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.dmx-i-three    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8'%3E%3Ccircle cx='8.5' cy='9' r='5'/%3E%3Ccircle cx='15.5' cy='9' r='5'/%3E%3Ccircle cx='12' cy='15.5' r='5'/%3E%3C/svg%3E"); }
.dmx-i-flow     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='4' cy='12' r='2'/%3E%3Cpath d='M6 12h14'/%3E%3Cpath d='m15 7 5 5-5 5'/%3E%3C/svg%3E"); }
.dmx-i-shield   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C81922' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.dmx-i-wave     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h3l2-6 3 12 3-14 3 16 2-8h4'/%3E%3C/svg%3E"); }
.dmx-i-board    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230440A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8' cy='9' r='1.5'/%3E%3Ccircle cx='16' cy='15' r='1.5'/%3E%3Cpath d='M9.5 9H14v4.5M8 10.5V15h6.5'/%3E%3C/svg%3E"); }
.dmx-i-code     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E"); }
.dmx-i-cube     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230440A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 3 7v10l9 5 9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E"); }
.dmx-i-bolt     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230440A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.dmx-i-chip-g   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.dmx-i-check-g  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.dmx-i-box      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 3 7v10l9 5 9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E"); }
.dmx-i-search   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3Cpath d='m8 11 2 2 4-4'/%3E%3C/svg%3E"); }
.dmx-i-shield-v { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.dmx-i-layers-v { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B21B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3Cpath d='m2 18 10 4 10-4'/%3E%3C/svg%3E"); }

/* ================= PROCESSO (fasi con responsabile) ================= */
.dmx-steps { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 0 !important; position: relative; counter-reset: step; padding-top: 1.2rem !important; }
.dmx-steps > * { margin: 0 !important; }
.dmx-step { --c: var(--dmx-bordo); counter-increment: step; position: relative; padding: 2.4rem 1rem 0 0 !important; }
.dmx-step::before {
	content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
	width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
	background: #fff; border: 3px solid var(--c); color: var(--dmx-notte);
	font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: .95rem; transform: translateY(-50%);
}
.dmx-step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: var(--c); opacity: .5; }
.dmx-step.is-dalbi { --c: var(--dmx-verde); }
.dmx-step.is-mavi { --c: var(--dmx-blu); }
.dmx-step.is-logimentor { --c: var(--dmx-grafite); }
.dmx-step.is-team, .dmx-step.is-cliente { --c: #B8C0CC; }
.dmx-step p { margin: 0; }
.dmx-step .dmx-step-title { font-family: 'Exo 2', sans-serif; font-weight: 700; color: var(--dmx-notte); font-size: 1.05rem; line-height: 1.25; margin-bottom: .3rem; }
.dmx-step .dmx-step-owner { font-size: .85rem; font-weight: 600; color: var(--c); }
.dmx-step.is-team .dmx-step-owner, .dmx-step.is-cliente .dmx-step-owner { color: var(--dmx-muted); }
@media (max-width: 900px) {
	.dmx-steps { grid-template-columns: 1fr; padding-left: 1.1rem !important; padding-top: 0 !important; }
	.dmx-step { padding: .2rem 0 1.8rem 2.2rem !important; }
	.dmx-step::before { transform: translate(-50%, 0); }
	.dmx-step::after { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; transform: translateX(-50%); }
}

/* ================= FASI METODO ================= */
.dmx-phase-num { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dmx-rosso) !important; margin-bottom: .3rem !important; }

/* ================= SPLIT CON FOTO ================= */
.dmx-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dmx-split > * { margin: 0 !important; }
@media (max-width: 900px) { .dmx-split { grid-template-columns: 1fr; } }
.dmx-photo { min-height: 480px; border-radius: 14px; background-size: cover; background-position: center; box-shadow: var(--dmx-shadow); position: relative; }
.dmx-photo::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: -10px; height: 6px; border-radius: 3px; background: var(--dmx-tricolore); }
@media (max-width: 900px) { .dmx-photo { min-height: 280px; } }
.dmx-benefits { display: grid !important; gap: 1.5rem; margin-top: 1.8rem !important; }
.dmx-benefits > * { margin: 0 !important; }
.dmx-benefit { --c: var(--dmx-blu); position: relative; padding: 0 0 0 4.4rem !important; min-height: 48px; }
.dmx-benefit.dmx-ico::after { left: 0; top: 0; }
.dmx-benefit h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.dmx-benefit p { margin: 0; color: var(--dmx-muted); }

/* ================= SETTORI (riquadri foto) ================= */
.dmx-tile {
	position: relative; overflow: hidden; border-radius: var(--dmx-radius); aspect-ratio: 4 / 3;
	background-size: cover; background-position: center; display: flex !important; flex-direction: column; justify-content: flex-end;
	padding: 1.2rem !important; color: #fff; isolation: isolate;
}
.dmx-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,51,0) 35%, rgba(10,26,51,.88) 100%); transition: background .3s ease; }
.dmx-tile::after { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; background-size: cover; background-position: center; transition: transform .6s ease; }
.dmx-tile:hover::after { transform: scale(1.06); }
.dmx-tile:hover::before { background: linear-gradient(180deg, rgba(4,64,160,.15) 0%, rgba(10,26,51,.92) 100%); }
.dmx-tile h3 { color: #fff !important; margin: 0 !important; font-size: 1.1rem; line-height: 1.25; }
.dmx-tile p { margin: .35rem 0 0 !important; font-size: .9rem; color: rgba(255,255,255,.85); }

/* ================= NUMERI ================= */
.dmx-stats { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.dmx-stats > * { margin: 0 !important; }
@media (max-width: 800px) { .dmx-stats { grid-template-columns: repeat(2, 1fr); } }
.dmx-stat { border-left: 3px solid var(--dmx-verde); padding-left: 1.2rem !important; }
.dmx-stat:nth-child(2) { border-color: #3D7BFF; }
.dmx-stat:nth-child(3) { border-color: #9AA3AF; }
.dmx-stat:nth-child(4) { border-color: var(--dmx-rosso); }
.dmx-stat .dmx-stat-num { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: #fff; margin: 0 0 .5rem !important; }
.dmx-stat .dmx-stat-label { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0 !important; }

/* ================= ELENCHI SÌ / NO ================= */
.dmx-list-yes, .dmx-list-no { list-style: none; padding-left: 0 !important; }
.dmx-list-yes li, .dmx-list-no li { position: relative; padding-left: 2.1rem; margin-bottom: .9rem; }
.dmx-list-yes li::before, .dmx-list-no li::before {
	position: absolute; left: 0; top: .1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
	display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; line-height: 1;
}
.dmx-list-yes li::before { content: "✓"; background: var(--dmx-verde); }
.dmx-list-no li::before { content: "–"; background: #9AA3AF; }
.dmx-panel { background: #fff; border: 1px solid var(--dmx-bordo); border-radius: var(--dmx-radius); padding: 2rem !important; height: 100%; }
.dmx-panel h3 { margin-top: 0; }

/* ================= TECNOLOGIE ================= */
.dmx-tech { border-top: 1px solid var(--dmx-bordo); }
.dmx-tech-row { display: grid !important; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.1rem 0 !important; border-bottom: 1px solid var(--dmx-bordo); margin: 0 !important; }
.dmx-tech-row > * { margin: 0 !important; }
.dmx-tech-row .dmx-tech-k { font-family: 'Exo 2', sans-serif; font-weight: 700; color: var(--dmx-notte); }
.dmx-tech-row .dmx-tech-v { color: var(--dmx-muted); }
@media (max-width: 700px) { .dmx-tech-row { grid-template-columns: 1fr; gap: .3rem; } }

/* ================= CLIENTI ================= */
.dmx-clients { display: flex !important; flex-wrap: wrap; gap: .75rem !important; }
.dmx-clients p {
	margin: 0 !important; padding: 1rem 1.5rem; border: 1px solid var(--dmx-bordo); border-radius: 8px; background: #fff;
	font-family: 'Exo 2', sans-serif; font-weight: 700; color: var(--dmx-grafite); letter-spacing: .03em;
	transition: color .2s ease, border-color .2s ease;
}
.dmx-clients p:hover { color: var(--dmx-blu); border-color: var(--dmx-blu); }
.dmx-note { font-size: .85rem; color: var(--dmx-muted); }

/* ================= CTA ================= */
.dmx-cta h2 { font-size: clamp(2rem, 4vw, 3rem) !important; max-width: 20ch; margin-left: auto !important; margin-right: auto !important; }

/* ================= SEGNAPOSTO ================= */
.dmx-todo { background: #FFF3C4; color: #6B5500; outline: 1px dashed #C9A000; padding: 0 .3rem; border-radius: 3px; font-size: .9em; }

/* ================= FOOTER ================= */
.dmx-footer { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: 2rem; position: relative; }
.dmx-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--dmx-tricolore); }
.dmx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .dmx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dmx-footer-grid { grid-template-columns: 1fr; } }
.dmx-footer-brand img { width: 240px; height: auto; margin-bottom: 1rem; }
.dmx-footer-brand p { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 36ch; }
.dmx-footer h4 { color: #fff; font-family: 'Exo 2', sans-serif; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: .4rem 0 1rem; }
.dmx-footer ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.dmx-footer li { margin-bottom: .6rem; color: rgba(255,255,255,.7); }
.dmx-footer li span { display: block; font-size: .82rem; color: rgba(255,255,255,.5); }
.dmx-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.dmx-footer a:hover { color: #fff; text-decoration: underline; }
.dmx-footer .dmx-footer-cta { color: #7FA8FF; font-weight: 600; }
.dmx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
.dmx-footer-bottom p { margin: 0; }
.dmx-404 { padding-top: 6rem; padding-bottom: 6rem; }

/* ================= MODULO CONTATTI ================= */
.dmx-form { background: #fff; border: 1px solid var(--dmx-bordo); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem) !important; box-shadow: var(--dmx-shadow); }
.wpcf7 label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem; color: var(--dmx-notte); }
.wpcf7 .dmx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .wpcf7 .dmx-row { grid-template-columns: 1fr; } }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; margin-top: .4rem; padding: .8rem .95rem; font: inherit; font-weight: 400; color: var(--dmx-testo);
	border: 1px solid var(--dmx-bordo); border-radius: 8px; background: var(--dmx-chiaro); transition: border-color .2s, background .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--dmx-blu); background: #fff; box-shadow: 0 0 0 4px rgba(4, 64, 160, .12); }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; color: var(--dmx-muted); }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type=submit] {
	background: var(--dmx-rosso); color: #fff; border: 0; border-radius: 999px; padding: .95rem 2rem; cursor: pointer;
	font-family: 'Exo 2', sans-serif; font-weight: 700; letter-spacing: .04em; font-size: 1rem; transition: background .2s;
}
.wpcf7 input[type=submit]:hover { background: var(--dmx-blu); }
.dmx-contact-item { padding: 1.1rem 0 !important; border-bottom: 1px solid var(--dmx-bordo); margin: 0 !important; }
.dmx-contact-item:last-child { border-bottom: 0; }
.dmx-contact-item strong { display: block; font-family: 'Exo 2', sans-serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dmx-muted); margin-bottom: .2rem; }
.dmx-contact-item a { font-weight: 600; text-decoration: none; }
.dmx-contact-big { font-size: 1.3rem; }

/* ================= PULSANTI ================= */
.wp-element-button, .wp-block-button__link { border-radius: 999px !important; transition: background .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid var(--dmx-notte); color: var(--dmx-notte); background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--dmx-notte); color: #fff; }

/* ================= ANIMAZIONI ================= */
.dmx-anim { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease; }
.dmx-anim.is-visible { opacity: 1; transform: none; }
.dmx-card.dmx-anim.is-visible:hover { transform: translateY(-4px); }
.dmx-hero-home .dmx-hero-content > * { animation: dmx-up .9s ease both; }
.dmx-hero-home .dmx-hero-content > *:nth-child(2) { animation-delay: .1s; }
.dmx-hero-home .dmx-hero-content > *:nth-child(3) { animation-delay: .2s; }
.dmx-hero-home .dmx-hero-content > *:nth-child(4) { animation-delay: .3s; }
.dmx-hero-home .dmx-hero-content > *:nth-child(5) { animation-delay: .4s; }
@keyframes dmx-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.dmx-anim { opacity: 1; transform: none; }
}
.dmx-split:has(.dmx-form) { align-items: start; }
.dmx-contact-info { padding-top: 1.5rem !important; }

/* ================= PAGINA UNICA ================= */
[id] { scroll-margin-top: 84px; }
.dmx-company { display: flex !important; flex-direction: column; }
.dmx-company .dmx-company-meta { font-size: .9rem; margin-top: auto !important; padding-top: 1rem; }
.dmx-company .dmx-site { margin: 1rem 0 0 !important; }
.dmx-company .dmx-site a {
	display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 999px;
	background: var(--c); color: #fff !important; font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .92rem; letter-spacing: .02em;
	text-decoration: none !important; transition: filter .2s ease, transform .2s ease;
}
.dmx-company .dmx-site a:hover { filter: brightness(1.15); transform: translateY(-1px); }
.dmx-steps-title { margin-top: clamp(3rem, 6vw, 4.5rem) !important; margin-bottom: 1.5rem !important; font-size: 1.35rem !important; }
.dmx-stats-band { padding-top: clamp(3rem, 6vw, 4.5rem) !important; padding-bottom: clamp(3rem, 6vw, 4.5rem) !important; }
#contact .dmx-split { align-items: start; }

/* ================= HERO HOME v2 (a tutta larghezza) ================= */
.dmx-hero-home { min-height: min(88vh, 820px); justify-content: center; padding-top: clamp(4rem, 8vw, 6.5rem) !important; padding-bottom: 0 !important; }
.dmx-hero-home > * { width: 100%; }
.dmx-hero-home::before { background: linear-gradient(90deg, rgba(10,26,51,.97) 0%, rgba(10,26,51,.9) 40%, rgba(10,26,51,.55) 75%, rgba(10,26,51,.7) 100%); }
.dmx-hero-grid { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem) !important; }
.dmx-hero-grid > * { margin: 0 !important; }
.dmx-hero-home h1 { max-width: none; font-size: clamp(2.6rem, 5.2vw, 4.4rem) !important; }
.dmx-hero-home h1 em { display: block; }
.dmx-hero-home .dmx-lead { max-width: 36rem; }
.dmx-hero-home .wp-block-buttons { margin-top: 2rem !important; }

.dmx-hero-card {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
	padding: 1.6rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: dmx-up .9s .35s ease both;
}
.dmx-hero-card-label { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 1rem; }
.dmx-hero-co {
	--c: #22C62E;
	display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: 1rem;
	padding: 1rem 1.1rem; margin-bottom: .7rem; border-radius: 12px; text-decoration: none !important;
	background: rgba(10,26,51,.55); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid var(--c);
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.dmx-hero-co:hover { background: rgba(10,26,51,.85); transform: translateX(4px); border-color: rgba(255,255,255,.2); border-left-color: var(--c); }
.dmx-hero-co--ma { --c: #3D7BFF; }
.dmx-hero-co--logi { --c: #9AA3AF; }
.dmx-hero-co-mono { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--c); letter-spacing: -.02em; }
.dmx-hero-co-text strong { display: block; color: #fff; font-family: 'Exo 2', sans-serif; font-size: 1.05rem; }
.dmx-hero-co-text em { display: block; font-style: normal; font-size: .88rem; color: rgba(255,255,255,.7); }
.dmx-hero-co-arrow { color: rgba(255,255,255,.5); transition: color .2s, transform .2s; }
.dmx-hero-co:hover .dmx-hero-co-arrow { color: #fff; transform: translateX(3px); }
.dmx-hero-card-foot { margin: 1rem 0 0; font-size: .88rem; color: rgba(255,255,255,.7); text-align: center; }

.dmx-hero-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.3rem 0 !important; }
.dmx-hero-bottom .dmx-certs { margin: 0 !important; align-items: center; }
.dmx-certs .dmx-certs-label { border: 0; background: none; padding-left: 0; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; margin-right: .4rem; }

@media (max-width: 960px) {
	.dmx-hero-grid { grid-template-columns: 1fr; }
	.dmx-hero-home h1 em { display: inline; }
}
