/**
* Theme Name: Max Dental Child
* Description: Child theme for Max Dental 
* Author: designervily
* Template: max-dental
* Version: 1.0.1
*/

.astra-orbit-brand { position: relative; }
.astra-orbit-sparkle {
	position: absolute;
	pointer-events: none;
	overflow: visible;
	z-index: 1;
	filter: drop-shadow(0 0 2px #f5cd6b);
}

/* Compact contact drawer; retain accessible labels behind placeholders. */
.astra-form-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
#max-core-contact-dialog .max-core-dialog-header { padding: 6px 16px; gap: 12px; }
#max-core-contact-dialog .max-core-dialog-header h2 { margin: 0; font-size: 20px; line-height: 1.2; }
#max-core-contact-dialog .max-core-dialog-body { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
#max-core-contact-dialog .max-core-contact-intro { font-size: 16px; line-height: 1.4; letter-spacing: 0; margin-bottom: 14px; }
#max-core-contact-dialog .pbmit-appoinment-form .input-group { margin-bottom: 10px; }
#max-core-contact-dialog .max-core-field-label > .wpcf7-form-control-wrap { margin-top: 0; }
#max-core-contact-dialog .pbmit-appoinment-form :is(input[type=text], input[type=email], input[type=tel]) { height: 44px; min-height: 44px; padding: 9px 12px; }
#max-core-contact-dialog .pbmit-appoinment-form .input-group textarea { height: 80px; min-height: 80px; padding: 9px 12px; }
#max-core-contact-dialog :is(input, textarea)::placeholder { color: #75685c; opacity: 1; }
#max-core-contact-dialog .pbmit-appoinment-form .file-row .input-group { padding: 8px 10px; }
#max-core-contact-dialog .file-text { margin: 0 0 5px; font-size: 12px; line-height: 1.4; }
#max-core-contact-dialog input[type=file] { font-size: 13px; line-height: 1.4; }
#max-core-contact-dialog input[type=file]::file-selector-button { min-height: 32px; padding: 4px 9px; font-size: 13px; border-radius: 8px; }
#max-core-contact-dialog .pbmit-appoinment-form .input-button { margin-bottom: 0; }
#max-core-contact-dialog .wpcf7-submit { min-height: 44px; padding: 12px 18px; }
.wpcf7 [name="nome-ok"] { --astra-field-icon: url('assets/icons/form-user.svg'); }
.wpcf7 [name="email-ok"] { --astra-field-icon: url('assets/icons/form-email.svg'); }
.wpcf7 [name="telefono-ok"] { --astra-field-icon: url('assets/icons/form-phone.svg'); }
.wpcf7 [name="nota-ok"] { --astra-field-icon: url('assets/icons/form-message.svg'); }
:is(#max-core-contact-dialog, .wpcf7) .pbmit-appoinment-form :is(input[name="nome-ok"], input[name="email-ok"], input[name="telefono-ok"], textarea[name="nota-ok"]) {
	padding-left: 40px;
	background-image: var(--astra-field-icon);
	background-repeat: no-repeat;
	background-position: 12px 13px;
	background-size: 18px 18px;
}
:is(#max-core-contact-dialog, .wpcf7) .pbmit-appoinment-form .file-text {
	padding-left: 25px;
	background: url('assets/icons/form-upload.svg') left top / 17px 17px no-repeat;
}
:is(#max-core-contact-dialog, .wpcf7) .pbmit-appoinment-form :is(input, textarea)::placeholder {
	font-size: 13px;
	font-weight: 400;
}
@media (min-width: 768px) {
	#max-core-contact-dialog .pbmit-appoinment-form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
}

/* Omit author attribution from blog cards and article pages. */
.pbmit-meta-author,
.single-post .pbmit-author-box {
	display: none !important;
}

.patient-satisfaction-card > div {
	min-height: 365px;
}

.patient-satisfaction-ihbox,
.patient-satisfaction-ihbox > div,
.patient-satisfaction-ihbox .pbmit-ihbox-style-41,
.patient-satisfaction-ihbox .pbmit-ihbox-wrap {
	height: 100%;
}

.patient-satisfaction-ihbox .pbmit-ihbox-wrap {
	display: flex;
	flex-direction: column;
}

.patient-satisfaction-ihbox .pbmit-contents-wrap {
	margin-top: auto;
}

/* Generated Elementor card images: preserve useful crops on phones. */
@media(max-width:767px){
 .elementor-element-256041b2>.elementor-widget-wrap{background-position:72% center!important}
 .elementor-element-256041b2 .pbmit-ihbox-style-41 .pbmit-element-title{font-size:22px!important;line-height:1.3!important;max-width:235px}
 .elementor-element-7114a9ce>.elementor-widget-wrap{min-height:310px;background-position:62% center!important}
 .elementor-element-7114a9ce .elementor-element-6050cd4c{padding-right:20px}
}
/* Keep the desktop sticky header inset like the normal header. */
@media (min-width: 1201px) {
	#masthead.pbmit-header-style-6 .pbmit-sticky-header {
		box-sizing: border-box;
		padding: 20px;
	}
}

