/*
Theme Name: Behide Divi Child
Description: Child theme Divi per Behide
Author: Behide
Template: Divi
Version: 1.0.2
*/

/* ------------------------------------------------------------------
   Social proof homepage (dopo prima sezione / hero)
   Aggiungere sempre nuove regole in coda, senza sovrascrivere sopra.
   ------------------------------------------------------------------ */

#social-proof.behide-social-proof {
	box-sizing: border-box;
	width: 100%;
	padding: 3rem 0;
	background-color: #f7f7f7;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#social-proof.behide-social-proof .behide-social-proof__inner {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

#social-proof.behide-social-proof .behide-social-proof__title {
	margin: 0 0 1.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #333;
}

#social-proof.behide-social-proof .behide-social-proof__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 2rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

#social-proof.behide-social-proof .behide-social-proof__logo-item {
	flex: 0 1 auto;
	min-width: 120px;
	text-align: center;
}

#social-proof.behide-social-proof .behide-social-proof__logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0.65rem 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.2;
	color: #666;
	background: #fff;
	border: 1px dashed #ccc;
	border-radius: 4px;
}

#social-proof.behide-social-proof .behide-social-proof__quotes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	#social-proof.behide-social-proof .behide-social-proof__quotes {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

#social-proof.behide-social-proof .behide-social-proof__quote {
	margin: 0;
	padding: 1.5rem 1.25rem;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#social-proof.behide-social-proof .behide-social-proof__quote p {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.55;
	font-style: italic;
	color: #444;
}

#social-proof.behide-social-proof .behide-social-proof__quote footer {
	font-size: 0.9rem;
	line-height: 1.45;
	color: #555;
}

#social-proof.behide-social-proof .behide-social-proof__quote-name {
	font-weight: 600;
	font-style: normal;
	color: #222;
}

#social-proof.behide-social-proof .behide-social-proof__quote-meta {
	display: block;
	font-size: 0.85rem;
	color: #666;
}

/* ------------------------------------------------------------------
   CTA Calendly “Prenota una call gratuita” (pagine servizio)
   Stile distinto dal bottone blu “Contattami” Divi: metà = arancio/outline,
   fondo = barra scura + bottone chiaro.
   ------------------------------------------------------------------ */

#cta-call-gratuita-mid.behide-calendly-cta--mid {
	box-sizing: border-box;
	width: 100%;
	margin: 2rem 0;
	padding: 1.75rem 1.25rem;
	background: #fffaf5;
	border: 1px solid #f0e0d0;
	border-left: 4px solid #e67e22;
	border-radius: 0 6px 6px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 8px;
	text-align: center;
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__text {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #444;
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__actions {
	margin: 0;
	padding: 0;
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: #c45c00;
	background: transparent;
	border: 2px solid #e67e22;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__button:hover,
#cta-call-gratuita-mid.behide-calendly-cta--mid .behide-calendly-cta__button:focus {
	color: #fff;
	background: #e67e22;
	border-color: #d35400;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer {
	box-sizing: border-box;
	width: 100%;
	margin-top: 2.5rem;
	padding: 2.25rem 0 2.75rem;
	background: #1e293b;
	color: #f1f5f9;
	border-top: 3px solid #e67e22;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__title {
	margin: 0 0 0.65rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__text {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #cbd5e1;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__actions {
	margin: 0;
	padding: 0;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__button {
	display: inline-block;
	padding: 0.9rem 1.85rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: #1e293b;
	background: #fef3c7;
	border: 2px solid #fde68a;
	border-radius: 4px;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__button:hover,
#cta-call-gratuita-footer.behide-calendly-cta--footer .behide-calendly-cta__button:focus {
	transform: translateY(-2px);
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	color: #0f172a;
}

/* ------------------------------------------------------------------
   Case study (pagina Riferimenti)
   ------------------------------------------------------------------ */

#case-study.behide-case-study {
	box-sizing: border-box;
	width: 100%;
	margin-top: 2.5rem;
	padding: 2.5rem 0;
	background-color: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#case-study.behide-case-study .behide-case-study__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

#case-study.behide-case-study .behide-case-study__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #222;
}

#case-study.behide-case-study .behide-case-study__intro {
	margin: 0 0 1.75rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #555;
	max-width: 42em;
}

#case-study.behide-case-study .behide-case-study__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	#case-study.behide-case-study .behide-case-study__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
}

#case-study.behide-case-study .behide-case-study__card {
	margin: 0;
	padding: 1.25rem 1.15rem;
	background: #f7f9fc;
	border-radius: 6px;
	border-left: 4px solid #0054ff;
}

#case-study.behide-case-study .behide-case-study__card-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111;
}

#case-study.behide-case-study .behide-case-study__card p {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #444;
}

#case-study.behide-case-study .behide-case-study__card p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Lead magnet homepage + form CF7
   ------------------------------------------------------------------ */

#lead-magnet.behide-lead-magnet {
	box-sizing: border-box;
	width: 100%;
	margin-top: 2.5rem;
	padding: 2.5rem 0;
	background-color: #f0f4ff;
	border-top: 1px solid rgba(0, 84, 255, 0.12);
}

#lead-magnet.behide-lead-magnet .behide-lead-magnet__inner {
	max-width: 520px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

#lead-magnet.behide-lead-magnet .behide-lead-magnet__title {
	margin: 0 0 0.65rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1a1a;
}

#lead-magnet.behide-lead-magnet .behide-lead-magnet__text {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #444;
	text-align: left;
}

#lead-magnet.behide-lead-magnet .behide-lead-magnet__form-wrap {
	text-align: left;
}

#lead-magnet.behide-lead-magnet .wpcf7 form {
	margin: 0;
}

#lead-magnet.behide-lead-magnet .wpcf7 label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
}

#lead-magnet.behide-lead-magnet .wpcf7 input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	margin-bottom: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

#lead-magnet.behide-lead-magnet .wpcf7 input[type="submit"] {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background-color: #0054ff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#lead-magnet.behide-lead-magnet .wpcf7 input[type="submit"]:hover {
	background-color: #003fcc;
}

/* Privacy sotto form lead magnet */
.behide-lead-magnet__privacy {
	margin: 0.85rem 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #555;
}

.behide-lead-magnet__privacy a {
	text-decoration: underline;
	color: #003fcc;
}

.behide-lead-magnet--checklist .behide-lead-magnet__text {
	font-weight: 600;
	color: #1e293b;
}

/* ------------------------------------------------------------------
   Intro servizi (placeholder testo lungo)
   ------------------------------------------------------------------ */

.behide-service-intro {
	max-width: 900px;
	margin: 0 auto 1.75rem;
	padding: 1.25rem 1.25rem;
	background: #ffffff;
	border-left: 4px solid #0054ff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.behide-service-intro p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
}

.behide-service-h1 {
	margin-top: 0;
}

/* ------------------------------------------------------------------
   Hero homepage — placeholder foto (.hero-photo) e sottotitolo
   ------------------------------------------------------------------ */

.home .et_pb_fullwidth_header .hero-photo {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 340px;
	min-height: 260px;
	margin: 0 auto 1.25rem;
	background-color: rgba(255, 255, 255, 0.12);
	border: 2px dashed rgba(255, 255, 255, 0.45);
	border-radius: 10px;
}

.home .et_pb_fullwidth_header .hero-subtitle {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.55;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	text-align: left;
}

@media (min-width: 981px) {
	.home .et_pb_fullwidth_header .hero-photo {
		max-width: 380px;
		min-height: 300px;
	}
}

/* ------------------------------------------------------------------
   Pagina Risultati — case study (HTML editor / Divi testo)
   ------------------------------------------------------------------ */

