/* ==========================================================================
   DenaCode — main stylesheet
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage.woff2") format("woff2-variations"), url("../fonts/bricolage.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("../fonts/hanken.woff2") format("woff2-variations"), url("../fonts/hanken.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	/* Palette — corporate: blu notte, neutri freddi, un solo accento blu */
	--ink: #0B1D39;          /* blu notte: prodotti, contatti, footer */
	--ink-2: #132A4E;        /* superfici su ink */
	--ink-3: #24416C;        /* bordi su ink */
	--paper: #F7F8FA;        /* sezioni chiare */
	--mist: #EDF0F4;         /* sezioni alternate */
	--line: #DCE2EA;         /* bordi su fondo chiaro */
	--signal: #A9C1E8;       /* accento su fondo scuro */
	--signal-deep: #1B4F8F;  /* accento su fondo chiaro */
	--pulse: #2F7FE0;        /* accento attivo (blu) */
	--accent: #E0596D;       /* corallo del logo */
	--accent-deep: #B83349;  /* corallo scuro: bottoni, testo su chiaro */
	--text: #10213E;
	--muted: #55607A;
	--on-ink: #EEF2F8;
	--on-ink-muted: #A7B3C8;

	/* Type */
	--font-display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5625rem;
	--step-3: clamp(2.1rem, 1.4rem + 2.4vw, 3.3rem);
	--step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);

	/* Layout */
	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section-y: clamp(4.5rem, 10vw, 8.5rem);
	--radius-lg: 10px;
	--radius-md: 8px;
	--radius-sm: 6px;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 650; line-height: 1.08; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--pulse); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--pulse); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 52px; padding: .8rem 1.5rem;
	font: 600 1rem/1 var(--font-body);
	border-radius: var(--radius-sm); border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--pulse); color: var(--ink); }
.btn-signal:hover { background: #FFC86E; }
.btn-ghost { color: var(--on-ink); border-color: rgba(233, 236, 251, .3); }
.btn-ghost:hover { border-color: var(--on-ink); }
.btn-outline { color: var(--signal-deep); border-color: currentColor; }
.btn-outline:hover { background: var(--signal-deep); color: #fff; border-color: var(--signal-deep); }
.btn-small { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(244, 245, 251, .86);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(22, 26, 51, .08);
	transition: background-color .3s, border-color .3s, color .3s;
}
.has-dark-hero .site-header {
	position: fixed; inset: 0 0 auto 0;
	background: transparent; border-color: transparent; color: var(--on-ink);
}
.has-dark-hero .site-header.is-scrolled {
	background: rgba(15, 20, 51, .82); border-color: rgba(142, 162, 255, .14);
}
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { text-decoration: none; display: inline-flex; align-items: center; }
.custom-logo, .brand-logo { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand-logo-footer { height: 36px; }
@media (max-width: 600px) { .brand-logo-header { height: 34px; } }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; }
.wordmark-glyph { color: var(--signal-deep); }
.has-dark-hero .site-header .wordmark-glyph,
.site-footer .wordmark-glyph { color: var(--signal); }
.wordmark-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; font-stretch: 90%; }
.wordmark-text b { font-weight: 750; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.75rem; list-style: none; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .82; transition: opacity .2s; }
.nav-list a:hover, .nav-list .current-menu-item a { opacity: 1; text-decoration: underline; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; margin-right: -10px;
		background: none; border: 0; color: inherit; cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
		display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
		transition: transform .25s, opacity .25s;
	}
	.nav-toggle-bars { position: relative; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -7px; }
	.nav-toggle-bars::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 1.25rem;
		padding: 1.5rem var(--gutter) 2rem;
		background: var(--ink); color: var(--on-ink);
		border-bottom: 1px solid var(--ink-3);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: .8rem 0; font-size: 1.25rem; font-family: var(--font-display); border-bottom: 1px solid var(--ink-3); opacity: 1; }
	.has-dark-hero .site-header.nav-open { background: var(--ink); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: calc(var(--header-h) + 3rem) 0 4rem;
	background:
		radial-gradient(60% 70% at 74% 42%, rgba(56, 70, 201, .38), transparent 70%),
		var(--ink);
	color: var(--on-ink);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
	display: grid; grid-template-columns: minmax(0, 1fr);
	align-items: end; gap: 3rem;
}
.hero-copy { max-width: 38rem; }
.hero-kicker { color: var(--signal); font-weight: 500; margin-bottom: 1.25rem; }
.hero-title {
	font-size: var(--step-4);
	font-weight: 700; font-stretch: 88%;
	line-height: 1; letter-spacing: -0.018em;
	margin-bottom: 1.5rem;
	text-wrap: balance;
}
.hero-text { font-size: var(--step-1); color: var(--on-ink-muted); max-width: 34rem; line-height: 1.55; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-console {
	position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 2.5rem;
	width: min(100%, 380px);
	padding: 1.1rem 1.25rem 1.2rem;
	background: rgba(25, 32, 74, .72);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--ink-3);
	border-radius: var(--radius-md);
	font-size: .9rem;
}
.console-head { display: flex; align-items: center; gap: .55rem; color: var(--on-ink-muted); margin-bottom: .75rem; font-weight: 500; }
.console-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); animation: dot 2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 8px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }
.console-log { list-style: none; display: grid; align-content: start; gap: .55rem; min-height: 8.6rem; }
.console-log li {
	position: relative; padding-left: 1.1rem; color: var(--on-ink); line-height: 1.4;
	transition: opacity .4s, transform .4s;
}
.console-log li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%;
	background: var(--signal);
}
.console-log li.is-new::before { background: var(--pulse); }
.console-log li.is-hidden { opacity: 0; transform: translateY(4px); }
.console-log li .src { color: var(--signal); font-weight: 600; }

