/*
Theme Name: Brutia Child
Theme URI: https://www.adozionebrutia.it/
Description: Tema child di Hello Elementor per Brutia ETS – header, footer, articoli e sezioni a blocchi nativi, senza Elementor Pro. Sviluppato da Level U.P.
Author: Level U.P. SRL
Author URI: https://www.levelupwebmarketing.com/
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: brutia-child
*/

/* ==========================================================================
   1. Token
   ========================================================================== */
:root {
	--bx-navy: #001854;
	--bx-navy-2: #0b2a78;
	--bx-blue: #4D6AD6;
	--bx-yellow: #FFDD47;
	--bx-yellow-2: #FFE883;
	--bx-lav: #F1F3FF;
	--bx-lav-2: #DFE6FF;
	--bx-ink: #121212;
	--bx-text: #383838;
	--bx-muted: #5d6275;
	--bx-white: #fff;
	--bx-line: #E3E7F7;

	--bx-ff-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bx-ff-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--bx-wrap: 1180px;
	--bx-narrow: 760px;
	--bx-gutter: clamp(16px, 4vw, 32px);
	--bx-radius: 20px;
	--bx-radius-sm: 12px;
	--bx-shadow: 0 1px 2px rgba(0, 24, 84, .06), 0 10px 30px -12px rgba(0, 24, 84, .18);
	--bx-shadow-lg: 0 24px 60px -24px rgba(0, 24, 84, .35);
	--bx-sec: clamp(56px, 8vw, 104px);
	--bx-header-h: 84px;
}

/* ==========================================================================
   2. Base (scopata su .bx-site per prevalere sugli stili globali di Elementor)
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bx-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body.bx-site {
	margin: 0;
	font-family: var(--bx-ff-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--bx-text);
	background: var(--bx-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.bx-menu-open { overflow: hidden; }

.bx-site :where(h1, h2, h3, h4, h5, h6),
.bx-site .bx-main :is(h1, h2, h3, h4, h5, h6),
.bx-site .bx-footer :is(h2, h3),
.bx-site .bx-5x1000 h2 {
	font-family: var(--bx-ff-head);
	color: var(--bx-navy);
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
	font-weight: 700;
	text-transform: none;
}
.bx-site .bx-main h1, .bx-site .bx-main .bx-h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.bx-site .bx-main h2, .bx-site .bx-main .bx-h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.bx-site .bx-main h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; }
.bx-site .bx-main h4 { font-size: 1.15rem; font-weight: 600; }
.bx-site .bx-main p { margin: 0 0 1.1em; }
.bx-site .bx-main :where(ul, ol) { margin: 0 0 1.2em; padding-left: 1.3em; }
.bx-site .bx-main li { margin-bottom: .45em; }
.bx-site .bx-main li::marker { color: var(--bx-blue); }
.bx-site a { color: var(--bx-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.bx-site a:hover { color: var(--bx-navy); }
.bx-site img { max-width: 100%; height: auto; }
.bx-site :focus-visible { outline: 3px solid var(--bx-blue); outline-offset: 3px; border-radius: 4px; }
.bx-site strong, .bx-site b { color: var(--bx-ink); font-weight: 600; }

.bx-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bx-navy); color: #fff !important; padding: 10px 16px; border-radius: 8px; }
.bx-skip:focus { left: 8px; }

.bx-wrap { width: 100%; max-width: var(--bx-wrap); margin-inline: auto; padding-inline: var(--bx-gutter); box-sizing: border-box; }
.bx-wrap--narrow { max-width: calc(var(--bx-narrow) + 2 * var(--bx-gutter)); }
.bx-wrap--mid { max-width: calc(980px + 2 * var(--bx-gutter)); }
.bx-center { text-align: center; }

/* ==========================================================================
   3. Bottoni
   ========================================================================== */
.bx-site .bx-btn,
.bx-site .wp-block-button__link,
.bx-site .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--bx-ff-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: .95em 1.6em; border-radius: 999px; border: 2px solid var(--bx-yellow);
	background: var(--bx-yellow); color: var(--bx-navy); text-decoration: none; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
	box-shadow: 0 6px 18px -8px rgba(255, 190, 0, .7);
}
.bx-site .bx-btn:hover,
.bx-site .wp-block-button__link:hover,
.bx-site .wpcf7-submit:hover { transform: translateY(-2px); background: var(--bx-yellow-2); color: var(--bx-navy); }
.bx-site .bx-btn--navy,
.bx-site .bx-btn-navy .wp-block-button__link { background: var(--bx-navy); border-color: var(--bx-navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 24, 84, .6); }
.bx-site .bx-btn--navy:hover,
.bx-site .bx-btn-navy .wp-block-button__link:hover { background: var(--bx-navy-2); border-color: var(--bx-navy-2); color: #fff; }
.bx-site .is-style-outline .wp-block-button__link { background: transparent; color: var(--bx-navy); border-color: currentColor; box-shadow: none; }
.bx-site .bx-on-dark .is-style-outline .wp-block-button__link,
.bx-site .bx-bg-navy .is-style-outline .wp-block-button__link { color: #fff; }
.bx-site .bx-btn--block { width: 100%; }
.bx-site .wp-block-buttons { gap: 12px; margin-top: 1.6em; }

/* ==========================================================================
   4. Topbar + Header
   ========================================================================== */
.bx-topbar { background: var(--bx-navy); color: #dfe6ff; font-size: .82rem; }
.bx-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.bx-topbar p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bx-topbar svg { color: var(--bx-yellow); flex: none; }
.bx-topbar strong { color: #fff; }
.bx-site .bx-topbar a { color: #fff; text-decoration: none; }
.bx-topbar__contact { gap: 20px !important; }
.bx-topbar .bx-copy { all: unset; cursor: pointer; color: var(--bx-yellow); font-weight: 600; border-bottom: 1px dashed currentColor; }
.bx-topbar .bx-copy:focus-visible { outline: 2px solid var(--bx-yellow); }

.bx-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--bx-yellow);
	border-radius: 0 0 22px 22px;
	box-shadow: 0 8px 24px -16px rgba(0, 24, 84, .45);
	transition: box-shadow .25s;
}
.admin-bar .bx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bx-header { top: 0; } }
.bx-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--bx-header-h); transition: min-height .25s; }
.bx-scrolled .bx-header__in { min-height: 68px; }
.bx-logo, .bx-header .custom-logo-link { display: block; flex: none; }
.bx-header .bx-logo img, .bx-header .custom-logo { height: 58px; width: auto; display: block; transition: height .25s; }
.bx-scrolled .bx-header .bx-logo img, .bx-scrolled .bx-header .custom-logo { height: 48px; }

.bx-nav { margin-left: auto; }
.bx-nav__list, .bx-nav__list ul { list-style: none; margin: 0; padding: 0; }
.bx-nav__list { display: flex; align-items: center; gap: 2px; }
.bx-nav__list > li { position: relative; display: flex; align-items: center; }
.bx-site .bx-nav__list > li > a {
	display: block; padding: 10px 12px; border-radius: 10px;
	font-family: var(--bx-ff-head); font-weight: 500; font-size: .95rem;
	color: var(--bx-navy); text-decoration: none; white-space: nowrap;
}
.bx-site .bx-nav__list > li > a:hover,
.bx-site .bx-nav__list > li.current-menu-item > a,
.bx-site .bx-nav__list > li.current-menu-ancestor > a { background: rgba(0, 24, 84, .08); }
.bx-site .bx-nav__list > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--bx-navy); }
.bx-sub-toggle { all: unset; cursor: pointer; display: grid; place-items: center; width: 24px; height: 28px; margin-left: -8px; color: var(--bx-navy); border-radius: 6px; }
.bx-sub-toggle svg { transition: transform .2s; }
.bx-sub-toggle:focus-visible { outline: 2px solid var(--bx-navy); }
.bx-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
	background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--bx-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.bx-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.bx-nav li:hover > .sub-menu, .bx-nav li:focus-within > .sub-menu, .bx-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bx-nav li:hover > .bx-sub-toggle svg, .bx-nav li.is-open > .bx-sub-toggle svg { transform: rotate(180deg); }
.bx-site .bx-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--bx-navy); text-decoration: none; font-size: .93rem; font-weight: 500; }
.bx-site .bx-nav .sub-menu a:hover { background: var(--bx-lav); }
.bx-header__cta { flex: none; padding: .8em 1.3em !important; font-size: .92rem !important; }

