/**
 * Hero slider — identičan referentnom Divi fullwidth slideru.
 */

.pp-hero {
	position: relative;
	width: 100%;
	max-height: none;
	overflow: hidden;
	background-color: #38312f;
}

.pp-hero__viewport {
	position: relative;
	width: 100%;
	min-height: 560px;
}

.pp-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.pp-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	background-size: cover;
	background-repeat: no-repeat;
}

.pp-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.pp-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pp-hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 85%;
	max-width: 1272px;
	min-height: inherit;
	margin: 0 auto;
	padding: 10.4% 0;
	box-sizing: border-box;
}

.pp-hero__inner {
	width: 100%;
	max-width: 100%;
	padding-left: 0;
}

.pp-hero__title {
	margin: 0;
	max-width: 640px;
	font-family: var(--pp-font-heading);
	font-size: 45px;
	font-weight: 500;
	line-height: 1.2em;
	text-align: left;
	color: #fff;
	text-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}

.pp-hero__cta {
	margin-top: 35px;
	text-align: left;
}

/* Navigacija — desktop: strelice sa strane, tačkice dole */
.pp-hero__nav {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

/* Strelice */
.pp-hero__controls {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pp-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pp-hero__arrow:hover {
	box-shadow: none;
}

.pp-hero__arrow--prev {
	left: 18px;
}

.pp-hero__arrow--next {
	right: 18px;
}

.pp-hero__arrow span {
	display: block;
	width: 14px;
	height: 14px;
	margin: 0 auto;
	border-top: 3px solid #fff;
	border-right: 3px solid #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.pp-hero__arrow--prev span {
	transform: rotate(-135deg) translate(-1px, 1px);
}

.pp-hero__arrow--next span {
	transform: rotate(45deg) translate(-1px, 1px);
}

/* Desktop / tablet — strelice se vide samo na hover hero slidera */
@media (min-width: 768px) and (hover: hover) {
	.pp-hero .pp-hero__controls .pp-hero__arrow {
		opacity: 0;
		visibility: hidden;
	}

	.pp-hero:hover .pp-hero__controls .pp-hero__arrow,
	.pp-hero:focus-within .pp-hero__controls .pp-hero__arrow {
		opacity: 1;
		visibility: visible;
	}

	.pp-hero__arrow:focus-visible {
		opacity: 1;
		visibility: visible;
		outline: 2px solid rgba(255, 255, 255, 0.85);
		outline-offset: 4px;
	}
}

/* Tačkice */
.pp-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
}

.pp-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: transparent;
	opacity: 0.75;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pp-hero__dot.is-active {
	background: rgba(255, 255, 255, 0.75);
	transform: scale(1);
	opacity: 0.95;
}

/* Drugi slajd — pozicioniranje slike kao na referenci */
.pp-hero__slide[data-slide-index="1"] {
	background-position: center center;
}

/* Tablet */
@media (max-width: 980px) {
	.pp-hero__container {
		padding-top: 17%;
		padding-bottom: 17%;
	}

	.pp-hero__title {
		font-size: 35px;
		max-width: 75%;
	}
}

/* Mobilni */
@media (max-width: 767px) {
	.pp-hero {
		max-height: 510px;
	}

	.pp-hero__viewport {
		min-height: 510px;
		max-height: 510px;
	}

	.pp-hero__container {
		padding-top: 27vh;
		padding-bottom: 10vh;
		width: 80%;
	}

	.pp-hero__inner {
		margin-top: 36px;
	}

	.pp-hero__title {
		font-size: 22px;
		max-width: 100%;
	}

	.pp-hero__cta {
		margin-top: 15px;
	}

	.pp-hero__slide[data-slide-index="1"] {
		background-position: right 24% center;
	}

	.pp-btn--cta {
		width: auto;
		font-size: 15px;
		padding: 10px 20px;
	}

	.pp-hero__nav {
		inset: auto 0 0 0;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 14px;
		padding: 8px 16px 14px;
	}

	.pp-hero__controls {
		position: static;
		display: contents;
	}

	.pp-hero__arrow {
		position: static;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		transform: none;
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
		pointer-events: auto;
		opacity: 1;
		visibility: visible;
		background: transparent;
		border-radius: 50%;
	}

	.pp-hero__arrow span {
		width: 10px;
		height: 10px;
		border-top-width: 2px;
		border-right-width: 2px;
		filter: none;
	}

	.pp-hero__arrow--prev {
		order: 1;
	}

	.pp-hero__arrow--next {
		order: 3;
	}

	.pp-hero__dots {
		position: static;
		transform: none;
		order: 2;
		pointer-events: auto;
	}

}

@media (prefers-reduced-motion: reduce) {
	.pp-hero__slide {
		transition: none;
	}
}
