/* =====================================================================
   custom.css — DevonMax (tema thm-nexi)
   UNICO file fuori dal framework NG. Solo ciò che NG non copre:
   palette/brand DevonMax, foto-bg, grid-lines, gradienti, tipografia heavy.
   ===================================================================== */

/* 1) PALETTE / TOKEN — all-black DevonMax + accenti teal/gold/indigo */
:root[data-theme="dark"] {
	--ng-body-background: #030303;
	--ng-surface: #0a0a0a;
	--ng-surface-sunken: #000000;
	--ng-fill: #14161b;
	--ng-text: #f2eee5;                        /* paper (off-white caldo) */
	--ng-text-muted: rgba(242, 238, 229, .66);
	--ng-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* DevonMax */
	--dm-paper: #f2eee5;
	--dm-muted: #a8a197;
	--dm-dim: #6f6a62;
	--dm-teal: #42d8c9;
	--dm-gold: #c6a15b;
	--dm-indigo: #5865f2;
	--dm-line: rgba(242, 238, 229, .12);
	--dm-line-strong: rgba(242, 238, 229, .24);
}

/* Atmosfera globale di pagina (gradiente DevonMax dietro a tutto) */
body {
	background:
		radial-gradient(circle at 67% 38%, rgba(66, 216, 201, .10), transparent 24%),
		radial-gradient(circle at 88% 14%, rgba(198, 161, 91, .07), transparent 24%),
		linear-gradient(145deg, #171411 0%, #050505 38%, #000 100%);
	background-attachment: fixed;
}

/* 2) HEADER — solido charcoal, sticky, nav uppercase bold */
.ng-header {
	--ng-header-background: rgba(3, 3, 3, .86);
	border-bottom: 1px solid var(--dm-line);
	backdrop-filter: blur(8px);
}
.ng-header-brand { font-weight: 800; font-size: 18px; letter-spacing: 0; color: var(--dm-paper); }
/* Elimina lo spazio extra (+20px) tra header fisso e contenuto su tutte le pagine */
.ng-header.sticky-header ~ .ng-content { margin-top: var(--ng-header-height, 4.5rem); }
.ng-header-nav { text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.ng-header-nav a { color: rgba(242, 238, 229, .82); }
.ng-header-nav a:hover, .ng-header-nav a.is-active { color: var(--dm-paper); }
.ng-header-nav a.is-dead { color: var(--dm-dim); cursor: default; }

/* Nav mobile (overlay) */
.dm-mobile-nav { display: flex; flex-direction: column; }
.dm-mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--dm-line); text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: rgba(242, 238, 229, .9); }
.dm-mobile-nav a.is-dead { color: var(--dm-dim); }

/* 3) HERO — foto hacker-lab full-bleed, sinistra scura per il testo */
.dm-hero {
	position: relative;
	min-height: calc(100svh - var(--ng-header-height, 64px) - 2.5rem);
	display: flex; flex-direction: column;
	overflow: hidden; isolation: isolate;
	background:
		linear-gradient(90deg, rgba(66, 216, 201, .025) 1px, transparent 1px),
		linear-gradient(0deg, rgba(242, 238, 229, .012) 1px, transparent 1px),
		#030303;
	background-size: 96px 96px;
}
.dm-hero-bg {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: center right;
	opacity: .94; filter: contrast(1.15) brightness(.82) saturate(.92);
}
.dm-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .38) 44%, rgba(0, 0, 0, .2) 72%, rgba(0, 0, 0, .74));
}
.dm-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	box-shadow: inset 0 0 130px rgba(0, 0, 0, .9);
}
.dm-hero-inner { position: relative; z-index: 2; width: 100%; margin-top: auto; margin-bottom: auto; }

.dm-eyebrow { color: var(--dm-gold); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-display { font-size: clamp(56px, 8vw, 120px); line-height: .9; font-weight: 800; letter-spacing: -.01em; color: var(--dm-paper); }
.dm-lead { color: rgba(242, 238, 229, .78); font-size: 20px; line-height: 1.55; max-width: 470px; }

/* CTA pill (NG non ha il modifier pill) */
.dm-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 166px; height: 46px; padding: 0 26px;
	border: 1px solid rgba(242, 238, 229, .72); border-radius: 999px;
	color: var(--dm-paper); font-size: 13px; font-weight: 800;
}
.dm-cta:hover { border-color: var(--dm-paper); background: rgba(242, 238, 229, .07); }
.dm-cta-teal { border-color: rgba(66, 216, 201, .55); background: rgba(66, 216, 201, .05); }
.dm-cta-teal:hover { border-color: var(--dm-teal); background: rgba(66, 216, 201, .12); }

