/**
 * Testimonijali sekcija.
 */

.pp-testimonials {
	position: relative;
	z-index: auto;
	padding: 0;
	margin-top: 7px;
	margin-bottom: -88px;
	background-color: #faf9f7;
}

.pp-testimonials__main {
	padding: 50px 0 0;
	background-color: rgba(249, 245, 244, 0.61);
}

.pp-testimonials__inner {
	width: 85%;
	max-width: 1272px;
	margin: 0 auto;
}

.pp-testimonials__intro {
	position: relative;
	z-index: 2;
	text-align: center;
	margin-bottom: 0;
}

.pp-testimonials__title {
	margin: 0;
	font-family: var(--pp-font-heading);
	font-size: 45px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--pp-color-text);
}

.pp-testimonials__divider {
	width: 60px;
	max-width: 60px;
	height: 0;
	border-top: 2px solid var(--pp-color-brown);
}

.pp-testimonials__slider-wrap {
	position: relative;
	width: 100%;
	max-width: 2044px;
	margin: 7px auto 152px;
}

.pp-testimonials__viewport {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 464px;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.3);
	background-color: #fff;
	transition: height 0.35s ease;
}

.pp-testimonials__track {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	min-height: 464px;
}

.pp-testimonials__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	background-color: transparent;
	overflow: hidden;
}

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

.pp-testimonials__container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 47px 5% 24px;
	box-sizing: border-box;
}

.pp-testimonials__footer {
	flex-shrink: 0;
	padding: 8px 0 22px;
	background-color: #fff;
}

.pp-testimonials__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.pp-testimonials__content {
	width: 100%;
	max-width: 1040px;
	font-family: var(--pp-font-body);
}

.pp-testimonials__quote {
	margin: 0;
	padding: 0 0 0 1rem;
	border: 0;
	border-left: 3px solid var(--pp-color-brown);
	font-family: var(--pp-font-body);
	font-size: 17px;
	font-weight: 400;
	font-style: italic;
	line-height: 29px;
	color: var(--pp-color-text);
}

.pp-testimonials__quote p {
	margin: 0 0 1em;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	text-align: left;
}

.pp-testimonials__quote p:last-child {
	margin-bottom: 0;
}

.pp-testimonials__quote em {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
}

.pp-testimonials__author {
	margin-top: 1.5rem;
	padding-left: calc(3px + 1rem);
	text-align: left;
}

.pp-testimonials__author-heading {
	margin: 0;
	font-family: var(--pp-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2em;
	color: #6d625e;
}

.pp-testimonials__author-name {
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	color: #6d625e;
}

.pp-testimonials__author-role {
	display: block;
	margin-top: 0.35rem;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.3em;
	color: #999;
}

.pp-testimonials__controls {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.pp-testimonials__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-testimonials__arrow:hover {
	box-shadow: none;
}

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

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

.pp-testimonials__arrow span {
	display: block;
	width: 14px;
	height: 14px;
	margin: 0 auto;
	border-top: 3px solid var(--pp-color-brown);
	border-right: 3px solid var(--pp-color-brown);
}

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

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

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

	.pp-testimonials__slider-wrap:hover .pp-testimonials__controls .pp-testimonials__arrow,
	.pp-testimonials__slider-wrap:focus-within .pp-testimonials__controls .pp-testimonials__arrow {
		opacity: 1;
		visibility: visible;
	}

	.pp-testimonials__arrow:focus-visible {
		opacity: 1;
		visibility: visible;
		outline: 2px solid var(--pp-color-brown);
		outline-offset: 4px;
	}
}

.pp-testimonials__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(187, 140, 126, 0.35);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pp-testimonials__dot.is-active {
	background: var(--pp-color-brown);
	transform: scale(1.1);
}

.pp-testimonials__cta {
	width: 60%;
	max-width: 1272px;
	min-height: auto;
	margin: 60px auto -278px;
	padding: 24px 44px;
	border: 2px solid var(--pp-color-brown);
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.36);
	text-align: center;
	position: relative;
	z-index: 6;
}

.pp-testimonials__cta-heading {
	margin: 0 0 -10px;
	font-family: var(--pp-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 39px;
	color: rgb(109, 98, 94);
	text-align: center;
}

.pp-testimonials__accent {
	color: var(--pp-color-brown);
	font-family: inherit;
}

.pp-testimonials__cta-action {
	margin-top: 22px;
}

.pp-testimonials__cta-action .pp-btn--cta {
	margin: 0 auto;
}

@media (max-width: 980px) {
	.pp-testimonials__title {
		font-size: 35px;
	}

	.pp-testimonials__track {
		min-height: 420px;
	}

	.pp-testimonials__container {
		padding: 40px 6% 20px;
	}

	.pp-testimonials__footer {
		padding: 6px 0 18px;
	}

	.pp-testimonials__cta {
		width: 85%;
		padding: 40px 32px;
	}

	.pp-testimonials__cta-heading {
		font-size: 23px;
	}
}

@media (max-width: 767px) {
	.pp-testimonials {
		padding-top: 0;
	}

	.pp-testimonials__main {
		padding-top: 40px;
	}

	.pp-testimonials__inner {
		width: 90%;
	}

	.pp-testimonials__title {
		font-size: 24px;
	}

	.pp-testimonials__divider {
		width: 50px;
		max-width: 50px;
	}

	.pp-testimonials__viewport {
		min-height: 0;
	}

	.pp-testimonials__track {
		min-height: 0;
	}

	.pp-testimonials__container {
		padding: 32px 8% 16px;
	}

	.pp-testimonials__footer {
		padding: 4px 0 16px;
	}

	.pp-testimonials__quote {
		font-size: 17px;
		line-height: 29px;
	}

	.pp-testimonials__author {
		padding-left: calc(3px + 1rem);
	}

	.pp-testimonials__author-heading,
	.pp-testimonials__author-name,
	.pp-testimonials__author-role {
		font-size: 17px;
	}

	.pp-testimonials__cta {
		width: 100%;
		min-height: auto;
		padding: 32px 24px;
	}

	.pp-testimonials__cta-heading {
		font-size: 20px;
	}

	.pp-testimonials__arrow {
		width: 38px;
		height: 38px;
		opacity: 1;
		visibility: visible;
	}

	.pp-testimonials__arrow--prev {
		left: 2px;
	}

	.pp-testimonials__arrow--next {
		right: 2px;
	}

	.pp-testimonials__arrow span {
		width: 12px;
		height: 12px;
		border-top-width: 2px;
		border-right-width: 2px;
	}
}

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