.behide-page-risultati {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.behide-page-risultati__intro {
	margin-bottom: 2rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #333;
}

.behide-case-study-block {
	margin: 0 0 2.5rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.behide-case-study-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.behide-case-study-block h2 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #111;
}

.behide-case-study-block h3 {
	margin: 1.25rem 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #0054ff;
}

.behide-case-study-block p {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
}

.behide-case-study-block .behide-placeholder {
	background: #fffbeb;
	box-decoration-break: clone;
	padding: 0.1em 0.25em;
	border-radius: 3px;
	outline: 1px dashed #d4a574;
	color: #5c4a35;
}

/* ------------------------------------------------------------------
   CTA Call (Divi) — stile form CF7 su sfondo scuro (#1a1a2e)
   ------------------------------------------------------------------ */

.et_pb_section[style*="#1a1a2e"] .wpcf7 {
	color: #fff;
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 input[type="text"],
.et_pb_section[style*="#1a1a2e"] .wpcf7 input[type="email"],
.et_pb_section[style*="#1a1a2e"] .wpcf7 input[type="tel"],
.et_pb_section[style*="#1a1a2e"] .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.25rem;
	margin-bottom: 0.9rem;
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	color: #111;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 textarea {
	min-height: 120px;
	resize: vertical;
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 input[type="submit"] {
	display: inline-block;
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1a1a2e;
	background: #fef3c7;
	border: 2px solid #fde68a;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 input[type="submit"]:hover {
	transform: translateY(-1px);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.et_pb_section[style*="#1a1a2e"] .wpcf7 .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.85rem 0.9rem;
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------------
   UI/UX refresh — Corporate Tech + Accessibilità (Innovation Lab)
   Regole: contrasto (bianco su scuro / antracite su chiaro),
   tipografia (H1 800, paragrafi lh 1.6), palette (off-white),
   CTA più solidi (radius 8px + hover fluido).
   ------------------------------------------------------------------ */

:root {
	--behide-brand-blue: #0054ff;
	--behide-offwhite: #f9fafb;
	--behide-text-dark: #1a1a1a;
	--behide-text-light: #ffffff;
	--behide-radius: 8px;
	--behide-ease: 180ms ease;
}

/* Tipografia “Corporate Tech” (fallback senza import esterni) */
html,
body {
	font-family:
		Inter,
		Geist,
		ui-sans-serif,
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		"Noto Sans",
		"Apple Color Emoji",
		"Segoe UI Emoji";
	color: var(--behide-text-dark);
}

body,
.et_pb_text p,
.et_pb_module p {
	line-height: 1.6;
}

h1,
.et_pb_text h1,
.et_pb_module h1 {
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Superficie off-white per separare sezioni */
.et_pb_section,
.et_pb_row {
	--behide-surface: var(--behide-offwhite);
}

.et_pb_section[style*="background-color: #f9fafb"],
.et_pb_section[style*="background-color:#f9fafb"],
.et_pb_section[style*="background_color=\"#f9fafb\""] {
	background-color: var(--behide-offwhite) !important;
}

/* Contrasto: evita grigi su sfondi blu/scuri */
.et_pb_section[style*="#0054ff"],
.et_pb_section[style*="#1a1a2e"],
.et_pb_section[style*="#1e293b"] {
	color: var(--behide-text-light);
}

.et_pb_section[style*="#0054ff"] .et_pb_text,
.et_pb_section[style*="#0054ff"] .et_pb_text p,
.et_pb_section[style*="#0054ff"] .et_pb_text h1,
.et_pb_section[style*="#0054ff"] .et_pb_text h2,
.et_pb_section[style*="#0054ff"] .et_pb_text h3,
.et_pb_section[style*="#1a1a2e"] .et_pb_text,
.et_pb_section[style*="#1a1a2e"] .et_pb_text p,
.et_pb_section[style*="#1a1a2e"] .et_pb_text h1,
.et_pb_section[style*="#1a1a2e"] .et_pb_text h2,
.et_pb_section[style*="#1a1a2e"] .et_pb_text h3,
.et_pb_section[style*="#1e293b"] .et_pb_text,
.et_pb_section[style*="#1e293b"] .et_pb_text p,
.et_pb_section[style*="#1e293b"] .et_pb_text h1,
.et_pb_section[style*="#1e293b"] .et_pb_text h2,
.et_pb_section[style*="#1e293b"] .et_pb_text h3 {
	color: var(--behide-text-light) !important;
}

/* Sfondi chiari: testo antracite scuro */
.et_pb_section:not([style*="#0054ff"]):not([style*="#1a1a2e"]):not([style*="#1e293b"]) .et_pb_text,
.et_pb_section:not([style*="#0054ff"]):not([style*="#1a1a2e"]):not([style*="#1e293b"]) .et_pb_text p {
	color: var(--behide-text-dark);
}

/* Bottoni Divi (CTA) più solidi + radius 8px + hover fluido */
.et_pb_button,
.et_pb_module .et_pb_button {
	border-radius: var(--behide-radius) !important;
	transition:
		transform var(--behide-ease),
		filter var(--behide-ease),
		box-shadow var(--behide-ease),
		background-color var(--behide-ease),
		color var(--behide-ease),
		border-color var(--behide-ease);
}

.et_pb_button:hover,
.et_pb_button:focus {
	transform: translateY(-1px);
	filter: brightness(1.03);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* CTA primarie su sfondi scuri: bianco puro */
.et_pb_section[style*="#0054ff"] .et_pb_button,
.et_pb_section[style*="#1a1a2e"] .et_pb_button,
.et_pb_section[style*="#1e293b"] .et_pb_button {
	color: #ffffff !important;
}

/* Header / Navigation: sticky + blur moderno */
#main-header,
.et_fixed_nav #main-header {
	/* Glassmorphism + sticky istituzionale */
	position: sticky !important;
	top: 0 !important;
	z-index: 100050 !important;
	background-color: rgba(255, 255, 255, 0.72) !important;
	-webkit-backdrop-filter: blur(16px) saturate(165%);
	backdrop-filter: blur(16px) saturate(165%);
	border-bottom: 1px solid rgba(212, 175, 55, 0.28);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
	overflow: visible !important;
}

#main-header .container.et_menu_container {
	overflow: visible !important;
}

#et-top-navigation,
#top-menu-nav {
	overflow: visible !important;
}

.et_fixed_nav #main-header .nav a,
.et_fixed_nav #main-header #top-menu a,
#main-header .nav a,
#main-header #top-menu a {
	color: var(--behide-text-dark) !important;
}

/* Menu istituzionale: Inter (stack Geist-ready), uppercase sobrio */
#main-header #top-menu > li > a,
#main-header #top-menu-nav #top-menu > li > a,
#main-header #et-top-navigation nav#top-menu-nav > ul#top-menu > li > a {
	font-family: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 12px;
}

/* Mega menu — L'Ecosistema (3 colonne partner) */
#main-header #top-menu > li {
	overflow: visible !important;
}

#main-header #top-menu > li.behide-mega-parent {
	position: relative;
	overflow: visible !important;
	white-space: normal !important;
}

/* Voce su una riga; il mega (discendente) non eredita nowrap dal resto del menu */
#main-header #top-menu > li.behide-mega-parent > a {
	white-space: nowrap !important;
}

/* Ponte hover solo larghezza voce (non tutta la larghezza mega → non ruba click alle voci vicine) */
#main-header #top-menu > li.behide-mega-parent::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 22px;
	z-index: 0;
	pointer-events: auto;
}

/*
 * Mega: nessun offset esterno sotto il <li> (buco = perdita :hover).
 * padding-top sul wrapper = spazio sotto la voce ancora dentro .behide-mega.
 */
#main-header .behide-mega {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	width: min(960px, calc(100vw - 32px));
	padding-top: 12px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 1000100;
	isolation: isolate;
}

#main-header #top-menu > li.behide-mega-parent:hover > .behide-mega,
#main-header #top-menu > li.behide-mega-parent:focus-within > .behide-mega,
#main-header #top-menu > li.behide-mega-parent.behide-mega--open > .behide-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#main-header .behide-mega__panel {
	background: #ffffff;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 12px;
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
	padding: 20px 18px 22px;
	overflow: hidden;
	max-height: none;
	min-width: 0;
}

/* Ripristina a capo nel mega (il <li> padre può ancora avere regole Divi / tema su white-space) */
#main-header .behide-mega,
#main-header .behide-mega * {
	white-space: normal !important;
}

#main-header .behide-mega__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	min-width: 0;
	align-items: start;
	justify-items: stretch;
}

@media (min-width: 981px) {
	#main-header .behide-mega__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 8px;
	}
}

#main-header .behide-mega__col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 4px 0 12px;
	border-left: 1px solid rgba(212, 175, 55, 0.25);
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

#main-header .behide-mega__col:first-child {
	border-left: 0;
	padding-left: 0;
}

#main-header .behide-mega__bu {
	margin: 0 0 6px;
	font-family: "Inter", "Geist", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #0f172a;
	max-width: 100%;
}

#main-header .behide-mega__partner {
	margin: 0 0 8px;
	font-family: "Inter", "Geist", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	max-width: 100%;
}

#main-header .behide-mega__uvp {
	margin: 0 0 12px;
	font-family: "Inter", "Geist", system-ui, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 500;
	color: #374151;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

#main-header .behide-mega__link {
	display: inline-block;
	align-self: flex-start;
	max-width: 100%;
	font-family: "Inter", "Geist", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0054ff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

#main-header .behide-mega__link:hover,
#main-header .behide-mega__link:focus {
	border-bottom-color: rgba(0, 84, 255, 0.35);
}

@media (max-width: 980px) {
	#main-header .behide-mega {
		display: none !important;
	}
}

/* Allineamento loghi “ecosistema” + separatore verticale.
   Variabili rapporto: header.php le imposta inline su .logo_container (default 1388×306 = logo wide attuale). */
#main-header .logo_container {
	--behide-logo-ar-w: 1388;
	--behide-logo-ar-h: 306;
	display: flex;
	align-items: center;
	gap: 14px;
	/* non usare min-width: 0 qui: nel flex riga comprime l’area logo e l’immagine si deforma su mobile */
	flex-shrink: 0;
}

#main-header .logo_container a {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	vertical-align: middle;
}

/* Con span (child theme): box con aspect-ratio fisso → img solo “contenuta”, niente stiramento in larghezza */
#main-header .logo_container a .behide-header-logo-frame {
	display: block;
	width: min(260px, 74vw);
	max-width: 100%;
	box-sizing: border-box;
	aspect-ratio: var(--behide-logo-ar-w) / var(--behide-logo-ar-h);
	flex-shrink: 0;
}

/* Img nel frame: mai width/height 100% (WebKit può stirare); il box ha già aspect-ratio */
#main-header .logo_container a .behide-header-logo-frame #logo {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: left center;
}

/* Img diretta sotto <a> (produzione): niente aspect-ratio sull’img (conflitti con attributi + JS Divi) */
#main-header .logo_container a > #logo {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: min(260px, 74vw) !important;
	max-height: 44px !important;
	object-fit: contain !important;
	object-position: left center;
}

@media (max-width: 980px) {
	#main-header .logo_container a .behide-header-logo-frame {
		width: min(220px, 80vw);
	}

	#main-header .logo_container a > #logo {
		max-width: min(220px, 82vw) !important;
		max-height: 40px !important;
	}
}

