/*
Theme Name: Fenster Norta Hello Child
Description: Motyw potomny Hello Elementor — style przeniesione z Wygląd → Dostosuj → Dodatkowy CSS.
Author: Fenster Norta
Template: hello-elementor
Version: 1.0.0
Text Domain: fenster-norta-hello-child
*/


/**
 * Połączone style do: Wygląd → Dostosuj → Dodatkowy CSS
 * Kolejność: najpierw menu / globalne, na końcu strona-szkic Fensterbänke Gutenberg (.page-id-29260).
 * Po publikacji szkicu 29260 podmień selektor .page-id-29260 na nowy ID strony.
 */

/* =============================================================================
   MAX MEGA MENU
   ============================================================================= */

#mega-menu-wrap-menu-1 #mega-menu-menu-1 li.mega-menu-item.mega-menu-flyout ul.mega-sub-menu {
	width: 100%;
}

#mega-menu-17586-0 {
	background: #1ca575 !important;
	color: #fff;
}

#mega-menu-17586-0 a {
	color: #fff !important;
}

#mega-menu-17659-0 {
	background: #93a9af !important;
	color: #fff;
}

#mega-menu-17659-0 a {
	color: #fff !important;
}

#mega-menu-item-17659 > ul > li > ul > li a {
	padding: 3px 5px !important;
}

#mega-menu-item-17659 > ul > li > ul > li > ul > li > ul > li a {
	padding: 0 5px !important;
}

#mega-menu-item-17659 ul li a:hover {
	background: #fff !important;
	color: #93a9af !important;
}

#mega-menu-wrap-menu-1 h4.mega-block-title {
	color: #fff !important;
	margin: 10px 0 !important;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item {
	width: 16.66%;
	text-align: center;
	font-family: roboto, sans-serif;
	font-size: 19px;
	font-weight: 700 !important;
	text-transform: uppercase;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a {
	font-size: 16px !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link {
	text-align: center;
}

#mega-menu-wrap-menu-1 ul > li > ul > li > ul > li > a {
	text-transform: uppercase !important;
}

#mega-menu-wrap-menu-1 ul > li > ul > li > ul > li > ul > li > a {
	text-transform: none !important;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 a.mega-menu-link > span {
	font-size: 11px !important;
	font-weight: 300 !important;
}

#mega-menu-item-19604 {
	background: #248663 !important;
}

#mega-menu-item-19604 .mega-sub-menu li a {
	background: #248663 !important;
	color: #fff !important;
}

#mega-menu-item-19604 > ul > li > ul > li a {
	padding: 3px 5px !important;
}

#mega-menu-item-19604 > ul > li > ul > li > ul > li > ul > li > ul > li a {
	padding: 0 5px !important;
}

#mega-menu-item-19604 ul li a:hover {
	background: #fff !important;
	color: #248663 !important;
}

#mega-menu-item-19603 {
	background: #33bb8b !important;
}

#mega-menu-item-19603 .mega-sub-menu li a {
	background: #33bb8b !important;
	color: #fff !important;
}

#mega-menu-item-19603 > ul > li > ul > li a {
	padding: 3px 5px !important;
}

#mega-menu-item-19603 > ul > li > ul > li > ul > li > ul > li > ul > li a {
	padding: 0 5px !important;
}

#mega-menu-item-19603 ul li a:hover {
	background: #fff !important;
	color: #33bb8b !important;
}

#mega-menu-item-19605 {
	background: #199fda !important;
}

#mega-menu-item-19605 .mega-sub-menu li a {
	background: #199fda !important;
	color: #fff !important;
}

#mega-menu-item-19605 > ul > li > ul > li a {
	padding: 3px 5px !important;
}

#mega-menu-item-19605 > ul > li > ul > li > ul > li > ul > li > ul > li a {
	padding: 0 5px !important;
}

#mega-menu-item-19605 ul li a:hover {
	background: #fff !important;
	color: #199fda !important;
}