/* Mobile header */
@media (max-width: 767px) {
	/* Center the contact stack above the 50px back-to-top button. */
	body .max-core-contact-bar.max-core-position-right {
		flex-direction: column;
		box-sizing: border-box;
		width: 50px;
		right: 16px;
		left: auto;
		bottom: calc(82px + env(safe-area-inset-bottom, 0px));
		gap: 12px;
		padding: 4px 3px;
		background: rgba(255, 255, 255, .2);
		transform: none;
	}

	#masthead.pbmit-header-style-6 .pbmit-header-overlay { padding-block: 4px; }
	#masthead.pbmit-header-style-6 .pbmit-sticky-header { padding-block: 4px; }

	#masthead.pbmit-header-style-6 .pbmit-main-header-area {
		margin-inline: 10px;
		border-radius: 20px;
	}

	#masthead .pbmit-header-content,
	#masthead .site-branding {
		height: 60px !important;
		padding: 0 !important;
	}

	#masthead .pbmit-header-content { min-height: 60px !important; }
	#masthead .pbmit-main-header-area > .container { padding-inline: 16px !important; }
	#masthead .site-branding { display: flex; align-items: center; }
	#masthead .site-branding img { max-width: 150px !important; max-height: 52px !important; width: auto !important; object-fit: contain; }
	#masthead .site-branding .site-title { line-height: 1 !important; }
	#masthead .pbmit-menu-logoarea { width: 100%; }

	#masthead .nav-menu-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		padding: 0 !important;
		border: 1px solid #e9dfd2 !important;
		border-radius: 20px !important;
		background: #f4ebdd !important;
		color: #574638 !important;
	}

	#masthead .nav-menu-toggle i { font-size: 20px !important; line-height: 1 !important; }
	#masthead .nav-menu-toggle:focus-visible { outline: 3px solid #79a5e6; outline-offset: 3px; }
}
/* Full-width mobile navigation. */
#astra-mobile-menu:not([open]) { display: none; }
html.astra-mobile-menu-open { overflow: hidden; }

#astra-mobile-menu {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: max(4px, env(safe-area-inset-top)) 16px max(4px, env(safe-area-inset-bottom));
	border: 0;
	background: #f8f2e9;
	color: #30251f;
	overflow: auto;
	overscroll-behavior: contain;
}

.astra-mobile-menu__top,
.astra-mobile-menu__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.astra-mobile-menu__top {
	box-sizing: border-box;
	min-height: 60px;
	margin-inline: -6px;
	padding: 0 15px;
	border: 1px solid #30251f;
	border-radius: 20px;
	background: #fff;
}

.astra-mobile-menu__brand img { display: block; width: 150px; max-width: 100%; max-height: 52px; height: auto; object-fit: contain; }

#astra-mobile-menu :is(.astra-mobile-menu__close, .astra-mobile-menu__submenu) {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e7d8c6;
	border-radius: 50%;
	background: #f4ebdd;
	color: #574638;
	line-height: 1;
}

#astra-mobile-menu .astra-mobile-menu__close { font-size: 28px; border-radius: 20px; }

.astra-mobile-menu__actions { margin: 16px 0 20px; }

#astra-mobile-menu .astra-mobile-menu__actions > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 8px 15px;
	border: 1px solid #d3ab77;
	border-radius: 14px;
	background: #efd6b3;
	color: #30251f;
	font-size: 14px;
	font-weight: 650;
	text-align: center;
}

.astra-mobile-menu__languages { position: relative; flex: none; }

.astra-mobile-menu__languages summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 7px 12px;
	border: 1px solid #d8c4ae;
	border-radius: 999px;
	background: #fffdf9;
	font-size: 14px;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
}

.astra-mobile-menu__languages summary img { width: 25px; height: 25px; object-fit: contain; }

.astra-mobile-menu__languages summary::-webkit-details-marker { display: none; }
.astra-mobile-menu__languages summary::after { content: "⌄"; }

#astra-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
#astra-mobile-menu .astra-mobile-menu__languages .lang-dropdown {
	position: absolute;
	z-index: 1;
	inset: calc(100% + 6px) 0 auto auto;
	display: block;
	min-width: 130px;
	padding: 5px;
	border: 1px solid #e3d4c3;
	border-radius: 14px;
	background: #fffdf9;
	box-shadow: 0 8px 20px #30251f1a;
}