@media (max-width: 960px) {
	.hero { align-items: flex-end; }
	.hero-grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero-console { position: static; justify-self: start; }
}
@media (max-width: 600px) {
	.hero { padding-top: calc(var(--header-h) + 34vh); }
	.hero-console { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.page-hero + .section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-paper { background: var(--paper); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-title { font-size: var(--step-3); font-stretch: 90%; text-wrap: balance; margin-bottom: 1rem; }
.section-lead { font-size: var(--step-1); color: var(--muted); max-width: 36rem; line-height: 1.5; }
.section-ink .section-lead { color: var(--on-ink-muted); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Servizi: intestazione fissa a sinistra, elenco a destra */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.split-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.service-list { list-style: none; }
.service { padding-block: 2rem; border-top: 1px solid rgba(22, 26, 51, .14); }
.service:last-child { border-bottom: 1px solid rgba(22, 26, 51, .14); }
.service-title { font-size: var(--step-2); margin-bottom: .75rem; }
.service p { color: var(--muted); max-width: 38rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
	font-size: var(--step--1); font-weight: 500;
	padding: .25rem .7rem; border-radius: var(--radius-sm);
	background: #fff; color: var(--signal-deep); border: 1px solid rgba(56, 70, 201, .18);
}
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split-head { position: static; }
}

/* Metodo: percorso in quattro fasi */
.steps {
	list-style: none; counter-reset: step;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
	position: relative;
}
.steps::before {
	content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
	background: linear-gradient(90deg, var(--signal-deep), var(--signal) 70%, var(--pulse));
	transform-origin: left; transform: scaleX(var(--progress, 1));
	transition: transform 1.4s cubic-bezier(.6, .1, .2, 1);
}
.step { position: relative; }
.step-num {
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--paper); color: var(--signal-deep);
	border: 2px solid var(--signal-deep);
	font: 700 1.1rem/1 var(--font-display);
	margin-bottom: 1.5rem; position: relative;
}
.step:last-child .step-num { border-color: var(--pulse); background: var(--pulse); color: var(--ink); }
.step-title { font-size: var(--step-2); margin-bottom: .2rem; }
.step-time { font-size: var(--step--1); color: var(--signal-deep); font-weight: 600; margin-bottom: .75rem; }
.step p:last-child { color: var(--muted); }
@media (max-width: 960px) {
	.steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
	.steps::before { display: none; }
}
@media (max-width: 560px) {
	.steps { grid-template-columns: 1fr; }
	.steps::before {
		display: block; left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto;
		background: linear-gradient(180deg, var(--signal-deep), var(--pulse));
		transform: none;
	}
	.step { padding-left: 4.25rem; }
	.step-num { position: absolute; left: 0; top: 0; }
}

/* Prodotti */
.admin-hint {
	padding: .9rem 1.1rem; margin-bottom: 2rem;
	border: 1px dashed var(--ink-3); border-radius: var(--radius-md); color: var(--on-ink-muted);
}
.admin-hint a { color: var(--pulse); }
.products { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.product {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	background: var(--ink-2); border: 1px solid var(--ink-3);
	border-radius: var(--radius-lg); overflow: hidden;
}
.product:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product:nth-child(even) .product-visual { order: 2; }
.product-visual { position: relative; min-height: 260px; background: radial-gradient(80% 80% at 50% 50%, rgba(56, 70, 201, .35), transparent 75%), #121842; }
.product-visual img, .product-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-visual img { object-position: left center; }
.product-body { padding: clamp(1.5rem, 4vw, 3rem); }
.product-title { font-size: var(--step-3); font-stretch: 88%; margin-bottom: .4rem; }
.product-title a { text-decoration: none; }
.product-title a:hover { text-decoration: underline; }
.product-title-logo a, .product-title-logo { display: inline-flex; align-items: center; gap: .8rem; }
.product-title-logo a:hover { text-decoration: none; opacity: .85; }
.product-logo { display: block; width: auto; }
.product-logo.is-mark { height: 52px; border-radius: 12px; }
.product-logo.is-full { height: 46px; max-width: 260px; object-fit: contain; object-position: left center; margin: .2rem 0 .3rem; }
.product-logo.is-white { filter: invert(1) grayscale(1) contrast(1.4); mix-blend-mode: screen; }
.dc-client-logo img { mix-blend-mode: multiply; }
.product-subtitle { color: var(--signal); font-weight: 500; font-size: var(--step-1); margin-bottom: 1rem; }
.product-body > p:not([class]) { color: var(--on-ink-muted); max-width: 36rem; }
.product-result {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .45rem .9rem .45rem .65rem; margin: .5rem 0 1rem;
	border-radius: var(--radius-sm);
	background: rgba(255, 181, 71, .12); color: var(--pulse); font-weight: 600;
}
.product-stack { font-size: var(--step--1); color: var(--on-ink-muted); margin: 0; }
@media (max-width: 760px) {
	.product, .product:nth-child(even) { grid-template-columns: 1fr; }
	.product:nth-child(even) .product-visual { order: 0; }
	.product-visual { min-height: 200px; }
}

/* Chi sono */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-portrait {
	aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle at 35% 30%, #3846C9, var(--ink) 75%);
	position: relative; max-width: 360px;
}
.about-portrait::after {
	content: ""; position: absolute; inset: -14px; border-radius: 50%;
	border: 1.5px dashed rgba(56, 70, 201, .35);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-portrait img.about-logo { width: 62%; height: auto; object-fit: contain; border-radius: 0; }
.about-initials { font: 700 clamp(4rem, 10vw, 7rem)/1 var(--font-display); color: var(--on-ink); font-stretch: 85%; letter-spacing: -0.04em; }
.about-copy p { color: var(--muted); max-width: 40rem; font-size: 1.125rem; }
.stack-title { font-size: var(--step-1); margin: 2.5rem 0 1rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.stack li { padding: .45rem .95rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); font-size: .95rem; }
@media (max-width: 760px) {
	.about { grid-template-columns: 1fr; }
	.about-portrait { max-width: 220px; margin-inline: 14px; }
}

/* Domande frequenti */
.faq { border-top: 1px solid rgba(22, 26, 51, .14); }
.faq-item { border-bottom: 1px solid rgba(22, 26, 51, .14); }
.faq-item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
	padding: 1.4rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; flex: none; width: 12px; height: 12px;
	border-right: 2px solid var(--signal-deep); border-bottom: 2px solid var(--signal-deep);
	transform: rotate(45deg) translateY(-4px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-q { font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.faq-item p { color: var(--muted); max-width: 40rem; padding-bottom: 1.4rem; margin: 0; }

/* Contatti */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-direct { list-style: none; margin: 2rem 0 1rem; display: grid; gap: .25rem; }
.contact-direct a {
	display: inline-flex; align-items: center; gap: .75rem; padding: .55rem 0;
	text-decoration: none; color: var(--on-ink); font-weight: 500;
}
.contact-direct a svg { color: var(--signal); flex: none; }
.contact-direct a:hover span { text-decoration: underline; }
.contact-city { color: var(--on-ink-muted); font-size: var(--step--1); }

.contact-form {
	background: var(--paper); color: var(--text);
	border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	display: grid; gap: 1.25rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
	width: 100%; font: inherit; color: var(--text);
	padding: .8rem .95rem; min-height: 50px;
	background: #fff; border: 1.5px solid #CDD2E6; border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal-deep); box-shadow: 0 0 0 4px rgba(56, 70, 201, .15); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #C2372F; }
.topic-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic span {
	display: inline-block; padding: .55rem 1rem; border-radius: var(--radius-sm);
	border: 1.5px solid #CDD2E6; background: #fff; font-size: .95rem; transition: all .15s;
}
.topic input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.topic input:focus-visible + span { outline: 3px solid var(--pulse); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal-deep); flex: none; }
.consent a { color: var(--signal-deep); }
.form-notice { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; }
.form-notice.is-success { background: #E2F4E6; color: #1C5B2C; }
.form-notice.is-error { background: #FBE4E2; color: #8A1F18; }
@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.field-row { grid-template-columns: 1fr; }
}

/* ---------- Pagine interne ---------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--ink); color: var(--on-ink);
	padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.page-hero .hero-canvas { opacity: .65; }
.page-title { font-size: var(--step-4); font-stretch: 88%; letter-spacing: -0.018em; line-height: 1; max-width: 18ch; margin-bottom: 1rem; }
.page-lead { font-size: var(--step-1); color: var(--on-ink-muted); max-width: 36rem; }
.crumb { margin-bottom: 1rem; }
.crumb a { color: var(--signal); }
.product-facts { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.product-facts .product-result { margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-3); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1em; }
.prose a:not(.btn) { color: var(--signal-deep); }
.prose img { height: auto; border-radius: var(--radius-md); }
.product-cover { margin: 0 0 2rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.post-list { max-width: 46rem; display: grid; gap: 2.5rem; }
.post-date { font-size: var(--step--1); color: var(--muted); margin-bottom: .3rem; }
.post-item-title { font-size: var(--step-2); margin-bottom: .6rem; }
.post-item-title a { text-decoration: none; }
.post-item-title a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #0A0E26; color: var(--on-ink-muted); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand .brand { color: var(--on-ink); margin-bottom: .6rem; }
.footer-links, .footer-nav ul { list-style: none; display: grid; gap: .5rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--on-ink); }
.footer-links a svg { color: var(--signal); }
.footer-links a:hover span, .footer-nav a:hover { text-decoration: underline; }
.footer-nav a { text-decoration: none; color: var(--on-ink); }
.footer-legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(142, 162, 255, .14); font-size: var(--step--1);
}
.footer-legal p { margin: 0; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Impostazione corporate (v1.5)
   ========================================================================== */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.012em; }
.section-title, .product-title, .page-title, .hero-title { font-stretch: normal; }
.section-title { font-weight: 600; }
.btn { font-weight: 600; letter-spacing: .005em; }
.btn-signal { background: var(--signal-deep); color: #fff; }
.btn-signal:hover { background: var(--ink); }
.section-ink .btn-signal, .page-hero .btn-signal, .contact .btn-signal { background: #fff; color: var(--ink); }
.section-ink .btn-signal:hover, .page-hero .btn-signal:hover, .contact .btn-signal:hover { background: var(--signal); }
:focus-visible { outline-color: var(--pulse); }

/* Header chiaro */
.site-header { background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); }
.nav-list a { opacity: .9; }

/* Hero chiaro */
.hero-light {
	min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
	padding: 4rem 0;
	background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
	color: var(--text);
	border-bottom: 1px solid var(--line);
}
.hero-light::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background-image:
		linear-gradient(rgba(16, 33, 62, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(16, 33, 62, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 30%, transparent 85%);
	mask-image: radial-gradient(70% 80% at 70% 40%, #000 30%, transparent 85%);
}
.hero-light .hero-canvas { opacity: .9; }
.hero-light .hero-kicker {
	display: inline-flex; align-items: center; gap: .75rem;
	color: var(--signal-deep); font-size: .82rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .12em;
}
.hero-light .hero-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-light .hero-title { font-size: clamp(2.4rem, 1.5rem + 2.8vw, 4rem); font-weight: 600; line-height: 1.06; color: var(--ink); }
.hero-light .hero-text { color: var(--muted); }
.hero-light .btn-ghost { color: var(--ink); border-color: rgba(11, 29, 57, .28); }
.hero-light .btn-ghost:hover { border-color: var(--ink); background: #fff; }
.hero-light .hero-console {
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--line);
	box-shadow: 0 18px 48px rgba(16, 33, 62, .10);
}
.hero-light .console-head { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-light .console-dot { background: var(--pulse); animation-name: dot-blue; }
@keyframes dot-blue { 0% { box-shadow: 0 0 0 0 rgba(47, 127, 224, .5); } 70% { box-shadow: 0 0 0 8px rgba(47, 127, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 127, 224, 0); } }
.hero-light .console-log li { color: var(--text); }
.hero-light .console-log li::before { background: var(--signal-deep); border-radius: 1px; }
.hero-light .console-log li.is-new::before { background: var(--pulse); }
.hero-light .console-log li .src { color: var(--signal-deep); }
@media (max-width: 600px) {
	.hero-light { padding-top: 30vh; }
	.hero-light .hero-canvas { height: 60vh; bottom: auto; }
	.hero-light .hero-kicker { font-size: .72rem; }
}

/* Credenziali: numeri e settori */
.credentials { background: #fff; border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.credentials-title {
	font-family: var(--font-body); font-size: .82rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
	margin-bottom: 2rem;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0 0 2.5rem; }
.stat { padding: .25rem 2rem .25rem 0; border-left: 0; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -0.02em; margin-bottom: .6rem; }
.stat dd { margin: 0; color: var(--muted); max-width: 22rem; line-height: 1.45; }
.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.sectors-label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--signal-deep); }
.sectors ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.sectors li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text); background: var(--paper); }
@media (max-width: 720px) {
	.stat, .stat + .stat { padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--line); }
	.stat:first-child { border-top: 0; padding-top: 0; }
}

/* Servizi e metodo */
.service { border-top-color: var(--line); }
.tags li { border-radius: var(--radius-sm); }
.step-num { border-radius: var(--radius-sm); }
.step:last-child .step-num { color: #fff; }

/* Prodotti */
.product { border-radius: var(--radius-lg); }
.product-visual { background: linear-gradient(135deg, #132A4E, #0B1D39); }
.product-subtitle { color: var(--signal); }
.product-result { background: rgba(169, 193, 232, .12); color: #D4E2F7; }
.admin-hint a { color: var(--signal); }

/* Chi siamo */
.about-portrait { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: linear-gradient(135deg, #132A4E, var(--ink)); }
.about-portrait { max-width: 420px; }
.about-portrait::after { display: none; }
.about-portrait img.about-logo { width: 58%; }
.tags li { border-color: var(--line); }
.steps::before { background: var(--line); }
.step-num { background: #fff; }
.stack li { border-radius: var(--radius-sm); }

/* FAQ e contatti */
.faq, .faq-item { border-color: var(--line); }
.topic input:checked + span { background: var(--signal-deep); border-color: var(--signal-deep); }

/* Footer */
.site-footer { background: #07152B; }

/* ---------- Accento corallo (dal logo) ---------- */
.btn-signal { background: var(--accent-deep); }
.btn-signal:hover { background: var(--ink); }
.site-header .btn-signal { background: var(--ink); }
.site-header .btn-signal:hover { background: var(--accent-deep); }
.hero-light .hero-kicker { color: var(--ink); }
.hero-light .hero-kicker::before { background: var(--accent); width: 40px; }
.hero-light .console-dot { background: var(--accent); animation-name: dot-coral; }
@keyframes dot-coral { 0% { box-shadow: 0 0 0 0 rgba(224, 89, 109, .5); } 70% { box-shadow: 0 0 0 8px rgba(224, 89, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 89, 109, 0); } }
.hero-light .console-log li.is-new::before { background: var(--accent); }
.sectors-label { color: var(--accent-deep); }
.stat dt::after { content: ""; display: block; width: 32px; height: 3px; margin-top: .9rem; background: var(--accent); }
.step:last-child .step-num { background: var(--accent-deep); border-color: var(--accent-deep); }
.product-result svg { color: var(--accent); }

/* ---------- Movimento: comparsa allo scroll ---------- */
.js-motion .rv {
	opacity: 0; transform: translateY(32px);
	transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.js-motion .rv.is-in { opacity: 1; transform: none; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 70ms + 120ms); }
.hero-title.is-in .w > span { transform: none; }

/* ---------- Hover ---------- */
.nav-list a { position: relative; text-decoration: none !important; }
.nav-list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav-list a:hover::after, .nav-list .current-menu-item a::after { transform: scaleX(1); }
.service { position: relative; }
.service::before {
	content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.service:hover::before { transform: scaleX(1); }
.service-title { transition: color .3s; }
.service:hover .service-title { color: var(--accent-deep); }
.product { transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.product:hover { border-color: rgba(224, 89, 109, .55); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.product-visual { overflow: hidden; }
.product-visual img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-visual img { transform: scale(1.045); }
.btn { position: relative; overflow: hidden; }
.btn-signal::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .8s;
}
.btn-signal:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
	.js-motion .rv { opacity: 1; transform: none; transition: none; }
	.product, .product-visual img, .service::before, .nav-list a::after { transition: none; }
}

/* ---------- Settori di rilievo ---------- */
.sectors-section { background: #fff; padding-block: var(--section-y); border-bottom: 1px solid var(--line); }
.eyebrow {
	display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
	font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink);
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--accent); }
.sectors-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sectors-head .section-lead { max-width: 44rem; }
.sector-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.sector-card {
	position: relative; overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .4s;
}
.sector-card::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(16, 33, 62, .12); border-color: #CBD4E0; }
.sector-card:hover::after { transform: scaleX(1); }
.sector-visual { overflow: hidden; border-bottom: 1px solid var(--line); }
.sector-visual svg { display: block; width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sector-card:hover .sector-visual svg { transform: scale(1.05); }
.sector-body { padding: 1.35rem 1.5rem 1.6rem; }
.sector-title { font-size: 1.3rem; font-weight: 600; margin-bottom: .55rem; transition: color .3s; }
.sector-card:hover .sector-title { color: var(--accent-deep); }
.sector-body p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 960px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- Chi siamo senza immagine ---------- */
.about.about-text-only { display: block; }
.about-text-only .about-copy {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 6rem);
}
.about-text-only .about-copy > * { grid-column: 2; }
.about-text-only .about-copy > h2 { grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) {
	.about-text-only .about-copy { grid-template-columns: 1fr; }
	.about-text-only .about-copy > *, .about-text-only .about-copy > h2 { grid-column: 1; grid-row: auto; position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.sector-card, .sector-visual svg, .sector-card::after { transition: none; }
}

/* Etichette settori nei box */
.sector-body { display: flex; flex-direction: column; }
.sector-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.sector-tags li { font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .22rem .6rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); color: var(--signal-deep); }

/* Selettore lingua */
.lang-switch{display:inline-flex;align-items:center;gap:2px;margin-right:6px;font-size:13px;font-weight:700;letter-spacing:.04em}
.lang-switch a{padding:6px 8px;border-radius:6px;color:inherit;opacity:.55;text-decoration:none}
.lang-switch a:hover{opacity:1}
.lang-switch a[aria-current]{opacity:1;color:var(--accent-deep)}
.lang-switch a+a{border-left:1px solid currentColor;border-radius:0 6px 6px 0}

/* Post di LinkedIn */
.li-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.btn-line { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-line svg { color: #0A66C2; }
.li-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 720px) { .li-grid { grid-template-columns: 1fr; } }
.li-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.li-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -18px rgba(11, 29, 57, .35); }
.li-img { display: block; aspect-ratio: 1200 / 627; background: var(--mist); }
.li-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.li-meta { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.li-title { font-size: var(--step-1); line-height: 1.25; margin: 0; }
.li-title a { color: inherit; text-decoration: none; }
.li-title a:hover { color: var(--accent-deep); }
.li-excerpt { color: var(--muted); margin: 0; }
.li-tags { list-style: none; padding: 0 !important; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.li-tags li { font-size: .8rem; font-weight: 600; color: #0A66C2; background: #EAF2FB; border-radius: 999px; padding: .2rem .65rem; margin: 0; }
.prose .li-tags { margin: 2rem 0 1.5rem; }
.li-figure { margin: 0 0 2rem; }
.li-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.li-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--mist); margin-bottom: 1.5rem; }
.li-cta p { margin: 0; }
.page-hero .li-meta { margin-bottom: .75rem; }

/* Partner video (Pixelart) */
.partner-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.partner-kick { display: flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 1rem; }
.partner-kick::before { content: ""; width: 2.5rem; height: 2px; background: var(--accent); }
.partner-band .section-title { margin-bottom: 1rem; }
.partner-tags { list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.partner-tags li { border: 1px solid var(--ink-3); background: var(--ink-2); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; }
.partner-note { color: var(--on-ink-muted); max-width: 34rem; margin-bottom: 1.75rem; }
.partner-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.pv-frame { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 14px; padding: .9rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.pv-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; }
.pv-top span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink-3); }
.pv-top em { margin-left: auto; font-style: normal; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); }
.pv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #142f57 0%, #0B1D39 55%, #2a1630 100%); }
.pv-glow { position: absolute; width: 70%; height: 90%; right: -15%; bottom: -35%; background: radial-gradient(closest-side, rgba(224, 89, 109, .55), rgba(224, 89, 109, 0)); }
.pv-screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.pv-play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 4.2rem; height: 4.2rem; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.12); }
.pv-play svg { margin-left: 4px; }
.pv-caption { position: absolute; left: 1.1rem; bottom: 1rem; display: flex; flex-direction: column; line-height: 1.2; }
.pv-caption b { font-size: 1.35rem; letter-spacing: -.01em; }
.pv-caption span { font-size: .8rem; color: var(--on-ink-muted); }
.pv-timeline { position: relative; display: flex; justify-content: space-between; font-size: .72rem; color: var(--on-ink-muted); margin-top: .8rem; padding-top: .7rem; }
.pv-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--ink-3); }
.pv-timeline i { position: absolute; left: 0; top: 0; height: 4px; border-radius: 4px; background: var(--accent); }
.pv-tracks { display: flex; margin-top: .6rem; }
.pv-tracks b { display: block; height: 1.4rem; border-radius: 4px; background: rgba(224, 89, 109, .28); border: 1px solid rgba(224, 89, 109, .5); }
.pv-tracks b:nth-child(2) { background: rgba(120, 160, 230, .25); border-color: rgba(120, 160, 230, .5); }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } .partner-visual { order: -1; } }

/* Showreel Pixelart (Vimeo, caricato al clic) */
.pv-has-video { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; text-align: left; font: inherit; background-size: cover; background-position: center; }
.pv-has-video::before { background-image: linear-gradient(180deg, rgba(11, 29, 57, .15) 40%, rgba(11, 29, 57, .85) 100%); background-size: auto; }
.pv-has-video .pv-play, .pv-has-video .pv-caption { z-index: 1; }
.pv-has-video .pv-play { transition: transform .25s ease, box-shadow .25s ease; }
.pv-has-video:hover .pv-play, .pv-has-video:focus-visible .pv-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 14px rgba(255,255,255,.16); }
.pv-has-video:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pv-note { font-size: .75rem; color: var(--on-ink-muted); margin: .5rem 0 0; }

/* Copertina showreel disegnata (senza fotogramma) */
.pv-has-video { background: radial-gradient(55% 75% at 88% 105%, rgba(224, 89, 109, .5), rgba(224, 89, 109, 0) 70%), radial-gradient(40% 60% at 8% 0%, rgba(120, 160, 230, .22), rgba(120, 160, 230, 0) 70%), linear-gradient(135deg, #142f57 0%, #0B1D39 55%, #2a1630 100%); }
.pv-has-video::before { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.pv-has-video .pv-caption b { font-size: 1.6rem; }

/* Banner cookie */
.cc { position: fixed; z-index: 1000; left: 1.25rem; bottom: 1.25rem; width: min(30rem, calc(100% - 2.5rem)); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(11, 29, 57, .45); padding: 1.35rem 1.4rem 1.2rem; font-size: .93rem; line-height: 1.5; }
.cc[hidden] { display: none; }
.cc-x { position: absolute; top: .55rem; right: .7rem; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .25rem; }
.cc-x:hover { color: var(--ink); }
.cc-title { font-weight: 700; font-size: 1.02rem; margin: 0 1.5rem .4rem 0; }
.cc-text { color: var(--muted); margin: 0 0 1rem; }
.cc-text a { color: var(--accent-deep); }
.cc-prefs { border-top: 1px solid var(--line); padding-top: .8rem; margin-bottom: 1rem; display: grid; gap: .7rem; }
.cc-prefs[hidden] { display: none; }
.cc-row { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; color: var(--muted); font-size: .88rem; cursor: pointer; }
.cc-row input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); }
.cc-row b { display: block; color: var(--ink); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; }
.cc-btn { font: inherit; font-weight: 600; font-size: .88rem; border-radius: var(--radius-sm); padding: .55rem .95rem; cursor: pointer; border: 1.5px solid var(--ink); }
.cc-btn[hidden] { display: none; }
.cc-solid { background: var(--ink); color: #fff; }
.cc-solid:hover { background: var(--ink-2); }
.cc-link { background: none; border-color: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-right: auto; padding-left: 0; }
.cc-btn:focus-visible, .cc-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .cc { left: .75rem; right: .75rem; bottom: .75rem; width: auto; } .cc-solid { flex: 1; } }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal-links button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pv-consent { position: absolute; z-index: 1; left: 50%; top: calc(46% + 3.4rem); transform: translateX(-50%); width: min(82%, 22rem); text-align: center; font-size: .78rem; line-height: 1.4; color: var(--on-ink-muted); }

/* Contatti come chat (stile WhatsApp) */
.contact-form.is-chat { padding: 0; gap: 0; overflow: hidden; background: #EFEAE2; }
.contact-form.is-chat > :not(.dc-chat) { display: none !important; }
.dc-chat { display: flex; flex-direction: column; height: min(620px, 78vh); min-height: 460px; }
.dc-chat-head { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; background: var(--ink); color: var(--on-ink); }
.dc-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.dc-chat-who { display: grid; line-height: 1.25; }
.dc-chat-who small { color: var(--on-ink-muted, #B9C3D6); font-size: .8rem; }
.dc-chat-body { flex: 1; overflow-y: auto; padding: 1.1rem .9rem .6rem; display: flex; flex-direction: column; gap: .45rem; overscroll-behavior: contain;
	background-color: #EFEAE2; background-image: radial-gradient(rgba(11,29,57,.05) 1px, transparent 1px); background-size: 18px 18px; }
.dc-msg { max-width: 82%; padding: .5rem .7rem .35rem; border-radius: 10px; font-size: .95rem; line-height: 1.4; color: #111B21; box-shadow: 0 1px .5px rgba(11,20,26,.13); overflow-wrap: anywhere; animation: dcIn .18s ease-out; }
.dc-msg.is-bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.dc-msg.is-me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.dc-msg span { display: block; white-space: pre-line; }
.dc-msg a { color: #027EB5; }
.dc-msg small { display: block; text-align: right; font-size: .7rem; color: #667781; margin-top: .1rem; }
.dc-msg.is-me small { color: #53BDEB; }
.dc-typing span { display: flex; gap: 4px; padding: .3rem .1rem; }
.dc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: dcDot 1.1s infinite ease-in-out; }
.dc-typing i:nth-child(2) { animation-delay: .15s; } .dc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dcDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes dcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dc-chat-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 .9rem; }
.dc-chat-chips:not(:empty) { padding: .2rem .9rem .7rem; }
.dc-chip { font: inherit; font-size: .9rem; padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid #027EB5; background: #fff; color: #027EB5; cursor: pointer; transition: background .15s, color .15s; text-align: left; }
.dc-chip:hover, .dc-chip:focus-visible { background: #027EB5; color: #fff; outline: none; }
.dc-chat-bar { display: flex; gap: .55rem; padding: .6rem .7rem; background: #F0F2F5; }
.dc-chat-bar input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: .7rem 1rem; border-radius: 999px; border: 0; background: #fff; color: #111B21; }
.dc-chat-bar input:focus { outline: 2px solid #027EB5; outline-offset: 0; }
.dc-chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.dc-chat-send:hover { background: var(--signal-deep); }
.dc-chat-classic { font: inherit; font-size: .8rem; background: #F0F2F5; border: 0; color: var(--muted); text-decoration: underline; padding: 0 0 .6rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .dc-msg, .dc-typing i { animation: none; } }

/* Immagini prodotto: card del totem intera, immagini centrate e ridimensionate */
.product-visual img[src*="totem-immobili"] { object-fit: contain; object-position: center; background: #0B1D39; }
.wp-block-image.aligncenter { display: table; margin-left: auto; margin-right: auto; }
.wp-block-image.is-resized img { max-width: 100%; height: auto; border-radius: 12px; }
