/*
Theme Name: Dalla Mutta Officina
Theme URI: https://www.dallamutta.it/
Author: Dalla Mutta s.n.c.
Description: Tema su misura per l'Autofficina Dalla Mutta di Padova: meccanica, elettrauto, gommista, soccorso stradale e mezzi pesanti. All'attivazione crea automaticamente tutte le pagine, le immagini e il menu. Dati dell'officina modificabili da Aspetto → Personalizza → Dati officina.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dallamutta
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, business
*/

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--red: #d0163d;
	--red-dark: #a50f2e;
	--red-grad: linear-gradient(135deg, #e01b45 0%, #b3102f 100%);
	--ink: #0f1114;
	--ink-2: #181b20;
	--ink-3: #252a31;
	--steel: #5b616b;
	--muted: #6b7079;
	--line: #e6e3dd;
	--line-dark: rgba(255, 255, 255, .12);
	--grey: #f4f3f0;
	--white: #fff;

	--font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 14px;
	--shadow: 0 1px 2px rgba(15, 17, 20, .05), 0 10px 30px rgba(15, 17, 20, .07);
	--shadow-lg: 0 30px 60px -12px rgba(15, 17, 20, .28);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(72px, 10vw, 128px);
	--header-h: 78px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: uppercase; margin: 0 0 .5em; text-wrap: balance; }
h3, h4 { font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .dm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: #3a3e45; }

.dm-icon { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--red); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2bd576; box-shadow: 0 0 0 0 rgba(43, 213, 118, .6); animation: dm-pulse 2.2s infinite; }
@keyframes dm-pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 213, 118, .55); } 70% { box-shadow: 0 0 0 10px rgba(43, 213, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0); } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px;
	position: relative; overflow: hidden; isolation: isolate;
	border: 1.5px solid transparent; border-radius: var(--radius-sm);
	font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn .dm-icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .dm-icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: none; }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: 19px; }