#main-header .behide-ecosystem-logos {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 14px;
	border-left: 1px solid rgba(229, 231, 235, 0.9); /* platino */
}

#main-header .behide-ecosystem-logos__unified {
	height: 26px;
	width: auto;
	display: block;
	opacity: 0.95;
}

#main-header .behide-ecosystem-logos__item {
	font-family: Inter, Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 11px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #111827;
	white-space: nowrap;
}

#main-header .behide-ecosystem-logos__sep {
	width: 1px;
	height: 18px;
	background: rgba(212, 175, 55, 0.35); /* oro opaco */
	display: inline-block;
}

/* ------------------------------------------------------------------
   Sezione: “Le nostre Business Unit” (interattiva, hover-expand)
   Shortcode: [behide_business_units]
   ------------------------------------------------------------------ */

.behide-bunits {
	max-width: 1140px;
	margin: 0 auto;
	padding: 44px 20px;
}

.behide-bunits__header {
	margin-bottom: 16px;
}

.behide-bunits__title {
	margin: 0 0 6px;
	font-size: 28px;
}

.behide-bunits__subtitle {
	margin: 0;
	color: var(--behide-body);
}

.behide-bunits__stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 18px;
}

.behide-bunits__card {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	overflow: clip;
}

.behide-bunits__summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 18px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
}

.behide-bunits__summary::-webkit-details-marker {
	display: none;
}

.behide-bunits__h3 {
	margin: 0 0 6px;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.behide-bunits__sub {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.78);
}

.behide-bunits__kicker {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.70);
}

.behide-bunits__chev {
	width: 12px;
	height: 12px;
	border-right: 2px solid rgba(17, 24, 39, 0.55);
	border-bottom: 2px solid rgba(17, 24, 39, 0.55);
	transform: rotate(45deg);
	transition: transform 220ms ease, opacity 220ms ease;
	opacity: 0.85;
}

.behide-bunits__card[open] .behide-bunits__chev {
	transform: rotate(-135deg);
}

/* Corpo: chiuso di default, si rivela su [open] e su hover (desktop) */
.behide-bunits__body {
	max-height: 0;
	opacity: 0;
	transform: translateY(-2px);
	transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.behide-bunits__card[open] .behide-bunits__body {
	max-height: 520px;
	opacity: 1;
	transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
	.behide-bunits__card:hover .behide-bunits__body {
		max-height: 520px;
		opacity: 1;
		transform: translateY(0);
	}
}

.behide-bunits__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	padding: 0 18px 18px;
}

@media (min-width: 980px) {
	.behide-bunits__cols {
		grid-template-columns: 1fr 1fr;
	}
}

.behide-bunits__h4 {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.78);
}

.behide-bunits__list,
.behide-bunits__projects {
	margin: 0;
	padding-left: 18px;
	color: var(--behide-body);
}

.behide-bunits__project-link {
	color: var(--behide-title);
	text-decoration: none;
	border-bottom: 1px solid rgba(17, 24, 39, 0.18);
}

.behide-bunits__project-link:hover,
.behide-bunits__project-link:focus {
	border-bottom-color: rgba(212, 175, 55, 0.75);
}

.behide-bunits__empty {
	margin: 0;
	color: rgba(55, 65, 81, 0.92);
}

/* ------------------------------------------------------------------
   Template pagina: BU Specialist (bu-specialist.php)
   ------------------------------------------------------------------ */

.behide-bu-spec {
	max-width: 1140px;
	margin: 0 auto;
	padding: 34px 20px 64px;
}

.behide-bu-spec__crumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.72);
}

.behide-bu-spec__crumb-link {
	color: rgba(17, 24, 39, 0.86);
	text-decoration: none;
	border-bottom: 1px solid rgba(17, 24, 39, 0.14);
}

.behide-bu-spec__crumb-link:hover,
.behide-bu-spec__crumb-link:focus {
	border-bottom-color: rgba(212, 175, 55, 0.75);
}

.behide-bu-spec__hero {
	margin-top: 18px;
	padding: 22px 18px;
	border-radius: var(--behide-card-radius);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid var(--behide-card-border-light);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.behide-bu-spec__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.68);
}

.behide-bu-spec__h1 {
	margin: 0;
	font-size: 40px;
	line-height: 1.06;
}

@media (max-width: 980px) {
	.behide-bu-spec__h1 {
		font-size: 32px;
	}
}

.behide-bu-spec__section {
	margin-top: 22px;
}

.behide-bu-spec__h2 {
	margin: 0 0 12px;
	font-size: 20px;
}

.behide-bu-spec__p {
	margin: 0;
	color: var(--behide-body);
	line-height: 1.7;
}

.behide-bu-spec__highlights {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 980px) {
	.behide-bu-spec__highlights {
		grid-template-columns: repeat(3, 1fr);
	}
}

.behide-bu-spec__card {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	padding: 16px 16px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.behide-bu-spec__icon {
	color: rgba(17, 24, 39, 0.78);
}

.behide-bu-spec__h3 {
	margin: 10px 0 6px;
	font-size: 16px;
}

.behide-bu-spec__synergy {
	border-radius: var(--behide-card-radius);
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: rgba(15, 23, 42, 0.04);
	padding: 16px 16px;
}

.behide-bu-spec__widget {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	padding: 18px 18px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.behide-bu-spec__h2--widget {
	margin-bottom: 14px;
}

.behide-bu-spec__widget-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 980px) {
	.behide-bu-spec__widget-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.behide-bu-spec__widget-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px;
	border-radius: 10px;
	border: 1px solid rgba(17, 24, 39, 0.10);
	text-decoration: none;
	color: var(--behide-title);
	background: rgba(255, 255, 255, 0.78);
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.behide-bu-spec__widget-item:hover,
.behide-bu-spec__widget-item:focus {
	transform: translateY(-1px);
	border-color: rgba(212, 175, 55, 0.55);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}

.behide-bu-spec__widget-name {
	font-weight: 650;
}

.behide-bu-spec__widget-cta {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.70);
}

/* ------------------------------------------------------------------
   Archive Portfolio/Progetti (archive-project.php / archive-portfolio.php)
   ------------------------------------------------------------------ */

.behide-portfolio {
	max-width: 1140px;
	margin: 0 auto;
	padding: 38px 20px 70px;
}

.behide-portfolio__header {
	margin-bottom: 16px;
}

.behide-portfolio__h1 {
	margin: 0 0 6px;
	font-size: 34px;
}

.behide-portfolio__sub {
	margin: 0;
	color: var(--behide-body);
}

.behide-portfolio__filters {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 16px;
	padding: 14px;
	border-radius: var(--behide-card-radius);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid var(--behide-card-border-light);
}

@media (min-width: 980px) {
	.behide-portfolio__filters {
		grid-template-columns: 1fr 1fr 1fr auto auto;
		align-items: end;
	}
}

.behide-portfolio__label-text {
	display: block;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.70);
	margin-bottom: 6px;
}

.behide-portfolio__select {
	width: 100%;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid rgba(17, 24, 39, 0.14);
	background: rgba(255, 255, 255, 0.86);
}

.behide-portfolio__button {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0);
	background: var(--behide-accent);
	color: #fff;
	font-weight: 650;
	cursor: pointer;
}

.behide-portfolio__reset {
	align-self: center;
	justify-self: start;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 24, 39, 0.70);
	text-decoration: none;
	border-bottom: 1px solid rgba(17, 24, 39, 0.14);
	padding-bottom: 2px;
}

.behide-portfolio__grid {
	margin-top: 18px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 700px) {
	.behide-portfolio__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.behide-portfolio__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.behide-portfolio__card {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	overflow: clip;
}

.behide-portfolio__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.behide-portfolio__media {
	aspect-ratio: 16 / 10;
	background: rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.behide-portfolio__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.02) saturate(0.85);
	transform: scale(1.01);
	transition: filter 220ms ease, transform 220ms ease;
}

.behide-portfolio__card:hover .behide-portfolio__img,
.behide-portfolio__card:focus-within .behide-portfolio__img {
	filter: grayscale(0) contrast(1.02) saturate(1);
	transform: scale(1.04);
}

.behide-portfolio__img--placeholder {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
}

.behide-portfolio__meta {
	padding: 14px 14px 16px;
}

.behide-portfolio__h2 {
	margin: 0 0 8px;
	font-size: 18px;
}

.behide-portfolio__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.behide-portfolio__sinergia {
	margin: 0;
	color: rgba(55, 65, 81, 0.95);
	font-size: 0.98rem;
	line-height: 1.55;
}

.behide-portfolio__empty {
	margin-top: 18px;
	color: rgba(55, 65, 81, 0.92);
}

.behide-portfolio__pagination {
	margin-top: 16px;
}

/* ------------------------------------------------------------------
   Contatti: Project Configurator + Global Presence map
   ------------------------------------------------------------------ */

.behide-configurator {
	max-width: 1140px;
	margin: 0 auto;
	padding: 54px 20px;
}

.behide-configurator__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 980px) {
	.behide-configurator__grid {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: start;
	}
}

.behide-configurator__panel {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	padding: 18px 18px;
}

.behide-configurator__h1 {
	margin: 0 0 8px;
	font-size: 34px;
}

.behide-configurator__sub {
	margin: 0;
	color: var(--behide-body);
}

.behide-configurator .wpcf7-form p {
	margin: 0 0 12px;
}

