/*
Theme Name: ZMD Group Astra Child
Description: Astra child theme for ZMD Group customizations.
Author: ZMD Group
Template: astra
Version: 1.0.0
Text Domain: zmd-group-astra-child
*/

.wpcf7-submit {
	color: #fff !important;
}

.ast-theme-transparent-header #masthead {
	position: relative;
}

.ast-site-identity {
	padding: 0;
}

.spec-galary figure {
	max-width: 220px !important;
}

.spec-block {
	padding-left: 40px;
}

header {
	position: sticky !important;
	top: 0;
	background: #fff;
}

@media (max-width: 768px) {
	.spec-block {
		padding-left: 0;
	}
}

@media (max-width: 560px) {
	h2 {
		font-size: 34px !important;
	}
}

/* ZMD page background: match the light green homepage background. */
body.page:not(.home) {
	background: #ffffff !important;
	background-image: none !important;
}

body.page:not(.home) #page,
body.page:not(.home) #masthead,
body.page:not(.home) .site-header,
body.page:not(.home) .ast-main-header-wrap,
body.page:not(.home) .ast-mobile-header-wrap,
body.page:not(.home) .ast-primary-header-bar,
body.page:not(.home) .main-header-bar,
body.page:not(.home) .ast-builder-grid-row-container,
body.page:not(.home) .ast-builder-grid-row,
body.page:not(.home) .site-header-section,
body.page:not(.home) .ast-site-identity,
body.page:not(.home) .main-header-menu,
body.page:not(.home) .ast-builder-menu,
body.page:not(.home) .ast-menu-toggle,
body.page:not(.home) .main-header-menu .menu-link {
	background: #ffffff !important;
	background-image: none !important;
}

body.page:not(.home) .site-content,
body.page:not(.home) .site-content .ast-container,
body.page:not(.home) .site-content #primary,
body.page:not(.home) .site-content .site-main,
body.page:not(.home) .site-content article.ast-article-single,
body.page:not(.home) .site-content .entry-content {
	background: linear-gradient(180deg, rgb(202, 248, 128) 0%, rgb(230, 255, 230) 100%) !important;
}

body.page:not(.home) .site-content .entry-content {
	padding-top: 50px;
	padding-bottom: 50px;
}

/* Keep site header white above green page backgrounds. */
#masthead,
.site-header,
.ast-theme-transparent-header #masthead,
.ast-primary-header-bar,
.main-header-bar,
.ast-builder-grid-row-container,
.ast-builder-grid-row,
.ast-mobile-header-wrap,
.ast-mobile-header-content,
.ast-desktop-header-content {
	background: #ffffff !important;
	background-image: none !important;
}

/* Keep page chrome white; green starts below the header only. */
body.page:not(.home) #page {
	background: #ffffff !important;
	background-image: none !important;
}

body.page:not(.home) #masthead,
body.page:not(.home) #masthead *,
body.page:not(.home) .site-header,
body.page:not(.home) .site-header *,
body.page:not(.home) .ast-primary-header-bar,
body.page:not(.home) .ast-primary-header-bar *,
body.page:not(.home) .main-header-bar,
body.page:not(.home) .main-header-bar * {
	background-color: #ffffff !important;
	background-image: none !important;
}

body.page:not(.home) .site-content {
	background: linear-gradient(180deg, rgb(202, 248, 128) 0%, rgb(230, 255, 230) 100%) !important;
}

/* Active menu item: bolder text with underline. */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.ast-builder-menu .main-navigation .current-menu-item > .menu-link,
.ast-builder-menu .main-navigation .current_page_item > .menu-link,
.ast-builder-menu .main-navigation .current-menu-ancestor > .menu-link {
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* Fit the Morando Cavalli / Horses logo inside the brand row. */
.spec-galary img[src*="logoMorandoCavalli_rosso.svg"] {
	width: 170px !important;
	height: 170px !important;
	max-width: 170px !important;
	max-height: 170px !important;
	object-fit: contain !important;
}

.spec-galary figure:has(img[src*="logoMorandoCavalli_rosso.svg"]) {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 220px !important;
	height: 220px !important;
}
