/* Home specific — porting puro da theme vecchio, senza scope .rs o .wp-block-group.
   Carica dopo tokens.css. Tutte le classi sono pure utility applicate via _cssClasses su elementi Bricks. */

/* ========================================================================
 * Headings safety-net — impedisce overflow orizzontale senza sillabazione.
 * overflow-wrap: break-word spezza parole lunghe SOLO se non entrano nel
 * container (last resort), senza aggiungere trattini. hyphens disattivato
 * esplicitamente per evitare spezzature tipo "azien-da".
 * ======================================================================== */
h1, h2, h3, h4,
.rs h1, .rs h2, .rs h3, .rs h4,
.rs-a h1, .rs-a h2, .rs-a h3, .rs-a h4 {
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: manual;
	-webkit-hyphens: manual;
	-ms-hyphens: manual;
	max-width: 100%;
}

/* ========================================================================
 * Breadcrumbs — STILE CANONICO UNIFICATO cross-page.
 * Questo file carica DOPO online-home.css quindi vince sugli override
 * per-pagina (.cs-hero .breadcrumb, .blog-hero p.breadcrumb, ecc).
 * Un unico look: mono uppercase 11px ink-4, separatore grigio, hover viola.
 * ======================================================================== */
.breadcrumb,
p.breadcrumb,
.crumb,
p.crumb,
.sv-crumb,
p.sv-crumb,
.cs-hero .breadcrumb,
.cs-hero .crumb,
.blog-hero p.breadcrumb,
.art-hero p.breadcrumb,
.ct-hero p.crumb,
.sv-hero .sv-crumb,
.sv-index-hero .sv-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--rs-mono);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rs-ink-4);
	justify-content: flex-start;
}
.breadcrumb a,
.crumb a,
.sv-crumb a,
.cs-hero .breadcrumb a,
.cs-hero .crumb a,
.blog-hero p.breadcrumb a,
.art-hero p.breadcrumb a,
.ct-hero p.crumb a,
.sv-hero .sv-crumb a,
.sv-index-hero .sv-crumb a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms;
	margin: 0;
}
.breadcrumb a:hover,
.crumb a:hover,
.sv-crumb a:hover,
.cs-hero .breadcrumb a:hover,
.cs-hero .crumb a:hover,
.blog-hero p.breadcrumb a:hover,
.art-hero p.breadcrumb a:hover,
.ct-hero p.crumb a:hover,
.sv-hero .sv-crumb a:hover,
.sv-index-hero .sv-crumb a:hover {
	color: var(--rs-purple);
}
.breadcrumb .sep,
.crumb .sep,
.sv-crumb .sep,
.cs-hero .breadcrumb .sep,
.cs-hero .crumb .sep,
.blog-hero p.breadcrumb .sep,
.art-hero p.breadcrumb .sep,
.ct-hero p.crumb .sep,
.sv-hero .sv-crumb .sep,
.sv-index-hero .sv-crumb .sep {
	color: var(--rs-line-2);
	margin: 0;
}
/* Neutralize legacy ::after separator (alcune varianti sv-crumb lo usano) */
.sv-crumb a::after,
.sv-hero .sv-crumb a::after,
.sv-index-hero .sv-crumb a::after {
	content: "";
	margin: 0;
}
@media (max-width: 640px) {
	.breadcrumb,
	.crumb,
	.sv-crumb,
	.cs-hero .breadcrumb,
	.cs-hero .crumb,
	.blog-hero p.breadcrumb,
	.art-hero p.breadcrumb,
	.ct-hero p.crumb,
	.sv-hero .sv-crumb,
	.sv-index-hero .sv-crumb { font-size: 10px; letter-spacing: 0.1em; }
}

/* =========================================================
   Responsive grid fallback — solo se Bricks inline CSS NON
   definisce grid-template-columns per-breakpoint. Regola
   vale come "default sensato" ma SE l'utente imposta grid
   cols da Bricks (#brxe-ID vince per specificity) prevale.
   Target: blocchi Bricks generici con brx-grid o wp-block-group
   usati come grid multi-col, escludendo header/footer/nav.
   ========================================================= */
@media (max-width: 960px) {
	.brx-grid:not(.nav-inner):not(.clients):not(.footer-grid):not(.ticker),
	.wp-block-columns:not(.nav-inner) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.brx-grid:not(.nav-inner):not(.clients):not(.footer-grid):not(.ticker),
	.wp-block-columns:not(.nav-inner) {
		grid-template-columns: 1fr;
	}
	.wp-block-columns:not(.nav-inner) { flex-direction: column; }
}


/* --- Section wrappers --- */
.section          { padding: 120px 0; }
.section-tight    { padding: 64px 0; }
.section-banded   { background: var(--rs-bg-soft); }
.section-bordered { border-top: 1px solid var(--rs-line); }

/* --- Global home glow --- */
body.home { position: relative; }
body.home::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 1800px;
	z-index: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 40% 35% at 50% 50%, rgba(96,16,249,0.22), transparent 60%),
		radial-gradient(ellipse 38% 32% at 50% 50%, rgba(196,168,255,0.30), transparent 60%);
	background-size: 160% 160%, 150% 150%;
	background-repeat: no-repeat;
	animation: hero-glow 28s ease-in-out infinite alternate;
}
@keyframes hero-glow {
	0%   { background-position: 0% 0%, 100% 100%; }
	100% { background-position: 100% 100%, 0% 0%; }
}
body.home > * { position: relative; z-index: 1; }

/* --- HERO --- */
/* Mesh (::before) + glow (::after) — stessa estetica dei servizi (sv-index-hero). */
.hero { padding: 100px 0 120px; position: relative; overflow: hidden; }
.hero::before {
	content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(96,16,249,0.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(96,16,249,0.10) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
	opacity: 0.8;
}
.hero::after {
	content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 50% 50% at 50% 40%, rgba(96,16,249,0.14), transparent 60%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.hero-main { min-width: 0; }
.hero h1 {
	font-size: clamp(48px, 7.2vw, 104px);
	font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
	margin: 24px 0 16px; max-width: 980px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--rs-purple); }
.hero p.lead { font-size: 20px; line-height: 1.5; color: var(--rs-ink-3); max-width: 620px; margin: 0 0 24px; }
.hero .meta {
	display: flex; gap: 24px; align-items: center; margin-top: 24px;
	font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4);
	text-transform: uppercase; letter-spacing: 0.1em;
}
.hero .meta::before {
	content: ''; display: inline-block; width: 48px; height: 1px; background: var(--rs-line-2);
}

