/*
Theme Name: Vízvezeték Child
Description: Gyermektéma a GeneratePress szülőtémához; a 2026-os műszeres csőtörés-bemérés fókuszú design frissítésbiztos megőrzésére.
Author: Bognár Stúdió
Template: generatepress
Version: 1.0.1
Text Domain: vizvezetek-child
*/

/* WPVibe modernization: image + caption alignment */
.entry-content .wp-block-image > figure.alignleft,
.entry-content .wp-block-image > figure.alignright,
.entry-content .wp-block-image > figure.aligncenter {
  display: inline-grid !important;
  grid-template-columns: minmax(0, auto);
  width: auto !important;
  max-width: 100%;
}
.entry-content .wp-block-image > figure.alignleft {
  float: left;
  margin: 0 24px 18px 0;
}
.entry-content .wp-block-image > figure.alignright {
  float: right;
  margin: 0 0 18px 24px;
}
.entry-content .wp-block-image > figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.entry-content .wp-block-image > figure figcaption {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 7px 0 0 !important;
  padding: 0 4px;
  text-align: center !important;
  line-height: 1.35;
}
@media (max-width: 768px) {
  .entry-content .wp-block-image > figure.alignleft,
  .entry-content .wp-block-image > figure.alignright,
  .entry-content .wp-block-image > figure.aligncenter {
    float: none !important;
    display: grid !important;
    width: fit-content !important;
    margin: 0 auto 22px !important;
  }
}

/* WPVibe 2026 refresh: műszeres csőtörés-bemérés fókusz */
:root {
	--vv-ink: #27343a;
	--vv-muted: #607077;
	--vv-accent: #7a86c2;
	--vv-accent-dark: #626ea9;
	--vv-soft: #f1f3fb;
	--vv-line: #d9deef;
	--vv-bg: #f7f7fb;
	--vv-white: #ffffff;
}

body {
	background: var(--vv-bg);
	color: var(--vv-ink);
	font-size: 18px;
	line-height: 1.72;
}

.site-header {
	background: var(--vv-white);
	border-bottom: 1px solid var(--vv-line);
}

.inside-header {
	padding-top: 24px;
	padding-bottom: 24px;
}

.main-title a,
.main-title a:hover {
	color: var(--vv-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-description {
	color: var(--vv-muted);
	font-size: 15px;
}

.main-navigation {
	background: #7a86c2;
	box-shadow: inset 0 -1px 0 rgba(255,255,255,.22), 0 3px 10px rgba(98,110,169,.10);
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items a {
	color: #ffffff !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	font-weight: 600;
	letter-spacing: 0.01em;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a {
	background: var(--vv-accent);
}

.site.grid-container {
	margin-top: 32px;
	margin-bottom: 40px;
}

.inside-article,
.widget-area .widget {
	background: var(--vv-white);
	border: 1px solid var(--vv-line);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(32, 53, 61, 0.06);
}

.inside-article {
	padding: clamp(28px, 4vw, 54px);
}

.entry-title {
	color: var(--vv-ink);
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.025em;
	margin-bottom: 28px;
}

.entry-content h2 {
	color: var(--vv-ink);
	font-size: clamp(25px, 2.6vw, 34px);
	line-height: 1.22;
	letter-spacing: -0.015em;
	margin-top: 1.8em;
	padding-top: 0.15em;
}

.entry-content h3,
.entry-content h4 {
	color: var(--vv-ink);
}

.entry-content p,
.entry-content li {
	color: var(--vv-ink);
}

.entry-content a {
	color: var(--vv-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--vv-accent);
}

.entry-content .wp-block-image img {
	border-radius: 10px;
}

.entry-content .has-background {
	border-radius: 10px;
	padding: 18px 22px;
}

.entry-content blockquote {
	border-left: 4px solid var(--vv-accent);
	background: var(--vv-soft);
	padding: 18px 22px;
	margin-left: 0;
}

.widget-title {
	color: var(--vv-ink);
	font-weight: 700;
}

.site-footer {
	border-top: 1px solid var(--vv-line);
}

/* Homepage visual rhythm: break up the long-form article */
.home #post-19 .entry-header {
	position: relative;
	padding: clamp(26px, 4vw, 44px);
	margin: calc(clamp(28px, 4vw, 54px) * -1) calc(clamp(28px, 4vw, 54px) * -1) 34px;
	background: linear-gradient(135deg, #f1f3fb 0%, #ffffff 62%, #f8f8fc 100%);
	border-bottom: 1px solid var(--vv-line);
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}


.home #post-19 .entry-header::before {
	content: "MŰSZERES HIBAFELTÁRÁS";
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--vv-accent-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
}

.home #post-19 .entry-title {
	max-width: 850px;
	margin-bottom: 0;
}

.home #post-19 .entry-content > .wp-block-image:first-child {
	display: none !important;
}

.home #post-19 .entry-content > p:first-of-type {
	font-size: 1.08em;
	line-height: 1.75;
	color: #33464d;
	min-height: 310px;
	padding: 34px 54% 34px 34px;
	background:
		linear-gradient(90deg, #f7fbfe 0%, #f7fbfe 47%, rgba(247,251,254,.20) 56%, rgba(247,251,254,0) 66%),
		url('https://vizvezetekszereles.net/wp-content/uploads/muszeres-csotores-bemeres.webp') right center / 52% cover no-repeat;
	border: 1px solid #d7e7f3;
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(31,95,145,.08);
}

.home #post-19 .entry-content > p:nth-of-type(2) {
	margin: 26px 0 34px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #8791c9 0%, #6874ad 100%);
	color: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(98, 110, 169, .16);
}