.bx-burger { display: none; all: unset; }
.bx-burger { display: none; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; background: var(--bx-navy); position: relative; margin-left: auto; }
.bx-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.bx-burger span:nth-child(1) { top: 16px; } .bx-burger span:nth-child(2) { top: 22px; } .bx-burger span:nth-child(3) { top: 28px; }
.bx-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.bx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bx-burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.bx-mnav {
	position: fixed; z-index: 99; inset: 0; top: 0; padding: calc(var(--bx-header-h) + 60px) var(--bx-gutter) 32px;
	background: #fff; overflow-y: auto; box-sizing: border-box;
}
.bx-mnav[hidden] { display: none; }
.bx-mnav__list, .bx-mnav__list ul { list-style: none; margin: 0; padding: 0; }
.bx-mnav__list > li { border-bottom: 1px solid var(--bx-line); display: flex; flex-wrap: wrap; align-items: center; }
.bx-site .bx-mnav__list > li > a { flex: 1; padding: 16px 4px; font-family: var(--bx-ff-head); font-weight: 600; font-size: 1.15rem; color: var(--bx-navy); text-decoration: none; }
.bx-mnav .bx-sub-toggle { width: 44px; height: 44px; margin: 0; background: var(--bx-lav); border-radius: 10px; }
.bx-mnav .sub-menu { display: none; width: 100%; padding: 0 0 12px 12px !important; }
.bx-mnav li.is-open > .sub-menu { display: block; }
.bx-mnav li.is-open > .bx-sub-toggle svg { transform: rotate(180deg); }
.bx-site .bx-mnav .sub-menu a { display: block; padding: 10px 4px; color: var(--bx-text); text-decoration: none; }
.bx-mnav .bx-btn { margin-top: 24px; }
.bx-mnav__contact { margin-top: 20px; text-align: center; line-height: 2; }

@media (max-width: 1180px) {
	.bx-site .bx-nav__list > li > a { padding: 10px 8px; font-size: .9rem; }
	.bx-header__cta { display: none !important; }
}
@media (max-width: 1080px) {
	:root { --bx-header-h: 72px; }
	.bx-nav { display: none; }
	.bx-burger { display: block; }
	.bx-header .bx-logo img, .bx-header .custom-logo { height: 48px; }
	.bx-header { border-radius: 0 0 18px 18px; }
	.bx-menu-open .bx-header { z-index: 101; }
}
@media (max-width: 700px) {
	.bx-topbar__contact { display: none !important; }
	.bx-topbar__in { justify-content: center; text-align: center; }
	body.bx-site { font-size: 16px; }
}

/* ==========================================================================
   5. Breadcrumb
   ========================================================================== */
.bx-crumbs { font-size: .85rem; color: var(--bx-muted); margin-bottom: 18px; }
.bx-crumbs a { color: var(--bx-muted); text-decoration: none; }
.bx-crumbs a:hover { color: var(--bx-navy); text-decoration: underline; }
.bx-crumbs--page { padding-top: 18px; margin-bottom: 0; position: relative; z-index: 2; }
.bx-page .bx-crumbs--page + .bx-content > .bx-page-hero:first-child { margin-top: 0; }

/* ==========================================================================
   6. Sezioni a blocchi (pagine)
   ========================================================================== */
.bx-content > *:not(.bx-section):not(.bx-hero):not(.bx-page-hero):not(.bx-cta-band) { max-width: var(--bx-wrap); margin-inline: auto; padding-inline: var(--bx-gutter); box-sizing: border-box; }
.bx-site .bx-section, .bx-site .bx-hero, .bx-site .bx-page-hero, .bx-site .bx-cta-band { margin: 0; box-sizing: border-box; }
.bx-section { padding-block: var(--bx-sec); position: relative; }
.bx-section--tight { padding-block: calc(var(--bx-sec) * .6); }
.bx-section:not([class*="bx-bg-"]) + .bx-section:not([class*="bx-bg-"]) { padding-top: 0; }
.bx-bg-lav { background: var(--bx-lav); }
.bx-bg-lav + .bx-bg-lav { padding-top: 0; }
.bx-bg-navy { background: var(--bx-navy); color: #dfe6ff; }
.bx-bg-yellow { background: var(--bx-yellow); }
.bx-site .bx-bg-navy :where(h1, h2, h3, h4), .bx-site .bx-on-dark :where(h1, h2, h3, h4) { color: #fff; }
.bx-site .bx-bg-navy a:not(.wp-block-button__link) { color: var(--bx-yellow); }

.bx-site .bx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--bx-ff-head); font-size: .8rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bx-blue); margin: 0 0 14px !important; text-decoration: none;
}
.bx-site .bx-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.bx-site .bx-bg-navy .bx-eyebrow, .bx-site .bx-hero .bx-eyebrow { color: var(--bx-yellow); }
.bx-site .bx-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--bx-text); }
.bx-site .bx-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.bx-site .bx-head.has-text-align-center, .bx-site .bx-head--center { margin-inline: auto; text-align: center; }
.bx-site .bx-head--center .bx-eyebrow { justify-content: center; }
.bx-site .bx-head > :last-child { margin-bottom: 0; }

/* Hero home */
.bx-hero {
	position: relative; overflow: hidden; color: #dfe6ff;
	background: radial-gradient(1200px 500px at 85% -10%, rgba(77, 106, 214, .55), transparent 60%), var(--bx-navy);
	padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px);
	margin-top: -22px !important; padding-top: calc(clamp(56px, 8vw, 110px) + 22px) !important;
}
.bx-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 221, 71, .12); right: -140px; bottom: -180px; pointer-events: none; }
.bx-site .bx-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); line-height: 1.08; }
.bx-site .bx-hero h1 mark, .bx-site .bx-hero .bx-hl { background: none; color: var(--bx-yellow); }
.bx-site .bx-hero .bx-lead { color: #dfe6ff; max-width: 560px; }
.bx-hero .wp-block-image img, .bx-hero__img img { border-radius: 28px; box-shadow: var(--bx-shadow-lg); aspect-ratio: 4 / 4.3; object-fit: cover; width: 100%; }
.bx-hero .wp-block-columns { align-items: center !important; gap: clamp(32px, 5vw, 72px); position: relative; z-index: 1; }
.bx-hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px !important; font-size: .9rem; color: #c7d0f3; }

/* Hero pagine interne */
.bx-page-hero {
	background: linear-gradient(180deg, var(--bx-lav) 0%, #fff 100%);
	padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px);
	margin-top: -22px !important; padding-top: calc(clamp(48px, 7vw, 96px) + 22px) !important;
	position: relative; overflow: hidden;
}
.bx-page-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: var(--bx-yellow); opacity: .35; filter: blur(2px); pointer-events: none; }
.bx-page-hero .bx-wrap { position: relative; z-index: 1; }
.bx-site .bx-page-hero h1 { max-width: 900px; }
.bx-page-hero .bx-lead { max-width: 760px; }
.bx-page-hero--center { text-align: center; } .bx-page-hero--center .bx-wrap > * { margin-inline: auto; }
.bx-page:has(.bx-crumbs--page) .bx-page-hero { margin-top: 0 !important; padding-top: clamp(24px, 4vw, 48px) !important; }
.bx-page:has(.bx-crumbs--page) .bx-crumbs--page { background: var(--bx-lav); max-width: none; padding-inline: max(var(--bx-gutter), calc((100% - var(--bx-wrap)) / 2 + var(--bx-gutter))); margin-top: -22px; padding-top: 40px; }
.bx-page:has(.bx-crumbs--page) .bx-crumbs--page + .bx-content > .bx-hero:first-child { margin-top: 0 !important; }

/* Colonne / split */
.bx-site .wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-bottom: 0; }
.bx-split { align-items: center !important; }
.bx-site .bx-media img, .bx-site .wp-block-image.bx-media img { border-radius: var(--bx-radius); box-shadow: var(--bx-shadow); width: 100%; object-fit: cover; }
.bx-site .wp-block-image { margin: 0 0 1.2em; }
.bx-site .wp-block-image figcaption { font-size: .85rem; color: var(--bx-muted); text-align: center; }

