/* ============================================================
 * Domenico Astegiano — Brand CSS
 * Single source of truth for typography, color, and layout polish.
 * Built on top of Nexter parent theme; overrides where needed.
 * ============================================================ */

/* ---- Custom properties ---- */
/* Palette + type pulled from the Drupal /new/ theme (Bootstrap + custom #006a72). */
:root {
	/* Colors */
	--c-teal:      #006a72;   /* PRIMARY — headings, links, CTAs, active nav */
	--c-teal-dk:   #004f55;
	--c-teal-bg:   #e8f1f1;   /* very light teal for section bands */
	--c-ink:       #333333;   /* body text */
	--c-mid:       #827867;   /* warm grey — secondary text/captions */
	--c-soft:      #fafafa;   /* off-white section background */
	--c-line:      #cccccc;   /* dotted/solid border grey */
	--c-line-soft: #e8e8e8;
	--c-paper:     #ffffff;   /* default page background */
	--c-link-blue: #326ea1;   /* legacy Bootstrap link blue, for inline links */

	/* Typography — Bootstrap-style sans-serif, no display serif */
	--f-body:      "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
	--f-heading:   "Helvetica Neue", Helvetica, Arial, sans-serif;
	--fw-bold:     700;

	/* Scale */
	--fs-base:    16px;
	--fs-h1:      clamp(1.75rem, 2.2vw + 0.9rem, 2.5rem);  /* ~40px max, was 48px */
	--fs-h2:      clamp(1.5rem, 1.5vw + 1rem, 1.9em);     /* 1.9em like Drupal */
	--fs-h3:      clamp(1.2rem, 1vw + 0.6rem, 1.4rem);
	--fs-lead:    1rem;
	--lh-tight:   1.25;
	--lh-snug:    1.4;
	--lh-loose:   1.6;

	/* Layout — narrower like Bootstrap 3 */
	--maxw:       1140px;
	--maxw-prose: 720px;
	--gut:        clamp(15px, 2vw, 24px);
	--radius:     3px;        /* flatter than my old 6px */
	--shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.04);
	--shadow-md:  0 6px 16px rgba(0,0,0,0.08);

	/* Legacy aliases so old rules don't error */
	--c-terra:     var(--c-teal);
	--c-terra-dk:  var(--c-teal-dk);
	--c-ocra:      var(--c-teal);
	--c-avorio:    var(--c-paper);
	--c-marmo:     var(--c-soft);
	--f-display:   var(--f-heading);
	--f-body:      "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---- Base ---- */
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: var(--lh-loose);
	color: var(--c-ink);
	background: var(--c-paper);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
	font-family: var(--f-heading);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	color: var(--c-teal);
	letter-spacing: 0;
}
h1, .wp-block-heading.is-style-h1 { font-size: var(--fs-h1); }
h2, .wp-block-heading[class*="h2"] {
	font-size: var(--fs-h2);
	margin-top: 2em;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--c-teal);
	line-height: 1.3;
}
h3 { font-size: var(--fs-h3); margin-top: 1.8em; color: var(--c-teal); }
h2:first-child, h3:first-child { margin-top: 0; }

p, li { line-height: var(--lh-loose); font-size: var(--fs-base); }
p     { margin: 0 0 1em; color: var(--c-ink); }
a     { color: var(--c-teal); text-decoration: none; }
a:hover { color: var(--c-teal); text-decoration: underline; }
strong { font-weight: var(--fw-bold); }
em     { font-style: italic; }

img, video, svg { max-width: 100%; height: auto; }

/* ---- Containers ---- */
.dm-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.dm-prose { max-width: var(--maxw-prose); margin-inline: auto; padding-inline: var(--gut); }

/* ---- Skip link (a11y) ---- */
.dm-skip {
	position: absolute; left: -9999px; top: 0; padding: 0.6rem 1rem;
	background: var(--c-ink); color: var(--c-avorio);
	z-index: 99999; text-decoration: none;
}
.dm-skip:focus { left: 0; }.dm-menu {
	display: flex; align-items: center; gap: 0.2rem;
	list-style: none; padding: 0; margin: 0;
	font-family: var(--f-body); font-weight: 500;
	font-size: 0.95rem; letter-spacing: 0.01em;
}
.dm-menu li { position: relative; }
.dm-menu a {
	color: var(--c-ink); text-decoration: none;
	padding: 0.55rem 0.9rem;
	display: inline-block;
	transition: background-color .7s, color .7s;
	border-radius: 2px;
}
.dm-menu a:hover,
.dm-menu .current-menu-item > a,
.dm-menu .current-page-item > a,
.dm-menu .current-menu-ancestor > a {
	background-color: var(--c-teal);
	color: #fff;
}

/* Submenu dropdown */
.dm-menu .sub-menu,
.dm-menu ul {
	list-style: none;
	position: absolute; top: 100%; left: 0;
	min-width: 220px;
	padding: 0.4rem 0;
	margin: 0;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 50;
}
.dm-menu li:hover > .sub-menu,
.dm-menu li:focus-within > .sub-menu,
.dm-menu li:hover > ul,
.dm-menu li:focus-within > ul {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.dm-menu .sub-menu li,
.dm-menu ul li { display: block; }
.dm-menu .sub-menu a,
.dm-menu ul a {
	display: block;
	padding: 0.55rem 1rem;
	font-size: 0.92rem;
	white-space: nowrap;
}
.dm-menu .sub-menu a::after,
.dm-menu ul a::after { display: none; }
.dm-menu .sub-menu a:hover,
.dm-menu ul a:hover { background: var(--c-marmo); color: var(--c-terra); }
/* Down-caret on parent items */
.dm-menu .menu-item-has-children > a::before,
.dm-menu li:has(> ul) > a::before {
	content: "";
	display: inline-block;
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-right: 0.5em;
	vertical-align: 0.15em;
	opacity: 0.7;
	transition: transform .2s ease;
}
.dm-menu .menu-item-has-children:hover > a::before { transform: rotate(180deg); }

/* ---- Homepage 3-feature grid ---- */
.dm-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.5rem);
	margin: 2rem auto 0;
}
.dm-feature h3 {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: 1.5rem;
	margin: 0.5rem 0 0.8rem;
	color: var(--c-ink);
	line-height: var(--lh-snug);
}
.dm-feature p {
	color: var(--c-mid);
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0;
}@media (max-width: 1180px) {.dm-menu {
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 0.5rem var(--gut) 1rem;
	}
	.dm-menu li { border-bottom: 1px solid var(--c-line); }
	.dm-menu li:last-child { border-bottom: none; }
	.dm-menu a { padding: 1rem 0.5rem; font-size: 1.05rem; }
	.dm-menu a::after { display: none; }
}

/* Old Nexter selectors kept for back-compat */
.site-title, .custom-logo-link img { transition: opacity .2s ease; }
.site-title:hover, .custom-logo-link:hover img { opacity: 0.8; }

/* Primary nav (legacy selectors) */
.menu-primary, .primary-menu,
.nexter-header-menu, .nexter-mega-menu {
	font-family: var(--f-body);
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}
.menu-primary a, .primary-menu a, .nexter-header-menu a {
	color: var(--c-ink);
	text-decoration: none;
	padding: 0.5rem 0.9rem;
	position: relative;
}
.menu-primary a::after, .nexter-header-menu a::after {
	content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.2rem;
	height: 1px; background: var(--c-terra); transform: scaleX(0); transform-origin: left;
	transition: transform .25s ease;
}
.menu-primary a:hover::after,
.menu-primary .current-menu-item > a::after,
.nexter-header-menu a:hover::after { transform: scaleX(1); }