#astra-mobile-menu .lang-dropdown a { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; }
#astra-mobile-menu .lang-dropdown [aria-current="true"] { background: #f4ebdd; font-weight: 700; }

#astra-mobile-menu nav li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	border-bottom: 1px solid #e3d4c3;
}

#astra-mobile-menu nav li > a {
	display: flex;
	align-items: center;
	min-height: 49px;
	padding: 8px 12px;
	color: #30251f;
	font-weight: 650;
}

#astra-mobile-menu nav .astra-mobile-menu__submenu { border: 0; background: transparent; }
.astra-mobile-menu__submenu::after { content: "+"; font-size: 22px; }
.astra-mobile-menu__submenu[aria-expanded="true"]::after { content: "−"; }

#astra-mobile-menu nav li > ul {
	display: block;
	grid-column: 1 / -1;
	margin: 0 0 8px 12px;
	padding-inline-start: 8px;
	border-inline-start: 1px solid #d8c4ae;
}

#astra-mobile-menu nav li > ul[hidden] { display: none; }
#astra-mobile-menu nav ul ul li:last-child { border: 0; }
#astra-mobile-menu nav ul ul a { font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
	#astra-mobile-menu[open] :is(.astra-mobile-menu__actions, nav) { animation: astra-mobile-menu-enter .26s cubic-bezier(.2,.65,.3,1) both; }
	@keyframes astra-mobile-menu-enter {
		from { opacity: 0; transform: translateY(16px); }
	}
}

/* Group portrait: keep every face in view on narrow cards. */
@media(max-width:767px){.elementor-element-256041b2>.elementor-widget-wrap{background-size:100% auto!important;background-position:center 36px!important;background-color:#E5D5BE!important}.elementor-element-256041b2 .pbmit-ihbox-style-41 .pbmit-element-title{max-width:240px;font-size:22px!important}}

/* Clinic footer */
#colophon.astra-footer {
	position: relative;
	inset: auto;
	width: auto;
	margin: 0 0 clamp(10px, 2vw, 28px);
	padding: 0;
	border: 1px solid #d8c4b0;
	border-radius: 24px;
	overflow: hidden;
	background: #30251f;
	color: #fff9f2;
}

.astra-footer__panel {
	display: grid;
	grid-template-columns: minmax(250px, 1fr) minmax(0, 2.4fr);
}

.astra-footer__brand {
	padding: clamp(2rem, 4vw, 5rem);
	background: #f3ebe1;
	color: #30251f;
}

.astra-footer__brand img {
	display: block;
	width: min(240px, 100%);
	height: auto;
}

.astra-footer__brand > a.astra-orbit-brand {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.astra-footer__brand p {
	max-width: 26ch;
	margin: 1rem 0 1.5rem;
	color: #59473c;
}

.astra-footer__details {
	padding: clamp(2rem, 4vw, 5rem) clamp(1.5rem, 4vw, 5rem) 1.5rem;
}

.astra-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
	gap: clamp(1.25rem, 2.5vw, 3rem);
}

#colophon.astra-footer h2 {
	margin: 0 0 1rem;
	padding-bottom: .65rem;
	border-bottom: 1px solid #836849;
	color: #f3d7ab;
	font-size: 1rem;
	line-height: 1.4;
	letter-spacing: .025em;
}

#colophon.astra-footer ul { margin: 0; padding: 0; list-style: none; }
#colophon.astra-footer li { margin: 0 0 .55rem; padding: 0; }
#colophon.astra-footer a { color: inherit; text-underline-offset: .22em; }
#colophon.astra-footer a:hover { text-decoration: underline; }
#colophon.astra-footer a:focus-visible { outline: 2px solid #bd8954; outline-offset: 4px; }
.astra-footer__address, .astra-footer__visit p { color: #eadbcf; }

#colophon.astra-footer .astra-footer__social,
#colophon.astra-footer .astra-footer__booking {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	min-height: 44px;
	padding: .65rem 1rem;
	border-radius: 50px;
	font-size: .875rem;
	line-height: 1.35;
}

#colophon.astra-footer .astra-footer__social { border: 1px solid #bda488; }
.astra-footer__social strong { display: block; }
#colophon.astra-footer .astra-footer__booking {
	background: #edd2aa;
	color: #30251f;
	font-weight: 650;
}

.astra-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-top: clamp(1.5rem, 4vw, 3rem);
	padding-top: 1rem;
	border-top: 1px solid #836849;
	color: #eadbcf;
	font-size: .875rem;
}

