@import url("https://use.typekit.net/dta5rlo.css");
/* 300, 400, 600 */

:root {
	--site-padding: 30px;
	--blue: #007db9;
	--blue-light: #00bcf1;
	--blue-dark: #003a5d;
	--green: #b2d235;
	--red: #ec1c24;
	--gray: #b7b7b7;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	background-color: #fff;
	position: relative;
	font-family: "jaf-bernina-sans", sans-serif;
}

img {
	width: 100%;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}
.btn {
	background: var(--blue);
	display: inline-block;
	color: #fff;
	font-size: 16px;
	line-height: 12px;
	font-weight: 600;
	padding: 10px 14px;
	border-radius: 5px;
	text-decoration: none;
	transition: scale 0.1s ease;
}
.btn:active {
	scale: 0.95;
}
.btn:hover {
	background: var(--blue-dark);
}
.btn.red {
	background: var(--red);
}
.btn.red:hover {
	background: #b11318;
}
.btn.lblue {
	background: var(--blue-light);
}
.btn.lblue:hover {
	background: #007fa2;
}

@media screen and (max-width: 650px) {
	.btn {
		margin: 0 auto;
		display: block;
		width: fit-content;
	}
}
.container {
	width: 100%;
	max-width: calc(820px + var(--site-padding) + var(--site-padding));
	margin: 0 auto;
	padding: 0 var(--site-padding);
}

h1 {
	font-size: 36px;
	line-height: 40px;
	font-weight: 300;
	font-style: italic;
	color: #fff;
	margin: 0 0 10px 0;
}
p {
	font-size: 16px;
	line-height: 18px;
}
.hero {
	/* overflow: hidden;
	position: relative; */
	background: url("./images/hero_ria.jpg") 50% 54% / cover no-repeat;
	padding: 2rem 0 6rem 0;
	border-bottom: 0.375rem solid var(--green);
	transition: background 0.3s ease;
}
.hero .txt {
	position: relative;
	z-index: 2;
	width: 45%;
	min-width: 25rem;
	padding: 8rem 5.1rem 8rem 0;
}

.hero .txt::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: 100vw;
	height: 100%;
	background: linear-gradient(
		180deg,
		var(--blue) 20.52%,
		var(--blue-dark) 100%
	);
	z-index: -1;
	clip-path: polygon(100% 100%, calc(100% - 3.5rem) 0, 0 0, 0 100%);
}

.hero p {
	font-size: 20px;
	line-height: 25px;
	color: var(--green);
}
.hero .cl_logo {
	max-width: 160px;
}
.moments {
	display: grid;
	border-bottom: 6px solid var(--red);
}
.moments .group {
	display: flex;
	justify-content: center;
	align-items: center;
}
.moments .txt {
	padding: 100px 0 100px var(--site-padding);
	max-width: 374px;
}
.moments h2 {
	font-size: 28px;
	line-height: 30px;
	font-weight: 300;
	font-style: italic;
	margin: 0 0 20px 0;
}
.moments p {
	margin: 0 0 20px 0;
}

.moments {
	display: grid;
	grid-template-columns: repeat(10, 2fr);
}

.moments .group {
	grid-row: span 2;
	grid-column: span 6;
}