/* Counter 01/04 (decorativo) */
.dm-counter strong { display: block; font-size: 42px; line-height: 1; font-weight: 800; color: var(--dm-paper); }
.dm-counter span { display: block; width: 86px; height: 3px; margin-top: 18px; background: var(--dm-paper); }

/* 4) SEZIONI con grid-lines + glow */
.dm-section { position: relative; overflow: hidden; padding-block: clamp(72px, 10vh, 120px); border-top: 1px solid rgba(242, 238, 229, .08); }
.dm-section::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(66, 216, 201, .018) 1px, transparent 1px),
		linear-gradient(0deg, rgba(242, 238, 229, .012) 1px, transparent 1px);
	background-size: 96px 96px; opacity: .8;
}
.dm-section > * { position: relative; z-index: 1; }
.dm-systems { background: radial-gradient(circle at 16% 18%, rgba(66, 216, 201, .07), transparent 24%); }
.dm-transmission { background: radial-gradient(circle at 72% 20%, rgba(88, 101, 242, .08), transparent 28%), radial-gradient(circle at 18% 72%, rgba(66, 216, 201, .06), transparent 26%); }

/* Parallax città dietro ai contenuti dopo la hero (immagine appena visibile, fixed) */
.dm-parallax { position: relative; background: #030303; isolation: isolate; }
.dm-parallax::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background: var(--dm-parallax-img, url("/themes/thm-nexi/assets/media/devonmax/devonmax-city-parallax-v01.png")) center / cover fixed no-repeat;
	opacity: .3;
}
.dm-parallax::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(3, 3, 3, .35), transparent 18%, transparent 82%, rgba(3, 3, 3, .55));
}
@media (max-width: 768px) { .dm-parallax::before { background-attachment: scroll; } }

/* Variante parallax per Contact (post-station) — specchiata: la parte d'interesse
   passa a sinistra (visibile), non sotto il form a destra. */
.dm-parallax-station { --dm-parallax-img: url("/themes/thm-nexi/assets/media/devonmax/devonmax-post-station-parallax-v01.png"); }
.dm-parallax-station::before { transform: scaleX(-1); }
/* Variante parallax per l'indice Lavori (archive) */
.dm-parallax-archive { --dm-parallax-img: url("/themes/thm-nexi/assets/media/devonmax/devonmax-work-index-archive-parallax-v01.png"); }
.dm-parallax-detail { --dm-parallax-img: url("/themes/thm-nexi/assets/media/devonmax/devonmax-work-detail-parallax-v01.png"); }
.dm-parallax-shop { --dm-parallax-img: url("/themes/thm-nexi/assets/media/devonmax/devonmax-product-detail-parallax-v01.png"); }
.dm-parallax-shop-detail { --dm-parallax-img: url("/themes/thm-nexi/assets/media/devonmax/devonmax-mini-shop-hero-v01.png"); }

