/*
Theme Name: Phlox Pro Child — MediaBros
Template: phlox-pro
Description: Restyling home 2026 — navy/gold, layout più stretto, niente monumenti.
Version: 1.4.3
Text Domain: phlox-pro-child
*/

:root {
	--mb-navy: #0b1f3a;
	--mb-navy-2: #113474;
	--mb-gold: #c4a035;
	--mb-gold-2: #e0c36a;
	--mb-cream: #f4f1ea;
	--mb-ink: #1c2430;
	--mb-muted: #5b6573;
	--mb-radius: 18px;
}

/* Header: logo grafico + MEDIABROS + tagline (come prima) — solo header, non footer */
#site-elementor-header .elementor-widget-aux_logo .aux-widget-logo,
.elementor-location-header .elementor-widget-aux_logo .aux-widget-logo {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-text,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text {
	display: block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0;
	line-height: 1.2;
	overflow: visible !important;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-text .site-title,
#site-elementor-header .elementor-widget-aux_logo .aux-logo-text .site-description,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text .site-title,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text .site-description {
	position: static !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip: auto !important;
	margin: 0;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-text .site-title,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text .site-title {
	font-size: 1.35rem !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.15;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-text .site-title a,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text .site-title a {
	color: #1bb0ce !important;
	text-decoration: none;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-text .site-description,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-text .site-description {
	margin-top: 0.15rem !important;
	font-size: 0.92rem !important;
	line-height: 1.3;
	color: var(--mb-ink) !important;
}

#site-elementor-header .elementor-widget-aux_logo .aux-logo-anchor img,
#site-elementor-header .elementor-widget-aux_logo img,
.elementor-location-header .elementor-widget-aux_logo .aux-logo-anchor img,
.elementor-location-header .elementor-widget-aux_logo img {
	display: block;
	max-height: 58px;
	width: auto;
	height: auto;
}

/*
 * Footer Elementor (#1217): sfondo immagine scura.
 * Titoli/logo/link non devono restare navy (#0b1f3a) o ciano (#1bb0ce).
 */
.aux-elementor-footer,
.elementor-1217 {
	color: rgba(255, 255, 255, 0.88);
}

.aux-elementor-footer .aux-modern-heading-primary,
.aux-elementor-footer .elementor-heading-title,
.aux-elementor-footer h1,
.aux-elementor-footer h2,
.aux-elementor-footer h3,
.aux-elementor-footer h4,
.aux-elementor-footer h5,
.aux-elementor-footer h6,
.elementor-1217 .aux-modern-heading-primary,
.elementor-1217 .elementor-heading-title,
.elementor-1217 h1,
.elementor-1217 h2,
.elementor-1217 h3,
.elementor-1217 h4,
.elementor-1217 h5,
.elementor-1217 h6 {
	color: #ffffff !important;
}

.aux-elementor-footer .site-title,
.aux-elementor-footer .site-title a,
.elementor-1217 .site-title,
.elementor-1217 .site-title a {
	color: #ffffff !important;
}

.aux-elementor-footer .site-description,
.elementor-1217 .site-description,
.elementor-1217 .aux-logo-text .site-description,
.elementor-1217 .aux-widget-logo .site-description,
body.home .aux-elementor-footer .site-description,
body.home .elementor-1217 .site-description,
body.home .elementor-1217 .aux-logo-text .site-description {
	color: rgba(255, 255, 255, 0.85) !important;
	opacity: 1 !important;
}

/* Nasconde barra copyright/testo duplicati (finché Elementor non ricompila) */
.elementor-1217 .elementor-element-abb2990,
.elementor-1217 .elementor-element-7649aa5,
.elementor-1217 .elementor-element-ded3599 {
	display: none !important;
}

.aux-elementor-footer a,
.elementor-1217 a,
.aux-elementor-footer .aux-icon-list-link,
.aux-elementor-footer .aux-icon-list-text,
.elementor-1217 .aux-icon-list-link,
.elementor-1217 .aux-icon-list-text {
	color: rgba(255, 255, 255, 0.88) !important;
}

.aux-elementor-footer a:hover,
.elementor-1217 a:hover,
.aux-elementor-footer .aux-icon-list-link:hover,
.aux-elementor-footer .aux-icon-list-link:hover .aux-icon-list-text,
.elementor-1217 .aux-icon-list-link:hover,
.elementor-1217 .aux-icon-list-link:hover .aux-icon-list-text {
	color: var(--mb-gold-2) !important;
}

.aux-elementor-footer .elementor-widget-text-editor,
.aux-elementor-footer .elementor-widget-text-editor p,
.elementor-1217 .elementor-widget-text-editor,
.elementor-1217 .elementor-widget-text-editor p {
	color: rgba(255, 255, 255, 0.78) !important;
}

.aux-elementor-footer .elementor-widget-text-editor a,
.elementor-1217 .elementor-widget-text-editor a {
	color: var(--mb-gold-2) !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aux-elementor-footer .aux-icon-list .aux-icon-list-icon,
.elementor-1217 .aux-icon-list .aux-icon-list-icon {
	color: var(--mb-gold) !important;
}

body.home {
	color: var(--mb-ink);
	background: var(--mb-cream);
}

body.home .elementor-heading-title:not(.aux-elementor-footer *),
body.home .aux-modern-heading-primary,
body.home .aux-modern-heading-secondary {
	color: var(--mb-navy) !important;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

/* Footer scuro: prevale sul navy imposto da body.home */
body.home .aux-elementor-footer .aux-modern-heading-primary,
body.home .aux-elementor-footer .aux-modern-heading-secondary,
body.home .aux-elementor-footer .elementor-heading-title,
body.home .elementor-1217 .aux-modern-heading-primary,
body.home .elementor-1217 .aux-modern-heading-secondary,
body.home .elementor-1217 .elementor-heading-title,
body.home .aux-elementor-footer h1,
body.home .aux-elementor-footer h2,
body.home .aux-elementor-footer h3,
body.home .aux-elementor-footer h4,
body.home .aux-elementor-footer h5,
body.home .aux-elementor-footer h6,
body.home .elementor-1217 h1,
body.home .elementor-1217 h2,
body.home .elementor-1217 h3,
body.home .elementor-1217 h4,
body.home .elementor-1217 h5,
body.home .elementor-1217 h6 {
	color: #ffffff !important;
}

body.home .aux-elementor-footer .site-title,
body.home .aux-elementor-footer .site-title a,
body.home .elementor-1217 .site-title,
body.home .elementor-1217 .site-title a {
	color: #ffffff !important;
}

body.home .aux-elementor-footer .site-description,
body.home .elementor-1217 .site-description,
body.home .elementor-1217 .aux-logo-text .site-description {
	color: rgba(255, 255, 255, 0.85) !important;
	opacity: 1 !important;
}

body.home .aux-elementor-footer a,
body.home .elementor-1217 a,
body.home .aux-elementor-footer .aux-icon-list-text,
body.home .elementor-1217 .aux-icon-list-text {
	color: rgba(255, 255, 255, 0.88) !important;
}

body.home h1.elementor-heading-title {
	font-size: clamp(2.05rem, 3.6vw, 3.05rem) !important;
	max-width: none;
	line-height: 1.18 !important;
}

/* Solo residui Elementor: non toccare i <p> delle landing .mb-lp */
body.home .elementor-widget-text-editor,
body.home .aux-text-widget-content,
body.home .aux-modern-heading-description {
	font-size: 1.125rem !important;
	line-height: 1.75 !important;
}

body.home:not(.mb-lp) p {
	font-size: 1.125rem !important;
	line-height: 1.75 !important;
}

body.home .aux-ico-box img,
body.home .aux-icon-box img {
	filter: grayscale(0.35) contrast(1.05);
	opacity: 0.95;
}

body.home .aux-modern-heading-primary {
	margin-bottom: 0.55rem !important;
}

body.home .aux-modern-heading-secondary {
	font-size: 1.2rem !important;
	margin-bottom: 0.85rem !important;
}

/* Kicker template sopra l'H1 */
body.home .elementor-element-4cc0502 {
	display: none !important;
}

/* Hero: solo titolo + sottotitolo + primo testo. Il muro di H2 resta più sotto. */
body.home .elementor-element-903a554,
body.home .elementor-element-76fbb5f,
body.home .elementor-element-71608d6,
body.home .elementor-element-ee4815a,
body.home .elementor-element-b64890f,
body.home .elementor-element-1a5ea43 {
	display: none !important;
}

body.home .elementor-element-c3d736a {
	margin-bottom: 0.4rem;
}

body.home .elementor-element-3812446 .elementor-heading-title {
	font-size: 1.28rem !important;
	font-weight: 500 !important;
	color: var(--mb-muted) !important;
	letter-spacing: 0 !important;
	max-width: 44ch;
	line-height: 1.45 !important;
}

body.home .elementor-element-b8f5b30 {
	max-width: 48ch;
	color: var(--mb-muted);
}

body.home .elementor-element-b8f5b30 table,
body.home .elementor-element-b8f5b30 td {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Foto hero: taglio professionale, niente “stampatello” */
body.home .elementor-element-982a49b img {
	border-radius: var(--mb-radius);
	box-shadow: 0 22px 50px rgba(11, 31, 58, 0.22);
	width: 100%;
	height: auto;
	object-fit: cover;
}

body.home .elementor-element-bc6d616 {
	align-self: center;
}

/* CTA: oro su navy, non rosa Elementor */
body.home .elementor-element-989d429 .aux-button,
body.home .elementor-element-5462fb05 .aux-button,
body.home .aux-button,
body.home .aux-button.aux-carmine-pink {
	background: var(--mb-navy) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 1rem 1.7rem !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
	box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
	transition: transform 0.2s ease, background 0.2s ease;
	font-size: 1.05rem !important;
}

body.home .elementor-element-989d429 {
	margin-top: 1.1rem !important;
}

body.home .elementor-element-989d429::after {
	content: "Prima consulenza senza impegno";
	display: block;
	margin-top: 0.55rem;
	font-size: 0.95rem;
	color: var(--mb-muted);
}

body.home .aux-button:hover,
body.home .aux-button.aux-carmine-pink:hover {
	background: var(--mb-gold) !important;
	color: var(--mb-navy) !important;
	transform: translateY(-2px);
}

body.home .aux-button .aux-text {
	color: inherit !important;
	font-weight: 600 !important;
}

/* Sezione SEO: togli spacer vuoti, heading fantasma, pallini e buco bianco */
body.home .elementor-element-1d47119c {
	background: linear-gradient(180deg, #fff 0%, var(--mb-cream) 100%) !important;
	padding-top: 2.5rem !important;
	padding-bottom: 2.5rem !important;
}

body.home .elementor-element-780c45a,
body.home .elementor-element-1e50929,
body.home .elementor-element-45f6898,
body.home .elementor-element-9aa05ad,
body.home .elementor-element-77dbe1b,
body.home .elementor-element-0be21e7,
body.home .elementor-element-d419543,
body.home .elementor-element-aa89352 {
	display: none !important;
}

body.home .elementor-element-2395c078 .aux-media-image,
body.home .elementor-element-2395c078 .aux-tilt-box {
	max-height: 360px;
	overflow: hidden;
	border-radius: var(--mb-radius);
	box-shadow: 0 18px 40px rgba(11, 31, 58, 0.16);
}

body.home .elementor-element-2395c078 img {
	width: 100% !important;
	height: 360px !important;
	max-width: 100% !important;
	object-fit: cover !important;
	border-radius: var(--mb-radius);
}

/* Colonna servizi: più compatta */
body.home .elementor-element-5344c09c {
	padding-top: 1rem !important;
}

body.home .aux-modern-heading-primary {
	font-size: clamp(1.7rem, 2.4vw, 2.15rem) !important;
}

/* SEO: tre concetti nel blocco unico, niente articolo */
body.home .elementor-element-5199bb8,
body.home .elementor-element-54d6e07,
body.home .elementor-element-da410e8,
body.home .elementor-element-5086288,
body.home .elementor-element-2fcbbb5 {
	display: none !important;
}

/* Servizi: 6 card, via contenuti + analytics */
body.home .elementor-element-50542ef,
body.home .elementor-element-0a77ec6 {
	display: none !important;
}

body.home .elementor-element-e31f89c,
body.home .elementor-element-6395f2f {
	width: 50% !important;
}

/* Niente screenshot di siti cliente (cambiano nel tempo) */
body.home .elementor-element-5ce931be,
body.home .elementor-element-82c4a12 {
	display: none !important;
}

body.home .elementor-element-mbai01a {
	background: #fff !important;
	padding-top: 3rem !important;
	padding-bottom: 3.2rem !important;
}

body.home .elementor-element-mbai03c {
	max-width: 72ch;
}

body.home .elementor-element-mbai03c .aux-modern-heading-description p {
	margin-bottom: 1.05rem !important;
}

body.home .elementor-element-mbai03c .aux-modern-heading-primary {
	font-size: clamp(1.7rem, 2.4vw, 2.15rem) !important;
	letter-spacing: -0.03em !important;
}

body.home .aux-modern-heading-description,
body.home .aux-modern-heading-description p {
	color: var(--mb-ink) !important;
	opacity: 1 !important;
}

body.home .elementor-element-4e234e4 .aux-modern-heading-description,
body.home .elementor-element-4e234e4 .aux-modern-heading-description p {
	color: var(--mb-navy) !important;
}

body.home .aux-text-widget .aux-widget-title,
body.home .aux-ico-box .col-title,
body.home .aux-widget-headline {
	font-size: 1.2rem !important;
	margin-bottom: 0.45rem !important;
}

body.home #site-elementor-header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {

	body.home .elementor-element-2395c078 img {
		height: 240px !important;
	}
}