.person {
	grid-row: span 1;
	grid-column: span 2;
	background-image: url("./images/placeholder.jpg");
	min-height: 180px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
.person .bio {
	background: rgba(0, 125, 185, 0.8);
	width: 100%;
	height: 100%;
	padding: 20px;
	display: flex;
	align-items: flex-end;
	opacity: 0;
	transition: opacity 0.2s linear;
}
.person .bio h3 {
	font-style: italic;
	font-weight: 300;
	color: #fff;
	font-size: 16px;
}
.person:hover .bio {
	opacity: 1;
}
.person .bio p {
	font-size: 12px;
	line-height: 14px;
	color: #fff;
	font-weight: 600;
	margin: unset;
}

.person:nth-last-child(1),
.person:nth-last-child(2),
.person:nth-last-child(3),
.person:nth-last-child(4) {
	grid-column: span 5;
}

@media screen and (max-width: 700px) {
	.hero {
		background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
			url("./images/hero_ria.jpg") center center / cover no-repeat;
		padding: 100px 0 40px 0;
	}
	.hero .txt {
		margin: 0 0 220px 0;
		max-width: 360px;
	}

	.moments {
		grid-template-columns: repeat(6, 1fr);
	}
	.moments .group {
		grid-row: span 1;
		grid-column: span 6;
		width: 100%;
		max-width: calc(51.25rem + var(--site-padding) + var(--site-padding));
		margin: 0 auto;
		padding: 0 var(--site-padding);
		display: block;
	}
	.moments .txt {
		max-width: unset;
		padding: 6.25rem 0;
	}
	.person {
		grid-row: span 1;
		grid-column: span 2;
	}

	.person:nth-last-child(3),
	.person:nth-last-child(4) {
		grid-column: span 2;
	}
	.person:nth-last-child(1),
	.person:nth-last-child(2) {
		grid-column: span 3;
	}
}
.stories {
	border-bottom: 6px solid var(--green);
	overflow: hidden;
}
.stories .group {
	display: flex;
	justify-content: center;
	align-items: center;
}
.stories .group > .txt {
	flex: 2;
	padding: 60px var(--site-padding) 60px 0;
	position: relative;
}
.stories .group > .txt::before {
	content: "";
	position: absolute;
	inset: -50% 0 0 auto;
	width: 50vw;
	height: 200%;
	background: #e8f8fd;
	z-index: -10;
}

.stories .slider {
	flex: 3;
	overflow: hidden;
}
.stories h2 {
	font-size: 28px;
	line-height: 30px;
	font-weight: 300;
	font-style: italic;
	margin: 0 0 20px 0;
	color: var(--blue-dark);
}
.stories p {
	font-size: 16px;
	line-height: 21px;
	max-width: 400px;
}
.stories h3 {
	font: size 22px;
	line-height: 24px;
	color: var(--blue);
	margin: 0 0 10px 0;
}
.stories .slide p {
	margin: 0 0 20px 0;
}
.stories .slider .slide {
	padding: 30px 60px;
}
.stories .swiper-autoheight .swiper-wrapper {
	align-items: center;
}
.stories .swiper-button-next,
.stories .swiper-button-prev {
	color: #fff;
	background: #d4d4d4;
	border-radius: 50%;
	display: inline-block;
	width: 30px;
	height: 30px;
	aspect-ratio: 1/1;
}
.stories .swiper-button-next::after,
.stories .swiper-button-prev::after {
	font-size: 14px;
	line-height: 30px;
	position: absolute;
	top: 0;
	right: auto;
	bottom: auto;
	left: 40%;
}
.stories .swiper-button-prev::after {
	right: 40%;
	left: auto;
}
.stories .swiper-button-next:hover,
.stories .swiper-button-prev:hover {
	background: var(--gray);
}
.stories .swiper-button-next:active,
.stories .swiper-button-prev:active {
	transition: scale 0.1s ease;
	scale: 0.9;
}
@media screen and (max-width: 650px) {
	.stories .group {
		flex-direction: column;
		justify-content: center;
	}
	.stories .group > .txt {
		flex: unset;
	}
	.stories .slider {
		flex: unset;
		width: 105%;
		text-align: center;
	}
	.stories .slide {
		min-height: 60vw;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	.stories .group > .txt::before {
		content: "";
		position: absolute;
		inset: 0 calc(-100vw - 50vw);
		width: 400vw;
		height: 100%;
	}
}
@media screen and (min-width: 1200px) {
	.stories .slider .slide {
		padding: 60px 90px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.stories .swiper-button-next {
		right: 8%;
	}
	.stories .swiper-button-prev {
		left: 8%;
	}
}
.about {
	padding: 70px 0;
	text-align: center;
}
.about h2 {
	font-size: 28px;
	line-height: 30px;
	font-weight: 300;
	font-style: italic;
	color: var(--blue-dark);
	margin: 0 0 30px 0;
}
.about p {
	max-width: 700px;
	margin: 0 auto 60px auto;
}
.values {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 0 0 60px 0;
}
.value {
	flex: 1;
	max-width: 200px;
}
.value .icon {
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 20px 0;
}
.value .icon img {
	width: auto;
}
.value h3 {
	font-size: 20px;
	line-height: 22px;
	color: var(--blue);
	margin: 0 0 10px 0;
}
.value p {
	margin: unset;
}
.about .group {
	display: flex;
	justify-content: center;
	gap: 20px;
}
.about .btn {
	margin: 0;
}
@media screen and (max-width: 600px) {
	.values {
		flex-direction: column;
		max-width: 400px;
		margin: 0 auto 60px auto;
	}
	.value {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		text-align: left;
		max-width: unset;
		gap: 30px;
	}
	.value .icon {
		margin: 0;
	}
}
@media screen and (min-width: 1200px) {
	.values {
		max-width: 1000px;
		margin: 0 auto 60px auto;
	}

	.value {
		max-width: 315px;
	}
}

.cta .group {
	display: flex;
	justify-content: center;
	align-items: center;
}
.cta {
	background-color: var(--blue-dark);
	background: url("./images/bg_pattern.jpg") center center / cover no-repeat;
	padding: 60px 0;
	border-top: 6px solid var(--blue);
}
.cta p {
	font-size: 16px;
	line-height: 22px;
	color: #fff;
	margin: 20px 20px 0 0;
}
@media screen and (max-width: 650px) {
	.cta .group {
		flex-direction: column;
	}
	.cta p {
		margin: 0 0 20px 0;
		text-align: center;
	}
}
.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999;
	display: none;
}
.popup .outer {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}
.popup .content {
	background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70%;
	aspect-ratio: 16/9;
}
.popup .content video {
	width: 100%;
	height: 100%;
}
.popup .content iframe {
	border: none;
}
.popup .close {
	position: absolute;
	top: var(--site-padding);
	right: var(--site-padding);
	width: 40px;
	height: 40px;
	background: #fff;
	color: #000;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.popup .close:hover {
	background: var(--blue-light);
	color: #fff;
}

@media screen and (min-width: 1200px) {
	.container {
		max-width: calc(1200px + var(--site-padding) + var(--site-padding));
	}
	.hero .txt {
		max-width: clamp(300px, 40vw, 600px);
	}
	.hero p {
		font-size: clamp(16px, 2vw, 32px);
		line-height: 1.2em;
	}
	h1 {
		font-size: clamp(24px, 4vw, 60px);
		line-height: 1em;
	}

	.moments {
		grid-template-columns: repeat(24, 3fr);
	}

	.moments .group {
		grid-row: span 2;
		grid-column: span 9;
	}

	.person {
		grid-column: span 3;
	}
	/* .person:nth-last-child(1),
	.person:nth-last-child(2),
	.person:nth-last-child(3),
	.person:nth-last-child(4),
	.person:nth-last-child(5),
	.person:nth-last-child(6) {
		grid-column: span 4;
	} */
	.person:nth-child(12),
	.person:nth-child(13),
	.person:nth-child(14),
	.person:nth-child(15),
	.person:nth-child(16),
	.person:nth-child(17) {
		grid-column: span 4;
	}
	.person:nth-child(18),
	.person:nth-child(19),
	.person:nth-child(20),
	.person:nth-child(21) {
		grid-column: span 6;
	}
	.person:nth-child(22),
	.person:nth-child(23),
	.person:nth-child(24) {
		grid-column: span 8;
	}
}