.home #post-19 .entry-content > p:nth-of-type(2) strong,
.home #post-19 .entry-content > p:nth-of-type(2) a {
	color: #fff;
}

.home #post-19 .entry-content h2 {
	position: relative;
	margin-top: 2.2em;
	padding: 18px 22px 18px 26px;
	background: #f3f4fa;
	border: 1px solid #d9deef;
	border-radius: 12px;
}

.home #post-19 .entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 5px;
	border-radius: 999px;
	background: var(--vv-accent);
}

.home #post-19 .entry-content > ul.wp-block-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 34px;
	padding: 0;
	list-style: none;
}

.home #post-19 .entry-content > ul.wp-block-list li {
	position: relative;
	margin: 0;
	padding: 15px 16px 15px 44px;
	background: #fff;
	border: 1px solid var(--vv-line);
	border-radius: 11px;
	box-shadow: 0 5px 16px rgba(32, 53, 61, .045);
}

.home #post-19 .entry-content > ul.wp-block-list li::before {
	content: "✓";
	position: absolute;
	left: 16px;
	top: 14px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #eceefa;
	color: var(--vv-accent-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

.home #post-19 .entry-content .wp-block-image {
	margin-top: 18px;
	margin-bottom: 20px;
}

.home #post-19 .entry-content .wp-block-image > figure img {
	box-shadow: 0 8px 20px rgba(32, 53, 61, .12);
}

.home #post-19 .entry-content .wp-block-image > figure figcaption {
	color: var(--vv-muted);
	font-size: 14px;
}

.home #post-19 .gyik-accordion {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.home #post-19 .gyik-accordion .item {
	border: 1px solid var(--vv-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 5px 16px rgba(32, 53, 61, .045);
}

.home #post-19 .gyik-accordion .q {
	width: 100%;
	padding: 17px 20px;
	background: #f3f4fa;
	color: var(--vv-ink);
	font-weight: 700;
	text-align: left;
	border: 0;
}

.home #post-19 .gyik-accordion .a {
	padding: 18px 20px;
}

/* Homepage layout: landing-page composition instead of blog + sidebar */
.home #content {
	display: block;
}

.home #primary {
	float: none;
	width: 100% !important;
	max-width: none;
}

.home #right-sidebar {
	display: none !important;
}

.home .site.grid-container {
	max-width: 1180px;
}

.home #post-19 .inside-article {
	padding: clamp(34px, 4vw, 58px);
}

.home #post-19 .entry-content > p:first-of-type {
	position: relative;
	overflow: hidden;
	min-height: 360px;
	padding: 44px 54% 44px 42px;
	background: #fff;
	border: 1px solid var(--vv-line);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(62,72,118,.09);
}

.home #post-19 .entry-content > p:first-of-type::before,
.home #post-19 .entry-content > p:first-of-type::after {
	content: "";
	position: absolute;
	right: 0;
	width: 49%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-left: 1px solid var(--vv-line);
	pointer-events: none;
}

.home #post-19 .entry-content > p:first-of-type::before {
	top: 0;
	height: calc(50% - 5px);
	background-image: url('https://vizvezetekszereles.net/wp-content/uploads/hol-ereszt.jpg');
	border-bottom: 5px solid #fff;
}

.home #post-19 .entry-content > p:first-of-type::after {
	bottom: 0;
	height: calc(50% - 5px);
	background-image: url('https://vizvezetekszereles.net/wp-content/uploads/korrelacios-szett.jpg');
	border-top: 5px solid #fff;
}

.home #post-19 .entry-content > p:nth-of-type(2) {

	margin-top: 18px;
}

/* First expert section as one coherent card */
.home #post-19 .entry-content > h2:nth-of-type(1) {
	margin: 48px 0 0;
	min-height: 108px;
	padding-right: 132px;
	display: flex;
	align-items: center;
	border-radius: 18px 18px 0 0;
	border-bottom: 0;
	background: linear-gradient(135deg, #f3f4fa, #fff);
}