/* Griglie e card */
.bx-grid:not(:has(> .wp-block-group__inner-container)), .bx-grid > .wp-block-group__inner-container { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bx-grid--2:not(:has(> .wp-block-group__inner-container)), .bx-grid--2 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bx-grid--4:not(:has(> .wp-block-group__inner-container)), .bx-grid--4 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bx-grid--5:not(:has(> .wp-block-group__inner-container)), .bx-grid--5 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bx-site .bx-grid > *, .bx-site .bx-grid > .wp-block-group__inner-container > * { margin: 0 !important; }

.bx-site .bx-card {
	background: #fff; border-radius: var(--bx-radius); padding: clamp(22px, 2.6vw, 32px);
	box-shadow: var(--bx-shadow); border: 1px solid var(--bx-line); box-sizing: border-box;
	transition: transform .25s, box-shadow .25s; position: relative;
}
.bx-site .bx-card > :last-child, .bx-site .bx-card > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.bx-site a.bx-card:hover, .bx-site .bx-card:has(a.bx-stretch):hover, .bx-site .bx-card--link:hover { transform: translateY(-4px); box-shadow: var(--bx-shadow-lg); }
.bx-site .bx-card h3 { margin-bottom: .4em; }
.bx-site .bx-card p { font-size: .97rem; }
.bx-site .bx-card--link h3 a { color: var(--bx-navy); text-decoration: none; }
.bx-site .bx-card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bx-site .bx-card--link h3 a::before { content: "→"; float: right; margin-left: 10px; color: var(--bx-blue); transition: transform .2s; }
.bx-site .bx-card--link:hover h3 a::before { transform: translateX(4px); }
.bx-site .bx-card--soft { background: var(--bx-lav); border-color: transparent; box-shadow: none; }
.bx-site .bx-bg-lav .bx-card--soft { background: #fff; }

.bx-site .bx-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--bx-lav); display: grid; place-items: center; margin: 0 0 18px !important; }
.bx-site .bx-icon img { width: 40px !important; height: 40px !important; object-fit: contain; box-shadow: none !important; border-radius: 0 !important; }
.bx-site .bx-num {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: var(--bx-yellow); color: var(--bx-navy); font-family: var(--bx-ff-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 16px !important;
}

/* Statistiche */
.bx-site .bx-stat { text-align: center; }
.bx-site .bx-stat__n { font-family: var(--bx-ff-head); font-weight: 700; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem) !important; line-height: 1 !important; color: var(--bx-navy); margin: 0 0 8px !important; }
.bx-site .bx-stat__l { font-size: .95rem !important; color: var(--bx-muted); margin: 0 !important; }
.bx-site .bx-stat--sm .bx-stat__n { font-size: 2rem !important; }
.bx-site .bx-stat--sm { padding: 18px !important; }

/* Pill (paesi) */
.bx-site ul.bx-pills { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 10px; }
.bx-site ul.bx-pills li { margin: 0; background: #fff; border: 1px solid var(--bx-line); color: var(--bx-navy); font-family: var(--bx-ff-head); font-weight: 500; padding: 8px 16px 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.bx-site ul.bx-pills li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bx-yellow); box-shadow: 0 0 0 3px rgba(255, 221, 71, .35); }
.bx-site .bx-bg-lav ul.bx-pills li { border-color: transparent; }
.bx-site .bx-note { font-size: .85rem !important; color: var(--bx-muted); }
.bx-site .bx-label { font-family: var(--bx-ff-head); font-weight: 600; color: var(--bx-navy); margin: 22px 0 10px !important; font-size: .95rem; }

/* Documenti / link list */
.bx-site ul.bx-docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bx-site ul.bx-docs li { margin: 0; }
.bx-site ul.bx-docs a {
	display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--bx-line);
	color: var(--bx-navy); text-decoration: none; font-weight: 500; line-height: 1.45; transition: .2s;
}
.bx-site ul.bx-docs a::before { content: "PDF"; flex: none; font: 700 .7rem/1 var(--bx-ff-head); letter-spacing: .04em; color: var(--bx-navy); background: var(--bx-yellow); padding: 9px 7px; border-radius: 8px; }
.bx-site ul.bx-docs a[href$=".docx"]::before { content: "DOC"; background: var(--bx-lav-2); }
.bx-site ul.bx-docs a[href^="http"]:not([href*="adozionebrutia.it/wp-content"])::before { content: "WEB"; background: var(--bx-lav-2); }
.bx-site ul.bx-docs a:hover { border-color: var(--bx-blue); box-shadow: var(--bx-shadow); transform: translateX(3px); }

/* Fasi (percorso) */
.bx-site .bx-phase { border-left: 4px solid var(--bx-yellow); }
.bx-site .bx-phase .bx-phase__tag { font: 600 .8rem/1 var(--bx-ff-head); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-blue); margin-bottom: 10px !important; }

/* Accordion (blocco Dettagli) */
.bx-site .wp-block-details {
	background: #fff; border: 1px solid var(--bx-line); border-radius: 16px; margin: 0 0 12px; padding: 0; overflow: hidden; transition: box-shadow .2s;
}
.bx-site .wp-block-details[open] { box-shadow: var(--bx-shadow); }
.bx-site .wp-block-details summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
	font-family: var(--bx-ff-head); font-weight: 600; color: var(--bx-navy); line-height: 1.45;
}
.bx-site .wp-block-details summary::-webkit-details-marker { display: none; }
.bx-site .wp-block-details summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--bx-lav); display: grid; place-items: center; font-size: 1.2rem; line-height: 28px; text-align: center; transition: .2s;
}
.bx-site .wp-block-details[open] summary::after { content: "–"; background: var(--bx-yellow); }
.bx-site .wp-block-details > :not(summary) { padding-inline: 22px; }
.bx-site .wp-block-details > :last-child { padding-bottom: 8px; }
.bx-site .wp-block-details summary + * { margin-top: 4px; }

/* Citazione / statement */
.bx-site .bx-statement { font-family: var(--bx-ff-head); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem) !important; line-height: 1.45 !important; color: var(--bx-navy); border-left: 5px solid var(--bx-yellow); padding-left: clamp(18px, 3vw, 32px); margin: 0 0 1.4em; }
.bx-site .bx-callout { background: var(--bx-lav); border-radius: var(--bx-radius); padding: clamp(20px, 3vw, 32px); border-left: 5px solid var(--bx-blue); }
.bx-site .bx-callout > :last-child { margin-bottom: 0; }
.bx-site .bx-callout--yellow { background: #FFF8D6; border-left-color: var(--bx-yellow); }

/* Tabelle */
.bx-site .wp-block-table { margin: 0 0 1.4em; overflow-x: auto; }
.bx-site .wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--bx-line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.bx-site .wp-block-table :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--bx-line); text-align: left; vertical-align: top; }
.bx-site .wp-block-table th { background: var(--bx-lav); color: var(--bx-navy); font-family: var(--bx-ff-head); font-weight: 600; }
.bx-site .wp-block-table tr:last-child td { border-bottom: 0; }

/* Team / organigramma */
.bx-site .bx-person { text-align: center; }
.bx-site .bx-avatar {
	width: 76px; height: 76px; margin: 0 auto 14px !important; border-radius: 50%;
	display: grid; place-items: center; background: var(--bx-navy); color: var(--bx-yellow);
	font: 700 1.4rem/1 var(--bx-ff-head);
}
.bx-site .bx-person h3 { font-size: 1.1rem; margin-bottom: 4px; }
.bx-site .bx-person p { color: var(--bx-muted); margin: 0; font-size: .92rem; text-transform: capitalize; }

/* Sedi (contatti) */
.bx-site .bx-sede-card h3 { margin-bottom: 2px; }
.bx-site .bx-sede-card .bx-sede-card__city { font: 600 .8rem/1.2 var(--bx-ff-head); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-blue); margin-bottom: 10px !important; }
.bx-site .bx-sede-card p { font-size: .95rem; }