/* ---- Hero (Cover block on homepage) ---- */
.wp-block-cover {
	min-height: 60vh;
}
.wp-block-cover h1 {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: var(--fs-h1);
	color: #fff;
	max-width: 880px;
	margin-inline: auto;
}
.wp-block-cover p {
	color: rgba(255,255,255,0.92);
	font-size: var(--fs-lead);
	max-width: 720px;
	margin-inline: auto;
}

/* ---- Sections ---- */
.dm-section {
	padding-block: clamp(2rem, 4vw, 3.5rem);
}
.dm-section--cream { background: var(--c-soft); border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); }
.dm-section--dark  { background: #151515; color: #fff; }
.dm-section--dark h1, .dm-section--dark h2, .dm-section--dark h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }

.dm-section h2 + .dm-lead,
.dm-section .dm-lead { font-size: var(--fs-lead); color: var(--c-ink); max-width: 60ch; margin-bottom: 1.5rem; }

/* ---- Card grid (Progetti / Servizi / Press archive) ---- */
.dm-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: clamp(1rem, 2vw, 2rem);
	margin-top: 2rem;
}

.dm-card {
	background: #fff;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}
.dm-card:hover { border-color: var(--c-teal); box-shadow: var(--shadow-sm); }
.dm-card a { color: inherit; text-decoration: none; }
.dm-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--c-marmo);
}
.dm-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.dm-card:hover .dm-card__media img { transform: scale(1.05); }
.dm-card__body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.dm-card__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-mid);
	font-weight: var(--fw-bold);
	margin-bottom: 0.5rem;
}
.dm-card__title {
	font-family: var(--f-heading);
	font-weight: var(--fw-bold);
	font-size: 1.2rem;
	line-height: 1.3;
	margin: 0 0 0.6rem;
	color: var(--c-teal);
	border: none;
	padding: 0;
}
.dm-card__excerpt {
	font-size: 0.9rem;
	color: var(--c-ink);
	margin: 0 0 1rem;
	flex: 1;
	line-height: 1.55;
}
.dm-card__more {
	font-size: 0.85rem;
	font-weight: var(--fw-bold);
	color: var(--c-teal);
	margin-top: auto;
	display: inline-flex; align-items: center; gap: 0.3em;
}
.dm-card__more::after { content: "→"; transition: transform .2s ease; }
.dm-card:hover .dm-card__more::after { transform: translateX(4px); }

/* ---- Single Progetto layout ---- */
.is-progetto-single .entry-header,
.dm-progetto-hero {
	background: var(--c-marmo);
	padding-block: clamp(3rem, 5vw, 5rem);
}
.dm-progetto-hero__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gut);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 3rem;
	align-items: center;
}
@media (max-width: 800px) {
	.dm-progetto-hero__inner { grid-template-columns: 1fr; }
}
.dm-progetto-hero__eyebrow {
	font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
	color: var(--c-terra); font-weight: 600;
}
.dm-progetto-hero h1 { margin: 0.6rem 0 1rem; }
.dm-progetto-hero .dm-meta {
	display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
	margin-top: 1.2rem;
	font-size: 0.95rem;
}
.dm-progetto-hero .dm-meta dt {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-mid);
	font-weight: 500;
	margin-bottom: 0.15rem;
}
.dm-progetto-hero .dm-meta dd { margin: 0; font-weight: 600; }
.dm-progetto-hero__cover {
	aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-md);
}
.dm-progetto-hero__cover img { width: 100%; height: 100%; object-fit: cover; }

.is-progetto-single .entry-content {
	max-width: var(--maxw-prose); margin-inline: auto; padding-inline: var(--gut);
	padding-block: clamp(2rem, 4vw, 4rem);
}

/* Project gallery (after the body) */
.dm-progetto-gallery {
	max-width: var(--maxw);
	margin: 2rem auto 4rem;
	padding-inline: var(--gut);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}
.dm-progetto-gallery img {
	width: 100%; height: 100%; object-fit: cover;
	border-radius: var(--radius);
	aspect-ratio: 4/3;
}

/* ---- Placeholder for images-in-arrivo ---- */
.dm-project-placeholder { margin: 2rem 0; }
.dm-placeholder-box {
	background: var(--c-soft);
	border: 1px dashed var(--c-line);
	border-radius: var(--radius);
	padding: 3rem 1.5rem;
	text-align: center;
	color: var(--c-mid);
}
.dm-placeholder-icon {
	display: block;
	font-size: 2rem; color: var(--c-teal); opacity: 0.5;
	margin-bottom: 0.6rem; letter-spacing: 0.4em;
}
.dm-placeholder-box p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.dm-placeholder-box strong { color: var(--c-ink); font-weight: var(--fw-bold); }
.dm-placeholder-box span { font-size: 0.88rem; color: var(--c-mid); }

/* ---- Domenico Astegiano — about page ---- */
.dm-about-intro,
.dm-about-bio,
.dm-about-company,
.dm-about-collabs,
.dm-about-works,
.dm-about-services,
.dm-about-cta {
	max-width: 780px;
	margin-inline: auto;
	padding-block: clamp(2rem, 4vw, 3rem);
}
.dm-about-intro { text-align: center; padding-top: 1rem; }
.dm-about-intro h2 { border-bottom: none; padding: 0; margin: 0.4rem 0 1.2rem; font-size: var(--fs-h1); }
.dm-about-intro .dm-lead { font-size: 1.15rem; color: var(--c-ink); line-height: 1.55; max-width: 620px; margin-inline: auto; }

.dm-about-bio,
.dm-about-company,
.dm-about-collabs,
.dm-about-works,
.dm-about-services,
.dm-about-cta {
	border-top: 1px dotted var(--c-line);
}
.dm-about-company { background: var(--c-soft); padding-inline: 2rem; border-top: none; border-bottom: 1px solid var(--c-line-soft); border-radius: var(--radius); }
.dm-about-company h3 { margin-top: 0.3rem; }

.dm-about-portrait {
	max-width: 900px;
	margin: 2.5rem auto;
	padding-inline: var(--gut);
	text-align: center;
}
.dm-about-portrait img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	display: block;
}
.dm-about-portrait figcaption {
	margin-top: 0.8rem;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--c-mid);
}

.dm-about-collabs { border-top: none; padding-top: 3rem; }
.dm-collab-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.dm-collab-grid figure { margin: 0; text-align: center; }
.dm-collab-grid img {
	width: 100%; aspect-ratio: 4/5; object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--c-line-soft);
}
.dm-collab-grid figcaption { font-size: 0.85rem; color: var(--c-mid); margin-top: 0.6rem; line-height: 1.4; }

.dm-about-works ul,
.dm-about-services ul { padding-left: 1.2rem; margin: 1rem 0; }
.dm-about-works li,
.dm-about-services li { margin-bottom: 0.5rem; line-height: 1.55; }

.dm-about-cta { text-align: center; }
.dm-about-cta h3 { color: var(--c-teal); }