.behide-configurator input[type="text"],
.behide-configurator input[type="email"],
.behide-configurator input[type="tel"],
.behide-configurator textarea,
.behide-configurator select {
	width: 100%;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid rgba(17, 24, 39, 0.14);
	background: rgba(255, 255, 255, 0.86);
}

.behide-configurator .wpcf7-list-item {
	margin: 0 12px 8px 0;
}

.behide-configurator input[type="submit"] {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0);
	background: var(--behide-accent);
	color: #fff;
	font-weight: 650;
	cursor: pointer;
}

.behide-configurator .behide-ghost-submit input[type="submit"] {
	background: rgba(0,0,0,0);
	border: 2px solid rgba(17,24,39,0.25);
	color: rgba(17,24,39,0.92);
}

.behide-presence {
	margin-top: 18px;
}

.behide-presence__header {
	margin-bottom: 10px;
}

.behide-presence__title {
	margin: 0 0 6px;
	font-size: 22px;
}

.behide-presence__subtitle {
	margin: 0;
	color: var(--behide-body);
}

.behide-presence__map {
	position: relative;
	border-radius: var(--behide-card-radius);
	overflow: clip;
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.behide-presence__svg {
	display: block;
	width: 100%;
	height: auto;
}

.behide-presence__pin {
	position: absolute;
	transform: translate(-50%, -50%);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.behide-presence__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(212, 175, 55, 0.92);
	box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18);
	display: block;
}

.behide-presence__tooltip {
	position: absolute;
	left: 50%;
	top: -10px;
	transform: translate(-50%, -100%);
	background: rgba(15, 23, 42, 0.92);
	color: #fff;
	font-size: 12px;
	padding: 6px 8px;
	border-radius: 10px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease;
}

.behide-presence__pin:hover .behide-presence__tooltip,
.behide-presence__pin:focus .behide-presence__tooltip {
	opacity: 1;
	transform: translate(-50%, -110%);
}


/* CTA nel menu: evidenziata */
#top-menu li.behide-menu-cta > a,
#top-menu-nav li.behide-menu-cta > a {
	padding: 0.55em 0.9em !important;
	border-radius: var(--behide-radius) !important;
	background: var(--behide-brand-blue) !important;
	color: #ffffff !important;
	border: 1px solid rgba(0, 0, 0, 0) !important;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

#top-menu li.behide-menu-cta > a:hover,
#top-menu-nav li.behide-menu-cta > a:hover,
#top-menu li.behide-menu-cta > a:focus,
#top-menu-nav li.behide-menu-cta > a:focus {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------------
   Corporate Tech Agency — override più radicale (accessibilità + UI)
   ------------------------------------------------------------------ */

:root {
	/* Palette */
	--behide-primary: #0054ff; /* blu attuale */
	--behide-surface: #f9fafb; /* off-white */
	--behide-accent: #e02b20; /* CTA */

	/* Testi */
	--behide-title: #111827; /* deep gray */
	--behide-body: #374151; /* paragrafi */
	--behide-on-dark: #ffffff;
	--behide-on-dark-muted: #f3f4f6;

	/* UI */
	--behide-card-radius: 12px;
	--behide-card-border-dark: rgba(255, 255, 255, 0.1);
	--behide-card-border-light: rgba(17, 24, 39, 0.1);

	/* --------------------------------------------------------------
	   Design system — tipografia rigorosa + spaziature 8px
	   -------------------------------------------------------------- */

	/* Spaziature (multipli di 8px) */
	--behide-space-1: 8px;
	--behide-space-2: 16px;
	--behide-space-3: 24px;
	--behide-space-4: 32px;
	--behide-space-5: 40px;
	--behide-space-6: 48px;
	--behide-space-7: 56px;
	--behide-space-8: 64px;
	--behide-space-9: 72px;
	--behide-space-10: 80px;
	--behide-space-11: 88px;
	--behide-space-12: 96px;

	/* Scala tipografica (fluid / clamp) */
	--behide-text-xs: clamp(0.78rem, 0.76rem + 0.2vw, 0.86rem);
	--behide-text-sm: clamp(0.9rem, 0.86rem + 0.25vw, 0.98rem);
	--behide-text-md: clamp(1.02rem, 0.96rem + 0.35vw, 1.12rem);
	--behide-text-lg: clamp(1.18rem, 1.08rem + 0.55vw, 1.32rem);
	--behide-text-xl: clamp(1.38rem, 1.22rem + 0.9vw, 1.62rem);
	--behide-text-2xl: clamp(1.65rem, 1.38rem + 1.4vw, 2.05rem);
	--behide-text-3xl: clamp(2.05rem, 1.62rem + 2.3vw, 2.85rem);

	/* Line-height coerenti */
	--behide-lh-tight: 1.12;
	--behide-lh-title: 1.18;
	--behide-lh-body: 1.72;

	/* Letter-spacing */
	--behide-ls-title: -0.02em;
	--behide-ls-kicker: 0.16em;
}

/* Gerarchia tipografica */
body {
	font-size: var(--behide-text-md);
	line-height: var(--behide-lh-body);
	color: var(--behide-body);
}

h1,
h2,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_module h1,
.et_pb_module h2 {
	font-weight: 800;
	letter-spacing: var(--behide-ls-title);
	line-height: var(--behide-lh-tight);
	color: var(--behide-title);
}

.et_pb_text p,
.et_pb_module p {
	color: var(--behide-body);
	font-size: var(--behide-text-md);
	line-height: var(--behide-lh-body);
}

h1,
.et_pb_text h1,
.et_pb_module h1 {
	font-size: var(--behide-text-3xl);
}

h2,
.et_pb_text h2,
.et_pb_module h2 {
	font-size: var(--behide-text-2xl);
}

h3,
.et_pb_text h3,
.et_pb_module h3 {
	font-weight: 800;
	letter-spacing: var(--behide-ls-title);
	line-height: var(--behide-lh-title);
	color: var(--behide-title);
	font-size: var(--behide-text-xl);
}

/* Superficie neutra */
.et_pb_section[style*="#f9fafb"],
.et_pb_section[style*="#F9FAFB"],
.et_pb_section[style*="background_color=\"#f9fafb\""],
.et_pb_section[style*="background_color=\"#F9FAFB\""] {
	background-color: var(--behide-surface) !important;
}

/* Sfondi scuri / brand blue: NO grigi, solo bianco o grigio chiarissimo */
.et_pb_section[style*="#0054ff"],
.et_pb_section[style*="#1a1a2e"],
.et_pb_section[style*="#1e293b"],
.et_pb_section[style*="#0f172a"] {
	color: var(--behide-on-dark) !important;
}

.et_pb_section[style*="#0054ff"] .et_pb_text,
.et_pb_section[style*="#0054ff"] .et_pb_text * ,
.et_pb_section[style*="#1a1a2e"] .et_pb_text,
.et_pb_section[style*="#1a1a2e"] .et_pb_text * ,
.et_pb_section[style*="#1e293b"] .et_pb_text,
.et_pb_section[style*="#1e293b"] .et_pb_text * ,
.et_pb_section[style*="#0f172a"] .et_pb_text,
.et_pb_section[style*="#0f172a"] .et_pb_text * {
	color: var(--behide-on-dark) !important;
}

/* “Muted” su scuro: consenti solo #F3F4F6 (no grigi medi) */
.et_pb_section[style*="#0054ff"] .et_pb_text p,
.et_pb_section[style*="#1a1a2e"] .et_pb_text p,
.et_pb_section[style*="#1e293b"] .et_pb_text p,
.et_pb_section[style*="#0f172a"] .et_pb_text p {
	color: var(--behide-on-dark-muted) !important;
	opacity: 1 !important;
}

/* Link su scuro */
.et_pb_section[style*="#0054ff"] a,
.et_pb_section[style*="#1a1a2e"] a,
.et_pb_section[style*="#1e293b"] a,
.et_pb_section[style*="#0f172a"] a {
	color: var(--behide-on-dark) !important;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

/* Card / contenitori moderni */
.et_pb_blurb,
.et_pb_toggle,
.et_pb_accordion_item,
.et_pb_module.et_pb_text,
.behide-healthcheck-box > div {
	border-radius: var(--behide-card-radius);
}

/* Border su scuro */
.et_pb_section[style*="#0054ff"] .et_pb_blurb,
.et_pb_section[style*="#0054ff"] .et_pb_toggle,
.et_pb_section[style*="#0054ff"] .et_pb_accordion_item,
.et_pb_section[style*="#1a1a2e"] .et_pb_blurb,
.et_pb_section[style*="#1a1a2e"] .et_pb_toggle,
.et_pb_section[style*="#1a1a2e"] .et_pb_accordion_item,
.et_pb_section[style*="#1e293b"] .et_pb_blurb,
.et_pb_section[style*="#1e293b"] .et_pb_toggle,
.et_pb_section[style*="#1e293b"] .et_pb_accordion_item {
	border: 1px solid var(--behide-card-border-dark) !important;
}

/* Border su chiaro */
.et_pb_section:not([style*="#0054ff"]):not([style*="#1a1a2e"]):not([style*="#1e293b"]):not([style*="#0f172a"]) .et_pb_blurb,
.et_pb_section:not([style*="#0054ff"]):not([style*="#1a1a2e"]):not([style*="#1e293b"]):not([style*="#0f172a"]) .et_pb_toggle,
.et_pb_section:not([style*="#0054ff"]):not([style*="#1a1a2e"]):not([style*="#1e293b"]):not([style*="#0f172a"]) .et_pb_accordion_item {
	border: 1px solid var(--behide-card-border-light) !important;
}

/* CTA: usa accent in modo consistente */
.et_pb_button,
.et_pb_module .et_pb_button {
	border-radius: var(--behide-card-radius) !important;
}

.et_pb_button[class*="et_pb_button"],
.et_pb_button,
#top-menu li.behide-menu-cta > a,
#top-menu-nav li.behide-menu-cta > a {
	letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------
   Template Business Unit — layout “Corporate Tech”
   ------------------------------------------------------------------ */

.behide-bu .behide-bu__wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 20px;
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
}