#mega-menu-item-17659 {
	background: #93a9af !important;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 li.mega-menu-item.mega-menu-megamenu ul.mega-sub-menu li.mega-2-columns > ul.mega-sub-menu > li.mega-menu-item {
	width: 100%;
	float: none;
}

#mega-menu-item-17586 > ul > li > ul > li a {
	padding: 3px 5px !important;
}

#mega-menu-item-17586 > ul > li > ul > li > ul > li > ul > li > ul > li a {
	padding: 0 5px !important;
}

#mega-menu-item-17586 ul li a:hover {
	background: #fff !important;
	color: #1ca575 !important;
}

/* =============================================================================
   TREŚĆ STRONY – LISTY
   ============================================================================= */

.page-content ul li {
	list-style: none;
	padding-left: 20px;
	background: url(/wp-content/uploads/2021/10/icon-pfeil-rechts-footer-gruen-norta.webp) no-repeat 1px 10px;
}

/* =============================================================================
   NEXTGEN GALLERY
   ============================================================================= */

.ngg-gallery-thumbnail {
	border: 0 !important;
}

.ngg-gallery-thumbnail-box {
	margin: 9px 5px;
}

.ngg-albumoverview .ngg-album-compact {
	margin: 10px 25px !important;
	padding: 0 !important;
	position: relative;
}

.ngg-albumoverview .ngg-album-compact h4 {
	font-size: 28px !important;
	font-weight: 300;
	margin: 0 !important;
	position: absolute;
	z-index: 1;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.ngg-albumoverview.default-view .ngg-album-compact {
	padding: 0 !important;
}

.ngg-albumoverview .ngg-album-link {
	height: 300px;
}

.ngg-albumoverview .ngg-album-compact h4 {
	display: block;
	width: 100%;
	height: 100%;
}

.ngg-albumoverview .ngg-album-compact h4 a {
	color: #fff;
	padding: 20px;
	width: 300px;
	height: 290px;
	vertical-align: middle;
	display: table-cell;
	font-size: 20px !important;
}

.ngg-albumoverview .ngg-album-compact h4 a:hover {
	color: #33bb8b;
	text-shadow: 1px 1px 5px #000;
}

.ngg-albumoverview .ngg-album-gallery-image-counter {
	display: none;
}

.ngg-albumoverview .ngg-album-compactbox {
	padding: 0 !important;
	border: 0 !important;
}

.ngg-albumoverview .ngg-album-compactbox .Thumb {
	border: 0 !important;
}

/* =============================================================================
   PORÓWNYWARKA (POPUP)
   ============================================================================= */

.porownywarkapopup h3 {
	color: #1ca575;
}

.porownywarkapopup span.close {
	position: absolute;
	right: 20px;
	top: 20px;
	cursor: pointer;
	width: 20px;
	height: 20px;
	background: url(images/close.png) no-repeat;
}

.porownywarkapopup {
	position: relative;
	color: #333;
	padding: 25px;
	z-index: 100001;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 750px;
	margin: -270px -400px;
	height: 500px;
	background: #fff;
}

.porownywarkapopup .okzamknij {
	cursor: pointer;
	font-weight: 500;
	position: absolute;
	left: 25px;
	bottom: 25px;
	color: #1ca575;
	text-align: center;
	border: 1px solid #1ca575;
	text-transform: uppercase;
	display: inline-block;
	width: 250px;
	padding: 15px 20px;
}

.porownywarkapopup .porownaj {
	cursor: pointer;
	font-weight: 500;
	position: absolute;
	right: 25px;
	bottom: 25px;
	color: #fff;
	background: #fc2367;
	text-align: center;
	text-transform: uppercase;
	display: inline-block;
	width: 140px;
	padding: 15px 20px;
}

.overwhite {
	display: none;
	background: rgba(64, 73, 78, 0.88);
	z-index: 100000;
	text-align: center;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
}

.porownywarkapopup {
	overflow: hidden;
	border: 2px solid #1ca575;
	padding: 10px;
	left: 5%;
	width: 90% !important;
	margin: -270px 0 !important;
	height: 500px;
}

.xx {
	position: fixed;
	z-index: 100000;
	right: 20px;
	top: 20px;
	cursor: pointer;
	width: 35px;
	height: 33px;
	background: url(/fa-close.png) center no-repeat;
}

/* =============================================================================
   WYBÓR KOLORÓW (AKCESORIA)
   ============================================================================= */

.color-container {
	float: left;
	width: 100%;
}

.color-images {
	float: left;
	height: 500px;
	position: relative;
	width: 28%;
	margin-right: 50px;
}

.color-images > div {
	display: none;
	left: 0;
	position: absolute;
	top: 0;
}

.color-images > .color-1-image {
	display: block;
}

.color-images > div > img {
	float: left;
	height: auto;
	width: 400px;
	z-index: 1;
	border: 0 solid #fff !important;
}

.color-images > div > a {
	background: url("../img/zoom.png") no-repeat 0 0;
	background-size: cover;
	height: 50px;
	right: 0;
	margin-right: 10%;
	position: absolute;
	top: 0;
	width: 50px;
	z-index: 2;
}

.color-list {
	cursor: pointer;
	float: right;
	width: 62%;
}

.color-list div {
	margin: 10px;
	float: left;
	width: 80px;
	height: 120px;
}

.color-list div span {
	border-radius: 50%;
	float: left;
	width: 70px;
	height: 70px;
}

.color-list div p {
	float: left;
	font-size: 12px !important;
	position: relative;
	top: 10px;
	text-align: center;
	width: 100%;
}

.color-list div.active-color p {
	color: #000 !important;
}

/* =============================================================================
   PRZYCISK „KONTAKT” – MENU (Elementor Nav Menu, stary selektor)
   ============================================================================= */

ul#menu-1-ec80117 > li.page-item-55 > a {
	border: 2px solid #2bb673;
	padding: 8px 18px;
	border-radius: 4px;
	color: #2bb673 !important;
	font-weight: 600;
	line-height: 1;
	transition: all 0.25s ease;
}