/* ---- Two-tier project titles (Nome — Località) ---- */
/* .dm-title-main inherits the parent heading's own weight/color/size. */
.dm-title-location {
	display: inline-block;
	font-family: var(--f-body);
	font-weight: 400;
	font-style: italic;
	font-size: 0.62em;          /* relative to the parent heading, scales everywhere it's used */
	color: var(--c-mid);
	letter-spacing: 0;
	vertical-align: 0.05em;
	margin-left: 0.35em;
}
/* Cards are already small — keep the location from looking cramped */
.dm-card__title .dm-title-location { font-size: 0.72em; }

/* ---- Technique process steps (Sottofondo → Tappeto → Semina) ---- */
/* These were small style-only labels in the original site with no body
   text of their own; rendering them as full h5 headings (bold + teal, same
   family as real section titles) made them look like broken/empty
   sections. Shown instead as a compact horizontal step tag row. */
.dm-process-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1.4rem 0;
	font-size: 0.8rem;
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-mid);
}
.dm-process-steps span:not(.dm-process-arrow) {
	background: var(--c-soft);
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius);
	padding: 0.4rem 0.75rem;
}
.dm-process-steps .dm-process-arrow {
	color: var(--c-line);
	font-weight: 400;
}

/* Sub-heading for a technique's "Vantaggi" list — one visual step below h3,
   not a full section title. */
.dm-page-content h4,
h4 {
	font-size: 0.92rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-mid);
	font-weight: var(--fw-bold);
	margin: 1.6rem 0 0.6rem;
	border: none;
}

.dm-tecnica-figure {
	margin: 1.5rem 0;
}
.dm-tecnica-figure img {
	border-radius: var(--radius);
	display: block;
	margin-inline: auto;
}
.dm-tecnica-figure figcaption {
	margin-top: 0.6rem;
	font-size: 0.88rem;
	font-style: italic;
	color: var(--c-mid);
	text-align: center;
}

/* ---- Generic pages (page.php) ---- */
.dm-page-article { max-width: 880px; margin-inline: auto; }

/* Let alignfull / alignwide blocks (Cover, Group) escape the prose container */
.dm-page-content .alignfull,
.dm-page-article > .alignfull,
.dm-page-content > .wp-block-cover.alignfull {
	margin-left: calc(50% - 50vw - var(--gut) / 2);
	margin-right: calc(50% - 50vw - var(--gut) / 2);
	max-width: 100vw;
	width: 100vw;
}
.dm-page-content .alignwide {
	margin-left: calc(50% - min(50vw, 620px));
	margin-right: calc(50% - min(50vw, 620px));
	max-width: 1240px;
	width: auto;
}
/* ====== FRONT PAGE — Fantini-inspired ====== */

/* ---- Hero (with Ken Burns) ---- */
.dm-fp-hero {
	position: relative; min-height: 88vh;
	display: flex; align-items: center; justify-content: center;
	color: #fff; overflow: hidden;
	background: #000;
}
/* Background image lives in a child so we can animate it without moving overlay */
.dm-fp-hero__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform-origin: center center;
	animation: dm-kenburns 24s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes dm-kenburns {
	0%   { transform: scale(1)     translate(0, 0); }
	50%  { transform: scale(1.10) translate(-1.5%, -0.5%); }
	100% { transform: scale(1.06)  translate(2%, 1.5%); }
}
@media (prefers-reduced-motion: reduce) {
	.dm-fp-hero__bg { animation: none; transform: scale(1.02); }
}
.dm-fp-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,30,33,0.4) 0%, rgba(0,30,33,0.6) 100%);
	z-index: 1;
}
.dm-fp-hero__bg { z-index: 0; }
.dm-fp-hero__inner,
.dm-fp-hero__scroll { position: relative; z-index: 2; }
.dm-fp-hero__inner {
	position: relative; z-index: 1;
	text-align: center; padding: 4rem var(--gut);
	max-width: 880px;
}
.dm-fp-hero__eyebrow {
	font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
	font-weight: var(--fw-bold); color: rgba(255,255,255,0.85);
	margin: 0 0 2rem;
}
.dm-fp-counter .nc-counter-number {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(5rem, 12vw, 9rem);
	line-height: 1; font-weight: 400;
	margin: 0; color: #fff;
	letter-spacing: -0.02em;
}
.dm-fp-hero__legacy {
	font-size: 0.95rem; letter-spacing: 0.4em; text-transform: uppercase;
	font-weight: 400; color: rgba(255,255,255,0.92);
	margin: 1.5rem 0 0;
}
.dm-fp-hero__sub {
	margin: 2.5rem auto 0;
	max-width: 640px;
	font-size: 1.05rem; line-height: 1.7;
	color: rgba(255,255,255,0.92);
}
.dm-fp-hero__scroll {
	position: absolute; left: 1.5rem; bottom: 2rem;
	z-index: 2;
	color: rgba(255,255,255,0.7);
	font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
	writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ---- Manifesto ---- */
.dm-fp-manifesto {
	padding: clamp(4rem, 8vw, 7rem) var(--gut);
	max-width: 1040px; margin-inline: auto;
	text-align: center;
}
.dm-fp-manifesto__lead {
	font-size: clamp(1.3rem, 1.8vw + 0.6rem, 2rem);
	font-weight: 400;
	line-height: 1.45;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-ink);
	margin: 0;
}
.dm-fp-manifesto__lead em {
	font-style: italic;
	color: var(--c-teal);
	font-weight: 400;
}
.dm-fp-manifesto__body {
	margin: 3rem auto 0;
	max-width: 720px;
	font-size: 1.02rem; line-height: 1.8;
	color: var(--c-ink);
}
.dm-fp-divider-line {
	width: 60px; height: 1px;
	background: var(--c-teal);
	margin: 2rem auto;
	border: none;
}

/* ---- Pattern divider band (parallax on desktop) ---- */
.dm-fp-pattern {
	height: clamp(280px, 40vh, 420px);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	position: relative;
}
.dm-fp-pattern::after {
	content: ""; position: absolute; inset: 0;
	background: rgba(0, 30, 33, 0.18);
}
/* Mobile / touch: background-attachment: fixed is jittery on iOS,
   fall back to normal scroll. */
@media (max-width: 900px), (hover: none) {
	.dm-fp-pattern { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
	.dm-fp-pattern { background-attachment: scroll; }
}

/* ---- Featured Project ---- */
.dm-fp-feature {
	padding: clamp(4rem, 7vw, 6rem) var(--gut);
	max-width: var(--maxw); margin-inline: auto;
}
.dm-fp-feature__grid {
	display: grid; grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}
.dm-fp-feature__media {
	position: relative;
}
.dm-fp-feature__media img {
	width: 100%; height: 100%; object-fit: cover;
	min-height: 480px;
	border-radius: var(--radius);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	display: block;
}
.dm-fp-feature__tag {
	position: absolute; top: 1rem; left: 1rem;
	background: #fff; color: var(--c-teal);
	font-size: 0.72rem; font-weight: var(--fw-bold);
	letter-spacing: 0.12em; text-transform: uppercase;
	padding: 0.5rem 0.8rem; border-radius: 2px;
}
.dm-fp-feature__text { padding-block: 1rem; }
.dm-fp-feature__eyebrow {
	font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
	font-weight: var(--fw-bold); color: var(--c-mid);
	margin: 0 0 1rem;
}
.dm-fp-feature__title {
	font-family: var(--f-heading);
	font-size: clamp(1.6rem, 2vw + 0.5rem, 2.2rem);
	font-weight: var(--fw-bold);
	color: var(--c-teal);
	margin: 0 0 1.2rem;
	line-height: 1.2;
	border: none; padding: 0;
}
.dm-fp-feature__meta {
	margin: 0 0 1.5rem;
	display: flex; gap: 2rem; flex-wrap: wrap;
}
.dm-fp-feature__meta div { display: block; }
.dm-fp-feature__meta dt {
	font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--c-mid); font-weight: var(--fw-bold);
}
.dm-fp-feature__meta dd { margin: 0.2rem 0 0; font-weight: var(--fw-bold); color: var(--c-ink); }
.dm-fp-feature__body { font-size: 1rem; line-height: 1.7; }