@media (max-width: 980px) {
	.behide-bu .behide-bu__wrap {
		grid-template-columns: 1fr;
	}
}

.behide-bu .behide-bu__header {
	position: sticky;
	top: 92px;
	align-self: start;
	padding: 22px 18px;
	border-radius: var(--behide-card-radius);
	background: var(--behide-surface);
	border: 1px solid var(--behide-card-border-light);
}

.behide-bu .behide-bu__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-bu .behide-bu__title {
	margin: 0 0 14px;
	font-size: 34px;
	line-height: 1.1;
}

.behide-bu .behide-bu__partner {
	margin: 0 0 10px;
	color: var(--behide-body);
}

.behide-bu .behide-bu__partner-label {
	font-size: 12px;
	color: var(--behide-body);
}

.behide-bu .behide-bu__partner-name {
	color: var(--behide-title);
}

.behide-bu .behide-bu__bio {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--behide-body);
}

.behide-bu .behide-bu__poweredby {
	margin: 8px 0 12px;
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		"Liberation Mono",
		"Courier New",
		monospace;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-bu .behide-bu__content {
	display: grid;
	gap: 18px;
}

.behide-bu .behide-bu__block,
.behide-bu .behide-bu__cta {
	padding: 22px 18px;
	border-radius: var(--behide-card-radius);
	background: #fff;
	border: 1px solid var(--behide-card-border-light);
}

.behide-bu .behide-bu__h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.behide-bu .behide-bu__p {
	margin: 0;
	color: var(--behide-body);
}

.behide-bu .behide-bu__list {
	margin: 0;
	padding-left: 18px;
	color: var(--behide-body);
	line-height: 1.7;
}

.behide-bu .behide-bu__actions {
	margin: 14px 0 0;
}

.behide-bu .behide-bu__button {
	display: inline-block;
	padding: 0.75rem 1rem;
	border-radius: var(--behide-card-radius);
	background: var(--behide-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.01em;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

.behide-bu .behide-bu__button:hover,
.behide-bu .behide-bu__button:focus {
	transform: translateY(-1px);
	filter: brightness(1.04);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------------
   Digital SWOT Matrix — componente UI (Corporate Tech)
   ------------------------------------------------------------------ */

.behide-swot {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 20px;
}

.behide-swot__header {
	margin-bottom: 18px;
}

.behide-swot__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-swot__title {
	margin: 0 0 8px;
}

.behide-swot__subtitle {
	margin: 0;
	max-width: 70ch;
	color: var(--behide-body);
}

.behide-swot__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 18px;
}

@media (min-width: 900px) {
	.behide-swot__grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

.behide-swot__card {
	background: #ffffff;
	border: 1px solid var(--behide-card-border-light);
	border-radius: var(--behide-card-radius);
	padding: 18px 16px;
}

.behide-swot__card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.behide-swot__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--behide-surface);
	color: var(--behide-title);
	border: 1px solid var(--behide-card-border-light);
}

.behide-swot__card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.2;
}

.behide-swot__list {
	margin: 0;
	padding-left: 18px;
	color: var(--behide-body);
	line-height: 1.7;
}

/* Accenti per quadrante (puliti, non “freelance”) */
.behide-swot__card--strengths .behide-swot__icon {
	color: #1d9e75;
}

.behide-swot__card--weaknesses .behide-swot__icon {
	color: #e02b20;
}

.behide-swot__card--opportunities .behide-swot__icon {
	color: var(--behide-primary);
}

.behide-swot__card--threats .behide-swot__icon {
	color: #ef9f27;
}

/* ------------------------------------------------------------------
   Footer “Agency” — navy + white (massimo contrasto)
   ------------------------------------------------------------------ */

.behide-agency-footer {
	background: #0f172a; /* navy */
	color: #ffffff;
	padding: 54px 0;
}

.behide-agency-footer a {
	color: #ffffff;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.behide-agency-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 18px;
	align-items: start;
}

@media (max-width: 980px) {
	.behide-agency-footer__inner {
		grid-template-columns: 1fr;
	}
}

.behide-agency-footer__logo {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.behide-agency-footer__logo-mark {
	font-size: 18px;
}

.behide-agency-footer__logo-sep {
	opacity: 0.6;
}

.behide-agency-footer__logo-tag {
	font-size: 14px;
	font-weight: 700;
	color: #f3f4f6;
	letter-spacing: 0.01em;
}

.behide-agency-footer__legalnote {
	margin: 12px 0 0;
	color: #f3f4f6;
	line-height: 1.6;
	max-width: 60ch;
}

.behide-agency-footer__legalnote--small {
	margin-top: 10px;
	font-size: 0.9rem;
	opacity: 0.92;
}

.behide-agency-footer__h {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.02em;
}

.behide-agency-footer__p {
	margin: 0 0 10px;
	color: #f3f4f6;
	line-height: 1.7;
}

.behide-agency-footer__actions {
	margin: 14px 0 0;
}

.behide-agency-footer__cta {
	display: inline-block;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a !important;
	font-weight: 800;
	text-decoration: none;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

.behide-agency-footer__cta:hover,
.behide-agency-footer__cta:focus {
	transform: translateY(-1px);
	filter: brightness(1.02);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* ------------------------------------------------------------------
   Case Histories — sezione minimal (Corporate Tech)
   ------------------------------------------------------------------ */

.behide-casehistories {
	background: var(--behide-surface);
	padding: 70px 0;
}

.behide-casehistories__header {
	max-width: 1140px;
	margin: 0 auto 22px;
	padding: 0 20px;
}

.behide-casehistories__title {
	margin: 0 0 8px;
	color: var(--behide-title);
}

.behide-casehistories__subtitle {
	margin: 0;
	max-width: 75ch;
	color: var(--behide-body);
}

.behide-casehistories__grid {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	gap: 14px;
}

.behide-casehistories__card {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 18px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid var(--behide-card-border-light);
	border-radius: var(--behide-card-radius);
}

@media (max-width: 980px) {
	.behide-casehistories__card {
		grid-template-columns: 1fr;
	}
}

.behide-casehistories__media {
	display: flex;
	align-items: stretch;
}

.behide-casehistories__mockup {
	width: 100%;
	min-height: 160px;
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(0, 84, 255, 0.10), rgba(0, 84, 255, 0.02)),
		#ffffff;
	border: 1px solid rgba(17, 24, 39, 0.08);
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

.behide-casehistories__sector {
	margin: 0 0 8px;
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-casehistories__h3 {
	margin: 0 0 10px;
	color: var(--behide-title);
}

.behide-casehistories__bu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.behide-casehistories__bu-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(17, 24, 39, 0.10);
	background: var(--behide-surface);
	color: var(--behide-title);
	font-size: 12px;
	font-weight: 700;
}

.behide-casehistories__bu-item svg {
	color: var(--behide-primary);
}

.behide-casehistories__points p {
	margin: 0 0 8px;
	color: var(--behide-body);
}

.behide-casehistories__points p strong {
	color: var(--behide-title);
}

/* ------------------------------------------------------------------
   Social Proof CTA (sotto Case Histories)
   ------------------------------------------------------------------ */

.behide-social-proof-cta {
	background: #0f172a;
	color: #ffffff;
	padding: 46px 0;
}

.behide-social-proof-cta__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.behide-social-proof-cta__text {
	margin: 0;
	max-width: 70ch;
	color: #f3f4f6;
	font-size: 1.05rem;
	line-height: 1.7;
}

.behide-social-proof-cta__actions {
	margin: 0;
}

.behide-social-proof-cta__button {
	display: inline-block;
	padding: 0.8rem 1.1rem;
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a !important;
	font-weight: 800;
	text-decoration: none;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

.behide-social-proof-cta__button:hover,
.behide-social-proof-cta__button:focus {
	transform: translateY(-1px);
	filter: brightness(1.02);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* ------------------------------------------------------------------
   Health Check CTA (in fondo pagine servizi)
   ------------------------------------------------------------------ */

.behide-healthcheck-cta {
	background: #f9fafb;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
	padding: 70px 0;
}

.behide-healthcheck-cta__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.behide-healthcheck-cta__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-healthcheck-cta__title {
	margin: 0 0 10px;
	color: var(--behide-title);
}

.behide-healthcheck-cta__text {
	margin: 0 auto 18px;
	max-width: 75ch;
	color: var(--behide-body);
	line-height: 1.7;
}

.behide-healthcheck-cta__button {
	display: inline-block;
	padding: 0.85rem 1.2rem;
	border-radius: 12px;
	background: var(--behide-primary);
	color: #ffffff !important;
	font-weight: 800;
	text-decoration: none;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

.behide-healthcheck-cta__button:hover,
.behide-healthcheck-cta__button:focus {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

/* ------------------------------------------------------------------
   Il Board Strategico — WSJ meets Silicon Valley
   ------------------------------------------------------------------ */

.behide-board {
	background: var(--behide-surface);
	padding: 80px 0;
}

.behide-board__header {
	max-width: 1140px;
	margin: 0 auto 22px;
	padding: 0 20px;
}

.behide-board__title {
	margin: 0 0 8px;
	color: var(--behide-title);
}

.behide-board__subtitle {
	margin: 0;
	color: var(--behide-body);
	max-width: 75ch;
}

.behide-board__grid {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 981px) {
	.behide-board__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 16px;
	}
}

.behide-board__card {
	background: #ffffff;
	border: 1px solid var(--behide-card-border-light);
	border-radius: var(--behide-card-radius);
	overflow: hidden;
}

.behide-board__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	background: #ffffff;
}

.behide-board__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%) contrast(1.05);
	transform: scale(1.001);
	transition: filter var(--behide-ease), transform var(--behide-ease);
	display: block;
}

.behide-board__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 84, 255, 0.18);
	opacity: 0;
	transition: opacity var(--behide-ease);
	mix-blend-mode: multiply;
}

.behide-board__card:hover .behide-board__photo::after,
.behide-board__card:focus-within .behide-board__photo::after {
	opacity: 1;
}

.behide-board__card:hover .behide-board__photo img,
.behide-board__card:focus-within .behide-board__photo img {
	filter: grayscale(100%) contrast(1.08) saturate(1.05);
	transform: scale(1.02);
}

.behide-board__body {
	padding: 16px 16px 18px;
}

.behide-board__name {
	margin: 0 0 6px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--behide-title);
}

.behide-board__role {
	margin: 0 0 8px;
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		"Liberation Mono",
		"Courier New",
		monospace;
	font-size: 0.9rem;
	color: var(--behide-body);
}

.behide-board__founder {
	margin: 0 0 10px;
	font-size: 0.98rem;
	color: var(--behide-title);
}

.behide-board__focus {
	margin: 0;
	color: var(--behide-body);
	line-height: 1.7;
}

.behide-board__focus strong {
	color: var(--behide-title);
}

.behide-board__integration {
	max-width: 1140px;
	margin: 18px auto 0;
	padding: 0 20px;
}

.behide-board__integration p {
	margin: 0;
	padding: 18px 18px;
	background: #ffffff;
	border: 1px solid var(--behide-card-border-light);
	border-radius: var(--behide-card-radius);
	color: var(--behide-body);
	line-height: 1.7;
}

/* ------------------------------------------------------------------
   Value Highlights — 3 punti chiave (Corporate Tech)
   ------------------------------------------------------------------ */

.behide-highlights {
	background: var(--behide-surface);
	padding: 70px 0;
}

.behide-highlights__header {
	max-width: 1140px;
	margin: 0 auto 22px;
	padding: 0 20px;
}

.behide-highlights__title {
	margin: 0 0 8px;
	color: var(--behide-title);
}

.behide-highlights__subtitle {
	margin: 0;
	max-width: 75ch;
	color: var(--behide-body);
}

.behide-highlights__grid {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 981px) {
	.behide-highlights__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 16px;
	}
}