ul#menu-1-ec80117 > li.page-item-55 > a:hover {
	background-color: #2bb673;
	color: #fff !important;
}

ul#menu-1-ec80117 > li.current-menu-item.page-item-55 > a {
	background-color: #2bb673;
	color: #fff !important;
}

ul#menu-1-ec80117 > li.page-item-55 {
	margin-left: 14px;
}

/* =============================================================================
   GÓRNE MENU (Elementor) – LINK /kontakt/ (nadpisuje detale ramki)
   ============================================================================= */

.elementor-nav-menu--main .elementor-nav-menu a.elementor-item[href*="/kontakt"] {
	border: 1px solid #cfd4d8 !important;
	padding: 6px 12px !important;
	background: transparent !important;
	border-radius: 0 !important;
	color: #333 !important;
	-webkit-text-fill-color: #333 !important;
	opacity: 1 !important;
}

.elementor-nav-menu--main .elementor-nav-menu a.elementor-item[href*="/kontakt"]:hover {
	background: transparent !important;
	color: #2bb673 !important;
	-webkit-text-fill-color: #2bb673 !important;
	border-color: #cfd4d8 !important;
}

.elementor-nav-menu--main .elementor-nav-menu a.elementor-item[href*="/kontakt"]::before,
.elementor-nav-menu--main .elementor-nav-menu a.elementor-item[href*="/kontakt"]::after {
	display: none !important;
}

/* =============================================================================
   ELEMENTOR POPUP + FORMULATOR (ID 28867)
   ============================================================================= */