@media (max-width: 800px) {
	.dm-fp-feature__grid { grid-template-columns: 1fr; }
	.dm-fp-counter .nc-counter-number  { font-size: 5rem; }
	.dm-fp-manifesto__lead { font-size: 1.1rem; letter-spacing: 0.04em; }
}
.dm-page-header { margin-bottom: 2.5rem; text-align: center; }
.dm-page-title {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: var(--fs-h1);
	line-height: var(--lh-tight);
	margin: 0;
}
.dm-page-content > h2 {
	font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem);
	margin-top: 2.5em;
	padding-top: 0.5em;
	border-top: 1px solid var(--c-line);
}
.dm-page-content > h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.dm-page-content > h3 {
	font-size: 1.4rem;
	margin-top: 2em;
}
.dm-page-content > p { font-size: 1.05rem; line-height: 1.75; color: var(--c-ink); }
.dm-page-content > p:has(> img:only-child),
.dm-page-content figure {
	margin: 2rem auto;
	max-width: 100%;
}
.dm-page-content img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); margin-inline: auto; }
.dm-page-content br + br { display: none; } /* dedupe legacy <br><br> */

/* ---- Single Press item ---- */
.dm-press-body {
	max-width: 880px;
}
.dm-press-body > p { font-size: 1.05rem; line-height: 1.65; color: var(--c-mid); margin-top: 1.5rem; }

.pdf-embed {
	margin: 0 auto;
	max-width: 880px;
}
.pdf-embed iframe {
	display: block;
	width: 100%;
	min-height: 720px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #fff;
	margin: 0 auto 1rem;
}
.pdf-embed p {
	margin-top: 1rem;
	text-align: center;
}
.pdf-embed p a {
	display: inline-block;
	background: var(--c-terra);
	color: #fff !important;
	padding: 0.7rem 1.4rem;
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none !important;
	transition: background .2s ease;
}
.pdf-embed p a:hover { background: var(--c-terra-dk); }

/* ---- Buttons ---- */
.wp-block-button__link,
.dm-btn {
	background: var(--c-teal);
	color: #fff !important;
	border: 1px solid var(--c-teal);
	border-radius: var(--radius);
	padding: 0.7rem 1.4rem;
	font-family: var(--f-body);
	font-weight: var(--fw-bold);
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
	display: inline-block;
}
.wp-block-button__link:hover,
.dm-btn:hover {
	background: var(--c-teal-dk);
	border-color: var(--c-teal-dk);
	color: #fff !important;
}
.is-style-outline .wp-block-button__link,
.dm-btn--outline {
	background: transparent !important;
	color: var(--c-teal) !important;
	border: 1px solid var(--c-teal) !important;
}
.is-style-outline .wp-block-button__link:hover,
.dm-btn--outline:hover {
	background: var(--c-teal) !important;
	color: #fff !important;
}

/* ---- Footer ---- */
.site-footer,
footer[role="contentinfo"] {
	background: #f2f2f2;
	color: var(--c-ink);
	padding-block: clamp(2rem, 3vw, 3rem) 1.2rem;
	margin-top: 3rem;
	border-top: 1px solid var(--c-line);
}
.site-footer a { color: var(--c-teal); }
.site-footer a:hover { color: var(--c-teal-dk); text-decoration: underline; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--c-teal); border-bottom: none; }
.dm-footer-grid {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gut);
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2.5rem;
}
@media (max-width: 800px) {
	.dm-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.dm-footer-grid h4 {
	font-family: var(--f-body);
	font-size: 0.78rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--c-teal);
	font-weight: var(--fw-bold);
	margin: 0 0 1rem;
	border-bottom: none;
	padding: 0;
}
.dm-footer-grid .brand-name {
	font-family: var(--f-heading);
	font-size: 1.25rem;
	font-weight: var(--fw-bold);
	color: var(--c-teal);
	margin: 0 0 0.5rem;
	border-bottom: none;
	padding: 0;
}
.dm-footer-grid .legal {
	font-size: 0.88rem;
	color: var(--c-ink);
	line-height: 1.6;
	margin: 0;
}
.dm-footer-grid .legal em { color: var(--c-mid); font-style: italic; }
.dm-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.dm-footer-grid ul li { margin-bottom: 0.4rem; }
.dm-footer-grid ul a { color: var(--c-teal); }
.dm-footer-grid ul a:hover { color: var(--c-teal-dk); text-decoration: underline; }

.dm-footer-bottom {
	max-width: var(--maxw);
	margin: 2rem auto 0;
	padding: 1.2rem var(--gut) 0;
	border-top: 1px dotted var(--c-line);
	display: flex; justify-content: space-between;
	font-size: 0.78rem; color: var(--c-mid);
	flex-wrap: wrap; gap: 1rem;
}
.dm-footer-bottom a { color: var(--c-teal); }

/* ---- Misc ---- */
.dm-eyebrow {
	font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--c-mid); font-weight: var(--fw-bold);
	margin-bottom: 0.4rem;
}
hr, .wp-block-separator {
	border: none; border-top: 1px dotted var(--c-line); margin: 2rem 0;
	max-width: none;
}

/* Italics and quotes — sans-serif italic, no display font */
em, blockquote, .wp-block-quote p {
	font-family: var(--f-body);
	font-style: italic;
	color: var(--c-mid);
}
.wp-block-quote {
	border-left: 3px solid var(--c-teal);
	padding-left: 1.2rem;
	margin: 1.8rem 0;
}

/* Collaborators wall on About */
.dm-collab {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0 3rem;
}
.dm-collab figure { margin: 0; text-align: center; }
.dm-collab img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.dm-collab figcaption { font-family: var(--f-display); font-style: italic; margin-top: 0.6rem; color: var(--c-mid); }

/* ====== Techniques page — alternating blocks ====== */
/* Break out of the 880px prose column without a transform (a transformed
   ancestor would break the fixed-attachment parallax band). */