/* Mappa / video */
.bx-site .bx-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--bx-radius); display: block; filter: saturate(.9); }
.bx-site .wp-block-video { display:flex; justify-content:center; align-items:center; margin:0; padding:clamp(12px,2vw,24px); background:var(--bx-lav,#F1F3FF); border-radius:var(--bx-radius); }
.bx-site .wp-block-video video { border-radius: calc(var(--bx-radius) - 4px); box-shadow: var(--bx-shadow); width:auto; max-width:100%; height:auto; max-height:min(78vh,680px); object-fit:contain; display:block; background:#000; }
@media (max-width:781px){ .bx-site .wp-block-video video { max-height:70vh; } }
.bx-site .wp-block-embed iframe { border-radius: var(--bx-radius); }

/* CTA band */
.bx-cta-band { padding-block: clamp(40px, 6vw, 72px); background: var(--bx-yellow); position: relative; overflow: hidden; }
.bx-cta-band::before { content: ""; position: absolute; left: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.bx-cta-band__in, .bx-cta-band .bx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; position: relative; }
.bx-site .bx-cta-band h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); max-width: 720px; }
.bx-site .bx-cta-band p { margin: 0; }
.bx-site .bx-cta-band .wp-block-buttons { margin: 0; }
.bx-site .bx-cta-band .wp-block-button__link { background: var(--bx-navy); border-color: var(--bx-navy); color: #fff; }

/* Reveal */
.bx-will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.bx-will-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   7. Card articoli (news)
   ========================================================================== */
.bx-cards { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bx-site .bx-card--post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bx-card--post:hover { transform: translateY(-4px); box-shadow: var(--bx-shadow-lg); }
.bx-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bx-lav); overflow: hidden; }
.bx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bx-card--post:hover .bx-card__media img { transform: scale(1.04); }
.bx-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bx-navy), var(--bx-blue)); }
.bx-card__ph img { width: 120px !important; height: auto !important; opacity: .9; }
.bx-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bx-card__date { font-size: .8rem; font-weight: 600; color: var(--bx-blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.bx-site .bx-card__title { font-size: 1.12rem !important; line-height: 1.35; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bx-site .bx-card__title a { color: var(--bx-navy); text-decoration: none; }
.bx-site .bx-card__title a::after { content: ""; position: absolute; inset: 0; }
.bx-site .bx-card__excerpt { font-size: .93rem !important; color: var(--bx-muted); margin: 0 0 16px !important; }
.bx-card__more { margin-top: auto; font-family: var(--bx-ff-head); font-weight: 600; font-size: .9rem; color: var(--bx-navy); }

/* ==========================================================================
   8. Articolo singolo
   ========================================================================== */
.bx-post-hero { background: var(--bx-lav); margin-top: -22px; padding: calc(clamp(40px, 6vw, 80px) + 22px) 0 clamp(36px, 5vw, 64px); }
.bx-site .bx-post-hero__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem) !important; line-height: 1.18; margin-bottom: 14px; }
.bx-post-hero__meta { margin: 0; color: var(--bx-muted); font-size: .92rem; display: flex; gap: 8px; flex-wrap: wrap; }
.bx-post-cover { margin: clamp(-32px, -3vw, -20px) auto 0; position: relative; }
.bx-post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--bx-radius); box-shadow: var(--bx-shadow-lg); display: block; }
.bx-prose { padding-block: clamp(32px, 5vw, 56px) 8px; }
.bx-site .bx-prose { font-size: 1.06rem; }
.bx-site .bx-prose :where(h2) { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem) !important; margin-top: 1.8em; }
.bx-site .bx-prose :where(h3) { font-size: 1.25rem !important; margin-top: 1.6em; }
.bx-site .bx-prose a { overflow-wrap: anywhere; }
.bx-site .bx-prose .wp-block-image img, .bx-site .bx-prose > p img { border-radius: var(--bx-radius-sm); }
.bx-site .bx-prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--bx-lav); border-left: 4px solid var(--bx-yellow); border-radius: 0 14px 14px 0; font-style: italic; }
.bx-site .bx-prose .wp-block-gallery { gap: 10px; }
.bx-site .bx-prose .wp-block-gallery img { border-radius: 10px; }
.bx-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 8px 24px; border-top: 1px solid var(--bx-line); padding-top: 24px; font-size: .9rem; }
.bx-share span { font-weight: 600; color: var(--bx-navy); margin-right: 4px; }
.bx-site .bx-share a { padding: 8px 14px; border-radius: 999px; background: var(--bx-lav); color: var(--bx-navy); text-decoration: none; font-weight: 500; }
.bx-site .bx-share a:hover { background: var(--bx-yellow); }
.bx-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(40px, 6vw, 72px); }
.bx-postnav > div:last-child { text-align: right; }
.bx-site .bx-postnav a { display: block; padding: 18px 20px; border: 1px solid var(--bx-line); border-radius: 14px; color: var(--bx-navy); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.4; height: 100%; box-sizing: border-box; }
.bx-site .bx-postnav a:hover { border-color: var(--bx-blue); box-shadow: var(--bx-shadow); }
.bx-postnav a span { display: block; font-weight: 500; color: var(--bx-blue); font-size: .8rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .bx-postnav { grid-template-columns: 1fr; } .bx-postnav > div:last-child { text-align: left; } }

/* Archivio */
.bx-archive .bx-page-hero h1 { margin-bottom: 0; }
.bx-pagination { margin-top: 40px; }
.bx-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bx-site .bx-pagination .page-numbers { padding: 10px 16px; border-radius: 10px; background: var(--bx-lav); color: var(--bx-navy); text-decoration: none; font-weight: 600; }
.bx-site .bx-pagination .page-numbers.current { background: var(--bx-navy); color: #fff; }

/* ==========================================================================
   9. 5×1000 + Footer
   ========================================================================== */
.bx-5x1000 { background: var(--bx-lav); padding-block: clamp(40px, 6vw, 64px); }
.bx-5x1000__in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.bx-5x1000 img { width: 140px; height: 140px; object-fit: cover; border-radius: 24px; box-shadow: var(--bx-shadow); }
.bx-site .bx-5x1000 h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .35em; }
.bx-5x1000 p { margin: 0; font-size: .97rem; }
.bx-5x1000__cf { background: #fff; border-radius: var(--bx-radius); padding: 20px 24px; text-align: center; box-shadow: var(--bx-shadow); display: grid; gap: 6px; justify-items: center; }
.bx-5x1000__cf span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bx-muted); font-weight: 600; }
.bx-5x1000__cf strong { font: 700 1.5rem/1.1 var(--bx-ff-head); color: var(--bx-navy); letter-spacing: .04em; }
.bx-5x1000__cf .bx-btn { margin-top: 8px; padding: .7em 1.3em; font-size: .9rem; }
@media (max-width: 860px) { .bx-5x1000__in { grid-template-columns: 1fr; text-align: center; justify-items: center; } .bx-5x1000 img { width: 110px; height: 110px; } }

.bx-footer { background: var(--bx-navy); color: #c7d0f3; font-size: .93rem; }
.bx-footer__grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.bx-footer .bx-logo img { height: 72px; width: auto; margin-bottom: 18px; }
.bx-footer p { margin: 0 0 1em; line-height: 1.7; }
.bx-site .bx-footer a { color: #fff; text-decoration: none; }
.bx-site .bx-footer a:hover { color: var(--bx-yellow); text-decoration: underline; }
.bx-footer__docs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bx-footer__docs a::before { content: "→ "; color: var(--bx-yellow); }
.bx-site .bx-footer__title { color: #fff; font-size: 1.25rem; margin-bottom: 22px; }
.bx-footer__title span { display: block; font-family: var(--bx-ff-body); font-weight: 500; font-size: .85rem; color: var(--bx-yellow); margin-top: 4px; letter-spacing: .02em; }
.bx-sedi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 28px; }
.bx-site .bx-sede h3 { font-size: .85rem; letter-spacing: .1em; color: var(--bx-yellow); margin: 0 0 6px; }
.bx-sede p { margin: 0; font-size: .88rem; }
.bx-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.bx-footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; font-size: .82rem; }
.bx-footer__bottom p { margin: 0; }
.bx-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .bx-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Form (Contact Form 7)
   ========================================================================== */
.bx-site .wpcf7 form { display: grid; gap: 16px; }
.bx-site .wpcf7 p { margin: 0; }
.bx-site .wpcf7 label { display: block; font-weight: 600; color: var(--bx-navy); font-size: .92rem; }
.bx-site .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%; box-sizing: border-box; margin-top: 6px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--bx-line);
	background: #fff; font: inherit; font-size: 1rem; color: var(--bx-ink); transition: border-color .2s, box-shadow .2s;
}
.bx-site .wpcf7 textarea { min-height: 150px; resize: vertical; }
.bx-site .wpcf7 :is(input, textarea, select):focus { outline: none; border-color: var(--bx-blue); box-shadow: 0 0 0 4px rgba(77, 106, 214, .15); }
.bx-site .wpcf7 .wpcf7-acceptance label { font-weight: 400; color: var(--bx-text); font-size: .85rem; display: flex; gap: 8px; align-items: flex-start; }
.bx-site .wpcf7 .bx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .bx-site .wpcf7 .bx-row { grid-template-columns: 1fr; } }
.bx-site .wpcf7-not-valid-tip { font-size: .82rem; }
.bx-site .wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 12px; padding: 12px 16px; }
.bx-site .wpcf7-submit { justify-self: start; border: 0; }