/* ===== LAVORI — card case study ===== */
.dm-case { text-decoration: none; }
.dm-case .dm-card-meta { margin-bottom: 22px; }
.dm-case h3 { margin-bottom: 12px; }
.dm-case-foot { margin-top: auto; padding-top: 20px; }
.dm-case-link { color: var(--dm-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dm-case-soon { color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-case-live { display: inline-flex; align-items: center; gap: 8px; color: var(--dm-teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
a.dm-case:hover .dm-case-link { color: var(--dm-paper); }
.dm-case.is-soon { opacity: .82; }
.dm-case.is-soon::before { opacity: .4; }

/* ===== SIGNALDESK — titolo prodotto, azioni hero, console mockup ===== */
.dm-product-title { font-size: clamp(48px, 6.5vw, 96px); line-height: .9; font-weight: 800; letter-spacing: -.01em; color: var(--dm-paper); }
.dm-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dm-ghost-link { color: var(--dm-muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.dm-ghost-link:hover { color: var(--dm-paper); }

.dm-console {
	border: 1px solid rgba(242, 238, 229, .13);
	background: linear-gradient(135deg, rgba(66, 216, 201, .07), rgba(88, 101, 242, .035)), rgba(0, 0, 0, .66);
	backdrop-filter: blur(8px);
	box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.dm-console-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--dm-line); color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-console-status { color: var(--dm-teal); display: inline-flex; align-items: center; gap: 8px; }
.dm-console-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 18px; }
.dm-metrics { display: grid; gap: 12px; align-content: start; }
.dm-metric { padding: 18px; border: 1px solid var(--dm-line); background: rgba(255, 255, 255, .035); }
.dm-metric span { display: block; color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dm-metric strong { display: block; margin-top: 12px; font-size: 32px; line-height: 1; color: var(--dm-paper); }
.dm-runtime {
	border: 1px solid var(--dm-line); padding: 18px;
	background: linear-gradient(90deg, rgba(66, 216, 201, .045) 1px, transparent 1px), linear-gradient(0deg, rgba(242, 238, 229, .018) 1px, transparent 1px), rgba(2, 2, 2, .74);
	background-size: 42px 42px;
}
.dm-flow { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(242, 238, 229, .09); }
.dm-flow:last-child { border-bottom: 0; }
.dm-flow b { color: var(--dm-teal); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.dm-flow p { margin: 0; color: var(--dm-muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 768px) { .dm-console-body { grid-template-columns: 1fr; } }

/* ===== SIGNALDESK — sezioni prodotto (layout DIVERSI dalla home) ===== */

/* Chips (pain points / use cases) */
.dm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-chip { border: 1px solid var(--dm-line); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--dm-muted); }
.dm-chip-pain { color: var(--dm-dim); }
.dm-chip-use { border-color: rgba(66, 216, 201, .28); color: var(--dm-paper); }

/* Module map → split: head sticky + righe feature (non card-grid come la home) */
.dm-features { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.dm-features-head { position: sticky; top: 96px; }
.dm-feature-row { display: grid; grid-template-columns: 50px 130px 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--dm-line); }
.dm-feature-row:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-feature-idx { color: var(--dm-teal); font-size: 14px; font-weight: 800; }
.dm-feature-tag { color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-feature-main h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: var(--dm-paper); }
.dm-feature-main p { margin: 0; color: var(--dm-muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 980px) {
	.dm-features { grid-template-columns: 1fr; gap: 28px; }
	.dm-features-head { position: static; }
	.dm-feature-row { grid-template-columns: 40px 1fr; }
	.dm-feature-tag { display: none; }
}

/* Build protocol → timeline orizzontale (non lista verticale come la home) */
.dm-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dm-step { position: relative; padding-top: 30px; border-top: 1px solid var(--dm-line); }
.dm-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--dm-teal); box-shadow: 0 0 8px rgba(66, 216, 201, .6); }
.dm-step-code { color: var(--dm-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dm-step h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; color: var(--dm-paper); line-height: 1.1; }
.dm-step p { margin: 0; color: var(--dm-muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 768px) { .dm-timeline { grid-template-columns: 1fr; gap: 20px; } }

/* CTA band */
.dm-cta-band { text-align: center; }
.dm-cta-band h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1; color: var(--dm-paper); margin: 0 0 16px; }
.dm-cta-band p { color: var(--dm-muted); font-size: 17px; line-height: 1.6; max-width: 540px; margin: 0 auto 28px; }

/* ===== MEMBERDESK — specs strip (hero) + capabilities a icone ===== */
.dm-specs { display: flex; flex-wrap: wrap; border-top: 1px solid var(--dm-line); padding-top: 22px; margin: 0; }
.dm-spec { padding-right: 40px; margin-right: 40px; border-right: 1px solid var(--dm-line); }
.dm-spec:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.dm-spec dt { margin: 0 0 8px; color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-spec dd { margin: 0; color: var(--dm-paper); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 768px) { .dm-spec { flex: 0 0 calc(50% - 20px); border-right: 0; padding-right: 0; margin-right: 0; margin-bottom: 18px; } }

.dm-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dm-cap { border: 1px solid var(--dm-line); background: rgba(8, 9, 11, .55); padding: 24px; }
.dm-cap > i { font-size: 26px; color: var(--dm-teal); line-height: 1; }
.dm-cap h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 700; color: var(--dm-paper); }
.dm-cap p { margin: 0; color: var(--dm-muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .dm-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dm-cap-grid { grid-template-columns: 1fr; } }

.dm-kicker { color: var(--dm-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-h2 { font-size: clamp(36px, 5vw, 72px); line-height: .96; font-weight: 800; color: var(--dm-paper); }
.dm-intro { color: rgba(242, 238, 229, .68); font-size: 16px; line-height: 1.65; }

/* System card (chrome DevonMax: glass + barra teal→indigo) */
.dm-card {
	position: relative; min-height: 232px; padding: 24px; overflow: hidden;
	border: 1px solid rgba(242, 238, 229, .13);
	background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .016)), rgba(3, 3, 3, .72);
	backdrop-filter: blur(8px);
	display: flex; flex-direction: column;
}
.dm-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--dm-teal), var(--dm-indigo), transparent); opacity: .74; }
.dm-card:hover { border-color: rgba(66, 216, 201, .42); }
.dm-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 54px; color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dm-card-meta b { color: var(--dm-teal); font-weight: 800; }
.dm-card h3 { margin: 0 0 16px; color: var(--dm-paper); font-size: 24px; line-height: 1.05; font-weight: 700; }
.dm-card p { margin: 0; color: rgba(242, 238, 229, .66); font-size: 14px; line-height: 1.55; }

/* Transmission log */
.dm-log { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-top: 1px solid rgba(242, 238, 229, .14); }
.dm-log:last-child { border-bottom: 1px solid rgba(242, 238, 229, .14); }
.dm-log-code { color: var(--dm-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dm-log h3 { margin: 0 0 10px; color: var(--dm-paper); font-size: 24px; line-height: 1.1; font-weight: 700; }
.dm-log p { margin: 0; color: rgba(242, 238, 229, .64); font-size: 15px; line-height: 1.55; max-width: 620px; }
@media (max-width: 720px) { .dm-log { grid-template-columns: 1fr; gap: 12px; } }

/* Contact — meta "system" + pannello signal-input */
.dm-meta { margin: 0; display: flex; flex-direction: column; }
.dm-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--dm-line); }
.dm-meta-row:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-meta-row dt { margin: 0; color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-meta-row dd { margin: 0; color: var(--dm-paper); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.dm-panel-label { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-teal); box-shadow: 0 0 8px rgba(66, 216, 201, .8); display: inline-block; flex: none; }
.dm-form .ng-label { color: var(--dm-muted); }
.dm-form .ng-input, .dm-form .ng-textarea, .dm-form .ng-select { background: rgba(0, 0, 0, .4); border-color: var(--dm-line); color: var(--dm-paper); }
.dm-form .ng-input:focus, .dm-form .ng-textarea:focus, .dm-form .ng-select:focus { border-color: rgba(66, 216, 201, .6); }
.dm-form .ng-help { color: var(--dm-dim); }
.dm-consent { margin-top: 20px; color: var(--dm-muted); font-size: 13px; line-height: 1.5; align-items: flex-start; }
/* Campi extra per tipo di progetto (toggle JS) */
.dm-typefields { margin: 6px 0; padding: 18px 16px; border: 1px dashed var(--dm-line); border-radius: var(--ng-radius-md, 3px); background: rgba(66, 216, 201, .03); }
.dm-typefields .ng-row { margin-bottom: 0; }
.dm-typefields .ng-field:last-child { margin-bottom: 0; }
.dm-typefields[hidden] { display: none; }
.dm-typefields-note { margin: 0 0 14px; color: var(--dm-dim); font-size: 13px; line-height: 1.5; }
.dm-typefields-note strong { color: var(--dm-paper); font-weight: 700; }
.dm-flash { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid rgba(66, 216, 201, .4); border-radius: var(--ng-radius-md, 3px); background: rgba(66, 216, 201, .08); color: var(--dm-paper); font-size: 14px; }
.dm-flash-err { border-color: rgba(226, 75, 74, .45); background: rgba(226, 75, 74, .1); }
.dm-form .ng-field.has-error .ng-input, .dm-form .ng-field.has-error .ng-select, .dm-form .ng-field.has-error .ng-textarea { border-color: rgba(226, 75, 74, .6); }
@media (prefers-reduced-motion: no-preference) {
	.dm-dot { animation: dm-pulse 2.4s ease-in-out infinite; }
	@keyframes dm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
}

/* ===== SCHEDA progetto (hero DX dei case reali: Nexigrid, Glossario) =====
   Riusa il guscio .dm-console + le righe .dm-meta/.dm-meta-row del Contact. */
.dm-scheda-body { padding: 22px; }
.dm-scheda-incipit { margin: 0 0 16px; color: var(--dm-paper); font-size: 16px; line-height: 1.5; font-weight: 600; }
.dm-scheda .dm-meta-row:first-child { border-top: 0; padding-top: 0; }
.dm-scheda-desc { margin: 16px 0 0; color: var(--dm-muted); font-size: 14px; line-height: 1.55; }
.dm-scheda-url { color: var(--dm-teal); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dm-scheda-url:hover { color: var(--dm-paper); }
/* Status: verde pulsante (live, eredita .dm-dot) vs rosso fisso (off) */
.dm-status-off { color: #e24b4a; }
.dm-dot-off { background: #e24b4a; box-shadow: 0 0 8px rgba(226, 75, 74, .8); }
.dm-status-soon { color: var(--dm-gold); }
.dm-dot-soon { background: var(--dm-gold); box-shadow: 0 0 8px rgba(198, 161, 91, .8); }
@media (prefers-reduced-motion: no-preference) { .dm-dot-off, .dm-dot-soon { animation: none; } }

/* ===== SHOP — galleria + dettaglio ===== */
.dm-shop-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border: 1px solid rgba(242, 238, 229, .13); background: rgba(3, 3, 3, .72); transition: border-color .2s; }
.dm-shop-card:hover { border-color: rgba(66, 216, 201, .42); }
/* Galleria scrollabile nella card (3 immagini, snap orizzontale) */
.dm-shop-gallery { display: flex; overflow-x: auto; aspect-ratio: 16 / 10; background: #0b0c0e; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dm-shop-slide { flex: 0 0 100%; scroll-snap-align: start; background-color: #0b0c0e; background-position: center; background-size: cover; background-repeat: no-repeat; }
.dm-shop-gallery::-webkit-scrollbar { height: 4px; }
.dm-shop-gallery::-webkit-scrollbar-thumb { background: rgba(66, 216, 201, .5); }
/* Filmstrip galleria nel dettaglio (tutte le immagini) */
.dm-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.dm-gallery-img { flex: 0 0 auto; width: min(82%, 680px); aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: center; border: 1px solid var(--dm-line); background: #0b0c0e; }
.dm-gallery::-webkit-scrollbar { height: 6px; }
.dm-gallery::-webkit-scrollbar-thumb { background: rgba(66, 216, 201, .5); border-radius: 3px; }
.dm-shop-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.dm-shop-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dm-shop-cat { color: var(--dm-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dm-shop-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dm-shop-status.is-available { color: var(--dm-teal); }
.dm-shop-status.is-reserved { color: #d98a1f; }
.dm-shop-status.is-sold { color: #e24b4a; }
.dm-shop-status.is-soon { color: var(--dm-gold); }
.dm-shop-title { color: var(--dm-paper); font-size: 20px; font-weight: 700; line-height: 1.1; }
.dm-shop-excerpt { color: var(--dm-muted); font-size: 14px; line-height: 1.5; }
.dm-shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--dm-line); }
.dm-shop-price { color: var(--dm-paper); font-size: 18px; font-weight: 800; }
.dm-shop-price-lg { color: var(--dm-gold); font-size: 22px; font-weight: 800; }
.dm-cta.is-disabled { background: rgba(255, 255, 255, .06); color: var(--dm-dim); cursor: not-allowed; pointer-events: none; }

/* FAQ (accordion nativo <details>) — pagine servizio */
.dm-faq-item { border-top: 1px solid var(--dm-line); padding: 18px 0; }
.dm-faq-item:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-faq-item summary { cursor: pointer; list-style: none; color: var(--dm-paper); font-size: 18px; font-weight: 700; line-height: 1.4; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dm-faq-item summary::-webkit-details-marker { display: none; }
.dm-faq-item summary::after { content: "+"; color: var(--dm-teal); font-size: 24px; font-weight: 400; flex: none; }
.dm-faq-item[open] summary::after { content: "\2212"; }
.dm-faq-item p { margin: 14px 0 0; color: var(--dm-muted); font-size: 15px; line-height: 1.6; max-width: 640px; }

/* Footer DevonMax */
.dm-footer { display: grid; place-items: center; min-height: 200px; padding: 48px 24px; text-align: center; background: #000; }
.dm-footer strong { display: block; color: var(--dm-paper); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.dm-footer span { display: block; color: rgba(242, 238, 229, .46); font-size: 13px; line-height: 1.6; }

/* Movimento — sottile, disattivato per chi riduce le animazioni */
@media (prefers-reduced-motion: no-preference) {
	.dm-reveal { animation: dm-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes dm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* =====================================================================
   Legacy (pagine /lavori e /contatti, da rifare): atmosfera + misura.
   ===================================================================== */
.thm-atmo::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--thm-bg, none) center / cover no-repeat; opacity: var(--thm-bg-alpha, .16); filter: blur(2px) saturate(.65); pointer-events: none; }
.thm-atmo::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(130% 90% at 50% -10%, rgba(66, 216, 201, .07), transparent 55%), linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .92) 80%); pointer-events: none; }
.thm-atmo-glass { --thm-bg: url("/themes/thm-nexi/assets/media/bg/glass.svg"); }
.thm-atmo-water { --thm-bg: url("/themes/thm-nexi/assets/media/bg/water.svg"); }
.thm-atmo-stone { --thm-bg: url("/themes/thm-nexi/assets/media/bg/stone.svg"); }
.thm-atmo-fog   { --thm-bg: url("/themes/thm-nexi/assets/media/bg/fog.svg"); }
.thm-measure { max-width: var(--ng-text-measure, 68ch); }
