/*
Theme Name: Imprejmuire Gard
Theme URI: https://imprejmuire-gard.ro/
Description: Tema programatica pentru imprejmuiri / garduri - genereaza automat pagini de localitate pe judetele Bucuresti, Ilfov, Prahova, Brasov, Buzau, Dambovita. Design identic cu modelul la-demolition.fr. Sitemap XML inclus.
Author: imprejmuire-gard.ro
Version: 1.1.7
Requires at least: 5.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: imprejmuire-gard
*/

/* Stilurile de baza sunt incarcate din assets/css/ (design identic cu modelul).
   Mai jos doar corecturi de lizibilitate pentru zona de continut. */

/* Link-uri vizibile in continut (clasa footer-nav era alba pe fundal inchis) */
#main-wrap a {
	color: #1f7a3d;
}
#main-wrap a:hover {
	color: #0f4d27;
	text-decoration: underline;
}
#main-wrap a.button,
#main-wrap a.green,
#main-wrap a.large,
#main-wrap a.small {
	color: #ffffff;
}

/* Lista de localitati deservite - lizibila, pe coloane */
#main-wrap .ig-loc-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	overflow: hidden;
}
#main-wrap .ig-loc-list li {
	float: left;
	width: 25%;
	box-sizing: border-box;
	padding: 4px 12px 4px 0;
}
#main-wrap .ig-loc-list li a {
	color: #1f7a3d;
	font-size: 13px;
	line-height: 1.45;
}
#main-wrap .ig-loc-list li a:hover {
	text-decoration: underline;
}

/* Tipografie continut - texte SEO mai lizibile */
#main-wrap h1 {
	color: #222;
	line-height: 1.25;
	margin: 6px 0 12px;
}
#main-wrap h2 {
	color: #1f7a3d;
	margin: 26px 0 10px;
}
#main-wrap h3 {
	color: #2b2b2b;
	margin: 22px 0 8px;
	font-size: 18px;
}
#main-wrap h4 {
	color: #2b2b2b;
	margin: 18px 0 6px;
}
#main-wrap p {
	color: #555;
	line-height: 1.65;
	margin: 0 0 14px;
}
#main-wrap .ig-meta {
	color: #999;
	font-size: 12px;
	margin: 0 0 16px;
}
#main-wrap .ig-block {
	margin: 0 0 18px;
}
#main-wrap .ig-faq dt {
	font-weight: bold;
	color: #2b2b2b;
	margin: 14px 0 4px;
}
#main-wrap .ig-faq dd {
	margin: 0 0 12px;
	color: #555;
	line-height: 1.65;
}

/* Text reprezentativ sub fiecare imagine din galerie */
#main-wrap .gallery-caption {
	color: #555;
	font-size: 13px;
	line-height: 1.55;
	margin: 8px 0 22px;
	text-align: center;
}
#main-wrap .gallery-caption strong {
	color: #2b2b2b;
	display: block;
	margin-bottom: 3px;
}

/* === Galerie: grila reala 3 coloane, fara decalaje (efect de scara) === */
#main-wrap .gallery-wp-navi {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 28px 24px !important;
	width: 100% !important;
}
#main-wrap .gallery-wp-navi .one_third {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}
#main-wrap .gallery-wp-navi .img-frame {
	margin: 0 !important;
	background: none !important;
	width: auto !important;
	height: auto !important;
}
#main-wrap .gallery-wp-navi .img-frame img {
	width: 100% !important;
	height: 200px !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	border-radius: 4px;
}
#main-wrap .gallery-wp-navi .gallery-caption {
	margin: 10px 0 0 !important;
}
@media screen and (max-width: 768px) {
	#main-wrap .gallery-wp-navi {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media screen and (max-width: 480px) {
	#main-wrap .gallery-wp-navi {
		grid-template-columns: 1fr !important;
	}
}

@media screen and (max-width: 650px) {
	#main-wrap .ig-loc-list li { width: 50%; }
}

/* === Antet: logo in STANGA, navigatia + telefon in DREAPTA ===
   Fara suprapunere. Specificitate mare + !important. */
header .center-wrap {
	position: relative !important;
	text-align: left !important;
	overflow: hidden;
}
/* Logo - stanga */
header .companyIdentity {
	float: left !important;
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	text-align: left !important;
}
header .companyIdentity a {
	float: left !important;
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	text-align: left !important;
}
header .companyIdentity img {
	float: left !important;
	display: block !important;
	max-height: 60px !important;
	width: auto !important;
	margin: 0 !important;
}
/* Buton telefon - dreapta sus */
header .haut-callout-button {
	float: right !important;
	clear: none !important;
	display: block !important;
	margin: 0 0 0 20px !important;
}
/* Navigatie - dreapta, sub buton */
header nav {
	position: static !important;
	float: right !important;
	clear: right !important;
	top: auto !important;
	right: auto !important;
	margin: 14px 0 0 !important;
	text-align: right !important;
}
header nav > ul > li {
	float: none !important;
	display: inline-block !important;
}