/* ==========================================================================
   11. Compatibilità contenuti Elementor residui (pagine non ancora migrate)
   ========================================================================== */
.bx-page .elementor { font-family: var(--bx-ff-body); }
.bx-single .bx-prose .elementor-section, .bx-single .bx-prose .e-con { padding-inline: 0 !important; }

/* ==========================================================================
   12. Rifiniture
   ========================================================================== */
/* Logo: il file originale è quadrato con molto spazio trasparente → ritaglio centrato */
.bx-site .bx-header .custom-logo, .bx-site .bx-header .bx-logo img { width: 150px !important; height: 66px !important; object-fit: cover; object-position: center; }
.bx-scrolled .bx-header .custom-logo, .bx-scrolled .bx-header .bx-logo img { width: 128px !important; height: 56px !important; }
.bx-site .bx-footer .custom-logo, .bx-site .bx-footer .bx-logo img { width: 210px !important; height: 92px !important; object-fit: cover; object-position: center; margin-bottom: 18px; }
@media (max-width: 1080px) { .bx-site .bx-header .custom-logo, .bx-site .bx-header .bx-logo img { width: 126px !important; height: 56px !important; } }

.bx-grid--2:not(:has(> .wp-block-group__inner-container)), .bx-grid--2 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.bx-site .bx-media--zoom { overflow: hidden; border-radius: var(--bx-radius); box-shadow: var(--bx-shadow); }
.bx-site .bx-media--zoom img { transform: scale(1.14); box-shadow: none !important; }
.bx-site .bx-bg-navy .bx-label { color: var(--bx-yellow); }
.bx-site .bx-bg-navy .bx-note { color: #aab4dc; }
.bx-site .bx-bg-navy ul.bx-pills li { border-color: transparent; }
.bx-site .bx-bg-navy .bx-media img { box-shadow: none; }
.bx-site .bx-pills + .bx-label { margin-top: 26px !important; }
.bx-site .bx-hero__badges { gap: 6px 18px; }
.bx-site .bx-content > .bx-hero:first-child .wp-block-columns { margin-bottom: 0; }
.bx-site .bx-wrap--narrow-inner { max-width: var(--bx-narrow); margin-inline: auto; }
.bx-site .bx-stack { display: grid; gap: clamp(16px, 2vw, 24px); }
.bx-site .bx-stack > * { margin: 0 !important; }
.bx-site .bx-phase ul { padding-left: 1.1em; }
.bx-site .bx-phase .wp-block-details { margin-top: 18px; }
.bx-site ul.bx-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bx-site ul.bx-checklist li { margin: 0; padding: 14px 18px 14px 50px; background: var(--bx-lav); border-radius: 14px; position: relative; color: var(--bx-navy); font-weight: 500; line-height: 1.5; }
.bx-site ul.bx-checklist li::before { content: "§"; position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 8px; background: var(--bx-yellow); color: var(--bx-navy); font: 700 .85rem/24px var(--bx-ff-head); text-align: center; }
.bx-site ul.bx-toc { margin-top: 26px; }
.bx-site ul.bx-toc li { padding: 0; background: #fff; }
.bx-site ul.bx-toc li::before { display: none; }
.bx-site ul.bx-toc a { display: block; padding: 9px 16px; color: var(--bx-navy); text-decoration: none; font-size: .92rem; }
.bx-site ul.bx-toc a::after { content: " ↓"; color: var(--bx-blue); }
.bx-site ul.bx-toc li:hover { background: var(--bx-yellow); border-color: var(--bx-yellow); }
.bx-bars { display: grid; gap: 10px; }
.bx-bar { display: grid; grid-template-columns: 48px 1fr 32px; gap: 12px; align-items: center; font-size: .92rem; }
.bx-bar > span:first-child { font-weight: 600; color: var(--bx-navy); font-family: var(--bx-ff-head); }
.bx-bar__track { height: 14px; background: var(--bx-lav); border-radius: 999px; overflow: hidden; }
.bx-bar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--bx-blue), var(--bx-navy)); border-radius: 999px; }
.bx-bar strong { text-align: right; color: var(--bx-navy); font-family: var(--bx-ff-head); }
.bx-site .bx-gallery img { border-radius: var(--bx-radius); }
.bx-site .bx-gallery.wp-block-gallery { gap: 16px; }
.bx-site .bx-sede-card a { overflow-wrap: anywhere; }
.bx-site .bx-content .wp-block-shortcode, .bx-site .bx-content > .wp-block-shortcode { max-width: none; }
.bx-site .bx-page-hero .bx-media img { aspect-ratio: 4 / 3; }
.bx-site .bx-section .bx-h2 { margin-bottom: 28px; }
@media (max-width: 781px) { .bx-site .bx-split > .wp-block-column:has(.wp-block-image) { order: -1; } }
.bx-grid--3:not(:has(> .wp-block-group__inner-container)), .bx-grid--3 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.bx-site table.bx-bars { display: block; width: 100%; border: 0; margin: 0; }
.bx-site table.bx-bars tbody { display: grid; gap: 10px; }
.bx-site table.bx-bars tr.bx-bar { display: grid; grid-template-columns: 48px 1fr 32px; gap: 12px; align-items: center; background: none !important; }
.bx-site table.bx-bars :is(th, td) { padding: 0; border: 0; background: none; text-align: left; font-family: var(--bx-ff-head); color: var(--bx-navy); font-weight: 600; }
.bx-site table.bx-bars td:last-child { text-align: right; }
.bx-site table.bx-bars td.bx-bar__track { display: block; height: 14px; background: var(--bx-lav); border-radius: 999px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bx-site .bx-map { margin-top: 20px; }
/* Colori titoli su fondo scuro (specificità superiore alla regola base) */
.bx-site .bx-main .bx-bg-navy :is(h1, h2, h3, h4, h5, h6),
.bx-site .bx-main .bx-hero :is(h1, h2, h3, h4, h5, h6),
.bx-site .bx-main .bx-on-dark :is(h1, h2, h3, h4, h5, h6),
.bx-site .bx-footer .bx-footer__title { color: #fff; }
.bx-site .bx-footer .bx-sede h3 { color: var(--bx-yellow); }
.bx-site .bx-person .bx-avatar { color: var(--bx-yellow); font-size: 1.35rem; text-transform: none; }
/* Reset bottoni del tema contro gli stili globali Elementor/Hello */
.bx-site .bx-header .bx-burger { display: none; box-sizing: border-box; width: 46px !important; height: 46px !important; min-height: 0; padding: 0 !important; margin: 0 0 0 auto; border: 0 !important; border-radius: 12px !important; background: var(--bx-navy) !important; position: relative; flex: none; box-shadow: none; }
@media (max-width: 1080px) { .bx-site .bx-header .bx-burger { display: block; } }
.bx-site .bx-sub-toggle { padding: 0 !important; border: 0 !important; background: transparent; min-height: 0; line-height: 1; box-shadow: none; }
.bx-site .bx-mnav .bx-sub-toggle { background: var(--bx-lav) !important; border-radius: 10px !important; }
.bx-site .bx-topbar .bx-copy { padding: 0 !important; border: 0 !important; border-bottom: 1px dashed currentColor !important; border-radius: 0 !important; background: none !important; font-size: inherit; line-height: inherit; color: var(--bx-yellow) !important; }
.bx-site .bx-5x1000 .bx-copy { border: 2px solid var(--bx-navy) !important; }
@media (max-width: 781px) {
	.bx-site .bx-split > .wp-block-column:has(.wp-block-image) { order: 0; }
	.bx-site .bx-section .bx-split > .wp-block-column:has(.wp-block-image) { order: -1; }
	.bx-site .bx-hero .wp-block-column:has(.wp-block-image) { display: none; }
	.bx-site .bx-page-hero .bx-split > .wp-block-column:has(.wp-block-image) { display: none; }
}
.bx-site .bx-prose .wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
.bx-site .bx-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
.bx-mnav { padding-top: calc(var(--bx-header-h) + 76px); }
.bx-site .bx-map--consent { background: var(--bx-lav) linear-gradient(135deg, rgba(77,106,214,.08), rgba(255,221,71,.15)); border-radius: var(--bx-radius); min-height: 300px; display: grid; place-items: center; padding: 28px; text-align: center; box-sizing: border-box; }
.bx-site .bx-map__ph p { font-size: .9rem; color: var(--bx-muted); max-width: 420px; margin: 0 auto 16px; }
.bx-site .bx-map__open { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9rem; }
.bx-site .bx-legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem) !important; margin-top: 1.8em; }
.bx-site .bx-legal h3 { font-size: 1.1rem !important; margin-top: 1.4em; }