.btn--red { background: var(--red-grad); color: #fff; box-shadow: 0 10px 24px -6px rgba(208, 22, 61, .55); }
.btn--red:hover { color: #fff; box-shadow: 0 16px 30px -8px rgba(208, 22, 61, .6); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--grey); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.link-arrow .dm-icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--red); color: #fff; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .dm-icon { transform: translateX(4px); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--ink); color: #b9bec6; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__item .dm-icon { color: var(--red); width: 16px; height: 16px; }
.topbar__fb { margin-left: auto; }
.topbar__fb .dm-icon { color: #b9bec6; }
.topbar__fb:hover .dm-icon { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid rgba(15, 17, 20, .06);
	transition: box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -10px rgba(15, 17, 20, .15); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__logo { max-height: 56px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--red-grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(208, 22, 61, .6); }
.brand__mark .dm-icon { width: 26px; height: 26px; }
.brand:hover .brand__mark .dm-icon { transform: rotate(60deg); transition: transform .6s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; line-height: 1; }
.brand__wordmark { display: block; height: 34px; width: auto; }
.brand__stack .brand__tag { margin-top: 0; font-size: 11.5px; letter-spacing: .32em; padding-left: 2px; }
.brand--footer .brand__wordmark { height: 30px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: .03em; text-transform: uppercase; }
.brand__tag { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 4px; display: flex; align-items: center; gap: 2px; background: var(--grey); border-radius: var(--radius); }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: 9px 16px; color: var(--ink); text-decoration: none;
	font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
	border-radius: var(--radius-sm); transition: color .2s, background-color .2s, box-shadow .2s;
}
.primary-nav .menu > li > a:hover { background: rgba(255, 255, 255, .8); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-page-ancestor > a { background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(15, 17, 20, .08); }
.primary-nav .menu-item-has-children > a { padding-right: 30px; }
.primary-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 12px); left: 50%; min-width: 260px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu a { font-family: var(--font-body); font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; padding: 10px 14px; border-radius: var(--radius-sm); }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--grey); color: var(--red); }
.submenu-toggle { display: none; }
.header-call { min-height: 46px; padding: 10px 20px; font-size: 17px; }

.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .dm-icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; min-height: min(calc(100svh - 118px), 900px); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; transform-origin: 70% 50%; animation: dm-kenburns 22s ease-out both; }
@keyframes dm-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(120% 90% at 0% 100%, rgba(15, 17, 20, .96) 0%, rgba(15, 17, 20, .7) 45%, rgba(15, 17, 20, .15) 100%),
	linear-gradient(0deg, rgba(15, 17, 20, .75) 0%, rgba(15, 17, 20, 0) 35%); }
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 380px); gap: 48px; align-items: end; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-bottom: 24px; }
.hero__title { font-size: clamp(48px, 7.6vw, 104px); line-height: .92; margin-bottom: 24px; max-width: 12ch; }
.hero__text { font-size: clamp(17px, 1.5vw, 20px); color: #d3d7dd; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__inner > * { animation: dm-rise .9s var(--ease) both; }
.hero__inner > :nth-child(2) { animation-delay: .08s; }
.hero__inner > :nth-child(3) { animation-delay: .16s; }
.hero__inner > :nth-child(4) { animation-delay: .24s; }
.hero-card { animation: dm-rise .9s .3s var(--ease) both; }
@keyframes dm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-card {
	background: rgba(20, 23, 28, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg);
	backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
	padding: 24px; display: grid; gap: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.hero-card__status { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #cfd3d9; }
.hero-card__hours { margin: 0 0 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.hero-card__hours div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.hero-card__hours dt { font-family: var(--font-head); font-weight: 800; font-size: 30px; text-transform: uppercase; }
.hero-card__hours dd { margin: 0; text-align: right; font-weight: 500; color: #e6e8eb; line-height: 1.5; }
.hero-card__row { display: flex; align-items: center; gap: 14px; padding: 10px; margin-inline: -10px; border-radius: var(--radius); color: #fff; text-decoration: none; transition: background-color .2s; }
.hero-card__row:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero-card__row > .dm-icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #ff5577; }
.hero-card__row span { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.25; }
.hero-card__row small { font-weight: 400; font-size: 13px; color: #a8adb5; }

/* Marquee */
.marquee { position: relative; z-index: 1; background: var(--red-grad); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: dm-marquee 38s linear infinite; }
.marquee__line { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee span { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; background: rgba(255, 255, 255, .55); transform: rotate(45deg); flex: none; }
@keyframes dm-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-bottom: 48px; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .section__title { margin-inline: auto; }
.section__aside { max-width: 380px; }
.section__aside p { color: var(--muted); }
.section__title { font-size: clamp(38px, 5vw, 64px); max-width: 15ch; }
.section__head .section__title { margin-bottom: 0; }

/* Photo service cards */
.pgrid { display: grid; gap: 18px; }
.pgrid--bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }
.pgrid--bento .pcard:nth-child(1), .pgrid--bento .pcard:nth-child(4), .pgrid--bento .pcard:nth-child(6) { grid-column: span 2; }
.pgrid--row { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 300px; }
.pcard {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
	border-radius: var(--radius-lg); background: var(--ink-2); color: #fff; text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pcard:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.pcard:hover .pcard__img { transform: scale(1.07); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 17, 20, .05) 0%, rgba(15, 17, 20, .35) 40%, rgba(15, 17, 20, .92) 100%); transition: background-color .4s; }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pcard:hover::after { transform: scaleX(1); }
.pcard__num { position: absolute; top: 20px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .1em; color: rgba(255, 255, 255, .75); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 26px; width: 100%; }
.pcard__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 8px; transition: background-color .3s; }
.pcard:hover .pcard__icon { background: var(--red); border-color: var(--red); }
.pcard__icon .dm-icon { width: 24px; height: 24px; }
.pcard__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 2.4vw, 32px); line-height: 1; text-transform: uppercase; }
.pcard__text { font-size: 15.5px; color: #d0d4da; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: #fff; opacity: .85; }
.pcard__more .dm-icon { transition: transform .25s var(--ease); }
.pcard:hover .pcard__more { opacity: 1; }
.pcard:hover .pcard__more .dm-icon { transform: translateX(4px); }

/* Stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 8px 32px; display: flex; flex-direction: column; gap: 8px; }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid var(--line-dark); }
.stats strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(48px, 5.4vw, 72px); line-height: .9; text-transform: uppercase; background: linear-gradient(180deg, #fff 30%, #9aa0a8 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats li:first-child strong { background: var(--red-grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.3); }
.stats span { color: #a9aeb6; font-size: 15px; line-height: 1.4; max-width: 24ch; }
.stats--light li + li { border-color: var(--line); }
.stats--light strong { background: linear-gradient(180deg, var(--ink) 40%, #7c828b 140%); -webkit-background-clip: text; background-clip: text; }
.stats--light span { color: var(--muted); }

/* Split + collage */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.collage { padding: 0 12% 14% 0; }
.collage__a { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collage__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.split__badge { position: absolute; left: -18px; top: 28px; background: var(--red-grad); color: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: 0 20px 40px -12px rgba(208, 22, 61, .6); display: flex; flex-direction: column; max-width: 170px; }
.split__badge strong { font-family: var(--font-head); font-weight: 800; font-size: 50px; line-height: .9; }
.split__badge span { font-size: 14px; line-height: 1.3; margin-top: 6px; opacity: .92; }

.feature-list { list-style: none; margin: 8px 0 36px; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.feature-list li:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateX(4px); }
.feature-list li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grey); color: var(--red); flex: none; }
.feature-list li > span .dm-icon { width: 22px; height: 22px; }
.feature-list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; }
.feature-list div { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.brands { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s, color .2s; }
.brands li:hover { border-color: var(--red); color: var(--red); }

/* Heavy vehicles */
.heavy { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding-block: var(--section); }
.heavy__media { position: absolute; inset: 0 0 0 42%; z-index: -2; }
.heavy__media img { width: 100%; height: 100%; object-fit: cover; }
.heavy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 40%, rgba(15, 17, 20, .75) 62%, rgba(15, 17, 20, .2) 100%); }
.heavy__inner { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 48px; align-items: end; }
.heavy__body > p { color: #c3c8ce; font-size: 18px; }
.heavy__list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.heavy__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-weight: 500; }
.heavy__list li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); flex: none; }
.heavy__thumbs { display: flex; gap: 14px; justify-content: flex-end; }
.heavy__thumbs img { width: min(200px, 45%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.heavy__thumbs img:nth-child(2) { transform: translateY(-36px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step__n { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 48px; line-height: 1; color: var(--grey); -webkit-text-stroke: 1px var(--line); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--red-grad); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 20px -8px rgba(208, 22, 61, .6); }
.step__icon .dm-icon { width: 26px; height: 26px; }
.step__title { font-size: 26px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15.5px; margin: 0; }
.section--grey .step { border-color: transparent; }

/* CTA band */
.cta-band {
	position: relative; isolation: isolate; overflow: hidden;
	border-radius: var(--radius-lg); color: #fff;
	padding: clamp(36px, 5vw, 72px);
	margin-block: var(--section) 0;
	box-shadow: 0 30px 60px -20px rgba(208, 22, 61, .45);
}
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(196, 18, 55, .97) 0%, rgba(176, 14, 46, .92) 45%, rgba(120, 10, 32, .55) 100%); }
.cta-band__body { max-width: 640px; }
.cta-band h2 { font-size: clamp(36px, 4.4vw, 58px); margin: 0 0 14px; color: #fff; }
.cta-band .eyebrow { margin-bottom: 14px; }
.cta-band .eyebrow--light::before { background: #fff; }
.cta-band__text { color: rgba(255, 255, 255, .88); font-size: 18px; margin-bottom: 28px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-wrap .cta-band { margin-top: 0; }
.cta-wrap--page { padding-block: var(--section); }
.entry-content .cta-band { margin-top: clamp(56px, 8vw, 96px); }
.entry-content .cta-band p, .entry-content .cta-band .eyebrow { color: #fff; }
.entry-content .cta-band h2 { font-size: clamp(36px, 4.4vw, 58px); margin-top: 0; }

/* Contact + info card + map */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: stretch; }
.info-card { display: grid; gap: 22px; padding: 30px; background: var(--grey); border-radius: var(--radius-lg); align-content: start; }
.info-card__row { display: flex; gap: 16px; line-height: 1.5; }
.info-card__row > .dm-icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: #fff; color: var(--red); box-shadow: var(--shadow); }
.info-card__row strong { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.info-card a { color: var(--ink); font-weight: 700; text-decoration: none; }
.info-card a:hover { color: var(--red); }

/* Custom dark map */
.dm-map {
	position: relative; isolation: isolate; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden;
	background: #1b1d21 radial-gradient(60% 60% at 50% 50%, rgba(208, 22, 61, .18), transparent 70%);
	color: #fff; box-shadow: var(--shadow-lg);
}
.dm-map__canvas { position: absolute; inset: 0; z-index: 0; background: transparent; font: inherit; }
.dm-map::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 80px rgba(0, 0, 0, .55); }
.dm-map .dm-tiles { filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(.92) saturate(.5); }
.dm-map .leaflet-container { background: #1b1d21; }

.dm-map__card {
	position: absolute; z-index: 2; left: 18px; top: 18px; width: min(340px, calc(100% - 36px));
	padding: 20px; border-radius: 18px;
	background: rgba(15, 17, 20, .72); border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7);
}
.dm-map__tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.dm-map__tab { flex: 1; border: 0; border-radius: 999px; padding: 8px 12px; background: transparent; color: #b9bec6; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.dm-map__tab:hover { color: #fff; }
.dm-map__tab.is-active { background: var(--red-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(208, 22, 61, .8); }
.dm-map__title { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 0 0 6px; color: #fff !important; }
.dm-map__sub { margin: 0 0 12px; color: #b9bec6 !important; font-size: 15px; }
.dm-map__note { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #d3d7dd !important; }
.dm-map__note .dm-icon { color: #ff4d6d; }
.dm-map__dirs { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-map__dir { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color .2s, border-color .2s; }
.dm-map__dir:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dm-map__dir--main { background: #fff; color: var(--ink); border-color: #fff; }
.dm-map__dir--main:hover { background: #f0f0f0; color: var(--ink); }
.dm-map__dir--main .dm-icon { color: var(--red); }
.dm-map__hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(15, 17, 20, .7); color: #d3d7dd !important; font-size: 12.5px; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.dm-map.is-active .dm-map__hint, .dm-map:not(.is-ready) .dm-map__hint { opacity: 0; }
.dm-map noscript .btn { position: absolute; z-index: 3; right: 18px; bottom: 18px; }

/* Leaflet controls, restyled */
.dm-map .leaflet-control-zoom { border: 0 !important; margin: 0 18px 18px 0 !important; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6) !important; }
.dm-map .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: rgba(15, 17, 20, .82) !important; color: #fff !important; border-color: rgba(255, 255, 255, .1) !important; font-size: 20px !important; }
.dm-map .leaflet-control-zoom a:hover { background: var(--red) !important; }
.dm-map .leaflet-control-attribution { background: rgba(15, 17, 20, .6) !important; color: #8b9098 !important; font-size: 10px; border-top-left-radius: 8px; }
.dm-map .leaflet-control-attribution a { color: #b9bec6 !important; }
.dm-map .leaflet-bottom.leaflet-right { display: flex; flex-direction: column; align-items: flex-end; }

/* Narrow maps (e.g. beside the contact info): card sits under the map, never over the pins */
.dm-map.dm-map--stack, .dm-contact .dm-map.dm-map--stack { min-height: 0; display: flex; flex-direction: column; }
.dm-map--stack .dm-map__canvas { position: relative; inset: auto; height: 380px; }
.dm-map--stack .dm-map__card { position: static; width: auto; border-radius: 0; background: var(--ink); border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 20px 22px; }
.dm-map--stack .dm-map__title { font-size: 24px; }
.dm-map--stack .dm-map__hint { bottom: auto; top: 14px; }

/* Pins */
.dm-pin-wrap { background: none; border: 0; }
.dm-pin { position: relative; width: 56px; height: 56px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.dm-pin__head {
	position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
	background: #fff; color: var(--ink); border: 3px solid #fff;
	box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .7);
}
.dm-pin__head svg { width: 20px; height: 20px; transform: rotate(45deg); }
.dm-pin--main .dm-pin__head { width: 48px; height: 48px; background: var(--red-grad); color: #fff; border-color: #fff; }
.dm-pin--main .dm-pin__head svg { width: 24px; height: 24px; }
.dm-pin__pulse { position: absolute; z-index: 1; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(208, 22, 61, .55); animation: dm-ping 2.4s var(--ease) infinite; }
.dm-pin__pulse--2 { animation-delay: 1.2s; }
.dm-pin:not(.dm-pin--main) .dm-pin__pulse { background: rgba(255, 255, 255, .35); }
@keyframes dm-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(4.2); opacity: 0; } }
.dm-pin__label {
	position: absolute; z-index: 3; left: 50%; top: -14px; transform: translate(-50%, -100%);
	padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink);
	font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .6);
}
.dm-pin--main .dm-pin__label { background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.leaflet-marker-icon.is-active .dm-pin { transform: scale(1.12); }
.leaflet-marker-icon:not(.is-active) .dm-pin__pulse { animation-play-state: paused; opacity: 0; }

/* Locations */
.locs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; }
.loc { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--grey); display: flex; flex-direction: column; }
.loc--main { background: var(--ink); color: #fff; background-image: radial-gradient(80% 100% at 100% 0%, rgba(208, 22, 61, .35), transparent 60%); }
.loc__tag { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--red); color: #fff; margin-bottom: 18px; }
.loc__title { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 8px; }
.loc p { margin: 0 0 4px; }
.loc--main p { color: #c9cdd3; }
.loc__meta { color: var(--muted); font-size: 15px; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__bg { width: 100%; height: 100%; object-fit: cover; animation: dm-kenburns 20s ease-out both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 120% at 0% 100%, rgba(15, 17, 20, .97) 0%, rgba(15, 17, 20, .78) 50%, rgba(15, 17, 20, .3) 100%); }
.page-hero__inner { padding-block: clamp(72px, 10vw, 136px) clamp(56px, 7vw, 96px); }
.page-hero__inner > * { animation: dm-rise .8s var(--ease) both; }
.page-hero__inner > :nth-child(2) { animation-delay: .06s; }
.page-hero__inner > :nth-child(3) { animation-delay: .12s; }
.page-hero__inner > :nth-child(4) { animation-delay: .18s; }
.page-hero__inner > :nth-child(5) { animation-delay: .24s; }
.page-hero__title { font-size: clamp(52px, 7.4vw, 104px); line-height: .92; margin-bottom: 18px; max-width: 14ch; }
.page-hero__lead { font-size: clamp(17px, 1.5vw, 21px); color: #d0d4da; max-width: 620px; margin: 0; }
.page-hero__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--red-grad); margin-bottom: 22px; box-shadow: 0 14px 30px -10px rgba(208, 22, 61, .7); }
.page-hero__icon .dm-icon { width: 28px; height: 28px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero--plain .page-hero__inner { padding-block: clamp(56px, 8vw, 96px); }
.crumbs { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #a9aeb5; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crumbs a { color: #e3e6ea; text-decoration: none; }
.crumbs a:hover { color: #fff; }

.entry { padding-block: clamp(56px, 8vw, 104px); }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: clamp(36px, 4.4vw, 56px); }
.entry-content h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.2em; }
.entry-content h4 { font-size: 22px; }
.entry-content p { color: #3a3e45; }
.entry-content .eyebrow { color: var(--red); }
.entry-content .loc--main p, .entry-content .dm-map__placeholder p { color: #c3c8ce; }
.entry-content .loc--main .loc__meta, .entry-content .dm-map__placeholder small { color: #8b9098; }
.entry-content .loc__title { margin-top: 0; }
.entry-content .dm-lead { font-size: clamp(18px, 1.6vw, 21px); color: #33373d; max-width: 70ch; }

.entry-content .wp-block-columns.dm-split { gap: clamp(32px, 6vw, 88px); margin-block: 0 clamp(56px, 8vw, 104px); }
.entry-content .wp-block-columns h2:first-child, .entry-content .wp-block-columns h3:first-child, .entry-content .wp-block-group h3:first-child { margin-top: 0; }
.entry-content .wp-block-image { margin: 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-image.dm-wide { margin-block: 12px clamp(40px, 6vw, 64px); }
.entry-content .wp-block-image.dm-wide img { aspect-ratio: 16 / 8; }

.dm-intro { margin-bottom: 40px; }
.dm-intro h2 { margin-bottom: 14px; }
.entry-content > .dm-intro:not(:first-child) { margin-top: clamp(56px, 8vw, 104px); }

/* Collage (block version) */
.dm-collage { position: relative; padding: 0 12% 14% 0; }
.dm-collage .dm-collage__a img { aspect-ratio: 4 / 3.3; }
.dm-collage .dm-collage__b { position: absolute; right: 0; bottom: 0; width: 50%; }
.dm-collage .dm-collage__b img { aspect-ratio: 1; border: 8px solid #fff; box-shadow: var(--shadow-lg); }

/* Cards in content */
.entry-content .wp-block-columns.dm-cards { gap: 20px; margin-block: 24px clamp(40px, 6vw, 64px); }
.dm-card { height: 100%; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--grey); border: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.dm-card:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-3px); }
.dm-card > :last-child { margin-bottom: 0; }
.entry-content .dm-card h3 { margin-top: 0; }
.dm-card__tag { font-family: var(--font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--ink) !important; }
.dm-card__tag::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--red); transform: rotate(45deg) translateY(-3px); }

.entry-content ul.is-style-check { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.entry-content ul.is-style-check li { position: relative; padding-left: 36px; font-weight: 500; }
.entry-content ul.is-style-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px; background: var(--red-grad); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"), var(--red-grad); background-position: center; background-size: 13px, cover; background-repeat: no-repeat; }
.entry-content ul.dm-cols-2, .entry-content ul.dm-cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px 28px; background: var(--grey); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); margin-bottom: clamp(40px, 6vw, 64px); }
.entry-content ul.dm-cols-3 { grid-template-columns: repeat(3, 1fr); }

.dm-callout { position: relative; background: var(--ink); color: #e6e8eb !important; padding: 26px 30px 26px 84px; border-radius: var(--radius-lg); font-size: 18px; margin-block: clamp(32px, 5vw, 56px); }
.dm-callout strong { color: #fff; }
.dm-callout::before { content: ""; position: absolute; left: 26px; top: 26px; width: 36px; height: 36px; border-radius: 10px; background: var(--red-grad); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"), var(--red-grad); background-position: center; background-size: 20px, cover; background-repeat: no-repeat; }
.dm-callout--warn { background: #fff7e0; color: #5c4400 !important; }
.dm-callout--warn::before { background: #f0b400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.dm-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-brands span { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; }
.dm-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.dm-links a { font-weight: 700; }

/* Gallery */
.dm-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.dm-gallery .dm-g--wide { grid-column: 1 / -1; }
.dm-gallery .dm-g img { aspect-ratio: 4 / 3; }
.dm-gallery .dm-g--wide img { aspect-ratio: 16 / 7; }

/* Service layout with sidebar */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-layout .entry { padding-bottom: clamp(40px, 6vw, 72px); }
.svc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; margin-top: clamp(56px, 8vw, 104px); }
.aside-card { border-radius: var(--radius-lg); padding: 26px; background: var(--grey); }
.aside-card--dark { background: var(--ink); color: #fff; background-image: radial-gradient(90% 80% at 100% 0%, rgba(208, 22, 61, .4), transparent 65%); }
.aside-card__title { font-size: 32px; margin-bottom: 18px; }
.aside-card__phone { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 34px; color: #fff; text-decoration: none; margin-bottom: 16px; }
.aside-card__phone .dm-icon { width: 30px; height: 30px; color: var(--red); }
.aside-card__phone:hover { color: #fff; opacity: .85; }
.aside-card__btn { width: 100%; }
.aside-card__hours { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #a9aeb6; margin: 16px 0 0; }
.aside-card__hours .dm-icon { color: var(--red); }
.aside-nav__title { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color .2s, color .2s; }
.aside-nav a .dm-icon { color: var(--steel); }
.aside-nav a:hover { background: #fff; color: var(--red); }
.aside-nav a.is-current { background: #fff; color: var(--red); box-shadow: var(--shadow); font-weight: 700; }
.aside-nav a.is-current .dm-icon, .aside-nav a:hover .dm-icon { color: var(--red); }
.related .section__head { margin-bottom: 36px; }

/* Contact page */
.entry-content .wp-block-columns.dm-contact { gap: clamp(24px, 4vw, 48px); }
.dm-formcard { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dm-contact .dm-map { min-height: 460px; margin-top: 20px; }
.locs + .dm-map { min-height: 580px; }

/* Posts */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 22px; }
.post-card__title { font-size: 26px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.notfound { min-height: 50vh; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.dm-form { display: grid; gap: 18px; margin-top: 8px; }
.dm-form__type { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dm-form__type legend { float: left; margin-right: 8px; font-weight: 700; font-size: 15px; }
.dm-chip { position: relative; cursor: pointer; }
.dm-chip input { position: absolute; opacity: 0; }
.dm-chip span { display: inline-block; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; transition: all .2s; }
.dm-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.dm-chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.dm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dm-form__full { grid-column: 1 / -1; }
.dm-form label > span:first-child { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.dm-form input[type="text"], .dm-form input[type="email"], .dm-form input[type="tel"], .dm-form select, .dm-form textarea {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #d9d6cf; border-radius: 12px; background: var(--grey); color: var(--ink);
	font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.dm-form textarea { min-height: 150px; resize: vertical; }
.dm-form input:focus, .dm-form select:focus, .dm-form textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(208, 22, 61, .14); }
.dm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #3a3e45; }
.dm-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.req { color: var(--red); }
.dm-form .btn { justify-self: start; }
.dm-form__note { font-size: 13px; color: var(--muted); margin: 0; }
.dm-alert { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.dm-alert--ok { background: #e6f4ea; color: #1d6b34; }
.dm-alert--err { background: #fde8ec; color: #9b1030; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: #b4b9c0; font-size: 15px; overflow: hidden; }
.site-footer::before { content: "DALLA MUTTA"; position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font-family: var(--font-head); font-weight: 800; font-size: clamp(80px, 17vw, 260px); line-height: .8; letter-spacing: .02em; color: rgba(255, 255, 255, .025); white-space: nowrap; pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 80px 56px; }
.brand--footer { color: #fff; margin-bottom: 18px; }
.brand--footer .brand__tag { color: #8b9098; }
.site-footer__brand p { max-width: 320px; }
.site-footer__social { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); }
.site-footer__social:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-footer__title { font-size: 19px; color: #fff; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list a { color: #b4b9c0; text-decoration: none; transition: color .2s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .dm-icon { color: var(--red); margin-top: 4px; }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #8b9098; }
.site-footer__bottom a { color: #b4b9c0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 16px; }

.mobile-call { display: none; }

/* ==========================================================================
   Motion & sharp details
   ========================================================================== */

/* Scroll progress bar */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; background: var(--red-grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.admin-bar .scroll-progress { top: var(--wp-admin--admin-bar--height, 0px); }

/* Word-by-word headline reveal */
.js-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js-split .w > span { display: inline-block; transform: translateY(110%); transition: transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 40ms + 120ms); }
.js-split.is-in .w > span { transform: none; }
.hero__title.js-split, .page-hero__title.js-split { animation: none; }

/* Parallax layers (JS sets --py) */
.hero__media, .page-hero__media { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.hero__media, .page-hero__media { inset: -8% 0 -8% 0; }

/* Hero slideshow: slow cross-fade + Ken Burns, text stays put */
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; animation: dm-reel var(--slide-ms, 7000ms) linear both; }
.hero-slide.is-leaving { opacity: 0; animation: dm-reel var(--slide-ms, 7000ms) linear both; animation-play-state: paused; }
.hero-slide:nth-child(2) { transform-origin: 30% 60%; object-position: 50% 50%; }
.hero-slide:nth-child(3) { transform-origin: 60% 30%; object-position: 50% 50%; }
.hero-slide:nth-child(4) { transform-origin: 40% 50%; object-position: 50% 60%; }
.hero-slide:nth-child(5) { transform-origin: 70% 70%; object-position: 50% 50%; }
@keyframes dm-reel { from { transform: scale(1.1); } to { transform: scale(1.01); } }
.hero.is-paused .hero-slide.is-active { animation-play-state: paused; }

.hero-reel { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-top: -8px; }
.hero-reel[hidden] { display: none; }
.hero-reel__toggle { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .28); background: rgba(15, 17, 20, .35); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.hero-reel__toggle:hover, .hero-reel__toggle:focus-visible { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.hero-reel__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero.is-paused .hero-reel__icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.hero-reel__segs { display: flex; gap: 6px; }
.hero-reel__seg { position: relative; width: 44px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-reel__seg::before, .hero-reel__seg span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.hero-reel__seg::before { background: rgba(255, 255, 255, .28); }
.hero-reel__seg span { background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hero-reel__seg.is-done span { transform: scaleX(1); }
.hero-reel__seg.is-active span { animation: dm-seg var(--slide-ms, 7000ms) linear both; }
.hero.is-paused .hero-reel__seg.is-active span { animation-play-state: paused; }
@keyframes dm-seg { to { transform: scaleX(1); } }
.hero-reel__label { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.hero-reel__num { color: #ff4d6d; font-variant-numeric: tabular-nums; }
.hero-reel__text { transition: opacity .4s; }
.hero-reel__text.is-swapping { opacity: 0; }
@media (max-width: 640px) {
	.hero-reel { gap: 12px; padding-bottom: 18px; }
	.hero-reel__seg { width: 28px; }
	.hero-reel__label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-slide.is-active, .hero-slide.is-leaving { animation: none; }
	.hero-reel__seg.is-active span { animation: none; transform: scaleX(1); }
}

/* Steps: connecting line */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 58px; height: 2px; background: linear-gradient(90deg, var(--red), rgba(208, 22, 61, .15)); z-index: 0; }
.step { z-index: 1; }

/* Angled, sharper sections */
.heavy { clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw)); padding-block: calc(var(--section) + 2vw); }
.section--dark.section--tight { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2vw), 0 100%); padding-bottom: calc(clamp(48px, 6vw, 72px) + 2vw); }
.pcard::before { transition: background-color .4s, opacity .4s; }

/* Subtle technical grid texture on dark areas */
.section--dark, .site-footer { background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 56px 56px; }

/* Stat numbers tick */
.stats strong { font-variant-numeric: tabular-nums; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.primary-nav .menu a { padding-inline: 12px; font-size: 16px; }
	.header-call span { display: none; }
	.header-call { padding: 10px 14px; }
	.hero__grid { grid-template-columns: 1fr 320px; gap: 32px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.topbar__item:nth-child(2) { display: none; }
	/* backdrop-filter would make the fixed menu panel relative to the header. */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-toggle { display: grid; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.primary-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
		flex-direction: column; align-items: stretch; gap: 0;
		/* Solid panel, no fade: the page must never show through the menu. */
		background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
		visibility: hidden; transform: translateX(100%); transition: transform .3s var(--ease), visibility 0s .3s;
		box-shadow: 0 1px 0 var(--line) inset;
	}
	.nav-open .primary-nav { visibility: visible; transform: none; transition: transform .3s var(--ease), visibility 0s; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; background: none; padding: 0; border-radius: 0; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu > li > a { flex: 1; padding: 16px 4px; font-size: 24px; border-radius: 0; background: none !important; box-shadow: none !important; }
	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current-menu-ancestor > a,
	.primary-nav .menu > .current-page-ancestor > a { color: var(--red); }
	.primary-nav .menu-item-has-children > a::before { display: none; }
	.submenu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; transition: background-color .2s, border-color .2s; }
	.submenu-toggle span { width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-25%) rotate(45deg); transition: transform .25s var(--ease); }
	.is-open > .submenu-toggle { background: var(--red); border-color: var(--red); }
	.is-open > .submenu-toggle span { border-color: #fff; transform: translateY(25%) rotate(-135deg); }
	.primary-nav .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; margin: 0 0 14px; padding: 6px;
		border: 0; border-radius: var(--radius); background: var(--grey); box-shadow: none;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.primary-nav .is-open > .sub-menu { display: grid; gap: 2px; animation: dm-rise .3s var(--ease) both; }
	.primary-nav .sub-menu a {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 14px 16px; border-radius: 10px;
		font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
	}
	.primary-nav .sub-menu a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--red); border-top: 2px solid var(--red); transform: rotate(45deg); flex: none; }
	.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: #fff; color: var(--red); box-shadow: var(--shadow); }
	.header-call { margin-top: 24px; min-height: 56px; }
	.header-call span { display: inline; }

	.hero { min-height: 0; }
	.hero__grid { grid-template-columns: 1fr; align-items: start; }
	.hero-card { max-width: 520px; }
	.pgrid--bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
	.pgrid--bento .pcard:nth-child(n) { grid-column: auto; }
	.pgrid--bento .pcard:nth-child(1) { grid-column: 1 / -1; }
	.pgrid--bento .pcard:nth-child(6) { grid-column: 1 / -1; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
	.stats li:nth-child(3) { border-left: 0; padding-left: 0; }
	.split, .contact-grid { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.split__badge { left: 16px; }
	.heavy__media { inset: 0; }
	.heavy::before { background: rgba(15, 17, 20, .86); }
	.heavy__inner { grid-template-columns: 1fr; }
	.heavy__thumbs { display: none; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.svc-layout { grid-template-columns: 1fr; }
	.svc-layout .entry { padding-bottom: 0; }
	.svc-aside { position: static; margin-top: 0; grid-template-columns: 1fr 1fr; padding-bottom: clamp(48px, 7vw, 72px); }
	.locs { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.entry-content ul.dm-cols-3 { grid-template-columns: 1fr 1fr; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.section__head--center { align-items: center; }
}

@media (max-width: 640px) {
	body { font-size: 16px; padding-bottom: 64px; }
	.topbar { display: none; }
	.brand__name { font-size: 24px; }
	.brand__mark { width: 40px; height: 40px; }
	.brand__wordmark { height: 26px; }
	.brand__stack { gap: 5px; }
	.brand__stack .brand__tag { font-size: 10px; letter-spacing: .26em; }
	.hero__grid { padding-top: 48px; }
	.hero__actions .btn { width: 100%; }
	.hero-card__hours dt { font-size: 24px; }
	.marquee span { font-size: 20px; }
	.pgrid--bento, .pgrid--row { grid-template-columns: 1fr; grid-auto-rows: 280px; }
	.pgrid--bento .pcard:nth-child(n) { grid-column: auto; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stats li { padding: 0 0 0 18px; }
	.stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
	.collage, .dm-collage { padding: 0 8% 12% 0; }
	.heavy__list { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.svc-aside { grid-template-columns: 1fr; }
	.dm-form__grid { grid-template-columns: 1fr; }
	.entry-content ul.dm-cols-2, .entry-content ul.dm-cols-3 { grid-template-columns: 1fr; }
	.dm-gallery { grid-template-columns: 1fr; }
	.dm-callout { padding: 76px 22px 22px; }
	.site-footer__grid { grid-template-columns: 1fr; padding-top: 56px; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	/* On phones the info card sits under the map instead of covering it. */
	.dm-map, .dm-contact .dm-map, .locs + .dm-map { min-height: 0; display: flex; flex-direction: column; }
	.dm-map__canvas { position: relative; inset: auto; height: 340px; }
	.dm-map__card { position: static; width: auto; border-radius: 0; background: var(--ink); border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.dm-map__hint { display: none; }
	.page-hero__actions .btn { width: 100%; }
	.mobile-call {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 90; height: 54px; border-radius: 999px;
		background: var(--red-grad); color: #fff; text-decoration: none;
		font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
		box-shadow: 0 14px 30px -8px rgba(208, 22, 61, .7);
	}
	.mobile-call:hover { color: #fff; }
	.nav-open .mobile-call { display: none; }
}

@media (max-width: 1024px) {
	.steps::before { display: none; }
	.heavy { clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 calc(100% - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.marquee__track { animation: none; }
	.js-split .w > span, .wipe, .reveal { transform: none !important; clip-path: none !important; opacity: 1 !important; }
	.hero__media, .page-hero__media, .heavy__media { transform: none !important; }
}
