/* Custom partners page — page-parteneri.php */

body.page-template-page-parteneri #main-content {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

.bn-pt {
	--bn-pt-ink: #2f3648;
	--bn-pt-muted: #6d7585;
	--bn-pt-coral: #bf5d54;
	--bn-pt-navy: #3e4a64;
	--bn-pt-line: #e4d9cf;
	--bn-pt-paper: #f7f3ee;
	--bn-pt-white: #fff;
	color: var(--bn-pt-ink);
	background: var(--bn-pt-white);
	font-family: "Open Sans", sans-serif;
	overflow-x: clip;
}

.bn-pt a {
	color: inherit;
	text-decoration: none;
}

.bn-pt__wrap {
	width: min(1120px, calc(100% - 1.5rem));
	margin: 0 auto;
}

/* Hero — static image,
no pan animation */
.bn-pt__hero {
	--bn-hero-min-h: clamp(14rem, 34vh, 20rem);
	position: relative;
	isolation: isolate;
	min-height: var(--bn-hero-min-h);
	display: flex;
	align-items: center;
	margin-top: -1px;
	padding: 4rem 0 2.5rem;
	color: #fff;
	overflow: hidden;
}

@media (min-width: 768px) {
	.bn-pt__hero {
		--bn-hero-min-h: clamp(16rem, 36vh, 22rem);
	}
}

@media (min-width: 992px) {
	.bn-pt__hero {
		--bn-hero-min-h: clamp(17rem, 38vh, 24rem);
	}
}

.bn-pt__hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(105deg, rgba(47, 54, 72, 0.78) 0%, rgba(62, 74, 100, 0.62) 55%, rgba(47, 54, 72, 0.55) 100%),
		var(--bn-pt-hero-image, url("/wp-content/uploads/2020/03/books.jpg")) center / cover no-repeat;
}

.bn-pt__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 48rem;
}

.bn-pt__h1 {
	margin: 0 0 0.7rem;
	font-family: "Sansita", Georgia, serif;
	font-style: italic;
	font-weight: 800;
	font-size: clamp(1.2rem, 5.2vw, 2.45rem);
	line-height: 1.15;
	white-space: nowrap;
	color: #fff !important;
}

.bn-pt__lead {
	margin: 0;
	font-size: clamp(0.98rem, 2vw, 1.1rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94) !important;
}

/* Sections */
.bn-pt__section {
	padding: 2.75rem 0 3rem;
}

.bn-pt__section--soft {
	background: var(--bn-pt-paper);
	border-top: 1px solid var(--bn-pt-line);
	border-bottom: 1px solid var(--bn-pt-line);
}

.bn-pt__section-head {
	margin-bottom: 1.5rem;
	max-width: 40rem;
}

.bn-pt__h2 {
	margin: 0 0 0.45rem;
	font-family: "Sansita", Georgia, serif;
	font-style: italic;
	font-weight: 800;
	font-size: clamp(1.45rem, 2.8vw, 1.9rem);
	line-height: 1.15;
	color: var(--bn-pt-navy);
}

.bn-pt__section-intro {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--bn-pt-muted);
}

/* Grid */
.bn-pt__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.bn-pt__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 960px) {
	.bn-pt__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bn-pt__grid--shops {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.bn-pt__grid--events {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 44rem;
	}
}

.bn-pt__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	height: 100%;
	padding: 1.15rem 0.85rem 1rem;
	border: 1px solid transparent;
	background: transparent;
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.bn-pt__section--soft .bn-pt__link {
	background: var(--bn-pt-white);
}

.bn-pt__link:hover,
.bn-pt__link:focus-visible {
	border-color: var(--bn-pt-coral);
	transform: translateY(-2px);
	outline: none;
}

.bn-pt__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 4.75rem;
	padding: 0.35rem 0.5rem;
}

/* Light/white logos need a dark plate to stay visible */
.bn-pt__logo--on-dark {
	background: var(--bn-pt-navy);
	border-radius: 0.35rem;
	padding: 0.7rem 0.85rem;
}

.bn-pt__logo img {
	max-width: 100%;
	max-height: 4rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bn-pt__logo--on-dark img {
	max-height: 3.25rem;
}

.bn-pt__mark {
	display: block;
	max-width: 100%;
	font-family: "Sansita", Georgia, serif;
	font-style: italic;
	font-weight: 800;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	line-height: 1.15;
	color: var(--bn-pt-navy);
	letter-spacing: -0.01em;
}

.bn-pt__name {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bn-pt-muted);
}

.bn-pt__link:hover .bn-pt__name,
.bn-pt__link:focus-visible .bn-pt__name {
	color: var(--bn-pt-coral);
}

.bn-pt__item--event .bn-pt__logo {
	height: auto;
	min-height: 4.25rem;
}

.bn-pt__desc {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--bn-pt-muted);
	max-width: 22rem;
}

/* CTA */
.bn-pt__section--cta {
	padding-top: 1rem;
	padding-bottom: 3.5rem;
}

.bn-pt__cta {
	max-width: 36rem;
	text-align: center;
}

.bn-pt__cta .bn-pt__h2 {
	margin-bottom: 0.55rem;
}

.bn-pt__cta p {
	margin: 0 0 1.15rem;
	color: var(--bn-pt-muted);
	line-height: 1.5;
}

.bn-pt__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.6rem 1.25rem;
	background: var(--bn-pt-coral);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.bn-pt__btn:hover,
.bn-pt__btn:focus-visible {
	background: var(--bn-pt-navy);
	color: #fff !important;
	transform: translateY(-1px);
	outline: none;
}