/* ==========================================================================
   13. Restyling v2 – leggibilità, animazioni, hero dinamica, contatti
   ========================================================================== */
:root { --bx-text: #2b2f3a; --bx-muted: #4a5068; }
.bx-site .bx-eyebrow { display: none !important; }
.bx-site .bx-main p { color: inherit; }
.bx-site .bx-card p, .bx-site .bx-card li { color: var(--bx-text); }
.bx-site .bx-note { color: var(--bx-muted) !important; }

/* Titoli: niente spezzature a metà parola */
.bx-site .bx-main :is(h1, h2, h3, h4) { overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }

/* Card con link: freccia in alto a destra, testo leggibile */
.bx-site .bx-card--link { padding-right: 56px; }
.bx-site .bx-card--link h3 { font-size: 1.15rem !important; line-height: 1.3; }
.bx-site .bx-card--link h3 a::before { content: none; }
.bx-site .bx-card--link::after {
	content: "→"; position: absolute; top: 22px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: var(--bx-navy); font-weight: 700; line-height: 1;
	box-shadow: var(--bx-shadow); transition: transform .25s, background .25s;
}
.bx-site .bx-card--link:hover::after { transform: translateX(4px); background: var(--bx-yellow); }
.bx-site .bx-card--soft { background: var(--bx-lav); border: 1px solid var(--bx-line); }
.bx-site .bx-card--soft p { color: var(--bx-text) !important; font-size: .95rem; }
.bx-grid--2:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Rivelazione allo scroll */
.bx-will-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.bx-will-reveal.is-in { opacity: 1; transform: none; }
.bx-site .bx-card, .bx-site .bx-media img { will-change: auto; }
.bx-site .bx-media { overflow: hidden; border-radius: var(--bx-radius); }
.bx-site .bx-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bx-site .bx-media:hover img { transform: scale(1.04); }
.bx-site .bx-media--zoom:hover img { transform: scale(1.18); }
.bx-site .bx-card:not(.bx-card--post):hover { transform: translateY(-4px); box-shadow: var(--bx-shadow-lg); }

/* Parole del titolo */
.bx-words .bx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.bx-words .bx-w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 55ms + 120ms); }
.bx-loaded .bx-words .bx-w > span { transform: none; }

/* Elementi hero in ingresso */
.bx-site .bx-hero .bx-lead, .bx-site .bx-hero .wp-block-buttons, .bx-site .bx-kpis, .bx-site .bx-page-hero .bx-lead, .bx-site .bx-page-hero .bx-toc {
	opacity: 0; transform: translateY(16px); transition: opacity .8s ease .5s, transform .8s ease .5s;
}
.bx-site .bx-hero .wp-block-buttons { transition-delay: .65s; }
.bx-site .bx-kpis { transition-delay: .8s; }
.bx-loaded .bx-hero .bx-lead, .bx-loaded .bx-hero .wp-block-buttons, .bx-loaded .bx-kpis, .bx-loaded .bx-page-hero .bx-lead, .bx-loaded .bx-page-hero .bx-toc { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bx-site .bx-hero .bx-lead, .bx-site .bx-hero .wp-block-buttons, .bx-site .bx-kpis, .bx-site .bx-page-hero .bx-lead, .bx-site .bx-page-hero .bx-toc, .bx-will-reveal { opacity: 1 !important; transform: none !important; } }

/* --- HERO HOME --- */
.bx-hero { isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.bx-hero::before, .bx-hero::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; border: 0;
}
.bx-hero::before { width: 520px; height: 520px; background: #4D6AD6; opacity: .55; top: -180px; right: 8%; animation: bx-drift 16s ease-in-out infinite alternate; }
.bx-hero::after { width: 380px; height: 380px; background: #FFDD47; opacity: .22; bottom: -200px; left: 10%; right: auto; animation: bx-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes bx-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }
.bx-site .bx-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.1rem) !important; letter-spacing: -.025em; margin-bottom: .45em; }
.bx-site .bx-hero h1 .bx-hl { position: relative; color: var(--bx-yellow); white-space: nowrap; }
.bx-site .bx-hero .bx-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: #e6eaff; max-width: 540px; }

.bx-site .bx-kpis { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px !important; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.bx-site .bx-kpis > * { margin: 0 !important; }
.bx-site .bx-kpi__n { font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem)/1 var(--bx-ff-head) !important; color: #fff; margin: 0 0 6px !important; }
.bx-site .bx-kpi__l { font-size: .88rem !important; color: #c7d0f3 !important; margin: 0 !important; line-height: 1.35; max-width: 130px; }

.bx-site .bx-collage { position: relative; min-height: 520px; --px: 0px; --py: 0px; }
.bx-site .bx-collage > * { margin: 0 !important; }
.bx-site .bx-collage .bx-collage__main { position: absolute; inset: 0 0 60px 50px; border-radius: 36px 36px 36px 120px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: translate(calc(var(--px) * -1), calc(var(--py) * -1)); transition: transform .4s ease-out; animation: bx-in-scale 1.1s cubic-bezier(.2,.8,.2,1) both .2s; }
.bx-site .bx-collage .bx-collage__main img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; aspect-ratio: auto !important; }
.bx-site .bx-collage .bx-collage__sub { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: 24px; overflow: hidden; border: 6px solid var(--bx-navy); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); transform: translate(var(--px), var(--py)) rotate(-4deg); transition: transform .4s ease-out; animation: bx-in-up 1s cubic-bezier(.2,.8,.2,1) both .55s; }
.bx-site .bx-collage .bx-collage__sub img { width: 100%; aspect-ratio: 4 / 3 !important; object-fit: cover; transform: scale(1.14); border-radius: 0 !important; box-shadow: none !important; }
.bx-site .bx-chip {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--bx-navy) !important;
	padding: 12px 18px 12px 12px; border-radius: 999px; font: 600 .9rem/1.2 var(--bx-ff-head); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); white-space: nowrap;
}
.bx-site .bx-chip::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bx-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23001854' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 5 6.4 5c2 0 3.3 1 4.1 2.2h3C14.3 6 15.6 5 17.6 5 21 5 23.1 8.4 21.6 11.8 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bx-site .bx-chip--2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23001854' stroke-width='2' d='M12 2a10 10 0 100 20 10 10 0 000-20zM2 12h20M12 2c3 3.5 3 16.5 0 20M12 2c-3 3.5-3 16.5 0 20'/%3E%3C/svg%3E"); }
.bx-site .bx-chip--1 { top: 34px; left: 0; animation: bx-in-up .9s cubic-bezier(.2,.8,.2,1) both .9s, bx-float 6s ease-in-out 2s infinite; }
.bx-site .bx-chip--2 { right: -14px; bottom: 120px; animation: bx-in-up .9s cubic-bezier(.2,.8,.2,1) both 1.1s, bx-float 7s ease-in-out 2.4s infinite reverse; }
@keyframes bx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bx-in-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes bx-in-scale { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .bx-hero::before, .bx-hero::after, .bx-site .bx-chip, .bx-site .bx-collage > * { animation: none !important; } }
@media (max-width: 1080px) { .bx-site .bx-collage { min-height: 440px; } }
@media (max-width: 781px) {
	.bx-site .bx-hero .wp-block-column:has(.bx-collage) { display: block !important; order: 2; }
	.bx-site .bx-collage { min-height: 360px; margin-top: 8px !important; }
	.bx-site .bx-collage .bx-collage__main { inset: 0 0 40px 30px; }
	.bx-site .bx-chip { font-size: .8rem; padding: 9px 14px 9px 9px; }
	.bx-site .bx-chip::before { width: 24px; height: 24px; background-size: 13px; }
	.bx-site .bx-chip--2 { right: 0; bottom: 70px; }
	.bx-site .bx-kpis { gap: 14px 22px; }
	.bx-site .bx-kpi__l { max-width: 100px; }
}