.home #post-19 .entry-content > h2:nth-of-type(1)::after {
	content: "";
	position: absolute;
	right: 24px;
	top: 14px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: url('https://vizvezetekszereles.net/wp-content/uploads/DancsGyula-1.webp') center / cover no-repeat;
	border: 4px solid #fff;
	box-shadow: 0 5px 16px rgba(62,72,118,.16);
}

.home #post-19 .entry-content > h2:nth-of-type(1) + p,
.home #post-19 .entry-content > h2:nth-of-type(1) + p + p,
.home #post-19 .entry-content > h2:nth-of-type(1) + p + p + p {
	margin: 0;
	padding: 0 28px 20px;
	background: #fff;
	border-left: 1px solid var(--vv-line);
	border-right: 1px solid var(--vv-line);
}

.home #post-19 .entry-content > h2:nth-of-type(1) + p {
	padding-top: 24px;
}

.home #post-19 .entry-content > h2:nth-of-type(1) + p + p + p {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--vv-line);
	border-radius: 0 0 18px 18px;
	box-shadow: 0 10px 28px rgba(62,72,118,.06);
}

/* Specialist section gets a contrasting panel */
.home #post-19 .entry-content > h2:nth-of-type(2) {
	margin: 34px 0 0;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(135deg, #eef0f8, #f8f8fc);
	border-bottom: 0;
}

.home #post-19 .entry-content > h2:nth-of-type(2) + p,
.home #post-19 .entry-content > h2:nth-of-type(2) + p + p {
	margin: 0;
	padding: 0 28px 20px;
	background: #f8f8fc;
	border-left: 1px solid var(--vv-line);
	border-right: 1px solid var(--vv-line);
}

.home #post-19 .entry-content > h2:nth-of-type(2) + p {
	padding-top: 24px;
}

.home #post-19 .entry-content > h2:nth-of-type(2) + p + p {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--vv-line);
	border-radius: 0 0 18px 18px;
}

/* Service matrix: clearer, less blog-like */
.home #post-19 .entry-content > h2:nth-of-type(3) {
	margin-top: 38px;
}

.home #post-19 .entry-content > ul.wp-block-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.home #post-19 .entry-content > ul.wp-block-list li {
	min-height: 72px;
	display: flex;
	align-items: center;
}

/* Related posts: three clean cards */
.home #post-19 .crp_related ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.home #post-19 .crp_related ul li:nth-child(n+4) {
	display: none;
}

.home #post-19 .crp_related ul li {
	width: auto !important;
	margin: 0 !important;
	border: 1px solid var(--vv-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 18px rgba(62,72,118,.06);
}

@media (max-width: 768px) {
	body {
		font-size: 17px;
	}

	.home #post-19 .entry-content > p:first-of-type {
		min-height: 0;
		padding: 365px 22px 24px;
	}

	.home #post-19 .entry-content > p:first-of-type::before,
	.home #post-19 .entry-content > p:first-of-type::after {
		left: 0;
		right: 0;
		width: 100%;
		height: 175px;
		border-left: 0;
	}

	.home #post-19 .entry-content > p:first-of-type::before {
		top: 0;
		border-bottom: 5px solid #fff;
	}

	.home #post-19 .entry-content > p:first-of-type::after {
		top: 180px;
		bottom: auto;
		border-top: 0;
		border-bottom: 1px solid var(--vv-line);
	}

	.home #post-19 .entry-content > h2:nth-of-type(1) {
		min-height: 0;
		padding-right: 92px;
	}

	.home #post-19 .entry-content > h2:nth-of-type(1)::after {
		right: 14px;
		top: 14px;
		width: 62px;
		height: 62px;
	}

	.site.grid-container {
		margin-top: 18px;
	}

	.inside-article {
		padding: 24px 20px;
		border-radius: 0;
	}

	.entry-title {
		font-size: 32px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 auto 22px;
		text-align: center;
	}

	.home #post-19 .entry-header {
		margin: -24px -20px 28px;
		padding: 28px 20px;
		border-radius: 0;
	}

	.home #post-19 .entry-content > ul.wp-block-list,
	.home #post-19 .crp_related ul {
		grid-template-columns: 1fr;
	}

	.home #post-19 .entry-content h2 {
		padding: 16px 18px 16px 22px;
	}

	.home #post-19 .entry-content > h2:nth-of-type(1) + p,
	.home #post-19 .entry-content > h2:nth-of-type(1) + p + p,
	.home #post-19 .entry-content > h2:nth-of-type(1) + p + p + p,
	.home #post-19 .entry-content > h2:nth-of-type(2) + p,
	.home #post-19 .entry-content > h2:nth-of-type(2) + p + p {
		padding-left: 20px;
		padding-right: 20px;
	}
}


