/*
Theme Name:   Bartalotta Group (Houzez Child)
Theme URI:    https://www.bartalottagroup.com
Description:  Tema child di Houzez per Bartalotta Group. Lascia invariato il sito e aggiunge la hero in home, il logo e il banner cookie.
Author:       Bartalotta Group
Template:     houzez
Version:      1.2.0
Requires PHP: 7.4
Text Domain:  bartalotta-child
*/

/* ==========================================================================
   Logo
   ========================================================================== */

.header-main-wrap .logo img {
	height: 46px !important;
	width: auto !important;
	max-width: none;
}

.header-mobile .logo img {
	height: 34px !important;
	width: auto !important;
	max-width: 60vw;
	object-fit: contain;
}

.nav-mobile .logo img,
.slideout-menu .logo img {
	height: 34px !important;
	width: auto !important;
}

/* Footer verde: logo originale su un riquadro bianco */
.footer-bottom-wrap .footer_logo img {
	box-sizing: content-box;
	height: 40px !important;
	width: auto !important;
	max-width: none;
	padding: 10px 16px;
	border-radius: 6px;
	background: #fff;
}

@media (max-width: 767px) {
	.footer-bottom-wrap .footer_logo {
		margin: 16px 0;
	}

	.footer-bottom-wrap .footer_logo img {
		height: 32px !important;
	}
}

/* ==========================================================================
   Hero home
   ========================================================================== */

.bg-hero {
	--bg-navy: #002e51;
	--bg-navy-2: #004274;
	--bg-green: #16b614;
	--bg-green-dark: #1e821d;
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(1200px 600px at 85% 20%, rgba(0, 120, 200, .28), transparent 60%),
		linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-navy-2) 100%);
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Trama a puntini molto leggera */
.bg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
	mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
	pointer-events: none;
}

.bg-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: end;
	gap: 40px;
	min-height: 660px;
	padding-top: 90px; /* altezza header trasparente */
}

.bg-hero__content {
	align-self: center;
	padding: 48px 0 72px;
	max-width: 600px;
}

.bg-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9fe89e;
}

.bg-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--bg-green);
}

.bg-hero__title {
	margin: 0 0 34px;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.08;
	font-weight: 300;
	letter-spacing: -.01em;
	text-transform: none;
	color: #fff;
}

.bg-hero__title strong {
	font-weight: 700;
	color: #fff;
}

.bg-hero__title strong::after {
	content: ".";
	color: var(--bg-green);
}

.bg-hero__text {
	margin: 0 0 34px;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.6;
	font-weight: 300;
	color: rgba(255, 255, 255, .82);
}

.bg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
}

.bg-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	border: 2px solid transparent;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.bg-hero__btn:hover {
	transform: translateY(-1px);
}

.bg-hero__btn--primary {
	background: var(--bg-green);
	color: #fff !important;
}

.bg-hero__btn--primary:hover {
	background: var(--bg-green-dark);
}

.bg-hero__btn--ghost {
	border-color: rgba(255, 255, 255, .55);
	color: #fff !important;
}

.bg-hero__btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}

.bg-hero__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 6px;
	color: #fff !important;
	font-weight: 500;
	text-decoration: none !important;
	opacity: .9;
}

.bg-hero__phone:hover {
	opacity: 1;
}

.bg-hero__phone svg {
	width: 18px;
	height: 18px;
	fill: var(--bg-green);
}

.bg-hero__media {
	position: relative;
	align-self: end;
	display: flex;
	justify-content: center;
	height: 100%;
	min-height: 520px;
}

.bg-hero__photo {
	position: relative;
	display: block;
	align-self: end;
	width: auto;
	max-width: 100%;
	height: 570px;
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25));
}

@media (max-width: 1199px) {
	.bg-hero__photo { height: 520px; }
}

@media (max-width: 991px) {
	.bg-hero__inner {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 0;
		padding-top: 60px; /* altezza header mobile, sovrapposto in home */
	}

	.bg-hero__content {
		padding: 56px 0 40px;
		max-width: none;
	}

	.bg-hero__media {
		min-height: 0;
	}

	.bg-hero__photo {
		height: 440px;
	}
}

