/* Layout: header, page title, footer. Loaded on every page. */

/* ---------- Page title (Blocksy hero type-1) ---------- */
.hero-section[data-type="type-1"] h1.page-title {
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.hero-section[data-type="type-1"] {
	text-align: var(--alignment);
	margin-bottom: var(--margin-bottom, 0);
}

body:not(.home) header.entry-header {
	border-top: 2px solid;
}

h1.page-title {
	text-align: center;
}

@media (min-width: 900px) {
	body:not(.home) header.entry-header {
		border-color: var(--mspr-grigio);
		padding: 3rem;
	}
}

/* ---------- Header ---------- */
[data-device*="mobile"] .site-branding {
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
}

[data-device*="mobile"] .site-branding a.site-logo-container {
	margin: 0 auto;
}

.site-logo-container svg {
	height: var(--logo-shrink-height, var(--logo-max-height, 50px));
}

/* Mobile off-canvas menu */
[data-header*="type-1"] #offcanvas .ct-panel-inner {
	background-color: var(--mspr-cipria);
}

[data-header*="type-1"] #offcanvas .ct-panel-inner a {
	color: var(--mspr-grigio);
}

/* Desktop drop-down menu */
ul.sub-menu {
	background-color: #fff !important;
}

ul.sub-menu a {
	color: #000;
	font-size: 1rem;
}

/* ---------- Footer ---------- */
footer [data-row*="middle"] [data-column="widget-area-4"] {
	margin: 0 auto;
}

@media (max-width: 900px) {
	footer [data-row*="middle"] .ct-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 10px;
	}

	footer [data-row*="middle"] [data-column="widget-area-4"] {
		grid-column: span 2;
		padding: 2rem 0 0 0;
	}
}

[data-footer*="type-1"] .ct-footer .widget-title {
	text-transform: uppercase;
	text-decoration: underline;
}

/* Footer logo */
footer.ct-footer [data-column="widget-area-4"] div,
footer.ct-footer [data-column="widget-area-4"] div figure,
footer.ct-footer [data-column="widget-area-4"] div figure img,
footer.ct-footer [data-column="widget-area-4"] div figure svg {
	max-height: 200px;
}

/* Footer "Trattamenti" menu as picture tiles (desktop).
   The pictures follow menu order: reorder the menu → update this list. */
@media (min-width: 900px) {
	footer ul#menu-trattamenti {
		list-style-type: none;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		grid-column-gap: 28px;
	}

	footer ul#menu-trattamenti > li,
	footer ul#menu-trattamenti > li > a {
		display: inline-flex;
		height: 360px;
		width: 150px;
		font-weight: 800;
		font-size: 0.8rem;
	}

	footer ul#menu-trattamenti > li > a {
		flex-direction: column;
	}

	footer ul#menu-trattamenti > li > a::before {
		content: "";
		z-index: 0;
		height: 284px;
		width: 150px;
		margin-bottom: 20px;
		margin-right: auto !important;
		margin-left: auto !important;
		background-size: cover !important;
	}

	footer ul#menu-trattamenti > li:nth-child(1) > a::before { background: url("/wp-content/uploads/TRATTAMENTI-VISO.jpg"); }
	footer ul#menu-trattamenti > li:nth-child(2) > a::before { background: url("/wp-content/uploads/TRATTAMENTI-CORPO.jpg"); }
	footer ul#menu-trattamenti > li:nth-child(3) > a::before { background: url("/wp-content/uploads/GRAVIDANZA-POST-PARTUM.jpg"); }
	footer ul#menu-trattamenti > li:nth-child(4) > a::before { background: url("/wp-content/uploads/SPAZIO-FITNESS-MOVIMENTO.jpg"); }
	footer ul#menu-trattamenti > li:nth-child(5) > a::before { background: url("/wp-content/uploads/OSTEOPATIA.jpg"); }

	footer ul#menu-trattamenti > li a:first-child::after {
		position: relative !important;
		top: 20px !important;
	}
}