@media (max-width: 1024px) {
	.astra-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.astra-footer__visit { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	#colophon.astra-footer { border-radius: 20px; }
	.astra-footer__panel { grid-template-columns: minmax(0, 1fr); }
	.astra-footer__details { padding-bottom: 5rem; }
	.astra-footer__brand, .astra-footer__details { padding-inline: 1rem; }
	.astra-footer__grid { gap: 1.15rem .75rem; }
}

/* Dental guides */
.astra-editorial-heading {
	background: #f3ebe1;
	border-block: 1px solid #e6d8ca;
	color: #30251f;
	padding: clamp(1.5rem, 4vw, 4.5rem) 0;
}

.astra-editorial-heading__layout {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(1.25rem, 4vw, 4.5rem);
}

.astra-editorial-heading__topics {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-bottom: .9rem;
}

.astra-editorial-heading__topics a {
	border: 1px solid #d3bba6;
	border-radius: 40px;
	padding: .3rem .7rem;
	color: #66452f;
	font-size: .8rem;
	font-weight: 650;
}

.astra-editorial-heading h1 {
	margin: 0 0 .9rem;
	color: #30251f;
	font-size: clamp(2.1rem, 4vw, 4.1rem);
	font-weight: 650;
	letter-spacing: -.052em;
	line-height: 1.06;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.astra-editorial-heading p { max-width: 55ch; margin: 0 0 .85rem; color: #5b483b; }
.astra-editorial-heading time { color: #6b5445; font-size: .875rem; }

.astra-editorial-heading__cover {
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	background: #e5d5c5;
}
.astra-editorial-heading__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.astra-guide {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(225px, 290px);
	align-items: start;
	gap: clamp(1.5rem, 4vw, 4rem);
	width: 100%;
	padding-inline: 15px;
}
.astra-guide__main, .astra-guide__article, .astra-editorial-sidebar { min-width: 0; }
.astra-guide .astra-editorial-sidebar { width: auto; max-width: none; padding: 0; }
.astra-guide__content { max-width: 75ch; color: #3f342b; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75; }
.astra-guide__content > p:first-child { font-size: 1.1em; color: #30251f; }
.astra-guide__content h2 {
	margin: 2.35rem 0 .75rem;
	padding-top: 1.05rem;
	border-top: 1px solid #dac7b5;
	color: #30251f;
	font-size: clamp(1.45rem, 3vw, 2.15rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}
.astra-guide__content h3 { margin: 1.3rem 0 .55rem; color: #6d492f; font-size: 1.12em; }
.astra-guide__content figure { margin: 1.65rem 0; }
.astra-guide__content figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.astra-guide__content figcaption { margin-top: .55rem; color: #695549; font-size: .875rem; }
.astra-guide__content table { display: block; max-width: 100%; overflow-x: auto; }
.astra-guide__content a { text-decoration: underline; text-underline-offset: .18em; }
.astra-editorial-card {
	margin-bottom: 1rem;
	padding: 1.15rem;
	border: 1px solid #decebd;
	border-radius: 16px;
	background: #fffdf9;
	color: #30251f;
}
.astra-editorial-card h2 {
	margin: 0 0 .7rem;
	padding-bottom: .55rem;
	border-bottom: 1px solid #decebd;
	color: inherit;
	font-size: 1.12rem;
}
.astra-editorial-card ul { margin: 0; padding: 0; list-style: none; }
.astra-editorial-card li + li { margin-top: .6rem; }
.astra-editorial-card a { color: inherit; text-underline-offset: .18em; }
.astra-editorial-card a:hover { text-decoration: underline; }
.astra-editorial-card--contact { background: #30251f; color: #fff9ef; }
.astra-editorial-card--contact h2 { border-bottom-color: #8e735b; }

@media (max-width: 850px) {
	.astra-editorial-heading__layout, .astra-guide { grid-template-columns: minmax(0, 1fr); }
}

/* Center desktop navigation between the brand and header actions. */
@media (min-width: 1201px) {
	#masthead.pbmit-header-style-6 .pbmit-menu-logoarea {
		flex: 1 1 auto;
		min-width: 0;
	}
	#masthead.pbmit-header-style-6 .pbmit-logo-menuarea,
	#masthead.pbmit-header-style-6 .pbmit-right-box {
		flex: 0 0 auto;
	}
	#masthead.pbmit-header-style-6 .pbmit-menuarea {
		display: flex;
		flex: 1 1 auto;
		justify-content: center;
		padding-inline: 20px;
	}
}

/* Header contact number removed from both normal and sticky navigation. */
#masthead.pbmit-header-style-6 .pbmit-right-box > .pbmit-button-box { display: none !important; }
