#header #infoBlock .item .text,
#header #infoBlock .item .text span,
#header #infoBlock .item .text a {
	font-family: var(--mainFont) !important;
	font-style: italic !important;
}

#header #infoBlock .item .text .title {
	font-weight: 600 !important;
	letter-spacing: 0.02em;
}

#header #infoBlock .item .text .data {
	font-weight: 500 !important;
	line-height: 1.35;
}

/* Top bar mail/phone links */
#topbar .topmenu a[href^="mailto:"],
#topbar .topmenu a[href^="tel:"] {
	font-style: italic !important;
}

/* Footer contact block mail/phone/cell text */
#footer .contact .item.phone .data,
#footer .contact .item.gsm .data,
#footer .contact .item.mail .data,
#footer .contact .item.phone .title,
#footer .contact .item.gsm .title,
#footer .contact .item.mail .title,
#footer .contact .item.phone a,
#footer .contact .item.gsm a,
#footer .contact .item.mail a {
	font-style: italic !important;
}

#header #infoBlock .item .text em,
#footer .contact .item.phone em,
#footer .contact .item.gsm em,
#footer .contact .item.mail em,
#topbar .topmenu a[href^="mailto:"] em,
#topbar .topmenu a[href^="tel:"] em {
	font-style: italic !important;
}

/* Safety hide: disable search areas globally */
#topbar .topsearch,
#hamburgermenu .searchForm {
	display: none !important;
}

/* Hide Instagram icon only in top bar */
#topbar .safirSocial li.instagram,
#topbar .safirSocial li[class*="instagram"],
#topbar .safirSocial a[title*="Instagram"] {
	display: none !important;
}

/* Homepage references grid */
.homeReferences {
	padding: 40px 0 10px;
}

.homeReferences h2 {
	margin-bottom: 18px;
	font-size: 28px;
}

.homeReferences .items {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.homeReferences .item a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	background: #fff;
	border-radius: 8px;
	padding: 12px;
	overflow: hidden;
}

.homeReferences .item img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
	display: block;
}

@media (max-width: 900px) {
	.homeReferences .items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* References page layout fixes */
body.page #referencesPage {
	padding: 10px 0 20px;
}

body.page #referencesPage .reading {
	max-width: 1200px;
	margin: 0 auto;
}

body.page #referencesPage .safirWidget .items .list,
body.page #referencesPage .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

body.page #referencesPage .safirWidget .item-container {
	width: 100%;
	float: none;
}

body.page #referencesPage .safirWidget .item,
body.page #referencesPage figure.wp-block-image,
body.page #referencesPage figure.blocks-gallery-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	margin: 0;
}

body.page #referencesPage .safirWidget .thumb,
body.page #referencesPage figure.wp-block-image a,
body.page #referencesPage figure.blocks-gallery-item a,
body.page #referencesPage .reading > p {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: #fff;
}

/* Disable theme crop behavior for reference logos */
body.page #referencesPage .safirthumb {
	padding-bottom: 0 !important;
	height: 100% !important;
}

body.page #referencesPage .safirthumb .thumbnail,
body.page #referencesPage .safirthumb .thumbnail .center {
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transform: none !important;
}

body.page #referencesPage .safirWidget .thumb img,
body.page #referencesPage figure.wp-block-image img,
body.page #referencesPage figure.blocks-gallery-item img,
body.page #referencesPage .reading > p > img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
	display: block;
	position: static !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
}

body.page #referencesPage .safirWidget .detail {
	padding: 10px 14px 14px;
}

@media (max-width: 1024px) {
	body.page #referencesPage .safirWidget .items .list,
	body.page #referencesPage .wp-block-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.page #referencesPage .safirWidget .items .list,
	body.page #referencesPage .wp-block-gallery {
		grid-template-columns: 1fr;
	}
}

/* Homepage slider text color override */
#home .rev_slider_wrapper .tp-caption,
#home .rev_slider_wrapper .tp-caption *,
#home .rev_slider_wrapper .tp-caption a,
#home .rev_slider_wrapper .tp-layer,
#home .rev_slider_wrapper .tp-layer *,
#home .rev_slider_wrapper .rev-btn,
#home .rev_slider_wrapper .rev-btn * {
	color: #000 !important;
}

/* Extra force for Revolution Slider inline white text */
#home .rev_slider_wrapper rs-layer,
#home .rev_slider_wrapper rs-layer *,
#home .rev_slider_wrapper .rs-layer,
#home .rev_slider_wrapper .rs-layer *,
#home .rev_slider_wrapper [style*="color:#fff"],
#home .rev_slider_wrapper [style*="color: #fff"],
#home .rev_slider_wrapper [style*="color:rgb(255"],
#home .rev_slider_wrapper [style*="color: rgb(255"] {
	color: #000 !important;
	text-shadow: none !important;
}

/* Homepage slogan widget text color */
#home .sloganWidget .text,
#home .sloganWidget .text *,
#home .sloganWidget .button a,
#home .sloganWidget .button a * {
	color: #000 !important;
}

/* Strong override for darkBg slogan text */
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .text,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .text *,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer a.safirButton,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer a.safirButton *,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .themeicon,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .themeicon svg {
	color: #000 !important;
	fill: #000 !important;
	-webkit-text-fill-color: #000 !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .text {
	font-style: italic !important;
	font-weight: 700 !important;
}

/* Pic header title (e.g. "Urunlerimiz") */
.picHeader .title,
.picHeader .title * {
	color: #000 !important;
	-webkit-text-fill-color: #000 !important;
	text-shadow: none !important;
	font-style: italic !important;
	font-weight: 700 !important;
}

/* Revert: keep slogan and pic header texts white */
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .text,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .text *,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer a.safirButton,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer a.safirButton *,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .themeicon,
#home .safirWidget.sloganWidget.darkBg .widgetContent .innerContainer .themeicon svg,
.picHeader .title,
.picHeader .title * {
	color: #fff !important;
	fill: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-style: normal !important;
	font-weight: 400 !important;
}