/* Pe ecrane mici: stivuit si centrat (fara suprapunere) */
@media screen and (max-width: 768px) {
	header .center-wrap { text-align: center !important; }
	header .companyIdentity,
	header .companyIdentity a,
	header .companyIdentity img {
		float: none !important;
		margin: 0 auto !important;
		display: block !important;
		text-align: center !important;
	}
	header .companyIdentity img { display: inline-block !important; }
	header .haut-callout-button {
		float: none !important;
		clear: both !important;
		margin: 16px auto 0 !important;
		text-align: center !important;
	}
	header nav {
		float: none !important;
		clear: both !important;
		margin: 16px 0 0 !important;
		text-align: center !important;
	}
}

/* === Elimina cadrul/fundalul alb din spatele imaginilor (img-frames.png) ===
   Imaginile transparente raman transparente, fara dreptunghi alb. */
.img-frame,
.banner-slider .img-frame,
#content-container .img-frame,
.home-vertical-callout .img-frame {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.img-frame img {
	margin: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
.full-banner,
.small-banner,
.full-half,
.full-third,
.full-third-short,
.full-third-portrait,
.full-fourth-portrait {
	width: auto !important;
	height: auto !important;
	background: none !important;
	background-image: none !important;
	background-position: 0 0 !important;
}
#main-wrap img,
.banner-slider img,
.testimonials img,
.companyIdentity img {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* === Pagina localitate: continut + coloana laterala (ca pe model) === */
#main-wrap .ig-loc-layout {
	display: grid !important;
	grid-template-columns: 1fr 290px !important;
	gap: 34px !important;
	align-items: start !important;
}
#main-wrap .ig-loc-main { min-width: 0; }
#main-wrap .ig-loc-aside { font-size: 13px; }
#main-wrap .ig-side-box {
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	padding: 14px;
	margin: 0 0 18px;
	background: #fafafa;
}
#main-wrap .ig-side-map { padding: 0; overflow: hidden; }
#main-wrap .ig-side-map iframe { display: block; width: 100%; border: 0; }
#main-wrap .ig-side-ident h3 { margin: 0 0 4px; font-size: 16px; color: #222; }
#main-wrap .ig-side-brand { font-style: italic; color: #888; margin: 0 0 10px; }
#main-wrap .ig-side-contact { list-style: none; margin: 0; padding: 0; }
#main-wrap .ig-side-contact li { padding: 5px 0; border-bottom: 1px dotted #ddd; color: #555; }
#main-wrap .ig-side-contact li:last-child { border-bottom: 0; }
#main-wrap .ig-side-contact i { color: #1f7a3d; width: 16px; }
#main-wrap .ig-side-code {
	margin: 10px 0 0; font-weight: bold; color: #444;
	background: #eee; display: inline-block; padding: 3px 10px; border-radius: 3px;
}
#main-wrap .ig-side-title { font-weight: bold; color: #2b2b2b; margin: 0 0 8px; }
#main-wrap .ig-share { list-style: none; margin: 0; padding: 0; }
#main-wrap .ig-share li { margin: 0 0 6px; }
#main-wrap .ig-share a {
	display: block; padding: 7px 10px; border-radius: 4px; color: #fff !important;
	text-decoration: none; font-size: 13px;
}
#main-wrap .ig-share a:hover { opacity: .9; text-decoration: none; }
#main-wrap .ig-share .fb { background: #1877f2; }
#main-wrap .ig-share .tw { background: #1da1f2; }
#main-wrap .ig-share .in { background: #0a66c2; }
#main-wrap .ig-share i { margin-right: 6px; }
#main-wrap .ig-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#main-wrap .ig-tags a {
	display: inline-block; background: #efefef; color: #555 !important;
	font-size: 11px; line-height: 1.3; padding: 5px 9px; border-radius: 3px;
	text-decoration: none; border: 1px solid #e2e2e2;
}
#main-wrap .ig-tags a:hover { background: #1f7a3d; color: #fff !important; text-decoration: none; }

@media screen and (max-width: 900px) {
	#main-wrap .ig-loc-layout {
		grid-template-columns: 1fr !important;
	}
	#main-wrap .ig-loc-aside { margin-top: 24px; }
}