/* --- HERO PAGINE INTERNE: forme in movimento --- */
.bx-page-hero::after { animation: bx-drift 18s ease-in-out infinite alternate; filter: blur(30px); opacity: .45; }
.bx-page-hero::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: var(--bx-blue); opacity: .12; filter: blur(40px); animation: bx-drift 22s ease-in-out infinite alternate-reverse; pointer-events: none; }
@media (max-width: 700px) { .bx-page-hero::after { width: 200px; height: 200px; right: -90px; top: -40px; } }

/* --- CONTATTI: tutto in una schermata --- */
.bx-site .bx-contact { padding-block: clamp(28px, 3.5vw, 44px) !important; min-height: calc(100svh - var(--bx-header-h) - 40px); display: flex; align-items: center; background: linear-gradient(180deg, var(--bx-lav) 0%, #fff 70%); margin-top: -22px !important; padding-top: calc(clamp(28px, 3.5vw, 44px) + 22px) !important; box-sizing: border-box; }
.bx-site .bx-contact > .bx-wrap { width: 100%; }
.bx-site .bx-contact .wp-block-columns { gap: clamp(24px, 3.5vw, 48px); align-items: stretch !important; }
.bx-site .bx-contact h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem) !important; margin-bottom: .25em; }
.bx-site .bx-contact .bx-lead { font-size: 1rem; margin-bottom: 18px !important; }
.bx-site .bx-contact .bx-card { padding: 22px 24px; }
.bx-site .bx-contact .wpcf7 form { gap: 10px; }
.bx-site .bx-contact .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select) { padding: 11px 14px; margin-top: 4px; }
.bx-site .bx-contact .wpcf7 textarea { min-height: 96px; height: 96px; padding: 11px 14px; }
.bx-site .bx-contact .wpcf7 label { font-size: .85rem; }
.bx-site .bx-contact h2 { font-size: 1.25rem !important; margin-bottom: 12px; }
.bx-site .bx-sedi-mini:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bx-site .bx-sedi-mini > * { margin: 0 !important; }
.bx-site .bx-sede-mini { background: #fff; border: 1px solid var(--bx-line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,24,84,.05); transition: border-color .2s, box-shadow .2s, transform .2s; }
.bx-site .bx-sede-mini:hover { border-color: var(--bx-blue); box-shadow: var(--bx-shadow); transform: translateY(-2px); }
.bx-site .bx-sede-mini h3 { font-size: .98rem !important; margin: 0 0 2px !important; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bx-site .bx-sede-mini h3 small { font: 600 .66rem/1 var(--bx-ff-head); letter-spacing: .08em; text-transform: uppercase; color: var(--bx-blue); }
.bx-site .bx-sede-mini p { font-size: .8rem !important; line-height: 1.5 !important; margin: 0 !important; color: var(--bx-text); }
.bx-site .bx-sede-mini a { text-decoration: none; overflow-wrap: anywhere; }
.bx-site .bx-sede-mini a:hover { text-decoration: underline; }
.bx-site .bx-contact .bx-map-link { font-size: .85rem !important; margin: 12px 0 0 !important; }
@media (max-width: 781px) { .bx-site .bx-contact { min-height: 0; } }
@media (max-width: 480px) { .bx-site .bx-sedi-mini:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; } }

/* --- Responsive generali --- */
@media (max-width: 1180px) and (min-width: 1081px) { .bx-site .bx-nav__list > li > a { font-size: .86rem; padding: 10px 7px; } }
@media (max-width: 781px) {
	.bx-site .wp-block-columns { gap: 28px; }
	.bx-section { padding-block: 52px; }
	.bx-site .bx-head { margin-bottom: 24px; }
	.bx-site .bx-cta-band .bx-wrap { flex-direction: column; align-items: flex-start; }
	.bx-site .bx-card--link { padding: 20px 52px 20px 20px; }
	.bx-site .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.bx-site .wp-block-buttons .wp-block-button { width: 100%; }
	.bx-site .wp-block-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
	.bx-site .bx-cta-band .wp-block-buttons { width: 100%; }
	.bx-site .bx-statement { font-size: 1.15rem !important; }
	.bx-site .wp-block-table table { font-size: .88rem; }
	.bx-site .bx-postnav a { font-size: .9rem; }
}
@media (max-width: 1080px) and (min-width: 782px) {
	.bx-site .bx-split { flex-wrap: wrap !important; }
	.bx-site .bx-grid--5:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(3, 1fr); }
}
.bx-site .bx-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.55); }
.bx-site .bx-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--bx-navy); border-color: #fff; }
.bx-site .bx-card--link { padding: 24px 24px 26px !important; }
.bx-site .bx-card--link h3 { padding-right: 40px; }
.bx-site .bx-card--link::after { top: 20px; right: 18px; }
.bx-site .bx-split:has(.bx-grid--2) > .wp-block-column:last-child { flex-basis: 58% !important; }
.bx-site .bx-split:has(.bx-grid--2) > .wp-block-column:first-child { flex-basis: 42% !important; }
@media (max-width: 781px) { .bx-site .bx-split:has(.bx-grid--2) > .wp-block-column { flex-basis: 100% !important; } }
.bx-site .bx-sede-mini p { font-size: .84rem !important; }
.bx-site .bx-sede-mini h3 { font-size: 1rem !important; }
.bx-site .bx-contact .wp-block-columns > .wp-block-column:last-child { align-self: center; }
.bx-site .bx-hero h1 .bx-hl { white-space: normal; }
@media (max-width: 1080px) {
	.bx-site .bx-hero .bx-hero__cols { flex-wrap: wrap !important; }
	.bx-site .bx-hero .bx-hero__cols > .wp-block-column { flex-basis: 100% !important; }
	.bx-site .bx-hero .bx-collage { max-width: 560px; margin-inline: auto !important; }
	.bx-site .bx-hero .bx-lead { max-width: 640px; }
}

/* ==========================================================================
   14. Pagine lunghe: sotto-navigazione, sintesi, timeline, tabelle costi
   ========================================================================== */
html { scroll-padding-top: calc(var(--bx-header-h) + 90px); }
.bx-site .bx-subnav { position: sticky; top: var(--bx-hh, 84px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bx-line); margin: 0 !important; }
.bx-site .bx-subnav .bx-wrap { padding-block: 0; }
.bx-site .bx-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.bx-site .bx-subnav ul::-webkit-scrollbar { display: none; }
.bx-site .bx-subnav li { margin: 0; flex: none; scroll-snap-align: start; }
.bx-site .bx-subnav li::marker { content: none; }
.bx-site .bx-subnav a { display: block; padding: 16px 14px 14px; font: 600 .9rem/1.2 var(--bx-ff-head); color: var(--bx-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.bx-site .bx-subnav a:hover { color: var(--bx-navy); }
.bx-site .bx-subnav a.is-active { color: var(--bx-navy); border-bottom-color: var(--bx-yellow); }
.bx-subnav__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--bx-blue); transform-origin: 0 50%; transform: scaleX(0); opacity: .35; pointer-events: none; }

.bx-totop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50% !important; border: 0 !important; padding: 0 !important; background: var(--bx-navy) !important; color: #fff !important; display: grid; place-items: center; cursor: pointer; box-shadow: var(--bx-shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.bx-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bx-totop:hover { background: var(--bx-blue) !important; }