@media (min-width: 769px) {
	body .elementor-popup-modal .dialog-message {
		padding: 40px !important;
	}

	body .elementor-popup-modal form#forminator-module-28867 .forminator-field-name > .forminator-row {
		display: flex !important;
		gap: 20px !important;
	}

	body .elementor-popup-modal form#forminator-module-28867 .forminator-field-name > .forminator-row > .forminator-col {
		flex: 1 1 50% !important;
		max-width: 50% !important;
	}

	body .elementor-popup-modal form#forminator-module-28867 .forminator-field[id*="email"] {
		width: 48% !important;
		display: inline-block !important;
		vertical-align: top !important;
		margin-right: 4% !important;
	}

	body .elementor-popup-modal form#forminator-module-28867 .forminator-field[id*="phone"],
	body .elementor-popup-modal form#forminator-module-28867 .forminator-field[id*="tel"] {
		width: 48% !important;
		display: inline-block !important;
		vertical-align: top !important;
	}
}

body .elementor-popup-modal form#forminator-module-28867 input[type="text"],
body .elementor-popup-modal form#forminator-module-28867 input[type="email"],
body .elementor-popup-modal form#forminator-module-28867 input[type="tel"],
body .elementor-popup-modal form#forminator-module-28867 textarea {
	box-sizing: border-box !important;
	width: 100% !important;
}

@media (max-width: 768px) {
	.dialog-close-button.dialog-lightbox-close-button {
		background: #ffffffd5;
		padding: 15px;
		margin: 0;
		top: 0 !important;
		right: 0 !important;
		z-index: 10000 !important;
	}

	body .elementor-popup-modal form#forminator-module-28867 {
		padding-bottom: 200px !important;
	}
}

.elementor-popup-modal .dialog-close-button i,
.elementor-popup-modal .dialog-close-button svg {
	font-size: 30px !important;
	width: 25px !important;
	height: 25px !important;
}

.elementor-element.elementor-widget-button.elementor-element-f19a391 {
	display: none !important;
}

@media (max-width: 768px) {
	#sticky-contact-button {
		display: none;
	}
}

/* =============================================================================
   FENSTERBÄNKE – GUTENBERG (page ID 29260, /parapet-gutenberg/)
   Figure: float + !important (motyw/Gutenberg nadpisuje inline-block).
   ============================================================================= */