@media (max-width: 575px) {
	.bg-hero__content {
		padding: 40px 0 28px;
	}

	.bg-hero__eyebrow {
		font-size: 12px;
	}

	.bg-hero__text {
		font-size: 16px;
		margin-bottom: 26px;
	}

	.bg-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.bg-hero__phone {
		justify-content: center;
		margin: 4px 0 0;
	}

	.bg-hero__photo {
		height: 380px;
	}
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

/* Evita il doppio banner se il plugin Cookie Notice è ancora attivo. */
#cookie-notice {
	display: none !important;
}

.bg-cc,
.bg-cc * {
	box-sizing: border-box;
}

.bg-cc {
	--cc-navy: #002e51;
	--cc-green: #16b614;
	--cc-green-dark: #1e821d;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2b2f33;
}

.bg-cc[hidden],
.bg-cc [hidden] {
	display: none !important;
}

.bg-cc-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 100000;
	width: min(440px, calc(100vw - 32px));
	padding: 24px 24px 20px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 20, 40, .28);
	border-top: 4px solid var(--cc-green);
	animation: bg-cc-in .35s ease-out;
}

@keyframes bg-cc-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.bg-cc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7785;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bg-cc-close:hover {
	background: #f1f3f5;
	color: #222;
}

.bg-cc-title {
	margin: 0 32px 10px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cc-navy);
}

.bg-cc-text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: #4a525a;
}

.bg-cc-text a {
	color: var(--cc-green-dark);
	text-decoration: underline;
}

.bg-cc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.bg-cc-btn {
	min-height: 44px;
	padding: 0 16px;
	border-radius: 4px;
	border: 2px solid var(--cc-navy);
	background: #fff;
	color: var(--cc-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.bg-cc-btn:hover {
	background: var(--cc-navy);
	color: #fff;
}

.bg-cc-btn--accept {
	border-color: var(--cc-green);
	background: var(--cc-green);
	color: #fff;
}

.bg-cc-btn--accept:hover {
	border-color: var(--cc-green-dark);
	background: var(--cc-green-dark);
}

.bg-cc-btn--link {
	grid-column: 1 / -1;
	min-height: 36px;
	border: 0;
	background: transparent;
	color: #4a525a;
	font-weight: 500;
	text-decoration: underline;
}

.bg-cc-btn--link:hover {
	background: transparent;
	color: var(--cc-navy);
}

.bg-cc-btn:focus-visible,
.bg-cc-close:focus-visible,
.bg-cc-switch input:focus-visible + span,
.bg-cc-fab:focus-visible {
	outline: 3px solid #7cc4ff;
	outline-offset: 2px;
}

/* Pannello preferenze */
.bg-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 20, 40, .55);
}

.bg-cc-dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.bg-cc-cat {
	padding: 16px 0;
	border-top: 1px solid #e6e9ed;
}

.bg-cc-cat:last-of-type {
	border-bottom: 1px solid #e6e9ed;
	margin-bottom: 20px;
}

.bg-cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bg-cc-cat-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--cc-navy);
}

.bg-cc-cat p {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #5a636c;
}

.bg-cc-always {
	font-size: 12px;
	font-weight: 700;
	color: var(--cc-green-dark);
	white-space: nowrap;
}

.bg-cc-switch {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}

.bg-cc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.bg-cc-switch span {
	position: absolute;
	inset: 0;
	border-radius: 26px;
	background: #c5ccd3;
	transition: background-color .2s;
	pointer-events: none;
}

.bg-cc-switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}

.bg-cc-switch input:checked + span {
	background: var(--cc-green);
}

.bg-cc-switch input:checked + span::after {
	transform: translateX(20px);
}

.bg-cc-dialog .bg-cc-actions {
	grid-template-columns: repeat(3, 1fr);
}

/* Pulsante per riaprire le preferenze */
.bg-cc-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cc-navy);
	box-shadow: 0 6px 18px rgba(0, 20, 40, .3);
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s, transform .2s;
}

.bg-cc-fab:hover {
	opacity: 1;
	transform: scale(1.05);
}

.bg-cc-fab svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}

@media (max-width: 575px) {
	.bg-cc-banner {
		left: 16px;
		bottom: 16px;
		padding: 20px 18px 16px;
	}

	.bg-cc-dialog {
		padding: 22px 18px;
	}

	.bg-cc-dialog .bg-cc-actions {
		grid-template-columns: 1fr;
	}
}