/* Sintesi "in breve" */
.bx-site .bx-facts:not(:has(> .wp-block-group__inner-container)) { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.bx-site .bx-facts > * { margin: 0 !important; }
.bx-site .bx-fact { display: flex; flex-direction: column; border-top: 4px solid var(--bx-yellow); }
.bx-site .bx-fact h3 { font-size: 1.12rem !important; margin-bottom: .5em; }
.bx-site .bx-fact p { font-size: .96rem; }
.bx-site .bx-fact .bx-fact__more { margin-top: auto !important; padding-top: 6px; font: 600 .9rem/1.2 var(--bx-ff-head); }
.bx-site .bx-fact .bx-fact__more a { text-decoration: none; color: var(--bx-navy); }
.bx-site .bx-fact .bx-fact__more a::after { content: " →"; color: var(--bx-blue); }
.bx-site .bx-fact .bx-fact__more a:hover { color: var(--bx-blue); }

/* Timeline del percorso */
.bx-site .bx-timeline { position: relative; display: grid; gap: 28px; }
.bx-site .bx-timeline > * { margin: 0 !important; }
.bx-site .bx-timeline::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(to bottom, var(--bx-blue) 0 6px, transparent 6px 12px); opacity: .5; }
.bx-site .bx-step { position: relative; padding-left: 84px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.bx-site .bx-step:hover { transform: none !important; }
.bx-site .bx-step > .bx-step__n { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--bx-navy); color: var(--bx-yellow); display: grid; place-items: center; font: 700 1.4rem/1 var(--bx-ff-head) !important; margin: 0 !important; box-shadow: 0 0 0 8px var(--bx-lav); }
.bx-site .bx-step__card { background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-radius); padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--bx-shadow); }
.bx-site .bx-step__card > :last-child { margin-bottom: 0; }
.bx-site .bx-step__tag { display: inline-block; font: 600 .78rem/1 var(--bx-ff-head) !important; background: var(--bx-yellow); color: var(--bx-navy); padding: 7px 12px; border-radius: 999px; margin: 0 0 12px !important; }
.bx-site .bx-step__card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem) !important; margin-bottom: .4em; }
.bx-site .bx-step__sum { font-size: 1.05rem; color: var(--bx-ink) !important; font-weight: 500; }
.bx-site .bx-step ol { counter-reset: st; list-style: none; padding: 0 !important; margin: 18px 0 !important; display: grid; gap: 12px; }
.bx-site .bx-step ol > li { counter-increment: st; position: relative; padding: 0 0 0 40px; margin: 0; line-height: 1.6; }
.bx-site .bx-step ol > li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px; background: var(--bx-lav); color: var(--bx-navy); font: 700 .8rem/26px var(--bx-ff-head); text-align: center; }
.bx-site .bx-step h4 { margin-top: 26px; font-size: 1.1rem !important; }
.bx-site .bx-step .wp-block-details { margin-top: 12px; background: var(--bx-lav); border-color: transparent; }
.bx-site .bx-step .wp-block-details[open] { background: #fff; border-color: var(--bx-line); }
@media (max-width: 640px) {
	.bx-site .bx-timeline::before { left: 19px; }
	.bx-site .bx-step { padding-left: 0 !important; }
	.bx-site .bx-step > .bx-step__n { position: relative; width: 40px; height: 40px; font-size: 1.05rem !important; margin: 0 0 -20px 18px !important; z-index: 1; box-shadow: 0 0 0 6px var(--bx-lav); }
	.bx-site .bx-step__card { padding-top: 32px; }
	.bx-site .bx-timeline::before { display: none; }
}

/* Riepilogo costi */
.bx-site .bx-costs table td:nth-child(2) { font-family: var(--bx-ff-head); font-weight: 700; color: var(--bx-navy); white-space: nowrap; }
.bx-site .bx-costs table { background: #fff; }
.bx-site .bx-costs table td:first-child { font-weight: 600; color: var(--bx-ink); }
@media (max-width: 640px) {
	.bx-site .bx-costs table, .bx-site .bx-costs tbody, .bx-site .bx-costs tr, .bx-site .bx-costs td { display: block; width: 100%; box-sizing: border-box; }
	.bx-site .bx-costs thead { display: none; }
	.bx-site .bx-costs tr { border-bottom: 1px solid var(--bx-line); padding: 10px 0; }
	.bx-site .bx-costs td { border: 0 !important; padding: 2px 16px !important; }
}

/* Testo lungo con sintesi laterale fissa */
.bx-site .bx-readcols { align-items: flex-start !important; }
.bx-site .bx-aside { position: sticky; top: calc(var(--bx-hh, 84px) + 76px); }
.bx-site .bx-aside h3 { font-size: 1.1rem !important; }
.bx-site .bx-aside ul { padding-left: 1.1em; margin: 0; }
.bx-site .bx-aside li { font-size: .95rem; margin-bottom: .6em; }
.bx-site .bx-longtext { font-size: 1.04rem; }
.bx-site .bx-longtext p { line-height: 1.8; max-width: 68ch; }
.bx-site .bx-longtext h3 { margin-top: 1.6em; font-size: 1.25rem !important; }
.bx-site .bx-longtext h3:first-child { margin-top: 0; }
@media (max-width: 781px) { .bx-site .bx-aside { position: static; } }
.bx-site .bx-content > .bx-subnav { max-width: none !important; padding-inline: 0 !important; }
.bx-site .bx-subnav .bx-wrap { position: relative; }
@media (max-width: 781px) { .bx-site .bx-subnav a { padding: 14px 10px 12px; font-size: .85rem; } }

/* ==========================================================================
   15. Fix overflow orizzontale header (1081–1600px)
   ========================================================================== */
html, body.bx-site { overflow-x: clip; max-width: 100%; }
.bx-header__in { flex-wrap: nowrap; min-width: 0; }
.bx-nav { min-width: 0; }
.bx-site .bx-nav__list { flex-wrap: nowrap; }
.bx-site .bx-nav__list > li > a { padding: 10px 10px; font-size: .93rem; }
@media (max-width: 1500px) { .bx-site .bx-header__cta { display: none !important; } }
@media (max-width: 1240px) {
	.bx-site .bx-nav { display: none; }
	.bx-site .bx-header .bx-burger { display: block; }
}
@media (max-width: 1240px) and (min-width: 1081px) { .bx-menu-open .bx-header { z-index: 101; } }

/* ==========================================================================
   16. Tablet (782–1080px): colonne impilate ordinate e immagini contenute
   ========================================================================== */
@media (max-width: 1080px) {
	.bx-site .bx-split, .bx-site .bx-readcols { flex-wrap: wrap !important; }
	.bx-site .bx-split > .wp-block-column, .bx-site .bx-readcols > .wp-block-column { flex-basis: 100% !important; width: 100%; }
	.bx-site .bx-section .bx-split > .wp-block-column:has(.wp-block-image) { order: -1; }
	.bx-site .bx-section .bx-split .wp-block-image.bx-media { max-width: 640px; margin-inline: auto !important; }
	.bx-site .bx-section .bx-split .wp-block-image.bx-media img { max-height: 420px; object-fit: cover; }
	/* sezione Paesi: prima il testo, poi la mappa a tutta larghezza */
	.bx-site .bx-bg-navy .bx-split > .wp-block-column:has(.wp-block-image) { order: 2; }
	.bx-site .bx-bg-navy .bx-split .wp-block-image.bx-media { max-width: 720px; }
	.bx-site .bx-bg-navy .bx-split .wp-block-image.bx-media img { max-height: none; object-fit: contain; }
	.bx-site .bx-aside { position: static; }
	.bx-site .bx-contact { min-height: 0; }
	.bx-site .bx-contact .wp-block-columns { flex-wrap: wrap !important; }
	.bx-site .bx-contact .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.bx-site .bx-grid--4:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, 1fr); }
	.bx-site .bx-facts:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, 1fr); }
	.bx-site .bx-section { padding-block: clamp(48px, 7vw, 72px); }
	.bx-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.bx-site .bx-grid--4:not(:has(> .wp-block-group__inner-container)), .bx-site .bx-facts:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
}
/* Mappa: niente zoom/ombra, si adatta al contenitore */
.bx-site .bx-bg-navy .wp-block-image.bx-media { overflow: visible; border-radius: 0; }
.bx-site .bx-bg-navy .wp-block-image.bx-media img { transform: none !important; border-radius: 0 !important; box-shadow: none !important; width: 100%; height: auto; }

/* Header adattivo (gestito da JS: nessuna sovrapposizione a nessuna larghezza / zoom) */
.bx-site .bx-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
@media (min-width: 1241px) { .bx-site .bx-header__cta { display: inline-flex !important; } }
.bx-hdr-nocta .bx-header__cta { display: none !important; }
.bx-hdr-compact .bx-nav { display: none !important; }
.bx-hdr-compact .bx-header .bx-burger { display: block !important; }
.bx-site .bx-header .bx-wrap, .bx-site .bx-topbar .bx-wrap { max-width: 1400px; }
.bx-site .bx-header__in { gap: 20px; }