/* Hero video (aside destra) */
.hero-video { position: sticky; top: 104px; margin-top: 0; }
.hero-video-frame {
	position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
	background: #0B0B10; cursor: pointer;
	border: 1px solid var(--rs-line);
	box-shadow: 0 30px 60px -30px rgba(10,10,15,0.35), 0 0 0 1px rgba(124,58,237,0.08);
	transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 300ms;
}
.hero-video-frame:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(124,58,237,0.35), 0 0 0 1px rgba(124,58,237,0.2); }
.hero-video-frame:hover .hero-video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--rs-purple); color: #fff; }
.hero-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.hero-video-overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10,10,15,0) 40%, rgba(10,10,15,0.65) 100%),
		linear-gradient(180deg, rgba(10,10,15,0.25) 0%, rgba(10,10,15,0) 30%);
}
.hero-video-play {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 999px;
	background: rgba(255,255,255,0.95); color: var(--rs-ink); border: 0;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,0.3);
	transition: transform 200ms, background 200ms, color 200ms;
}
.hero-video-play svg { margin-left: 3px; }
.hero-video-badge {
	position: absolute; top: 14px; left: 14px;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 11px 6px 9px;
	background: rgba(10,10,15,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; color: #fff;
	font-family: var(--rs-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-video-dot { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 8px rgba(239,68,68,0.6); animation: heroVideoPulse 2s infinite; }
@keyframes heroVideoPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-video-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.hero-video-handle { font-family: var(--rs-mono); font-size: 11px; opacity: 0.75; letter-spacing: 0.02em; }
.hero-video-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hero-video-frame.playing .hero-video-thumb,
.hero-video-frame.playing .hero-video-overlay,
.hero-video-frame.playing .hero-video-play,
.hero-video-frame.playing .hero-video-badge,
.hero-video-frame.playing .hero-video-caption { display: none; }
.hero-video-frame.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Prompt bar (hero + cta) */
.prompt {
	position: relative; width: 100%; max-width: 760px;
	background: #fff; border: 1px solid var(--rs-line); border-radius: 20px;
	padding: 18px 18px 18px 22px;
	display: flex; align-items: center; gap: 14px;
	box-shadow: 0 20px 60px -20px rgba(96,16,249,0.25), 0 1px 0 rgba(0,0,0,0.02);
}
.prompt .spark { width: 26px; height: 26px; flex-shrink: 0; background: var(--rs-purple); color: #fff; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.prompt input { flex: 1; border: 0; outline: 0; font-family: var(--rs-display); font-size: 18px; font-weight: 500; color: var(--rs-ink); background: transparent; min-width: 0; }
.prompt .typing { flex: 1; font-family: var(--rs-display); font-size: 18px; font-weight: 500; color: var(--rs-ink); min-height: 24px; letter-spacing: -0.01em; }
.prompt .typing .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--rs-purple); vertical-align: -3px; margin-left: 2px; animation: rs-blink 0.9s steps(1) infinite; }
@keyframes rs-blink { 50% { opacity: 0; } }
.prompt .hint { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); padding: 6px 10px; border: 1px solid var(--rs-line); border-radius: 8px; }
.prompt .send { width: 36px; height: 36px; border-radius: 50%; background: var(--rs-purple); color: #fff; text-decoration: none; display: grid; place-items: center; border: 0; cursor: pointer; transition: background .2s; }
.prompt .send:hover { background: var(--rs-purple-600); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
	font-family: var(--rs-mono); font-size: 12px; color: var(--rs-ink-2);
	background: #fff; border: 1px solid var(--rs-line); border-radius: 999px;
	padding: 8px 14px; margin: 0; cursor: pointer; transition: all 180ms;
	display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--rs-purple); color: var(--rs-purple); }

/* --- TICKER --- */
.ticker {
	display: grid; grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--rs-line); border-radius: 20px; overflow: hidden; background: #fff;
}
.ticker > .brxe-block { padding: 24px; border-right: 1px solid var(--rs-line); min-width: 0; }
.ticker > .brxe-block:last-child { border-right: 0; }
.ticker .num { font-family: var(--rs-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.ticker .lbl { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 0 0; }

/* --- METODO --- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.method-card { padding: 28px; border: 1px solid var(--rs-line); border-radius: 20px; background: #fff; position: relative; }
.method-card .num { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-purple); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.method-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 12px; }
.method-card p { font-size: 14px; line-height: 1.6; color: var(--rs-ink-3); margin: 0; }

/* --- CLIENTI --- */
.section-head-clients { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 32px; }
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: center; padding: 24px 0; }
.clients .brxe-image img { max-width: 100%; height: auto; filter: grayscale(100%); opacity: 0.7; transition: all .2s; max-height: 60px; object-fit: contain; margin: 0 auto; display: block; }
.clients .brxe-image:hover img { filter: none; opacity: 1; }
.clients-meta { font-family: var(--rs-mono); font-size: 12px; color: var(--rs-ink-4); margin: 0; align-self: end; }

/* --- TWO-COL --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.two-col.flows { grid-template-columns: 1fr 1.2fr; align-items: center; }
.two-col.techstack { grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; margin-bottom: 0; }
.two-col .lead { margin: 0; }

/* --- FLOWS canvas --- */
.flow-canvas { position: relative; aspect-ratio: 3/2; width: 100%; }
.flow-canvas .grid-bg {
	position: absolute; inset: 0; border-radius: 20px;
	background-image:
		linear-gradient(rgba(96,16,249,0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(96,16,249,0.08) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 80%);
}
.flow-canvas .flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-canvas .flow-lines path { fill: none; stroke: rgba(96,16,249,0.4); stroke-width: 1.5; }
.flow-canvas .node {
	position: absolute;
	font-family: var(--rs-mono); font-size: 11px; padding: 8px 14px;
	background: #fff; border: 1px solid var(--rs-line); border-radius: 999px;
	display: inline-flex; align-items: center; gap: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.flow-canvas .node-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rs-purple); }
.flow-canvas .node-input.node-1 { top: 12%; left: 0; }
.flow-canvas .node-input.node-2 { top: 45%; left: 0; }
.flow-canvas .node-input.node-3 { top: 78%; left: 0; }
.flow-canvas .node-agent { top: 45%; left: 50%; transform: translate(-50%, 0); background: var(--rs-purple); color: #fff; border-color: var(--rs-purple); padding: 12px 18px; font-size: 13px; }
.flow-canvas .node-agent .node-dot { background: #fff; }
.flow-canvas .node-output.node-1 { top: 12%; right: 0; }
.flow-canvas .node-output.node-2 { top: 45%; right: 0; }
.flow-canvas .node-output.node-3 { top: 78%; right: 0; }

.flow-cta-row { display: flex; gap: 12px; margin-top: 20px; }

/* Btn alias (per btn btn-purple / btn-ghost usati nei pattern) */
.btn { font-family: var(--rs-display); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 14px 22px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 240ms cubic-bezier(0.22, 1, 0.36, 1); text-decoration: none; }
.btn-purple { background: var(--rs-purple); color: #fff !important; box-shadow: 0 10px 30px rgba(96,16,249,0.25); }
.btn-purple:hover { background: var(--rs-purple-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--rs-ink); border: 1px solid var(--rs-line-2); }
.btn-ghost:hover { border-color: var(--rs-ink); }

/* --- SERVIZI LIST --- */
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--rs-line); }
.service-item {
	display: grid; grid-template-columns: 48px 1fr auto;
	gap: 32px; padding: 28px 0;
	border-bottom: 1px solid var(--rs-line);
	align-items: baseline;
}
.service-item:hover { background: var(--rs-purple-50); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.service-item .num { font-family: var(--rs-mono); font-size: 14px; color: var(--rs-purple); margin: 0; }
.service-item .title { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.service-item .title a { color: inherit; text-decoration: none; }
.service-item .title a:hover { color: var(--rs-purple); }
.service-item .sub { font-style: italic; font-size: 14px; color: var(--rs-ink-3); margin: 6px 0 0; max-width: 640px; }
.service-item__link { margin: 0; }
.service-item__link a { font-family: var(--rs-mono); font-size: 12px; color: var(--rs-purple); text-decoration: none; }
.nav-badge { display: inline-block; font-family: var(--rs-mono); font-size: 10px; padding: 2px 6px; background: var(--rs-purple); color: #fff; border-radius: 4px; vertical-align: middle; }

/* --- TESTIMONIANZE --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.testimonial { padding: 28px; border: 1px solid var(--rs-line); border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 20px; }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; }
.testimonial blockquote p { margin: 0; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(135deg, var(--rs-purple-100), var(--rs-purple));
	display: grid; place-items: center;
	color: #fff; font-family: var(--rs-display); font-weight: 700; font-size: 14px; margin: 0;
}
.who-text .name { font-size: 14px; font-weight: 600; margin: 0; }
.who-text .role { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); margin: 2px 0 0; }

/* --- TECH STACK --- */
.tech-head { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 12px 0 0; letter-spacing: -0.01em; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tech-pill { font-family: var(--rs-mono); font-size: 12px; padding: 8px 14px; background: #fff; border: 1px solid var(--rs-line); border-radius: 999px; margin: 0; }
.tech-pill-claude { background: var(--rs-purple); color: #fff; border-color: var(--rs-purple); }

/* --- CTA finale --- */
.cta { text-align: center; max-width: 760px; margin: 0 auto; padding: 40px 0; }
.cta .eyebrow, .cta h2, .cta .lead { text-align: center; }
.cta h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 16px; }
.cta h2 em { font-style: italic; font-weight: 500; color: var(--rs-purple); }
.cta .lead { color: var(--rs-ink-3); margin: 0 auto 24px; max-width: 560px; }
.cta .prompt { margin: 24px auto 20px; }
.cta .chips { justify-content: center; }
.cta .eyebrow { justify-content: center; }

/* H2 generic (italic accent) */
.h2, h2.h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 20px; max-width: 860px; }
.h2 em, h2 em { font-style: italic; font-weight: 500; color: var(--rs-purple); }

/* Responsive */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-video { position: static; margin-top: 32px; }
	.section { padding: 64px 0; }
	.section-tight { padding: 40px 0; }
	.hero { padding: 56px 0 72px; }
	.method-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
	.ticker { grid-template-columns: repeat(2, 1fr); }
	.ticker > .brxe-block:nth-child(2) { border-right: 0; }
	.ticker > .brxe-block:nth-child(-n+2) { border-bottom: 1px solid var(--rs-line); }
	.two-col, .two-col.flows, .two-col.techstack { grid-template-columns: 1fr; gap: 32px; }
	.testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
	.clients { grid-template-columns: repeat(3, 1fr); }
	.service-item { grid-template-columns: 32px 1fr auto; gap: 16px; padding: 20px 0; }
	.service-item .title { font-size: 18px; }
	.section-head-clients { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
	.ticker { grid-template-columns: 1fr; }
	.ticker > .brxe-block { border-right: 0 !important; border-bottom: 1px solid var(--rs-line); }
	.ticker > .brxe-block:last-child { border-bottom: 0; }
	.clients { grid-template-columns: repeat(2, 1fr); }
	.chips { gap: 6px; }
	.chip { font-size: 11px; padding: 6px 10px; }
}

/* --- SECTION HEAD (titolo + bottone destra, es. sezione blog) --- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }

/* --- BLOG GRID (Bricks posts native) --- */
.brxe-posts.blog-grid ul,
.brxe-posts.blog-grid > ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) {
	.brxe-posts.blog-grid ul,
	.brxe-posts.blog-grid > ul { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
	.brxe-posts.blog-grid ul,
	.brxe-posts.blog-grid > ul { grid-template-columns: 1fr; gap: 16px; }
}
.brxe-posts.blog-grid li { list-style: none; margin: 0; }
.brxe-posts.blog-grid article { background: #fff; border: 1px solid var(--rs-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.brxe-posts.blog-grid article:hover { border-color: var(--rs-purple); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(96,16,249,0.2); }
.brxe-posts.blog-grid article .thumb,
.brxe-posts.blog-grid article figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; background: var(--rs-bg-soft); }
.brxe-posts.blog-grid article img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brxe-posts.blog-grid article h2,
.brxe-posts.blog-grid article h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 16px 20px 8px; }
.brxe-posts.blog-grid article h2 a,
.brxe-posts.blog-grid article h3 a { color: var(--rs-ink); text-decoration: none; }
.brxe-posts.blog-grid article h2 a:hover,
.brxe-posts.blog-grid article h3 a:hover { color: var(--rs-purple); }
.brxe-posts.blog-grid article .brxe-post-excerpt,
.brxe-posts.blog-grid article .post-excerpt { font-size: 14px; color: var(--rs-ink-3); line-height: 1.5; margin: 0 20px 12px; }
.brxe-posts.blog-grid article .brxe-post-meta,
.brxe-posts.blog-grid article .post-meta,
.brxe-posts.blog-grid article time { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 20px 20px; }

/* --- CLIENT LOGO LINK --- */
.clients .client-logo { display: grid; place-items: center; padding: 16px; min-height: 80px; transition: all .2s; border-radius: 12px; }
.clients .client-logo:hover { background: #fff; }
.clients .client-logo img { max-width: 100%; max-height: 56px; height: auto; width: auto; filter: grayscale(100%); opacity: 0.85; transition: all .2s; display: block; }
.clients .client-logo:hover img { filter: none; opacity: 1; }
/* Fallback se il loghi non sono wrappati in .client-logo ma sono direttamente .brxe-html */
.clients > .brxe-html { display: grid; place-items: center; padding: 16px; min-height: 80px; }
.clients > .brxe-html img { max-width: 100%; max-height: 56px; filter: grayscale(100%); opacity: 0.85; transition: all .2s; }
.clients > .brxe-html:hover img { filter: none; opacity: 1; }

/* --- BLOG GRID selector compatibili con Bricks posts layout --- */
.brxe-posts.blog-grid { display: block; }
.brxe-posts.blog-grid .bricks-layout-wrapper,
.brxe-posts.blog-grid > ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brxe-posts.blog-grid .bricks-layout-item,
.brxe-posts.blog-grid li { list-style: none; margin: 0; background: #fff; border: 1px solid var(--rs-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.brxe-posts.blog-grid .bricks-layout-item:hover,
.brxe-posts.blog-grid li:hover { border-color: var(--rs-purple); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(96,16,249,0.2); }
.brxe-posts.blog-grid .image-wrapper,
.brxe-posts.blog-grid figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; background: var(--rs-bg-soft); }
.brxe-posts.blog-grid .image-wrapper img,
.brxe-posts.blog-grid article img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brxe-posts.blog-grid .bricks-layout-inner { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.brxe-posts.blog-grid h2, .brxe-posts.blog-grid h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 12px 0 4px; padding: 0 20px; }
.brxe-posts.blog-grid h2 a, .brxe-posts.blog-grid h3 a { color: var(--rs-ink); text-decoration: none; }
.brxe-posts.blog-grid h2 a:hover, .brxe-posts.blog-grid h3 a:hover { color: var(--rs-purple); }
.brxe-posts.blog-grid .post-excerpt,
.brxe-posts.blog-grid .entry-excerpt { font-size: 14px; color: var(--rs-ink-3); line-height: 1.5; margin: 0 20px 12px; }
.brxe-posts.blog-grid time,
.brxe-posts.blog-grid .post-date { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin: 0 20px 20px; }

/* --- Techstack fix spacing --- */
.techstack .tech-row { justify-content: flex-start; padding: 4px 0; }
.techstack .tech-pill { font-size: 13px; padding: 10px 16px; }

/* --- Heading H2 center helper CTA --- */
.cta .brxe-heading { text-align: center; margin-left: auto; margin-right: auto; }

/* Responsive blog */
@media (max-width: 960px) {
	.brxe-posts.blog-grid ul { grid-template-columns: 1fr; gap: 16px; }
	.section-head { flex-direction: column; align-items: start; }
}

/* --- Override Bricks lazy-hidden on loghi/immagini (bricks-lazy-hidden rompe width) --- */
.clients .brxe-block.bricks-lazy-hidden,
.clients .bricks-lazy-hidden { opacity: 1 !important; visibility: visible !important; }
.clients .client-logo img,
.clients a img { min-width: 80px; width: auto; height: auto; max-width: 140px; max-height: 56px; object-fit: contain; }

/* === BLOG GRID (shortcode output) === */
.blog-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.blog-card:hover { border-color: var(--rs-purple); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(96,16,249,0.2); }
.blog-card .thumb { aspect-ratio: 16/10; margin: 0; overflow: hidden; background: var(--rs-bg-soft); }
.blog-card .thumb a { display: block; height: 100%; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .cat { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-purple); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card .cat a { color: inherit; text-decoration: none; }
.blog-card .blog-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.blog-card .blog-title a { color: var(--rs-ink); text-decoration: none; }
.blog-card .blog-title a:hover { color: var(--rs-purple); }
.blog-card .blog-meta { font-family: var(--rs-mono); font-size: 11px; color: var(--rs-ink-4); text-transform: uppercase; letter-spacing: 0.08em; margin-top: auto; }
@media (max-width: 960px) { .blog-grid-inner { grid-template-columns: 1fr; gap: 16px; } }

/* === TECH STACK fix === */
.two-col.techstack { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.5fr); gap: 64px; align-items: center; }
.techstack .tech-head { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; line-height: 1.15; margin: 8px 0 0; }
.techstack .tech-row { display: flex; flex-wrap: wrap; gap: 10px 10px; align-items: center; }
.techstack .tech-pill { font-family: var(--rs-mono); font-size: 13px; padding: 10px 18px; background: #fff; border: 1px solid var(--rs-line); border-radius: 999px; margin: 0; display: inline-flex; align-items: center; white-space: nowrap; }
.techstack .tech-pill-claude { background: var(--rs-purple); color: #fff; border-color: var(--rs-purple); box-shadow: 0 4px 12px rgba(96,16,249,0.25); }
@media (max-width: 960px) {
	.two-col.techstack { grid-template-columns: 1fr; gap: 24px; }
}

/* === CTA Finale fix === */
.cta { text-align: center; max-width: 760px; margin: 0 auto; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta > .brxe-text-basic.eyebrow { margin: 0 auto; justify-content: center; }
.cta > .brxe-heading,
.cta h2 {
	font-size: clamp(40px, 5vw, 72px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
	margin: 8px 0 12px;
	max-width: none;
	text-align: center;
}
.cta h2 em { font-style: italic; font-weight: 500; color: var(--rs-purple); }
.cta > .brxe-text-basic.lead { font-size: 18px; line-height: 1.5; color: var(--rs-ink-3); margin: 0 auto 16px; max-width: 560px; text-align: center; }
.cta .prompt,
.cta form.prompt { margin: 16px auto 8px; max-width: 640px; width: 100%; }
.cta > .brxe-block.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.cta .chip { cursor: default; }

/* ============================================================
   RESPONSIVE COMPLETO (home + generici) — breakpoints 1024/768/480
   ============================================================ */

/* Tablet landscape: 1024px */
@media (max-width: 1024px) {
	.rs .container,
	.rs .wp-block-group.container { padding-left: 24px; padding-right: 24px; }
	.hero h1 { font-size: clamp(40px, 8vw, 72px); }
	.hero-grid { grid-template-columns: 1fr 320px; gap: 32px; }
	.two-col { gap: 32px; }
	.service-item { grid-template-columns: 40px 1fr auto; gap: 24px; }
}

/* Tablet portrait / mobile landscape: 768px */
@media (max-width: 768px) {
	.rs .container,
	.rs .wp-block-group.container { padding-left: 20px; padding-right: 20px; }
	.hero { padding: 56px 0 72px; }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-video { position: static; max-width: 280px; margin: 0 auto; }
	.hero h1 { font-size: clamp(36px, 10vw, 56px); line-height: 1; }
	.hero .lead, .lead { font-size: 17px; }
	.hero .prompt .hint { display: none; }
	.hero .chips, .chips { gap: 6px; }
	.chip { font-size: 11px; padding: 6px 12px; }
	.hero .meta { flex-wrap: wrap; font-size: 10px; gap: 12px; }
	.hero .meta::before { display: none; }

	.section, .rs .wp-block-group.section { padding: 48px 0; }
	.section-tight, .rs .wp-block-group.section-tight { padding: 32px 0; }

	.ticker { grid-template-columns: repeat(2, 1fr); }
	.ticker > .wp-block-group:nth-child(2) { border-right: 0; }
	.ticker > .wp-block-group:nth-child(-n+2) { border-bottom: 1px solid var(--rs-line); }
	.ticker .num { font-size: 32px; }

	.h2, h2.h2, h2.wp-block-heading { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; }

	.method-grid, .wp-block-columns.method-grid { grid-template-columns: 1fr; gap: 16px; }
	.method-card { padding: 20px; }

	.two-col { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
	.two-col.flows { grid-template-columns: 1fr; }
	.two-col.techstack { grid-template-columns: 1fr; gap: 24px; }

	.services-list { }
	.service-item { grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 0; }
	.service-item__link { grid-column: 2; }
	.service-item .title, .service-item h3.title { font-size: 17px; }
	.service-item .sub { font-size: 13px; }

	.clients { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 0; }
	.clients .brxe-image img, .clients img { max-height: 36px; }
	.section-head-clients { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }

	.testimonial-grid, .wp-block-columns.testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
	.testimonial { padding: 20px; }
	.testimonial blockquote, .testimonial blockquote p { font-size: 15px; }

	.section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

	.blog-grid-inner { grid-template-columns: 1fr; gap: 16px; }

	.techstack .tech-head { font-size: 20px; }
	.techstack .tech-row { gap: 6px; }
	.techstack .tech-pill { font-size: 12px; padding: 8px 14px; }

	.cta { padding: 24px 0; }
	.cta h2, .cta > .brxe-heading { font-size: clamp(36px, 9vw, 56px); }
	.cta .prompt { padding: 12px; }
	.cta .prompt input { font-size: 15px; }
	.cta .chips { justify-content: center; }

	/* Flow canvas responsive */
	.flow-canvas { aspect-ratio: 4/3; }
	.flow-canvas .node { font-size: 9px; padding: 4px 8px; }
	.flow-canvas .node-agent { font-size: 11px; padding: 8px 12px; }
}

/* Mobile piccolo: 480px */
@media (max-width: 480px) {
	.ticker { grid-template-columns: 1fr; }
	.ticker > .wp-block-group { border-right: 0; border-bottom: 1px solid var(--rs-line); }
	.ticker > .wp-block-group:last-child { border-bottom: 0; }
	.clients { grid-template-columns: repeat(2, 1fr); }
	.hero h1 { font-size: clamp(32px, 11vw, 44px); }
}

/* ============================================================
   MOBILE FIX ADDITIONS — screenshot compare vs online
   ============================================================ */
@media (max-width: 768px) {
	/* Blog: card non full-width con thumb 16:10 enorme → aspect 4:3 + font ridotto */
	.blog-grid-inner { gap: 12px; }
	.blog-card .thumb { aspect-ratio: 4/3 !important; }
	.blog-card .blog-title, .blog-card h3 { font-size: 16px; line-height: 1.3; }
	.blog-card-body { padding: 14px 16px; gap: 8px; }
	.blog-card .cat { font-size: 10px; }
	.blog-card .blog-meta, .blog-card time { font-size: 10px; }

	/* Header admin bar mobile */
	#wpadminbar { position: fixed !important; }

	/* Hero video: limita max-width (default — editabile in Bricks) */
	.hero-video, .hero-video-frame { max-width: 240px; margin: 0 auto; }
	.hero-video-frame { aspect-ratio: 9/12; }

	/* Hero prompt: padding ridotto */
	.hero .prompt { padding: 12px 14px; gap: 10px; }
	.hero .prompt input, .hero .prompt .typing { font-size: 15px; }
	.hero .prompt .spark { width: 22px; height: 22px; }
	.hero .prompt .send { width: 30px; height: 30px; font-size: 14px; }

	/* Clienti: 4 col più compatti come online mobile */
	.clients { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 0; }
	.clients .brxe-image, .clients figure { padding: 8px; }
	.clients .brxe-image img, .clients img { max-height: 28px; }

	/* Section head clienti */
	.section-head-clients .clients-meta { font-size: 10px; }

	/* Servizi item: arrow scopri fuori su piccolo */
	.service-item__link { display: none; }
	.service-item { grid-template-columns: 28px 1fr; }

	/* Flow canvas ridotto o nascosto */
	.flow-canvas { aspect-ratio: 3/2; max-width: 100%; }
	.flow-canvas .node { font-size: 8px; padding: 3px 6px; }
	.flow-canvas .node-dot { width: 4px; height: 4px; }

	/* Tech stack: pill centrate più piccole */
	.techstack .tech-row { justify-content: center; gap: 6px; }
	.techstack .tech-pill { font-size: 11px; padding: 6px 12px; }
	.techstack { text-align: center; }

	/* CTA prompt mobile */
	.cta .prompt { flex-wrap: wrap; padding: 12px; }
	.cta .prompt input { order: 2; width: 100%; }
	.cta .prompt .spark { order: 1; }
	.cta .prompt .hint { display: none; }
	.cta .prompt .send { order: 3; margin-left: auto; }
	.cta .chips { gap: 6px; margin-top: 16px; }
	.cta .chip { font-size: 10px; padding: 6px 10px; }

	/* Hero H1 più compatto (default responsive — sovrascrivibile da Bricks) */
	.hero h1, .hero h1.wp-block-heading, .brxe-heading h1 { font-size: clamp(30px, 10vw, 48px); line-height: 1.05; margin-top: 12px; }
	.hero .eyebrow, section.hero p.eyebrow { font-size: 10px; }
	.hero .lead, .hero p.lead { font-size: 15px; }

	/* Testimonianze compatte */
	.testimonial { padding: 16px; gap: 12px; }
	.testimonial blockquote p { font-size: 14px; line-height: 1.4; }

	/* Metodo card padding smaller */
	.method-card { padding: 18px; }
	.method-card h3, .method-card h3.wp-block-heading { font-size: 18px; }
	.method-card p { font-size: 13px; line-height: 1.5; }
	.method-card .num { font-size: 10px; }
}

@media (max-width: 480px) {
	.hero-video, .hero-video-frame { max-width: 200px; }
	.clients { grid-template-columns: repeat(3, 1fr); }
	.blog-grid-inner { grid-template-columns: 1fr; }
	.blog-card .thumb { aspect-ratio: 16/9; }
	.hero h1 { font-size: clamp(28px, 11vw, 40px); }
	.ticker { grid-template-columns: 1fr 1fr; }
	.ticker > .wp-block-group:nth-child(-n+2) { border-bottom: 1px solid var(--rs-line); }
	.ticker .num { font-size: 28px; }
}

/* === CONTAINER VIEWPORT: allineamento header/body/footer a 1240px
   NOTE: nessun !important — sovrascrivibile dal pannello Bricks
   (Container element → Style → Layout → Width / Max Width / Padding).
   Questi sono SOLO default: l'inline-style Bricks #brxe-ID vince. */
.brxe-container {
	box-sizing: border-box;
}
/* Container "content" (con global class .container applicata dal builder):
   stesso viewport di header/footer = 1240px centrato, padding laterale 32px.
   width: 100% serve perché i parent <section>/<footer> di Bricks sono
   display:flex → i container senza width esplicita si restringono al contenuto
   invece di stretchare fino a max-width. */
.brxe-container.container,
.brxe-container.wp-block-group.container,
section > .brxe-container,
.brxe-section > .brxe-container,
footer > .brxe-container {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}
/* Mobile safety: no overflow oltre viewport */
@media (max-width: 768px) {
	.brxe-container,
	.brxe-container.container,
	.brxe-container.wp-block-group.container {
		max-width: 100%;
	}
}
html { overflow-x: clip; } /* body NON toccato: overflow-x:hidden su body rompe position:sticky */
/* Sezioni e block interni: no overflow */
section, .brxe-section, .brxe-block { max-width: 100%; box-sizing: border-box; }
/* H1, h2, lead: no max-width esterno che causa push */
.hero h1, .hero .lead, h2.h2 { max-width: 100%; }

/* Mobile: immagini fluide (safety net, non tocca logo/header) */
@media (max-width: 768px) {
	.brxe-image img { max-width: 100%; height: auto; }
}

/* Rimuove overflow-x solo sull'html root — NON su body, altrimenti body diventa
   scroll container e rompe position:sticky dei figli (es. .sv-toc). */
html { overflow-x: clip; }
/* body: nessun overflow hidden — preserva sticky positioning */


/* Hero video: fix collasso mobile (width 0) */
.hero-video {
	max-width: 360px;
	width: 100%;
	margin: 32px auto 0;
}
@media (max-width: 960px) {
	.hero-video { max-width: 280px; margin-top: 24px; }
}
@media (max-width: 480px) {
	.hero-video { max-width: 240px; }
}
.hero-video-frame {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 9/16;
	min-height: 320px;
}

/* Flow canvas: fix collasso mobile (height troppo piccola) */
.flow-canvas {
	display: block !important;
	width: 100%;
	aspect-ratio: 3/2;
	min-height: 260px;
	position: relative;
}
@media (max-width: 960px) {
	.flow-canvas { min-height: 220px; aspect-ratio: 4/3; }
}

/* Loghi clienti: 2 colonne mobile (richiesta utente) */
@media (max-width: 768px) {
	.clients { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.clients .brxe-image, .clients figure { padding: 12px; }
	.clients .brxe-image img, .clients img { max-height: 44px; }
}

/* Tablet (iPad portrait) 768-1024: grid utility (nessun override padding/container — Bricks-native) */
@media (max-width: 1024px) and (min-width: 769px) {
	.hero-grid { grid-template-columns: 1fr 280px; gap: 32px; }
	.hero-video { max-width: 280px; margin: 0; }
	.two-col.techstack { grid-template-columns: 1fr 2fr; gap: 32px; }
	.clients { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.method-grid { grid-template-columns: repeat(3, 1fr); }
	.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
	.blog-grid-inner { grid-template-columns: repeat(3, 1fr); }
	.ticker { grid-template-columns: repeat(4, 1fr); }
}

/* === Flow canvas: override display:none del theme vecchio su mobile === */
@media (max-width: 960px) {
	.rs svg.flow-lines,
	svg.flow-lines,
	.flow-canvas svg {
		display: block !important;
	}
	.flow-canvas {
		min-height: 240px !important;
		aspect-ratio: 3/2 !important;
		position: relative !important;
	}
	.flow-canvas .grid-bg,
	.flow-canvas svg.flow-lines {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}
	.flow-canvas .node {
		position: absolute !important;
		font-size: 9px !important;
		padding: 4px 8px !important;
		z-index: 2;
	}
}


/* === HEADER: wrapper Bricks full-width + nav online 1:1
   NOTE: nessun !important — tutte le dimensioni/layout sono
   sovrascrivibili dal pannello Bricks (style > layout).
   Le regole qui sono solo default: l'inline-style generato da
   Bricks (#brxe-ID { ... }) vince perché ha specificità ID. */
header#brx-header, header.brxe-section.nav, header {
	display: block;
	width: 100%;
	max-width: none;
	padding: 0;
}
header#brx-header > *,
header#brx-header .brxe-html,
header#brx-header > nav {
	width: 100%;
	max-width: none;
	display: block;
}
/* Default nav non-invasivi: solo sticky + backdrop. Padding/max-width editabili da Bricks. */
nav.nav {
	width: 100%;
	max-width: none;
	display: block;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rs-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* FOOTER: wrapper Bricks full-width + footer online 1:1
   NOTE: i padding NON hanno !important così l'utente può modificarli
   dal pannello Style del builder Bricks (override inline con specificity maggiore). */
footer#brx-footer, #brx-footer {
	display: block;
	width: 100%;
	max-width: none;
}
footer#brx-footer > *,
#brx-footer > footer,
#brx-footer .brxe-section {
	width: 100%;
	max-width: none;
}
/* NO background/color hardcoded su .footer — lasciato a Bricks settings
   (_background in DB) così l'utente può cambiare bg dal builder.
   Default spacing solo; se l'utente lo modifica vince l'inline Bricks. */
footer.footer, footer.brxe-section.footer {
	/* padding default — sovrascrivibile da Bricks Style → Layout → Padding */
}
footer.footer .container,
footer.footer .brxe-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px; /* default — sovrascrivibile */
}

/* Ensure hero glow + content stays UNDER sticky header */
header#brx-header { z-index: 100; }

/* === Header Bricks native: default flex row su nav-inner
   NOTE: nessun !important — sovrascrivibile dal pannello Bricks. */
nav.nav .nav-inner,
header nav.nav .nav-inner,
header .brxe-container.nav-inner {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0;
}

/* Footer: grid 4 col editabile (Bricks block default era flex column) */
footer.footer .footer-grid,
footer .brxe-block.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
}
footer.footer .brxe-block { flex-direction: column; }
@media (max-width: 768px) {
	footer.footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* === Single post — TOC sidebar layout override === */
.rs-a .brxe-container.art-body--with-toc {
	display: grid !important;
	grid-template-columns: 240px minmax(0, 1fr) !important;
	gap: 56px !important;
	max-width: 1100px !important;
	align-items: start;
}
.rs-a .art-toc ul.toc-list { list-style: none; padding: 0; margin: 0; }
.rs-a .art-toc ul.toc-list li { padding: 6px 0; border-left: 1px solid var(--rs-line); padding-left: 12px; margin-left: -1px; }
.rs-a .art-toc ul.toc-list li.toc-sub { padding-left: 24px; font-size: 0.92em; }
.rs-a .art-toc ul.toc-list a { color: var(--rs-ink-3); text-decoration: none; display: block; line-height: 1.35; }
.rs-a .art-toc ul.toc-list a:hover { color: var(--rs-purple); }
.rs-a .art-toc h5 { font-family: var(--rs-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-ink-4); margin: 0 0 14px; font-weight: 500; }
@media (max-width: 960px) {
	.rs-a .brxe-container.art-body--with-toc { grid-template-columns: 1fr !important; gap: 32px !important; }
	.rs-a .art-toc { position: static !important; }
}

/* === Force dark CTA button visibility (chi-sono, portfolio, servizi, articolo) === */
.rs-a .cs-cta .btn,
.rs-a .pf-cta .btn,
.rs-a .sw-cta .btn,
.rs-a .ss-cta .btn,
.rs-a .sa-cta .btn,
.rs-a .sb-cta .btn,
.rs-a .sm-cta .btn,
.rs-a .so-cta .btn,
.rs-a .art-cta .btn {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.rs-a .cs-cta .btn-ghost-dark,
.rs-a .cs-cta .btn-ghost,
.rs-a .pf-cta .btn-ghost-dark,
.rs-a .pf-cta .btn-ghost,
.rs-a .art-cta .btn-ghost-dark,
.rs-a .art-cta .btn-ghost {
	background: transparent !important;
	color: #ffffff !important;
	border: 1px solid rgba(255,255,255,0.35) !important;
}
.rs-a .cs-cta .btn-ghost-dark:hover,
.rs-a .cs-cta .btn-ghost:hover,
.rs-a .pf-cta .btn-ghost-dark:hover,
.rs-a .pf-cta .btn-ghost:hover,
.rs-a .art-cta .btn-ghost-dark:hover,
.rs-a .art-cta .btn-ghost:hover {
	border-color: #fff !important;
	background: rgba(255,255,255,0.08) !important;
}
.rs-a .cs-cta .btn-white,
.rs-a .pf-cta .btn-white,
.rs-a .art-cta .btn-white {
	background: #fff !important;
	color: var(--rs-ink) !important;
	border: 1px solid #fff !important;
}

/* --- Portfolio grid logos: contain invece di cover per non tagliare i wordmark --- */
.rs-a .pf-card-thumb {
	background: #fff;
	aspect-ratio: 4 / 3;
	padding: 24px;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.rs-a .pf-card-thumb img {
	width: 100%; height: 100%;
	object-fit: contain;
	max-width: 100%; max-height: 100%;
	display: block;
	transition: transform 400ms ease;
}
.rs-a .pf-card-link:hover .pf-card-thumb img { transform: scale(1.03); }

/* =============================================================
   BRICKS BUTTON OVERRIDE — anchor-as-button pattern
   Fix: in Bricks l'elemento <button> è un <a class="brxe-button wp-block-button btn ...">
   (classe sul link stesso, NON wrapper+link). La regola
   .rs .wp-block-button.btn { padding:0 !important; background:transparent !important; ... }
   in online-home.css riga 49 azzera padding/border/background perché assume il pattern
   Gutenberg wrapper→inner. Qui ripristiniamo tutto targettando il pattern Bricks.
   ============================================================= */
.rs a.brxe-button.btn,
.rs-a a.brxe-button.btn,
.rs a.wp-block-button.btn:not(.wp-block-button__link),
body.rs .brxe-button.btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 14px 22px !important;
	border-radius: 999px !important;
	font-family: var(--rs-display);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
	box-sizing: border-box;
}

/* Variante PURPLE (primario) */
.rs a.brxe-button.btn.btn-purple,
.rs-a a.brxe-button.btn.btn-purple,
body.rs .brxe-button.btn.btn-purple {
	background: var(--rs-purple) !important;
	background-color: var(--rs-purple) !important;
	color: #fff !important;
	border: 1px solid var(--rs-purple) !important;
	box-shadow: 0 10px 30px rgba(96,16,249,0.25) !important;
}
.rs a.brxe-button.btn.btn-purple:hover,
.rs-a a.brxe-button.btn.btn-purple:hover,
body.rs .brxe-button.btn.btn-purple:hover {
	background: var(--rs-purple-600) !important;
	background-color: var(--rs-purple-600) !important;
	transform: translateY(-1px);
	box-shadow: 0 16px 40px rgba(96,16,249,0.35) !important;
}

/* Variante GHOST (light bg → testo scuro) */
.rs a.brxe-button.btn.btn-ghost:not(.btn-ghost-dark),
.rs-a a.brxe-button.btn.btn-ghost:not(.btn-ghost-dark),
body.rs .brxe-button.btn.btn-ghost:not(.btn-ghost-dark) {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--rs-ink) !important;
	border: 1px solid var(--rs-line-2) !important;
}
.rs a.brxe-button.btn.btn-ghost:not(.btn-ghost-dark):hover,
.rs-a a.brxe-button.btn.btn-ghost:not(.btn-ghost-dark):hover,
body.rs .brxe-button.btn.btn-ghost:not(.btn-ghost-dark):hover {
	border-color: var(--rs-ink) !important;
}

/* Variante GHOST-DARK (su dark bg → testo bianco, border rgba bianco) */
.rs a.brxe-button.btn.btn-ghost-dark,
.rs-a a.brxe-button.btn.btn-ghost-dark,
body.rs .brxe-button.btn.btn-ghost-dark,
.rs-a .cs-cta a.brxe-button.btn.btn-ghost,
.rs-a .pf-cta a.brxe-button.btn.btn-ghost,
.rs-a .art-cta a.brxe-button.btn.btn-ghost,
.rs-a .sv-cta a.brxe-button.btn.btn-ghost,
.rs-a .sw-cta a.brxe-button.btn.btn-ghost,
.rs-a .ss-cta a.brxe-button.btn.btn-ghost,
.rs-a .sa-cta a.brxe-button.btn.btn-ghost,
.rs-a .sb-cta a.brxe-button.btn.btn-ghost,
.rs-a .sm-cta a.brxe-button.btn.btn-ghost,
.rs-a .so-cta a.brxe-button.btn.btn-ghost,
.rs-a .ct-cta a.brxe-button.btn.btn-ghost {
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
	border: 1px solid rgba(255,255,255,0.25) !important;
}
.rs a.brxe-button.btn.btn-ghost-dark:hover,
.rs-a a.brxe-button.btn.btn-ghost-dark:hover,
body.rs .brxe-button.btn.btn-ghost-dark:hover,
.rs-a .cs-cta a.brxe-button.btn.btn-ghost:hover,
.rs-a .pf-cta a.brxe-button.btn.btn-ghost:hover,
.rs-a .art-cta a.brxe-button.btn.btn-ghost:hover {
	border-color: #fff !important;
	background: rgba(255,255,255,0.08) !important;
	background-color: rgba(255,255,255,0.08) !important;
}

/* Variante WHITE (su dark bg → bg bianco, testo ink) */
.rs a.brxe-button.btn.btn-white,
.rs-a a.brxe-button.btn.btn-white,
body.rs .brxe-button.btn.btn-white {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--rs-ink) !important;
	border: 1px solid #ffffff !important;
	box-shadow: none !important;
}
.rs a.brxe-button.btn.btn-white:hover,
.rs-a a.brxe-button.btn.btn-white:hover,
body.rs .brxe-button.btn.btn-white:hover {
	background: var(--rs-purple-50, #F3EEFF) !important;
	background-color: var(--rs-purple-50, #F3EEFF) !important;
	transform: translateY(-1px);
}

/* Variante SM */
.rs a.brxe-button.btn.btn-sm,
.rs-a a.brxe-button.btn.btn-sm,
body.rs .brxe-button.btn.btn-sm {
	padding: 10px 16px !important;
	font-size: 13px !important;
}

/* =============================================================
   SV-INDEX-HERO — assicura mesh + glow renderizzati anche se
   i nodi .mesh / .glow sono figli diretti della section Bricks
   (brxe-section). Già definito in online-home.css ma rafforziamo
   per sicurezza (z-index container).
   ============================================================= */
.rs-a .sv-index-hero { position: relative; overflow: hidden; }
.rs-a .sv-index-hero > .mesh,
.rs-a .sv-index-hero .brxe-block.mesh {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0;
	background-image:
		linear-gradient(var(--rs-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--rs-line) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
	opacity: 0.6;
	pointer-events: none;
}
.rs-a .sv-index-hero > .glow,
.rs-a .sv-index-hero .brxe-block.glow {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0;
	background:
		radial-gradient(ellipse 50% 50% at 50% 40%, rgba(96,16,249,0.14), transparent 60%);
	pointer-events: none;
}
.rs-a .sv-index-hero > .brxe-container,
.rs-a .sv-index-hero .container { position: relative; z-index: 2; }

/* =============================================================
   Blog page — featured dinamico (shortcode mocart_blog_featured)
   Allinea il markup dinamico al layout online: thumb-big + body.
   ============================================================= */
.rs-a .blog-featured .container > .brxe-shortcode { display: contents; }
.rs-a .blog-featured .thumb-big { display: block; }
.rs-a .blog-featured h2 a { color: inherit; text-decoration: none; }
.rs-a .blog-featured h2 a:hover { color: var(--rs-purple); }

/* Blog filters: chip sono <button>, JS aggiorna .active
   Il markup Bricks wrappa lo shortcode in .brxe-shortcode dentro .row,
   quindi display: contents per mantenere il flex layout della .row. */
.rs-a .blog-filters button { cursor: pointer; }
.rs-a .blog-filters .row > .brxe-shortcode.blog-filters-dynamic { display: contents; }

/* Article single — hero allineato a sinistra: rules rimosse.
   Lo styling dell'articolo (hero, cover, body) è ora in pages/articolo.css
   che segue la fonte editorial-a (left-aligned, 820px hero). */

/* =============================================================
   Article CTA — wrap dark singolo (match online)
   Sostituisce il layout legacy 2-col (.art-cta-box > .art-cta-left/.art-cta-right)
   ============================================================= */
.rs-a .art-cta .wrap,
.rs-a .art-cta .brxe-block.wrap {
	background: var(--rs-ink);
	color: #fff;
	border-radius: 24px;
	padding: 56px 48px;
	text-align: center;
	position: relative;
	overflow: hidden;
	max-width: 1240px;
	margin: 0 auto;
}
.rs-a .art-cta .wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(96,16,249,0.35), transparent 60%);
	pointer-events: none;
}
.rs-a .art-cta .wrap > * { position: relative; z-index: 2; }
.rs-a .art-cta .wrap .tag {
	font-family: var(--rs-mono);
	font-size: 11px;
	color: #C7A8FF;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.rs-a .art-cta .wrap h2 {
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 14px 0 24px;
	color: #fff;
	line-height: 1.1;
}
.rs-a .art-cta .wrap h2 em {
	font-family: "Inter Tight", serif;
	font-style: italic;
	font-weight: 500;
	color: #C7A8FF;
}
.rs-a .art-cta .wrap p { color: rgba(255,255,255,0.85); margin: 0 0 28px; font-size: 16px; line-height: 1.55; }
.rs-a .art-cta .wrap .buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) {
	.rs-a .art-cta .wrap { padding: 44px 28px; border-radius: 20px; }
}

/* --- art-cta centered wrap (override Bricks default text-align via _cssClasses) --- */
.rs-a .art-cta .wrap,
.art-cta .wrap {
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}
.rs-a .art-cta .wrap > *,
.art-cta .wrap > * { text-align: center; }
.rs-a .art-cta .wrap .tag,
.art-cta .wrap .tag { display: inline-block; }
.rs-a .art-cta .wrap a.btn,
.art-cta .wrap a.btn { display: inline-flex; }
.rs-a .art-cta .wrap .buttons a.btn,
.art-cta .wrap .buttons a.btn { margin: 0 !important; }

/* --- Newsletter form custom (no fluentform): input + button inline ---
 * ATTENZIONE: Bricks mette la classe "mocart-newsletter-form" sullo shortcode-
 * wrapper (div.brxe-shortcode) mentre lo shortcode stesso emette <form class=
 * "mocart-newsletter-form">. Quindi la classe coincide su DUE elementi annidati:
 *   div.brxe-shortcode.mocart-newsletter-form  ←  solo pass-through
 *     └ form.mocart-newsletter-form            ←  vero contenitore visivo
 * Stilizzare solo <form>, e neutralizzare il wrapper div. */
div.brxe-shortcode.mocart-newsletter-form {
	display: contents;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
form.mocart-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--rs-line);
	border-radius: 16px;
	box-shadow: 0 8px 24px -12px rgba(10,10,15,0.08);
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	align-items: center;
}
form.mocart-newsletter-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	border: 0;
	outline: 0;
	padding: 14px 16px;
	font-size: 15px;
	font-family: inherit;
	color: var(--rs-ink);
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	height: auto;
	line-height: 1.4;
}
form.mocart-newsletter-form button[type="submit"],
form.mocart-newsletter-form .btn-purple {
	flex: 0 0 auto;
	padding: 12px 22px;
	border-radius: 999px;
	white-space: nowrap;
}
.mocart-newsletter-form .mocart-newsletter-feedback {
	width: 100%;
	margin: 4px 8px 0;
	font-family: var(--rs-mono);
	font-size: 12px;
	min-height: 0;
}
.mocart-newsletter-form .mocart-newsletter-feedback:empty { display: none; }
.mocart-newsletter-form .mocart-newsletter-feedback.is-success { color: var(--rs-purple); }
.mocart-newsletter-form .mocart-newsletter-feedback.is-error { color: #D13438; }
.mocart-newsletter-form button[disabled] { opacity: 0.65; cursor: progress; }
.mocart-newsletter-form .btn-purple { padding: 12px 22px; }
@media (max-width: 640px) {
	/* Mobile: niente box bianco wrapper — input e bottone come elementi
	   standalone impilati. Più pulito visivamente e coerente con il resto
	   del design system (pill rounded, no box shadow).
	   Nota specificità: uso `form.mocart-newsletter-form` (tag+class = 0,1,1)
	   per battere la regola desktop sopra (`form.mocart-newsletter-form`),
	   altrimenti background/border/radius dell'originale prevarrebbero. */
	form.mocart-newsletter-form,
	.rs-a .blog-newsletter form.mocart-newsletter-form {
		flex-direction: column;
		gap: 12px;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		border-radius: 0;
	}
	form.mocart-newsletter-form input[type="email"] {
		width: 100%;
		padding: 14px 18px;
		background: #fff;
		border: 1px solid var(--rs-line);
		border-radius: 999px;
		font-size: 15px;
	}
	form.mocart-newsletter-form input[type="email"]:focus {
		border-color: var(--rs-purple);
		outline: 2px solid color-mix(in srgb, var(--rs-purple) 20%, transparent);
		outline-offset: 0;
	}
	form.mocart-newsletter-form button[type="submit"],
	form.mocart-newsletter-form .btn-purple {
		width: 100%;
		padding: 14px 22px;
		justify-content: center;
	}
	form.mocart-newsletter-form .mocart-newsletter-feedback { margin: 0; text-align: center; }
}

/* --- Article related — layout wrapper only; stile card canonico in online-home.css --- */
.rs-a .art-related { padding: 40px 0 80px; }
.rs-a .art-related h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 32px; }

/* =============================================================
   SV-HERO (servizi detail) — grid 2 col con immagine accanto al
   testo. Container Bricks ha gi  grid-template-columns: 1.2fr 1fr
   in online-home.css, qui raffiniamo lo stile dell'immagine
   (bordo, radius, ombra leggera) e stack mobile.
   ============================================================= */
.rs-a .sv-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rs-line); }
.rs-a .sv-hero .brxe-container,
.rs-a .sv-hero .container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;
}
.rs-a .sv-hero .sv-hero-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	border: 1px solid var(--rs-line);
	background: var(--rs-bg-soft);
	box-shadow: 0 10px 40px rgba(10,10,15,0.06);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
@media (max-width: 960px) {
	.rs-a .sv-hero .brxe-container,
	.rs-a .sv-hero .container { grid-template-columns: 1fr; gap: 40px; }
	.rs-a .sv-hero .sv-hero-img { aspect-ratio: 16 / 10; }
}