.dm-tec {
	width: min(1140px, calc(100vw - 2 * var(--gut)));
	margin-left: calc(50% - min(570px, 50vw - var(--gut)));
}
.dm-tec-lead { font-size: 1.15rem; line-height: 1.6; text-align: center; max-width: 780px; margin: 0 auto 1rem; color: var(--c-ink); }
.dm-tec-answer { max-width: 780px; margin: 0 auto 1.5rem; text-align: center; color: var(--c-mid); }
.dm-tec-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.5rem 0 1rem; }
.dm-tec-jump a {
	border: 1px solid var(--c-teal); border-radius: var(--radius);
	padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: var(--fw-bold);
}
.dm-tec-jump a:hover { background: var(--c-teal); color: #fff; text-decoration: none; }

.dm-tec-block {
	display: grid; grid-template-columns: 1fr 1fr; align-items: start;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(2rem, 5vw, 4rem);
	scroll-margin-top: 100px;
}
.dm-tec-block--rev .dm-tec-media { order: 2; }
.dm-tec-media { margin: 0; }
.dm-tec-media img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
	border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.dm-tec-media figcaption { margin-top: 0.6rem; font-size: 0.85rem; font-style: italic; color: var(--c-mid); }
.dm-tec-text h2 {
	margin: 0 0 0.9rem; border-bottom: none; padding: 0;
	font-size: clamp(1.5rem, 1.6vw + 0.8rem, 2.1rem);
}
.dm-tec-text .dm-eyebrow { margin-bottom: 0.5rem; }
.dm-tec-fact {
	display: inline-block; margin: 0.2rem 0 1rem; padding: 0.35rem 0.8rem;
	background: var(--c-teal-bg); color: var(--c-teal); border-radius: var(--radius);
	font-size: 0.85rem; font-weight: var(--fw-bold);
}
.dm-tec details { border-top: 1px solid var(--c-line-soft); }
.dm-tec details:last-of-type { border-bottom: 1px solid var(--c-line-soft); }
.dm-tec summary {
	cursor: pointer; list-style: none; padding: 0.8rem 0;
	font-weight: var(--fw-bold); color: var(--c-teal);
}
.dm-tec summary::-webkit-details-marker { display: none; }
.dm-tec summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; }
.dm-tec details[open] > summary::after { content: "\2212"; }
.dm-tec details > *:not(summary) { padding-bottom: 0.8rem; }
.dm-tec ul { margin: 0; padding-left: 1.2rem; }
.dm-tec li { margin-bottom: 0.45rem; }

.dm-tec-band {
	height: clamp(260px, 38vh, 400px);
	margin-inline: calc(50% - 50vw);
	background-size: cover; background-position: center; background-attachment: fixed;
}
@media (max-width: 900px), (hover: none), (prefers-reduced-motion: reduce) {
	.dm-tec-band { background-attachment: scroll; }
}

