/**
 * IT Monteur — mobile-only layout (max-width: 767px). Desktop styles unchanged.
 * Overrides ArkaHost responsive.css fixed pixel .container widths.
 */

@media (max-width: 767px) {
	/* ── Full-width page shell (beats parent 290–440px .container rules) ── */
	html,
	body {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	html body.site_wrapper,
	html body .site_wrapper,
	html body .site_wrapper #container_full,
	html body #container_full {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	html body .container,
	html body .top_nav > .container,
	html body .header > .container,
	html body .container_full .container,
	html body .site_wrapper #container_full > .container,
	html body #container_full > .container {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 15px !important;
		padding-right: 15px !important;
		box-sizing: border-box !important;
	}

	html body .top_nav,
	html body .header {
		width: 100% !important;
		max-width: 100% !important;
		left: 0 !important;
		right: 0 !important;
	}

	/* ── Top bar — override parent absolute .left / 80px height ── */
	html body .top_nav {
		height: auto !important;
		min-height: 45px !important;
		max-height: none !important;
		padding: 8px 0 !important;
		position: relative !important;
	}

	html body .top_nav > .container {
		height: auto !important;
		min-height: 0 !important;
		flex-wrap: wrap !important;
		row-gap: 6px !important;
		align-items: center !important;
		justify-content: space-between !important;
	}

	html body .top_nav .left {
		position: static !important;
		float: none !important;
		width: auto !important;
		order: 1 !important;
		padding: 0 !important;
	}

	html body .top_nav .right {
		position: static !important;
		float: none !important;
		height: auto !important;
		width: 100% !important;
		order: 2 !important;
		justify-content: flex-end !important;
		padding: 0 !important;
	}

	html body .top_nav .right ul.tplinks {
		height: auto !important;
		float: none !important;
		width: 100% !important;
		flex-wrap: wrap !important;
		justify-content: flex-end !important;
		row-gap: 4px !important;
		margin-top: 0 !important;
		text-align: right !important;
	}

	html body .top_nav .tplinks li {
		float: none !important;
		display: inline-flex !important;
		margin: 0 10px 0 0 !important;
	}

	html body .top_nav .tplinks li:first-child {
		float: none !important;
		width: 100% !important;
		justify-content: flex-end !important;
		margin: 0 0 4px 0 !important;
	}

	html body .top_nav strong {
		font-size: 12px !important;
		line-height: 1.35 !important;
		flex-wrap: wrap !important;
		text-align: right !important;
		justify-content: flex-end !important;
		word-break: break-word !important;
	}

	html body .top_nav a,
	html body .top_nav .tplinks li a,
	html body .top_nav a.tpbut {
		font-size: 13px !important;
	}

	html body .top_nav a.tpbut {
		order: 3 !important;
		margin-left: 8px !important;
		padding: 6px 12px !important;
	}

	/* Hide currency selector on phones — saves horizontal space */
	html body .top_nav .select-style {
		display: none !important;
	}

	/* ── Header / logo / menu toggle ── */
	html body .header {
		top: auto !important;
		position: relative !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}

	html body.admin-bar .header,
	html body.admin-bar .header.innerpages {
		top: auto !important;
		position: relative !important;
		margin-top: 0 !important;
	}

	html body .header > .container {
		display: block !important;
	}

	html body .header .logo {
		width: 100% !important;
		float: none !important;
		text-align: center !important;
	}

	html body .header .logo #logo,
	html body .header #logo {
		display: inline-block !important;
		margin: 0 auto !important;
	}

	html body .header .menu_main {
		width: 100% !important;
		float: none !important;
	}

	/* Mobile navigation — vertical menu list */
	html body.site_wrapper .header .menu_main .navbar-collapse.collapse:not(.in) {
		display: none !important;
	}

	html body.site_wrapper .header .menu_main .navbar-collapse.collapse.in,
	html body.site_wrapper .header .menu_main .navbar-collapse.collapsing {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		overflow: visible !important;
	}

	html body.site_wrapper .header .menu_main .navbar-collapse nav,
	html body.site_wrapper .header .menu_main nav {
		display: block !important;
		width: 100% !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 0 !important;
	}

	html body.site_wrapper .header .menu_main nav::after {
		display: none !important;
		content: none !important;
	}

	html body.site_wrapper .header .menu_main #king-mainmenu,
	html body.site_wrapper .header .menu_main .nav.navbar-nav {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		white-space: normal !important;
	}

	html body.site_wrapper .header .menu_main #king-mainmenu > li,
	html body.site_wrapper .header .navbar-default .navbar-nav > li {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		float: none !important;
	}

	html body.site_wrapper .header .navbar-default .navbar-nav > li > a {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		min-height: 44px !important;
		padding: 12px 18px !important;
		text-align: left !important;
		border-right: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
		white-space: normal !important;
		box-sizing: border-box !important;
	}

	html body.site_wrapper .header .menu_main .navbar-header {
		width: 100% !important;
		text-align: right !important;
		padding: 8px 0 !important;
	}

	html body.site_wrapper .header .navbar-toggle {
		display: inline-block !important;
		float: right !important;
	}

	/* No fixed-header spacer when header is in document flow */
	html body.home .margin_bottom11.resp_margin_bottom68,
	html body.front-page .margin_bottom11.resp_margin_bottom68 {
		display: none !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html body.home .slidermar {
		margin-top: 0 !important;
	}

	/* ── Revolution Slider — full bleed ── */
	html body.home #rev_slider_1_1_wrapper,
	html body.home rs-module-wrap,
	html body.home .wpb_revslider_element,
	html body.home .wpb_row:has(.wpb_revslider_element) {
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* ── Domain search — beat parent icon-only submit button ── */
	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) .serch_area .input_submit,
	html body.home .domain_search .serch_area .input_submit {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		text-indent: 0 !important;
		background-image: none !important;
		padding: 14px 20px !important;
		text-align: center !important;
	}

	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) .serch_area .enter_email_input,
	html body.home .domain_search .serch_area .enter_email_input {
		width: 100% !important;
		float: none !important;
		margin-right: 0 !important;
	}

	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) .offers ul,
	html body.home .domain_search .offers ul {
		float: none !important;
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		width: 100% !important;
	}

	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) .offers li,
	html body.home .domain_search .offers li {
		float: none !important;
		width: 50% !important;
		text-align: center !important;
		box-sizing: border-box !important;
		padding: 14px 8px !important;
	}

	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) .offers li.last,
	html body.home .domain_search .offers li.last {
		width: 100% !important;
	}

	/* ── Welcome section — prevent clipped headings ── */
	html body.home .wpb_row.itmonteur-welcome-content-row:not(:has(.wpb_revslider_element)) {
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 28px 0 32px !important;
		box-sizing: border-box !important;
	}

	html body.home .wpb_row.itmonteur-welcome-content-row .container,
	html body.home .wpb_row.itmonteur-welcome-content-row .wpb_column,
	html body.home .wpb_row.itmonteur-welcome-content-row .wpb_text_column,
	html body.home .wpb_row.itmonteur-welcome-content-row .wpb_wrapper,
	html body.home .wpb_row.itmonteur-welcome-content-row .itmonteur-infra-services__header,
	html body.home .wpb_row.itmonteur-welcome-content-row .entry-content {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	html body.home .wpb_row.itmonteur-welcome-content-row .itmonteur-infra-services__title {
		font-size: 22px !important;
		line-height: 1.3 !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
		hyphens: auto !important;
	}

	html body.home .wpb_row.itmonteur-welcome-content-row .itmonteur-infra-services__subtitle {
		font-size: 15px !important;
		line-height: 1.45 !important;
	}

	html body.home .wpb_row.itmonteur-welcome-content-row .entry-content p {
		font-size: 15px !important;
		line-height: 1.55 !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
	}

	/* ── Full-bleed home bands — disable 100vw shift on mobile ── */
	html body.home .wpb_row[class*="itmonteur-home-band--"]:not(:has(.wpb_revslider_element)),
	html body.home .itmonteur-section-band:not(.itmonteur-infra-services--embedded),
	html body.home .wpb_row.feature_section1,
	html body.home .wpb_row.domain_search:not(.itmonteur-welcome-content-row) {
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
	}

	html body.home .wpb_row[class*="itmonteur-home-band--"]:not(:has(.wpb_revslider_element))::before,
	html body.home .itmonteur-section-band:not(.itmonteur-infra-services--embedded)::before {
		display: none !important;
		content: none !important;
	}

	html body.home .site_wrapper,
	html body.front-page .site_wrapper {
		overflow-x: hidden !important;
	}

	body.home .wpb_row[class*="itmonteur-home-band--"]:not(:has(.wpb_revslider_element)),
	body.home .itmonteur-section-band:not(.itmonteur-infra-services--embedded) {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	body.home .wpb_row.itmonteur-section-band > .container,
	body.home .wpb_row[class*="itmonteur-home-band--"] > .container,
	body.home .wpb_row.parallax_section1.itmonteur-band-tabs > .container,
	body.home .wpb_row.feature_section6.itmonteur-band-testimonials > .container,
	body.home .wpb_row.feature_section1.itmonteur-home-band--welcome > .container,
	body.home .wpb_row.itmonteur-section-band .wpb_column,
	body.home .wpb_row[class*="itmonteur-home-band--"] .wpb_column,
	body.home .wpb_row.itmonteur-section-band .wpb_wrapper,
	body.home .wpb_row[class*="itmonteur-home-band--"] .wpb_wrapper {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
		box-sizing: border-box !important;
	}

	body.home .wpb_row.feature_section1,
	body.home #king-313787 {
		padding-top: 28px !important;
	}

	body.home .itmonteur-band-tabs,
	body.home .wpb_row.parallax_section1.itmonteur-band-tabs {
		padding: 28px 12px 24px !important;
	}

	body.home .itmonteur-band-testimonials,
	body.home .wpb_row.feature_section6.itmonteur-band-testimonials {
		padding: 28px 12px 24px !important;
	}

	.itmonteur-infra-services__header {
		padding-left: 4px !important;
		padding-right: 4px !important;
		margin-bottom: 18px !important;
	}

	.itmonteur-infra-services__grid {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Service boxes — unclip from narrow WPBakery .container */
	html body.home .wpb_row.feature_section1,
	html body.home .wpb_row.feature_section1 > .container,
	html body.home .wpb_row.feature_section1 .wpb_column,
	html body.home .wpb_row.feature_section1 .vc_column_container,
	html body.home .wpb_row.feature_section1 .wpb_wrapper {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
		box-sizing: border-box !important;
	}

	html body.home .itmonteur-infra-services--embedded,
	html body.home .feature_section1 .itmonteur-infra-services--embedded {
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		margin: 0 !important;
		float: none !important;
		position: relative !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
		overflow: visible !important;
		box-sizing: border-box !important;
	}

	html body.home .itmonteur-infra-services--embedded::before,
	html body.home .feature_section1 .itmonteur-infra-services--embedded::before {
		display: none !important;
		content: none !important;
	}

	html body.home .itmonteur-infra-services--embedded .itmonteur-infra-services__header,
	html body.home .itmonteur-infra-services--embedded .itmonteur-infra-services__grid {
		width: 100% !important;
		max-width: 100% !important;
	}

	html body.home .itmonteur-infra-services__grid,
	html body.home .itmonteur-infra-services__grid--cols-2,
	html body.home .itmonteur-infra-services__grid--cols-3,
	html body.home .itmonteur-infra-services__grid--cols-4 {
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 14px !important;
	}

	html body.home .itmonteur-service-card,
	html body.home .itmonteur-service-card__link {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		overflow: visible !important;
	}

	html body.home .itmonteur-service-card__title,
	html body.home .itmonteur-service-card__text {
		overflow-wrap: anywhere !important;
		word-wrap: break-word !important;
	}

	body.home .itmonteur-band-clients,
	body.home .wpb_row.itmonteur-home-band--clients,
	body.home .itmonteur-band-certification,
	body.home .wpb_row.itmonteur-home-band--certification {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	/* WPB columns inside home rows */
	html body.home .wpb_row .wpb_column,
	html body.home .vc_column_container {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