.behide-highlights__card {
	background: #ffffff;
	border: 1px solid var(--behide-card-border-light);
	border-radius: var(--behide-card-radius);
	padding: 18px 16px;
}

.behide-highlights__h3 {
	margin: 0 0 10px;
	color: var(--behide-title);
	font-size: 18px;
	line-height: 1.2;
}

.behide-highlights__p {
	margin: 0;
	color: var(--behide-body);
	line-height: 1.7;
}

/* ------------------------------------------------------------------
   Home — I Tre Pilastri (card interattive + immagini macro al hover)
   ------------------------------------------------------------------ */

.behide-pillars-section .behide-pillars-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	max-width: 1140px;
	margin: 28px auto 0;
	padding: 0 16px;
}

@media (min-width: 981px) {
	.behide-pillars-section .behide-pillars-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
		padding: 0;
	}
}

.behide-pillar-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	min-height: 300px;
	border: 1px solid rgba(17, 24, 39, 0.1);
	background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.behide-pillar-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

/* Immagine macro: visibile al hover */
.behide-pillar-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.45s ease, transform 0.55s ease;
	transform: scale(1.03);
	z-index: 0;
}

.behide-pillar-card:hover::before {
	opacity: 1;
	transform: scale(1.08);
}

/* Overlay leggibilità testo */
.behide-pillar-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
	z-index: 1;
	transition: opacity 0.4s ease, background 0.4s ease;
}

.behide-pillar-card:hover::after {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.65) 100%);
}

/* Macro stock alta qualità (sostituibile con file in /uploads/) */
.behide-pillar-card--strategy::before {
	background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=85");
}

.behide-pillar-card--tech::before {
	background-image: url("https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1600&q=85");
}

.behide-pillar-card--creative::before {
	background-image: url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=1600&q=85");
}

.behide-pillar-card__inner {
	position: relative;
	z-index: 2;
	padding: 26px 22px 28px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	font-family: "Inter", "Geist", system-ui, sans-serif;
}

.behide-pillar-card__kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.behide-pillar-card__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.behide-pillar-card__focus {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	font-weight: 500;
	color: rgba(243, 244, 246, 0.95);
}

.behide-pillar-card__focus strong {
	color: #ffffff;
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Template Partners (page-partners.php) — Z-pattern, B/N ritratto
   ------------------------------------------------------------------ */

.behide-partners {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.behide-partners__hero {
	margin-bottom: 36px;
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.behide-partners__h1 {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	line-height: 1.15;
	color: var(--behide-title);
}

.behide-partners__intro {
	color: var(--behide-body);
	line-height: 1.65;
	font-size: 1.02rem;
}

.behide-partners__intro p:last-child {
	margin-bottom: 0;
}

.behide-partners__section {
	padding: 56px 0;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.behide-partners__hero + .behide-partners__section {
	border-top: none;
	padding-top: 0;
}

.behide-partners__section--stripe {
	background: linear-gradient(180deg, rgba(249, 250, 251, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}

.behide-partners__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: center;
	max-width: 1140px;
	margin: 0 auto;
}

@media (min-width: 900px) {
	.behide-partners__section--media-left .behide-partners__inner {
		grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
		gap: 40px;
	}

	.behide-partners__section--media-right .behide-partners__inner {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
		gap: 40px;
	}

	.behide-partners__section--media-right .behide-partners__media {
		order: 2;
	}

	.behide-partners__section--media-right .behide-partners__content {
		order: 1;
	}
}

.behide-partners__portrait-wrap {
	position: relative;
	border-radius: var(--behide-card-radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #111827;
	box-shadow:
		0 24px 50px rgba(15, 23, 42, 0.18),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.behide-partners__portrait {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.18) brightness(0.98);
	transition: filter 0.35s ease, transform 0.45s ease;
}

.behide-partners__section:hover .behide-partners__portrait {
	filter: grayscale(0.85) contrast(1.12) brightness(1);
	transform: scale(1.02);
}

.behide-partners__kicker {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-partners__brand {
	margin-bottom: 14px;
}

.behide-partners__logo-lockup {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.behide-partners__logo-text {
	display: block;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.behide-partners__logo-text--behide {
	font-size: 1.5rem;
	color: var(--behide-primary);
}

.behide-partners__logo-text--dr {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		"Liberation Mono",
		"Courier New",
		monospace;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--behide-title);
}

.behide-partners__logo-text--op {
	font-size: 1.2rem;
	font-weight: 750;
	letter-spacing: 0.02em;
	color: var(--behide-title);
	font-style: italic;
}

.behide-partners__logo-sub {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(55, 65, 81, 0.75);
}

.behide-partners__h2 {
	margin: 0 0 12px;
	font-size: 1.65rem;
	color: var(--behide-title);
}

.behide-partners__bio {
	margin: 0 0 20px;
	line-height: 1.65;
	color: var(--behide-body);
	font-size: 1rem;
}

.behide-partners__expertise {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.behide-partners__expertise-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.85);
}

.behide-partners__expertise-icon {
	display: flex;
	color: var(--behide-primary);
	flex-shrink: 0;
}

.behide-partners__expertise-icon svg {
	display: block;
}

.behide-partners__expertise-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--behide-title);
}

.behide-partners__actions {
	margin: 0;
}

.behide-partners__btn {
	display: inline-block;
	padding: 0.78rem 1.2rem;
	border-radius: var(--behide-card-radius);
	background: var(--behide-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.01em;
	transition: transform var(--behide-ease), filter var(--behide-ease), box-shadow var(--behide-ease);
}

.behide-partners__btn:hover,
.behide-partners__btn:focus {
	transform: translateY(-1px);
	filter: brightness(1.04);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	color: #ffffff;
}

/* ------------------------------------------------------------------
   Single Progetto — “Solution Story” (single-project.php / single-portfolio.php)
   ------------------------------------------------------------------ */

.behide-solution {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 20px 88px;
}

.behide-solution__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-bottom: 34px;
}

@media (min-width: 980px) {
	.behide-solution__hero {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
		gap: 34px;
		align-items: center;
	}
}

.behide-solution__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-solution__h1 {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	line-height: 1.12;
	color: var(--behide-title);
	letter-spacing: -0.02em;
}

.behide-solution__lead {
	margin: 0 0 16px;
	font-size: 1.06rem;
	line-height: 1.7;
	color: var(--behide-body);
	max-width: 62ch;
}

.behide-solution__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 10px;
}

@media (min-width: 680px) {
	.behide-solution__meta {
		grid-template-columns: 1fr 1fr;
	}
}

.behide-solution__meta-item {
	margin: 0;
	padding: 12px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.75);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	backdrop-filter: blur(12px) saturate(160%);
	border: 1px solid var(--behide-card-border-light);
	color: var(--behide-body);
}

.behide-solution__meta-item strong {
	color: var(--behide-title);
	font-weight: 800;
}

.behide-solution__hero-media {
	border-radius: var(--behide-card-radius);
	overflow: hidden;
	border: 1px solid rgba(17, 24, 39, 0.10);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
	background: #0f172a;
}

.behide-solution__hero-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.behide-solution__story-inner {
	max-width: 860px;
	margin: 0 auto;
}

.behide-solution__content {
	color: var(--behide-body);
	line-height: 1.75;
	font-size: 1.02rem;
}

.behide-solution__content h2,
.behide-solution__content h3 {
	color: var(--behide-title);
	letter-spacing: -0.01em;
}

/* Processo integrato */
.behide-process {
	margin-top: 46px;
	padding: 46px 0;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.behide-process__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.behide-process__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-process__h2 {
	margin: 0 0 10px;
	font-size: 1.55rem;
	color: var(--behide-title);
}

.behide-process__sub {
	margin: 0 0 18px;
	color: var(--behide-body);
	line-height: 1.7;
	max-width: 72ch;
}

.behide-process__diagram {
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	padding: 16px 14px;
	overflow: hidden;
}

.behide-process__svg {
	width: 100%;
	height: auto;
	color: rgba(17, 24, 39, 0.95);
}

.behide-process__path {
	fill: none;
	stroke-width: 3.5;
	stroke-linecap: round;
}

.behide-process__path--base {
	stroke: rgba(17, 24, 39, 0.14);
}

.behide-process__path--anim {
	stroke: url(#behideFlow);
	stroke-dasharray: 12 10;
	animation: behide-flow-dash 2.8s linear infinite;
}

.behide-process__dot {
	fill: var(--behide-accent);
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.behide-process__node rect {
	fill: rgba(255, 255, 255, 0.92);
	stroke: rgba(17, 24, 39, 0.14);
}

.behide-process__node text {
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 800;
	font-size: 20px;
	fill: rgba(17, 24, 39, 0.95);
	text-anchor: middle;
}

.behide-process__node-sub {
	font-weight: 650;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	fill: rgba(55, 65, 81, 0.72);
}

@keyframes behide-flow-dash {
	to {
		stroke-dashoffset: -44;
	}
}

@media (prefers-reduced-motion: reduce) {
	.behide-process__path--anim {
		animation: none;
	}
	.behide-process__dot animateMotion {
		display: none;
	}
}

/* Team di progetto */
.behide-team {
	margin-top: 44px;
	padding-top: 44px;
}

.behide-team__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.behide-team__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--behide-primary);
}

.behide-team__h2 {
	margin: 0 0 18px;
	font-size: 1.55rem;
	color: var(--behide-title);
}

.behide-team__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 760px) {
	.behide-team__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.behide-team__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px;
	border-radius: var(--behide-card-radius);
	border: 1px solid var(--behide-card-border-light);
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
}

.behide-team__avatar {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	overflow: hidden;
	flex: 0 0 auto;
	border: 1px solid rgba(17, 24, 39, 0.12);
	background: #111827;
}

.behide-team__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15);
}

.behide-team__name {
	margin: 0;
	font-size: 1.02rem;
	color: var(--behide-title);
}

.behide-team__company {
	margin: 2px 0 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: rgba(55, 65, 81, 0.78);
}

.behide-team__role {
	margin: 6px 0 0;
	font-size: 0.92rem;
	color: var(--behide-body);
	line-height: 1.5;
}

/* ------------------------------------------------------------------
   Header — fix sovrapposizioni (Divi header left + logo_container)
   ------------------------------------------------------------------ */

/* Tutti i viewport: prima il blocco flex era solo ≥981px → sotto quella soglia
   Divi lascia spesso logo assoluto + padding sul nav e il menu copre il logo.
   La classe `et_header_style_left` è spesso sul `body`, non su `#main-header`. */
#main-header.et_header_style_left .container.et_menu_container,
body.et_header_style_left #main-header .container.et_menu_container {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 16px !important;
	width: 100%;
	box-sizing: border-box;
}