@media (min-width: 782px) {
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(1),
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(2) {
		display: block !important;
		float: left !important;
		flex: none !important;
		width: calc(50% - 0.5rem) !important;
		max-width: calc(50% - 0.5rem) !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0.5rem !important;
		margin-bottom: 1rem !important;
		box-sizing: border-box !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(2) {
		margin-right: 0 !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(1) img,
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(2) img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		border-radius: 4px;
		display: block !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(2) + p {
		clear: both !important;
	}
}

@media (max-width: 781px) {
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(1),
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(2) {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
	}
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(3) {
	margin-top: 2rem;
	border: 2px solid #3d9e5c;
	border-bottom: none;
	padding: 1.25rem 1.5rem 0.75rem;
	border-radius: 6px 6px 0 0;
	background: #fafcfa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(3) + ul.wp-block-list {
	border: 2px solid #3d9e5c;
	border-top: none;
	padding: 0 1.5rem 1.5rem;
	margin: 0 0 2rem;
	border-radius: 0 0 6px 6px;
	background: #fafcfa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(3) + p {
	border-left: 2px solid #3d9e5c;
	border-right: 2px solid #3d9e5c;
	padding: 0 1.5rem;
	margin: 0;
	background: #fafcfa;
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(3) + p + ul.wp-block-list {
	border: 2px solid #3d9e5c;
	border-top: none;
	padding: 0 1.5rem 1.5rem;
	margin: 0 0 2rem;
	border-radius: 0 0 6px 6px;
	background: #fafcfa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(4) {
	clear: both;
	border: 2px solid #3d9e5c;
	border-bottom: none;
	padding: 1.25rem 1.5rem 0.75rem;
	margin: 2rem 0 0;
	border-radius: 6px 6px 0 0;
	background: #fafcfa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-id-29260 .page-content > h3.wp-block-heading:nth-of-type(4) + ul.wp-block-list {
	border: 2px solid #3d9e5c;
	border-top: none;
	padding: 0 1.5rem 1.5rem;
	margin: 0 0 2rem;
	border-radius: 0 0 6px 6px;
	background: #fafcfa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(3) {
	clear: both;
	margin: 0;
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(3) img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

@media (min-width: 782px) {
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(4),
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(5) {
		display: block !important;
		float: left !important;
		flex: none !important;
		width: calc(50% - 0.5rem) !important;
		max-width: calc(50% - 0.5rem) !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0.5rem !important;
		margin-bottom: 0.5rem !important;
		box-sizing: border-box !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(5) {
		margin-right: 0 !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(4) img,
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(5) img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		display: block !important;
	}

	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(5) + h3 {
		clear: both !important;
	}
}

@media (max-width: 781px) {
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(4),
	body.page-id-29260 .page-content > figure.wp-block-image:nth-of-type(5) {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
	}
}

body.page-id-29260 .page-content h4.wp-block-heading {
	margin-top: 0.35rem;
	margin-bottom: 0.35rem;
	font-size: 1rem;
	font-weight: 600;
}

body.page-id-29260 .page-content h2.wp-block-heading {
	margin-top: 2.25rem;
}

/* =============================================================================
   NORTA – system layoutów Gutenberg
   ============================================================================= */

.n-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.n-card { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.n-card a { text-decoration: none; color: inherit; display: block; }
.n-card img { width: 100%; height: auto; display: block; }
.n-card-body { padding: 0.75rem 1rem; }
.n-card-body h3 { margin: 0 0 0.4rem; font-size: 1rem; color: #1a1a1a; }
.n-card-body p { margin: 0.2rem 0; font-size: 0.88rem; color: #555; }
.n-card-body img { width: auto; height: 16px; display: inline; vertical-align: middle; }

.n-row { display: flex; gap: 2rem; align-items: flex-start; margin: 2rem 0; }
.n-row > * { flex: 1; }
.n-row img { width: 100%; height: auto; border-radius: 4px; }
.n-row--38 > *:first-child { flex: 0 0 38%; }

.n-img2 { display: flex; gap: 1rem; margin: 1rem 0; }
.n-img2 > * { flex: 1; }
.n-img2 img { width: 100%; height: auto; border-radius: 4px; }

.n-box { border: 2px solid #3d9e5c; border-radius: 6px; padding: 1.25rem 1.5rem; margin: 2rem 0; background: #fafcfa; }
.n-box > *:first-child { margin-top: 0; }
.n-box > *:last-child { margin-bottom: 0; }

.n-contact-box { display: flex; gap: 2rem; align-items: center; background: #f5f5f5; border-radius: 6px; padding: 1.5rem; margin: 2rem 0; }
.n-contact-box img { width: 120px; height: auto; border-radius: 50%; flex-shrink: 0; }

.n-seealso { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin: 2rem 0; }
.n-seealso a { text-align: center; text-decoration: none; color: #333; font-size: 0.9rem; }
.n-seealso img { width: 100%; height: auto; border-radius: 4px; display: block; margin-bottom: 0.4rem; }

.n-faq { margin: 2rem 0; }
.n-faq details { border-bottom: 1px solid #e0e0e0; padding: 0.75rem 0; }
.n-faq summary { font-weight: 600; cursor: pointer; }
.n-faq details p { margin: 0.5rem 0 0; color: #444; }

@media (max-width: 768px) {
    .n-row, .n-row--38 { flex-direction: column; }
    .n-img2 { flex-direction: column; }
    .n-grid { grid-template-columns: 1fr 1fr; }
    .n-contact-box { flex-direction: column; text-align: center; }
    .n-seealso { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .n-grid { grid-template-columns: 1fr; }
    .n-seealso { grid-template-columns: repeat(2, 1fr); }
}
