/* Romproed – stiluri pentru componentele proprii (inlocuiesc LayerSlider, FlexSlider si prettyPhoto). */

/* ---------- Hero (pagina principala) ---------- */
.hero {
	margin: 0;
	padding: 0;
	background: #f2faff;
}
.hero-inner {
	position: relative;
	height: 300px;
	overflow: hidden;
	background: #f2faff;
}
.hero-inner img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	max-width: 100%;
	height: auto;
}

/* ---------- Slider de imagini ---------- */
.slider {
	position: relative;
	margin: 0 0 60px;
	background: #fff;
}
.slider .slides {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.slider .slides li {
	display: none;
}
.slider .slides li.is-active {
	display: block;
	animation: slider-fade .6s ease;
}
.slider .slides img {
	display: block;
	width: 100%;
	height: auto;
}
@keyframes slider-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.slider-arrow {
	position: absolute;
	top: 50%;
	width: 30px;
	height: 30px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .5) url(../theme/images/arrow-bullet.png) center center no-repeat;
	cursor: pointer;
	opacity: 0;
	transition: opacity .3s ease;
}
.slider-prev { left: 0; transform: rotate(180deg); }
.slider-next { right: 0; }
.slider:hover .slider-arrow,
.slider-arrow:focus-visible { opacity: .8; }
.slider .slider-arrow:hover { opacity: 1; }
.slider-dots {
	position: absolute;
	bottom: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	list-style: none;
}
.slider-dots li { display: inline-block; margin: 0 6px; }
.slider-dots button {
	display: block;
	width: 11px;
	height: 11px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: rgba(0, 0, 0, .5);
	box-shadow: inset 0 0 3px rgba(0, 0, 0, .3);
	cursor: pointer;
}
.slider-dots button:hover { background: rgba(0, 0, 0, .7); }
.slider-dots button.is-active { background: rgba(0, 0, 0, .9); cursor: default; }

/* ---------- Lightbox ---------- */
.lightbox {
	max-width: 92vw;
	max-height: 92vh;
	padding: 12px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img {
	display: block;
	max-width: calc(92vw - 24px);
	max-height: calc(92vh - 24px);
	margin: 0 auto;
}
.lightbox-btn {
	position: absolute;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font: 22px/36px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}
.lightbox-close { top: -14px; right: -14px; }
.lightbox-prev { top: 50%; left: -18px; margin-top: -18px; }
.lightbox-next { top: 50%; right: -18px; margin-top: -18px; }
.lightbox-btn:hover { background: #67b7e1; }

/* Pe ecrane mici sagetile sliderului sunt ascunse (ca in tema originala) */
@media only screen and (max-width: 767px) {
	.slider-arrow { display: none; }
}


/* Hero vizibil si pe ecrane mici: imaginea intreaga, pe latimea paginii */
@media only screen and (max-width: 940px) {
	.hero-inner { height: auto; }
	.hero-inner img {
		position: static;
		transform: none;
		display: block;
		width: 100%;
		height: auto;
	}
}

/* ---------- Antet si meniu ---------- */
#header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 0;
	background: #fff;
	box-shadow: 0 1px 10px rgba(0, 0, 0, .10);
}
.header-inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 20px;
}
/* .row:after (clearfix) ar deveni element flex */
.header-inner::after { display: none; }
#header .logo { flex: 0 0 auto; margin: 0; }
#header .logo img { display: block; width: auto; height: 64px; }

#nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
#nav .menu ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#nav .menu a {
	display: block;
	padding: 10px 14px;
	border-bottom: 3px solid transparent;
	color: #333;
	font: 500 16px/1.3 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	transition: color .2s ease, border-color .2s ease;
}
#nav .menu a:hover,
#nav .menu a:focus-visible { color: #166a99; }
#nav .menu .current_page_item a {
	color: #166a99;
	border-bottom-color: #67b7e1;
}
#nav .flags ul {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#nav .flags a { display: block; line-height: 0; opacity: .85; }
#nav .flags a:hover { opacity: 1; }
#nav .flags img { display: block; width: 22px; height: 14px; }

/* Buton hamburger */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}
.nav-toggle-bar {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: #333;
	transition: transform .25s ease, opacity .2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media only screen and (max-width: 900px) {
	.header-inner { padding: 10px 16px; }
	#header .logo img { height: 52px; }
	.nav-toggle { display: flex; }
	#nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 16px 16px;
		border-top: 1px solid #eee;
		background: #fff;
		box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
	}
	.nav-open #nav { display: flex; }
	#nav .menu ul { flex-direction: column; gap: 0; }
	#nav .menu a {
		padding: 14px 4px;
		border-bottom: 1px solid #eee;
	}
	#nav .menu .current_page_item a { border-bottom-color: #eee; }
	#nav .flags { padding-top: 14px; }
}

/* Lightbox: fara sageti cand e o singura imagine */
.lightbox.single .lightbox-prev,
.lightbox.single .lightbox-next { display: none; }