#main-header.et_header_style_left .logo_container,
body.et_header_style_left #main-header .logo_container {
	position: relative !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: min(520px, 72vw) !important;
	flex: 0 0 auto !important;
	z-index: 2 !important;
}

#main-header.et_header_style_left #et-top-navigation,
body.et_header_style_left #main-header #et-top-navigation {
	float: none !important;
	flex: 1 1 160px !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: 100%;
	padding-left: 0 !important;
	z-index: 3 !important;
}

#main-header.et_header_style_left #top-menu-nav,
#main-header.et_header_style_left #top-menu,
body.et_header_style_left #main-header #top-menu-nav,
body.et_header_style_left #main-header #top-menu {
	float: none !important;
	white-space: normal !important;
}

@media (min-width: 981px) {
	#main-header.et_header_style_left .container.et_menu_container,
	body.et_header_style_left #main-header .container.et_menu_container {
		flex-wrap: nowrap;
	}

	#main-header.et_header_style_left .logo_container,
	body.et_header_style_left #main-header .logo_container {
		max-width: min(520px, 46vw) !important;
		flex: 0 1 auto !important;
	}

	/* Escludere .behide-mega-parent: nowrap eredita al mega e i paragrafi non vanno a capo (testo accavallato). */
	#main-header.et_header_style_left #top-menu > li:not(.behide-mega-parent),
	body.et_header_style_left #main-header #top-menu > li:not(.behide-mega-parent) {
		white-space: nowrap !important;
	}

	#main-header.et_header_style_left #top-menu > li.behide-mega-parent,
	body.et_header_style_left #main-header #top-menu > li.behide-mega-parent {
		white-space: normal !important;
	}
}

/* ------------------------------------------------------------------
   Home Hero — video Divi (classe su section): overlay + testo chiaro
   ------------------------------------------------------------------ */

.et_pb_section.behide-hero-video .mejs__overlay-error,
.et_pb_section.behide-hero-video .mejs__overlay-error *,
.et_pb_section.behide-hero-video .mejs__cannotplay,
.et_pb_section.behide-hero-video .mejs__cannotplay * {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.et_pb_section.behide-hero-video {
	position: relative;
	isolation: isolate;
	background-color: rgba(15, 23, 42, 0.92);
	background-image: radial-gradient(1200px 400px at 50% 30%, rgba(0, 84, 255, 0.22) 0%, rgba(0, 0, 0, 0) 60%);
	background-blend-mode: normal;
}

.et_pb_section.behide-hero-video::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.78) 55%, rgba(2, 6, 23, 0.86) 100%);
}

.et_pb_section.behide-hero-video .et_pb_row,
.et_pb_section.behide-hero-video .et_pb_column,
.et_pb_section.behide-hero-video .et_pb_module {
	position: relative;
	z-index: 2;
}

.et_pb_section.behide-hero-video .behide-hero-video__text h1,
.et_pb_section.behide-hero-video .behide-hero-video__text p {
	color: #ffffff !important;
	text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.et_pb_section.behide-hero-video .behide-hero-video__text p {
	color: rgba(243, 244, 246, 0.95) !important;
}

.et_pb_section.behide-hero-video .behide-hero-video__cta--ghost.et_pb_button,
.et_pb_section.behide-hero-video a.behide-hero-video__cta--ghost.et_pb_button {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.92) !important;
	background-color: rgba(0, 0, 0, 0.18) !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Logo: header fisso Divi — solo riduzione larghezza box (l’aspect-ratio resta sul frame / su a>img) */
#main-header.et-fixed-header .logo_container a .behide-header-logo-frame {
	width: min(220px, 52vw);
}

#main-header.et-fixed-header .logo_container a > #logo {
	max-width: min(220px, 52vw) !important;
	max-height: 38px !important;
}

@media (max-width: 980px) {
	#main-header.et-fixed-header .logo_container a .behide-header-logo-frame {
		width: min(200px, 78vw);
	}

	#main-header.et-fixed-header .logo_container a > #logo {
		max-width: min(200px, 78vw) !important;
		max-height: 40px !important;
	}
}

/* ------------------------------------------------------------------
   Homepage — Hero PHP + Trust Bar (front-page.php)
   ------------------------------------------------------------------ */

.behide-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Hero homepage: flex + 80vh, testi con !important vs override Divi */
.behide-fp-hero {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(5.25rem, 11vh, 7.25rem) 1.35rem clamp(2.5rem, 6vh, 4rem);
	color: #f8fafc !important;
	text-align: center;
	overflow: hidden;
	background-color: #070b14;
	background-image: radial-gradient(1200px 480px at 50% 32%, rgba(0, 84, 255, 0.34) 0%, rgba(7, 11, 20, 0.97) 62%);
}

.behide-fp-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.behide-fp-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.36;
}

.behide-fp-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(7, 11, 20, 0.78) 0%,
		rgba(7, 11, 20, 0.9) 48%,
		rgba(7, 11, 20, 0.96) 100%
	);
}

.behide-fp-hero__inner {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	flex: 0 1 auto;
}

/* Specificità elevata: Divi / Customizer spesso forzano colori su h1 e paragrafi */
#et-main-area .behide-fp-hero h1.behide-fp-hero__h1,
.behide-fp-hero h1.behide-fp-hero__h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.55rem, 3.6vw, 2.45rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.95),
		0 2px 24px rgba(0, 0, 0, 0.75);
}