.dm-tec-compare { margin: clamp(2rem, 4vw, 3rem) 0; overflow-x: auto; }
.dm-tec-compare h2 { border-bottom: none; text-align: center; margin: 0 0 1rem; }
.dm-tec-compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dm-tec-compare th, .dm-tec-compare td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.dm-tec-compare thead th { background: var(--c-teal); color: #fff; }
.dm-tec-compare tbody th { color: var(--c-teal); width: 26%; }

.dm-tec-callout {
	max-width: 780px; margin: 2rem auto; padding: 1.4rem 1.6rem;
	background: var(--c-soft); border-left: 3px solid var(--c-teal); border-radius: var(--radius);
}
.dm-tec-callout p { margin: 0; }

.dm-tec-projects { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.dm-tec-projects h3 { margin: 0 0 0.4rem; }
.dm-tec-faq, .dm-tec-area, .dm-tec-cta { max-width: 780px; margin: clamp(2rem, 4vw, 3rem) auto; }
.dm-tec-faq h2, .dm-tec-area h2 { margin-top: 0; }
.dm-tec-cta { text-align: center; }

@media (max-width: 800px) {
	.dm-tec-block { grid-template-columns: 1fr; }
	.dm-tec-block--rev .dm-tec-media { order: 0; }
}

/* WhatsApp button styling override for Joinchat */
.joinchat__button {
	background-color: var(--c-teal) !important;
}

/* ---- Accessibility ---- */
:focus-visible {
	outline: 2px solid var(--c-terra);
	outline-offset: 3px;
	border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ====== Round 3: servizi blocks, gallery, refs, lead width ====== */
.dm-section .dm-lead { max-width: 78ch; text-wrap: pretty; }
.dm-servizi-blocks .dm-tec-text ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.dm-servizi-blocks .dm-tec-text li { margin-bottom: 0.4rem; }
.dm-tec-gallery {
	display: grid; gap: 0.8rem; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) { .dm-tec-gallery { grid-template-columns: repeat(2, 1fr); } }
.dm-tec-gallery figure { margin: 0; }
.dm-tec-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius); }
.dm-tec-gallery figcaption { margin-top: 0.4rem; font-size: 0.82rem; font-style: italic; color: var(--c-mid); }
.dm-tec-gallery h3 { grid-column: 1 / -1; margin: 0 0 0.2rem; }
.dm-refs { margin-top: clamp(2.5rem, 5vw, 4rem); }
.dm-refs__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dm-refs h3 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.dm-refs ul { margin: 0; padding-left: 1.1rem; }
.dm-refs li { margin-bottom: 0.45rem; font-size: 0.95rem; }

/* ====== Landing: Restauro pavimenti ====== */
.dm-lp-hero { position: relative; overflow: hidden; color: #fff; }
.dm-lp-hero__bg {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	background-attachment: fixed;
}
.dm-lp-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,50,55,.86), rgba(0,50,55,.45)); }
.dm-lp-hero__inner {
	position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
	padding: clamp(3rem, 8vw, 6rem) var(--gut);
}
.dm-lp-hero h1 { color: #fff; max-width: 20ch; margin: 0.4rem 0 1rem; font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem); line-height: 1.1; }
.dm-lp-hero__eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 0; }
.dm-lp-hero__sub { max-width: 58ch; font-size: clamp(1rem, .5vw + .9rem, 1.2rem); line-height: 1.55; margin: 0 0 1.5rem; }
.dm-lp-crumbs { font-size: .85rem; opacity: .85; margin-bottom: 1.2rem; }
.dm-lp-crumbs a { color: #fff; text-decoration: underline; }
.dm-lp-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.dm-lp-hero .dm-btn { background: #fff; color: var(--c-teal); border-color: #fff; }
.dm-lp-hero .dm-btn--ghost { background: transparent; color: #fff; border: 1px solid #fff; }
.dm-lp-hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dm-lp-hero__chips li { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; }
.dm-lp .dm-page-content > .dm-tec { margin-top: 0; }
.dm-lp-bar { display: none; }
@media (max-width: 720px), (hover: none) { .dm-lp-hero__bg { background-attachment: scroll; } }
@media (max-width: 720px) {
	.dm-lp-bar {
		display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50;
		background: var(--c-teal); box-shadow: 0 -2px 10px rgba(0,0,0,.25);
	}
	.dm-lp-bar a { color: #fff; text-align: center; padding: .9rem .5rem; font-weight: var(--fw-bold); font-size: .95rem; }
	.dm-lp-bar a + a { border-left: 1px solid rgba(255,255,255,.3); }
	.page-template-page-restauro-pavimenti .dm-whatsapp, body.page-restauro-pavimenti .dm-whatsapp { display: none; }
	.dm-lp { padding-bottom: 4rem; }
}

.dm-tec-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.dm-tec-types a {
	display: block; border: 1px solid var(--c-line-soft); border-top: 3px solid var(--c-teal);
	border-radius: var(--radius); padding: 1rem; color: var(--c-ink); background: #fff;
}
.dm-tec-types a:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.dm-tec-types strong { display: block; color: var(--c-teal); margin-bottom: .3rem; }
.dm-tec-types span { font-size: .9rem; color: var(--c-mid); }
.dm-tec-steps { counter-reset: st; list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dm-tec-steps li { counter-increment: st; padding: 1rem; background: var(--c-teal-bg); border-radius: var(--radius); margin: 0; }
.dm-tec-steps li::before { content: counter(st); display: block; font-size: 1.6rem; font-weight: var(--fw-bold); color: var(--c-teal); line-height: 1; margin-bottom: .4rem; }
.dm-tec-steps strong { display: block; margin-bottom: .25rem; }
.dm-tec-cities { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.2rem; }
.dm-tec-cities > div { border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: 1.2rem; }
.dm-tec-cities h3 { margin: 0 0 .6rem; }
.dm-tec-cities ul { margin: 0 0 .8rem; padding-left: 1.1rem; font-size: .95rem; }
.dm-tec-wide { max-width: none; }
.dm-tec-contact { text-align: center; background: var(--c-teal-bg); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); margin: clamp(2rem, 4vw, 3rem) 0; }
.dm-tec-contact h2 { border: none; margin-top: 0; }
.dm-tec-contact .dm-lp-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1rem 0; }
.dm-lp-hero p, .dm-lp-hero .dm-lp-crumbs, .dm-lp-hero .dm-lp-crumbs span { color: #fff; }
.dm-lp-hero a.dm-btn { background: #fff; color: var(--c-teal); border: 1px solid #fff; }
.dm-lp-hero a.dm-btn.dm-btn--ghost { background: transparent; color: #fff; }
.dm-lp-hero a.dm-btn:hover { background: var(--c-teal-bg); }
.dm-lp-hero a.dm-btn:not(.dm-btn--ghost) { color: #00575e !important; }.dm-menu { font-size: 0.9rem; }
.dm-menu > li > a { white-space: nowrap; padding: 0.55rem 0.7rem; }/* Progetti archive: centred header */
.post-type-archive-progetto .dm-section > .dm-wrap > .dm-eyebrow,
.post-type-archive-progetto .dm-section > .dm-wrap > h1,
.post-type-archive-progetto .dm-section > .dm-wrap > .dm-lead,
.post-type-archive-progetto .dm-galleria-section > h2,
.post-type-archive-progetto .dm-galleria-section > .dm-lead,
.post-type-archive-progetto .dm-refs > h2 { text-align: center; }
.post-type-archive-progetto .dm-section > .dm-wrap > .dm-lead,
.post-type-archive-progetto .dm-galleria-section > .dm-lead { margin-inline: auto; }
.post-type-archive-progetto .dm-filters,
.post-type-archive-progetto .dm-galleria__filters { justify-content: center !important; }

/* Servizi: photo spans the text height, so the text sits vertically centred beside it */
@media (min-width: 901px) {
	.dm-servizi-blocks .dm-tec-block { align-items: stretch; }
	.dm-servizi-blocks .dm-tec-media { display: flex; }
	.dm-servizi-blocks .dm-tec-media img { height: 100%; min-height: 340px; aspect-ratio: auto; object-fit: cover; }
	.dm-servizi-blocks .dm-tec-text { align-self: center; }
}

/* ====== Progetto single v2 ====== */
.dm-pj-hero { position: relative; height: clamp(320px, 62vh, 620px); overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.dm-pj-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-pj-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,35,40,.78) 0%, rgba(0,35,40,.15) 55%, rgba(0,0,0,0) 100%); }
.dm-pj-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gut) clamp(1.5rem, 4vw, 3rem); }
.dm-pj-hero__eyebrow { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: var(--fw-bold); color: #fff; opacity: .9; }
.dm-pj-hero h1, .dm-pj-hero h1 .dm-title-name { color: #fff; margin: .3rem 0 0; font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem); }
.dm-pj-hero .dm-title-location { color: rgba(255,255,255,.85); }
.dm-pj-body { padding-block: clamp(2rem, 5vw, 4rem); }/* image protection (deterrent) */
img { -webkit-user-drag: none; }
.dm-galleria__grid img, .dm-lb img, .dm-card__media img, .dm-tec-media img, .dm-pj-hero__bg { -webkit-user-select: none; user-select: none; }
.dm-galleria__grid img { pointer-events: none; }
/* ====== Native blocks (editable) ====== */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--c-teal) !important; border: 1px solid var(--c-teal); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--c-teal); color: #fff !important; }
.wp-block-buttons { gap: .6rem; margin: 0 0 1rem; }
.wp-block-buttons.dm-tec-jump { justify-content: center; margin: 1.5rem 0 1rem; }
.wp-block-buttons.dm-tec-jump .wp-block-button__link { padding: .5rem 1rem; font-size: .9rem; }
.wp-block-buttons.dm-lp-actions { justify-content: center; margin: 1rem 0; }
.dm-tec-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.dm-tec-type { border: 1px solid var(--c-line-soft); border-top: 3px solid var(--c-teal); border-radius: var(--radius); padding: 1rem; background: #fff; }
.dm-tec-type p { margin: 0 0 .3rem; font-size: .9rem; color: var(--c-mid); }
.dm-tec-type p:first-child { font-size: 1rem; }
.dm-tec-type strong, .dm-tec-type a { color: var(--c-teal); }
ul.dm-process-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; }
ul.dm-process-steps li { margin: 0; padding: .3rem .7rem; background: var(--c-teal-bg); color: var(--c-teal); border-radius: var(--radius); font-size: .85rem; font-weight: var(--fw-bold); }
ul.dm-process-steps li:not(:last-child)::after { content: "\2192"; margin-left: .7rem; }
.wp-block-gallery.dm-tec-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.wp-block-gallery.dm-tec-gallery > .wp-block-image { width: auto !important; margin: 0 !important; flex: none; }
.wp-block-gallery.dm-tec-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) { .wp-block-gallery.dm-tec-gallery { grid-template-columns: repeat(2, 1fr); } }
.wp-block-cover.dm-tec-band { margin-inline: calc(50% - 50vw); border-radius: 0; padding: 0; }
.wp-block-cover.dm-tec-band .wp-block-cover__inner-container { padding: 0; }
figure.wp-block-table.dm-tec-compare, .dm-tec-compare .wp-block-table { margin: 0; overflow-x: auto; }
.dm-tec-block .wp-block-image { margin: 0; }
details.wp-block-details { margin: 0; }
/* ====== Block versions of home / landing hero / project gallery ====== */
.wp-block-cover.dm-fp-hero { min-height: 88vh; color: #fff; text-align: center; padding: 0; }
.wp-block-cover.dm-fp-hero > .wp-block-cover__background { background: linear-gradient(180deg, rgba(0,30,33,.4), rgba(0,30,33,.6)); opacity: 1; }
.wp-block-cover.dm-fp-hero .wp-block-cover__image-background { animation: dm-kenburns 24s ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .wp-block-cover.dm-fp-hero .wp-block-cover__image-background { animation: none; } }
.wp-block-cover.dm-fp-hero .wp-block-cover__inner-container { max-width: 880px; padding: 4rem var(--gut); }
.wp-block-cover.dm-fp-hero p { color: inherit; }
.wp-block-cover.dm-fp-pattern { min-height: clamp(280px, 40vh, 420px); padding: 0; }
.dm-fp-manifesto { text-align: center; }
hr.dm-fp-divider-line { width: 60px; height: 1px; background: var(--c-teal); margin: 2rem auto; border: none; opacity: 1; }
.dm-section .dm-wrap > .dm-lead { max-width: 78ch; }
.wp-block-cover.dm-lp-hero { color: #fff; padding: 0; }
.wp-block-cover.dm-lp-hero .wp-block-cover__inner-container { max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.wp-block-cover.dm-lp-hero h1 { color: #fff; max-width: 20ch; margin: .4rem 0 1rem; font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem); line-height: 1.1; border: none; }
.wp-block-cover.dm-lp-hero p { color: #fff; }
.dm-lp-hero .wp-block-button__link { background: #fff; color: #00575e !important; border: 1px solid #fff; }
.dm-lp-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff !important; border: 1px solid #fff; }
ul.dm-lp-hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
ul.dm-lp-hero__chips li { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; margin: 0; }
.dm-pj-text .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; gap: 10px; margin: 0; }
.dm-pj-text .wp-block-gallery > .wp-block-image { width: auto !important; margin: 0 !important; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #eee; }
.dm-pj-text .wp-block-gallery > .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
.dm-pj-text .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (max-width: 900px) { .dm-pj-text .wp-block-gallery > .wp-block-image:first-child { grid-column: auto; grid-row: auto; } }
/* hero counter must keep its size inside the cover block */
.wp-block-cover.dm-fp-hero .dm-fp-counter .nc-counter-number { font-size: clamp(5rem, 12vw, 9rem) !important; line-height: 1 !important; margin: 0 !important; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.wp-block-cover.dm-fp-hero p.dm-fp-hero__eyebrow { margin: 0 0 2rem; }
.wp-block-cover.dm-fp-hero p.dm-fp-hero__legacy { margin: 1.5rem 0 0; }
.wp-block-cover.dm-fp-hero p.dm-fp-hero__sub { margin: 2.5rem auto 0; max-width: 640px; }

/* ====== Phase 3 blocks ====== */
.dm-footer-bottom p { margin: 0; }
.dm-footer-grid > .wp-block-group { min-width: 0; }
.wp-block-gallery.dm-press-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 10px; margin: 0 0 1rem; }
.wp-block-gallery.dm-press-pages > .wp-block-image { width: auto !important; margin: 0 !important; flex: none; }
.wp-block-gallery.dm-press-pages img { width: 100%; height: auto; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.18); pointer-events: none; }
.wp-block-buttons.dm-press-actions { justify-content: center; margin-top: 1.5rem; }
.dm-refs__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dm-refs__grid > .wp-block-group h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
/* ===== Nexter Theme Builder: header + footer ===== */
#nxt-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid rgba(0, 50, 55, .12); }
.admin-bar #nxt-header { top: 32px; }
#nxt-header .nxt-container-block-editor { max-width: none; padding: 0; }
#nxt-header .dm-hdr { max-width: 1320px; margin: 0 auto; padding: 12px 24px !important; gap: 24px; align-items: center; flex-wrap: nowrap; }
#nxt-header .tpgb-site-logo { flex: 0 0 auto; width: auto !important; }
#nxt-header .site-logo-wrap { width: auto !important; height: auto !important; }
#nxt-header .site-logo-wrap img { width: 230px; height: auto; max-width: 100%; object-fit: contain; display: block; }
#nxt-header .tpgb-navbuilder { flex: 1 1 auto; width: auto !important; }
#nxt-header .tpgb-nav-wrap ul.navbar-nav { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; list-style: none; }
#nxt-header .tpgb-nav-wrap ul.navbar-nav > li > a { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: #1d2b2c; padding: 10px 12px; white-space: nowrap; }
#nxt-header .tpgb-nav-wrap ul.navbar-nav > li > a:hover { color: var(--c-teal); }
#nxt-header .tpgb-nav-wrap ul.navbar-nav > li.current-menu-item > a,
#nxt-header .tpgb-nav-wrap ul.navbar-nav > li.current-menu-ancestor > a { background: var(--c-teal); color: #fff; }
.dm-footer .tpgb-navbuilder { width: auto !important; }
.dm-footer .tpgb-nav-wrap { text-align: left; }
.dm-footer .tpgb-nav-wrap ul.navbar-nav { display: block; list-style: none; margin: 0; padding: 0; }
.dm-footer .tpgb-nav-wrap ul.navbar-nav li { margin: 0 0 .4rem; padding: 0; }
.dm-footer .tpgb-nav-wrap ul.navbar-nav a { padding: 0; color: var(--c-teal); font-size: 15px; }
.dm-footer .tpgb-nav-wrap ul.navbar-nav a:hover { color: var(--c-teal-dk); text-decoration: underline; background: none; }
@media (max-width: 782px) { .admin-bar #nxt-header { top: 46px; } }
/* Nexter header: mobile panel + hamburger */
#nxt-header .tpgb-toggle-menu.hamburger-toggle .toggle-line span { background: var(--c-teal) !important; }
#nxt-header .tpgb-mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 14px 28px rgba(0, 0, 0, .08); z-index: 950; }
#nxt-header .tpgb-mobile-menu ul.navbar-nav { display: block; margin: 0; padding: 6px 24px 16px; list-style: none; }
#nxt-header .tpgb-mobile-menu ul.navbar-nav > li > a { display: block; padding: 13px 0; font-size: 16px; font-weight: 500; color: #1d2b2c; border-bottom: 1px solid rgba(0, 50, 55, .1); white-space: normal; background: none; }
#nxt-header .tpgb-mobile-menu ul.navbar-nav > li.current-menu-item > a { color: var(--c-teal); font-weight: 700; background: none; }
#nxt-header .tpgb-normal-menu ul.navbar-nav { display: flex; }
.dm-footer .tpgb-nav-wrap ul.navbar-nav li a, .dm-footer .tpgb-nav-wrap .tpgb-nav-item { padding-left: 0 !important; margin-left: 0 !important; }
#nxt-header .tpgb-mobile-menu ul.navbar-nav > li > a { text-align: left; }

/* Progetto singolo (template Nexter "Singolo progetto") */
.dm-pj-text, .dm-pj-metabar { max-width: 760px; margin-inline: auto; padding-inline: 24px; box-sizing: content-box; }
.dm-pj-metabar .dm-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0; padding: 1rem 0; border-block: 1px solid rgba(0, 50, 55, .15); }
.dm-pj-metabar .dm-meta > div { margin: 0; }
.dm-pj-metabar dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mid); }
.dm-pj-metabar dd { margin: .1rem 0 0; font-weight: 700; color: var(--c-teal); }
.dm-pj-text .wp-block-gallery { width: min(1200px, calc(100vw - 48px)); max-width: none; margin: 2rem 0 2rem 50%; transform: translateX(-50%); }.dm-pj-body { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.dm-pj-text .wp-block-post-content { padding: 1.5rem 0 0; }
.dm-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 0; justify-content: center; }
.dm-filtro-tecnica .dm-progetti-dopo { display: none; }
/* FAQ: The Plus Accordion */
.dm-faq-acc .tpgb-accor-item { border-top: 1px solid var(--c-line-soft); margin: 0; }
.dm-faq-acc .tpgb-accor-item:last-child { border-bottom: 1px solid var(--c-line-soft); }
.dm-faq-acc .tpgb-accordion-header, .dm-faq-acc .tpgb-accordion-header.active { background: none !important; box-shadow: none; padding: 1rem 0; }
.dm-faq-acc .tpgb-accordion-header, .dm-faq-acc .tpgb-accordion-header * { color: var(--c-teal) !important; font-weight: 700; }
.dm-faq-acc .tpgb-accordion-header:hover, .dm-faq-acc .tpgb-accordion-header:hover * { color: var(--c-teal-dk) !important; }
.dm-faq-acc .tpgb-accordion-content { padding: 0 0 1rem; }
.dm-faq-acc .tpgb-content-editor p:last-child { margin-bottom: 0; }
.dm-faq-acc .tpgb-content-editor, .dm-faq-acc .tpgb-content-editor p { color: var(--c-text, #1d2b2c) !important; font-weight: 400 !important; font-size: 1rem; line-height: 1.7; }
.dm-fp-counter .nc-counter-number span { font: inherit; color: inherit; } .dm-fp-counter .nc-counter-number { text-align: center; }
.dm-fp-counter .nc-counter-number, .dm-fp-counter .nc-counter-number span { color: #fff !important; opacity: 1 !important; }
.dm-footer .tpgb-normal-menu { display: block !important; } .dm-footer .tpgb-mobile-nav-toggle, .dm-footer .tpgb-mobile-menu { display: none !important; }
.dm-footer .tpgb-navbuilder .tpgb-nav-wrap .tpgb-nav-inner.menu-click .tpgb-normal-menu, .dm-footer .tpgb-navbuilder .tpgb-nav-wrap .tpgb-nav-inner .tpgb-normal-menu { display: block !important; }
.dm-footer .tpgb-navbuilder .tpgb-nav-item, .dm-footer .tpgb-navbuilder .tpgb-nav-wrap { justify-content: flex-start !important; text-align: left !important; } .dm-footer .tpgb-navbuilder ul.navbar-nav { align-items: flex-start; }
@media (max-width: 720px) { body:has(.dm-lp-bar) .dm-whatsapp { display: none; } }
@media (min-width: 900px) { .dm-tec-types { grid-template-columns: repeat(3, 1fr); } }

/* Divider between technique sections on the Tecniche page */
.dm-tec-projects + .dm-tec-block {
position: relative;
margin-top: clamp(1.5rem, 4vw, 2.5rem);
padding-top: clamp(3rem, 7vw, 4.5rem);
}
.dm-tec-projects + .dm-tec-block::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--c-line);
}
.dm-tec-projects + .dm-tec-block::after {
content: "";
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
background: var(--c-paper) url('https://domenicoastegiano.com/wp-content/uploads/2026/09/segno-domenico-astegiano-1.png') center/58% no-repeat;
width: 2.2rem;
height: 2.2rem;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--c-line);
border-radius: 50%;
}

/* Same divider, reused between case-study sections on the Restauro pavimenti page */
.dm-tec-gallery + .dm-tec-block {
position: relative;
margin-top: clamp(1.5rem, 4vw, 2.5rem);
padding-top: clamp(3rem, 7vw, 4.5rem);
}
.dm-tec-gallery + .dm-tec-block::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--c-line);
}
.dm-tec-gallery + .dm-tec-block::after {
content: "";
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
background: var(--c-paper) url('https://domenicoastegiano.com/wp-content/uploads/2026/09/segno-domenico-astegiano-1.png') center/58% no-repeat;
width: 2.2rem;
height: 2.2rem;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--c-line);
border-radius: 50%;
}


/* Restauro pavimenti: hero split */
.wp-block-cover.dm-lp-hero { background: #004a4d; min-height: 480px; align-items: stretch; justify-content: flex-start; }
.wp-block-cover.dm-lp-hero::before { display: none; }
.wp-block-cover.dm-lp-hero .wp-block-cover__background { display: none; }
.wp-block-cover.dm-lp-hero .wp-block-cover__image-background { inset: 0 0 0 auto; width: 48%; height: 100%; object-fit: cover; }
.wp-block-cover.dm-lp-hero .wp-block-cover__inner-container {
	width: 52%; max-width: none; box-sizing: border-box; align-self: center;
	margin: 0; padding: clamp(3rem, 6vw, 5rem) 2.5rem clamp(3rem, 6vw, 5rem) max(var(--gut, 1.5rem), calc((100vw - var(--maxw, 1200px)) / 2));
}
@media (max-width: 860px) {
	.wp-block-cover.dm-lp-hero .wp-block-cover__image-background { inset: 0; width: 100%; }
	.wp-block-cover.dm-lp-hero::before { display: block; background: linear-gradient(90deg, rgba(0,50,55,.9), rgba(0,50,55,.6)); }
	.wp-block-cover.dm-lp-hero .wp-block-cover__inner-container { width: 100%; padding: 3rem var(--gut, 1.5rem); }
}

/* Restauro pavimenti: floor type cards with photo */
.dm-tec-types { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.dm-tec-types > .dm-tec-type { margin: 0; }
.dm-tec-type { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #e6f0ee; }
.dm-tec-type .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.dm-tec-type .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-tec-types .dm-tec-type a { display: inline; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--c-teal); }
.dm-tec-types .dm-tec-type strong { display: inline; margin: 0; }
.dm-tec-type:nth-child(1) .wp-block-image img { object-position: 50% 88%; }
.dm-tec-type p { margin: 0; padding: 0 1.1rem; font-size: .88rem; color: var(--c-mid); }
.dm-tec-type p:first-of-type { padding-top: 1rem; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.dm-tec-type p:first-of-type::after { content: ""; display: block; width: 28px; height: 2px; margin-top: .6rem; background: var(--c-teal); }
.dm-tec-type p:nth-of-type(2) { padding-top: .8rem; padding-bottom: 1.1rem; }


/* Restauro pavimenti: phase cards with swappable icon (image block) */
.dm-tec-steps > .dm-tec-step { position: relative; counter-increment: st; margin: 0; padding: 1rem; background: var(--c-teal-bg); border-radius: var(--radius); }
.dm-tec-steps > .dm-tec-step::before { content: counter(st); display: block; min-height: 3.25rem; margin-bottom: .4rem; font-size: 1.6rem; font-weight: var(--fw-bold); color: var(--c-teal); line-height: 1; }
.dm-tec-steps > .dm-tec-step > .dm-tec-step__icon { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); margin: 0; }
.dm-tec-steps > .dm-tec-step > .dm-tec-step__icon img { display: block; width: auto; height: 3rem; }
.dm-tec-steps > .dm-tec-step > p { margin: 0; }
.dm-tec-steps > .dm-tec-step strong { display: block; }


/* Restauro pavimenti: anchor offset */
.dm-tec-area[id], .dm-tec-block[id], .dm-tec-faq[id], .dm-tec-contact[id] { scroll-margin-top: 7rem; }


/* Restauro pavimenti: space below hero */
.dm-lp-hero + .dm-tec { padding-top: clamp(2.5rem, 5vw, 4rem); }


/* Progetto: gallery styles (chosen per gallery in the editor: Stile) */
/* Proporzioni originali: no crop, two columns, photos keep their own shape */
.dm-pj-text .wp-block-gallery.is-style-dm-original { display: block; column-count: 2; column-gap: 10px; }
.dm-pj-text .wp-block-gallery.is-style-dm-original > .wp-block-image { display: block; aspect-ratio: auto; break-inside: avoid; margin-bottom: 10px !important; }
.dm-pj-text .wp-block-gallery.is-style-dm-original img { height: auto; object-fit: contain; }
/* Una foto grande: first photo large, the others as a small strip */
.dm-pj-text .wp-block-gallery.is-style-dm-hero { grid-template-columns: repeat(4, 1fr); }
.dm-pj-text .wp-block-gallery.is-style-dm-hero > .wp-block-image:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
@media (max-width: 720px) {
	.dm-pj-text .wp-block-gallery.is-style-dm-original { column-count: 1; }
	.dm-pj-text .wp-block-gallery.is-style-dm-hero { grid-template-columns: repeat(2, 1fr); }
}