.behide-fp-hero__h1-visual {
	display: block;
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc;
}

.behide-fp-hero__pre,
.behide-fp-hero__post {
	font-weight: 600;
	color: rgba(248, 250, 252, 0.98) !important;
	-webkit-text-fill-color: rgba(248, 250, 252, 0.98);
}

.behide-fp-hero__tw {
	display: inline;
	font-weight: 800;
	color: #93c5fd !important;
	-webkit-text-fill-color: #93c5fd;
}

.behide-fp-hero__cursor {
	display: inline-block;
	width: 0.08em;
	height: 0.95em;
	margin-left: 0.06em;
	vertical-align: -0.12em;
	background-color: #f8fafc !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
	animation: behide-fp-cursor-blink 1s step-end infinite;
}

@keyframes behide-fp-cursor-blink {
	0%,
	50% {
		opacity: 1;
	}
	50.01%,
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.behide-fp-hero__cursor {
		animation: none;
		opacity: 0.85;
	}
}

#et-main-area .behide-fp-hero p.behide-fp-hero__lead,
#et-main-area .behide-fp-hero p.behide-fp-hero__sub,
.behide-fp-hero p.behide-fp-hero__lead,
.behide-fp-hero p.behide-fp-hero__sub {
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	max-width: 46rem;
	font-size: clamp(1rem, 2.1vw, 1.12rem);
	line-height: 1.55;
	color: rgba(241, 245, 249, 0.98) !important;
	-webkit-text-fill-color: rgba(241, 245, 249, 0.98);
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 1px 18px rgba(0, 0, 0, 0.55);
}

.behide-fp-hero p.behide-fp-hero__lead,
#et-main-area .behide-fp-hero p.behide-fp-hero__lead {
	margin-bottom: 0.85rem;
}

.behide-fp-hero p.behide-fp-hero__sub,
#et-main-area .behide-fp-hero p.behide-fp-hero__sub {
	margin-bottom: 1.75rem;
	opacity: 1;
}

.behide-fp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
	align-items: center;
}

#et-main-area .behide-fp-hero a.behide-fp-hero__btn,
.behide-fp-hero a.behide-fp-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 1.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 4px;
	border: 2px solid transparent;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.15s ease;
}

#et-main-area .behide-fp-hero a.behide-fp-hero__btn--primary,
.behide-fp-hero a.behide-fp-hero__btn--primary {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	background-color: #e02b20 !important;
	border-color: #e02b20 !important;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

#et-main-area .behide-fp-hero a.behide-fp-hero__btn--primary:hover,
#et-main-area .behide-fp-hero a.behide-fp-hero__btn--primary:focus-visible,
.behide-fp-hero a.behide-fp-hero__btn--primary:hover,
.behide-fp-hero a.behide-fp-hero__btn--primary:focus-visible {
	background-color: #c4251b !important;
	border-color: #c4251b !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

#et-main-area .behide-fp-hero a.behide-fp-hero__btn--ghost,
.behide-fp-hero a.behide-fp-hero__btn--ghost {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	background-color: rgba(0, 0, 0, 0.28) !important;
	border-color: rgba(255, 255, 255, 0.92) !important;
}

#et-main-area .behide-fp-hero a.behide-fp-hero__btn--ghost:hover,
#et-main-area .behide-fp-hero a.behide-fp-hero__btn--ghost:focus-visible,
.behide-fp-hero a.behide-fp-hero__btn--ghost:hover,
.behide-fp-hero a.behide-fp-hero__btn--ghost:focus-visible {
	background-color: rgba(255, 255, 255, 0.14) !important;
	color: #ffffff !important;
}

.behide-trust-bar {
	box-sizing: border-box;
	width: 100%;
	padding: 1.35rem 1.25rem 1.5rem;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0.96) 0%, #0b1220 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.behide-trust-bar__inner {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.behide-trust-bar__kicker {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.55);
}

.behide-trust-bar__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.75rem 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.behide-trust-bar__logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.65rem 1.1rem;
	border-radius: 10px;
	filter: grayscale(1) contrast(1.05) opacity(0.6);
	transition:
		filter 0.4s ease,
		opacity 0.4s ease,
		background-color 0.25s ease,
		box-shadow 0.25s ease;
	cursor: default;
}

.behide-trust-bar__logo:hover,
.behide-trust-bar__logo:focus-within {
	filter: grayscale(0) contrast(1) opacity(1);
	background-color: rgba(255, 255, 255, 0.04);
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
}

.behide-trust-bar__name {
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	color: #e2e8f0;
}

.behide-trust-bar__logo--dr .behide-trust-bar__name {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	text-transform: uppercase;
	font-size: 0.95rem;
	letter-spacing: 0.14em;
}

.behide-trust-bar__logo--op .behide-trust-bar__name {
	font-style: italic;
	letter-spacing: 0.02em;
}

.behide-trust-bar__logo--dr:hover .behide-trust-bar__name,
.behide-trust-bar__logo--dr:focus-within .behide-trust-bar__name {
	color: #93c5fd;
}

.behide-trust-bar__logo--op:hover .behide-trust-bar__name,
.behide-trust-bar__logo--op:focus-within .behide-trust-bar__name {
	color: #fbbf24;
}

.behide-trust-bar__suffix {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(148, 163, 184, 0.85);
}

@media (max-width: 600px) {
	.behide-fp-hero__h1-visual {
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
		align-items: center;
	}

	.behide-fp-hero__pre,
	.behide-fp-hero__post {
		display: block;
	}

	.behide-fp-hero__tw,
	.behide-fp-hero__cursor {
		display: inline;
	}
}

/* ------------------------------------------------------------------
   Home Hero — controllo unico anti-regressioni (front-page.php)
   Attivo solo se il template emette la classe `.behide-fp-hero--ready`.
   ------------------------------------------------------------------ */

.home #main-content {
	display: block !important;
}

.home .behide-fp-hero--ready {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	isolation: isolate;
	text-align: center;
}

.home .behide-fp-hero--ready .behide-fp-hero__bg,
.home .behide-fp-hero--ready .behide-fp-hero__scrim {
	display: block !important;
	z-index: 0 !important;
}

.home .behide-fp-hero--ready .behide-fp-hero__inner {
	position: relative !important;
	z-index: 5 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.home .behide-fp-hero--ready .behide-fp-hero__h1,
.home .behide-fp-hero--ready .behide-fp-hero__lead,
.home .behide-fp-hero--ready .behide-fp-hero__sub {
	opacity: 1 !important;
	visibility: visible !important;
	display: block;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
}

.home .behide-fp-hero--ready .behide-fp-hero__lead,
.home .behide-fp-hero--ready .behide-fp-hero__sub {
	color: rgba(243, 244, 246, 0.98) !important;
	-webkit-text-fill-color: rgba(243, 244, 246, 0.98);
}

.home .behide-fp-hero--ready .behide-fp-hero__h1-visual,
.home .behide-fp-hero--ready .behide-fp-hero__pre,
.home .behide-fp-hero--ready .behide-fp-hero__post {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
}

.home .behide-fp-hero--ready .behide-fp-hero__tw {
	color: #93c5fd !important;
	-webkit-text-fill-color: #93c5fd;
}

.home .behide-fp-hero--ready .behide-fp-hero__actions {
	justify-content: center;
}

/* ------------------------------------------------------------------
   Partners row (subito dopo Hero) — layout pulito, 3 colonne
   ------------------------------------------------------------------ */

#partners.behide-partners-row {
	box-sizing: border-box;
	width: 100%;
	padding: 4rem 1.25rem;
	background: #ffffff;
	color: #0f172a;
}

.behide-partners-row__inner {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

.behide-partners-row__header {
	text-align: center;
	margin: 0 auto 2.25rem;
	max-width: 52rem;
}

.behide-partners-row__kicker {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(15, 23, 42, 0.55);
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.behide-partners-row__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.behide-partners-row__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

@media (min-width: 981px) {
	.behide-partners-row__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.behide-partners-row__card {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	padding: 1.25rem 1.25rem 1.35rem;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.behide-partners-row__top {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	align-items: center;
}

.behide-partners-row__avatar {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: rgba(2, 6, 23, 0.03);
	border: 1px solid rgba(2, 6, 23, 0.06);
	color: rgba(15, 23, 42, 0.75);
}

.behide-partners-row__icon {
	width: 26px;
	height: 26px;
}

.behide-partners-row__meta {
	min-width: 0;
}

.behide-partners-row__name {
	margin: 0 0 0.5rem;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0f172a;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.behide-partners-row__sep {
	color: rgba(15, 23, 42, 0.28);
	font-weight: 600;
}

.behide-partners-row__brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.behide-partners-row__logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(15, 23, 42, 0.72);
	filter: grayscale(1) contrast(1.05) opacity(0.7);
	transition: filter 0.25s ease, color 0.25s ease;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.behide-partners-row__card:hover .behide-partners-row__logo {
	filter: grayscale(0) contrast(1) opacity(1);
	color: rgba(15, 23, 42, 0.88);
}

.behide-partners-row__logo--dr {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
}

.behide-partners-row__logo--op {
	font-style: italic;
}

.behide-partners-row__logo--behide {
	letter-spacing: 0.01em;
}

.behide-partners-row__desc {
	margin: 1rem 0 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.78);
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* (Rimosso) Hardening duplicato: ora consolidato in `.behide-fp-hero--ready`. */
