/* Swimo — Home page styles
   ================================================================ */
/* ================================================================
   HOMEPAGE SECTIONS
   ================================================================ */

.home-page {
	padding: 0;
}

.home-hero {
	position: relative;
	overflow: hidden;
	background: var(--color-racing-green);
	color: var(--color-white);
	min-height: 100vh;
	min-height: 100dvh;
}

.home-hero__media {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	padding: 8.25rem 1.4375rem 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.home-hero__copy {
	max-width: 21.125rem;
}

.home-hero__title {
	margin: 0 0 1rem;
	font-family: "LT Wave", serif;
	font-size: var(--font-size-3xl);
	line-height: 1.2;
}

.home-hero__subtitle {
	margin: 0;
	font-family: "Haskoy", sans-serif;
	font-weight: 400;
	font-size: var(--font-size-md);
	line-height: 1.2;
	letter-spacing: 0;
	max-width: 21.125rem;
}

.home-metrics {
	background: var(--color-licorice);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: row;
	overflow-x: auto;
	gap: 2.5rem;
	text-align: center;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.home-metrics::-webkit-scrollbar {
	display: none;
}

.home-metrics__item {
	flex: 0 0 auto;
	min-width: 8rem;
}

.home-metrics__value {
	margin: 0;
	color: var(--color-cornell-red);
	font-family: "LT Wave", serif;
	font-size: var(--font-size-xl);
	line-height: 1.2;
	white-space: nowrap;
}

.home-metrics__label {
	margin: 0.375rem 0 0;
	color: var(--color-white);
	font-size: var(--font-size-sm);
	line-height: 1.2;
	white-space: nowrap;
}

.home-why,
.home-how {
	background: var(--color-slate-blue-bg);
}

.home-target,
.home-blog {
	background: var(--color-antique-white);
}

.home-cash {
	background: var(--color-medium-slate-blue);
}

.home-why__inner,
.home-target__inner,
.home-cash__inner,
.home-blog__inner {
	padding: 3rem 1.5rem;
}

.home-why__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	padding: 3.5rem 1.5rem;
}

.home-why__title,
.home-target__title,
.home-cash__title,
.home-blog h2 {
	margin: 0;
	font-family: "LT Wave", serif;
	font-size: 2rem;
	line-height: 1.2;
}

.home-why__title {
	color: var(--color-licorice);
}

.home-why__title-accent {
	color: var(--color-cornell-red);
}

.home-why__grid {
	display: grid;
	gap: 2.5rem;
}

.home-why__intro {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-licorice);
}

.home-why__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1rem;
}

.home-why__point {
	position: relative;
	padding-left: 1.5rem;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-licorice);
}

.home-why__point::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0.75rem;
	height: 0.75rem;
	background: var(--color-slate-blue);
	border-radius: 999px;
}

.home-why__card {
	background: var(--color-antique-white);
	border-radius: 1.5rem;
	padding: 1rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.home-why__card-icon {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.home-why__card-icon-image {
	width: 100%;
	height: 100%;
}

.home-why__card-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.home-why__card-title {
	margin: 0;
	font-family: "Haskoy", sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-licorice);
}

.home-why__card-text {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-licorice);
	text-align: center;
}

.home-target__cards {
	display: grid;
	gap: 1.5rem;
}

.home-target__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	padding: 3rem 1.5rem 3.5rem;
}

.home-target__title {
	text-align: center;
}

.home-target__title-highlight {
	color: var(--color-cornell-red);
}

.home-target__title-second-line {
	display: block;
}

.home-target__card {
	display: flex;
	flex-direction: column;
	background: var(--color-racing-green);
	border-radius: 1rem;
	overflow: hidden;
	color: var(--color-white);
	height: 30.375rem;
}

.home-target__card img {
	width: 100%;
	height: 13.125rem;
	object-fit: cover;
}

.home-target__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1rem 2.125rem;
	text-align: center;
}

.home-target__card-copy {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 19.375rem;
	max-width: 100%;
}

.home-target__card-title {
	margin: 0;
	font-family: "LT Wave", serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.home-target__card-text {
	margin: 0;
	font-family: "Haskoy", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
}

.home-target__card-text strong {
	font-weight: 700;
}

.home-target__card-cta {
	margin-top: auto;
}


.home-cash__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 2.25rem;
	padding: 3rem 1.5rem;
}

.home-cash__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	width: 21.4375rem;
	max-width: 100%;
}

.home-cash__title {
	margin: 0;
	font-size: 2rem;
	color: var(--color-white);
}

.home-cash__text {
	margin: 0;
	max-width: 21.1875rem;
	color: var(--color-white);
	font-family: "Haskoy", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

.home-cash__text strong {
	font-weight: 700;
}

.home-cash__image {
	justify-self: center;
	width: 100%;
	max-width: 100%;
	height: 13.125rem;
	object-fit: cover;
	border-radius: 1rem;
}

.home-cash__cta {
	justify-self: center;
}

/* ---- Home: Not-only-CHF section ---- */

.home-not-only-chf {
	overflow: hidden;
	background-color: var(--color-warm-bg);
	padding: 3rem 1.5rem;
}

.home-not-only-chf__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: stretch;
}

/*
 * display:contents dissolves the wrapper into the flex parent on mobile,
 * allowing CSS order to sequence: title → text → visual → cta.
 * On desktop (min-width: 64rem) this is reset to display:flex.
 */
.home-not-only-chf__content {
	display: contents;
}

.home-not-only-chf__title {
	order: 1;
	margin: 0;
	color: var(--color-licorice);
	font-family: "LT Wave", serif;
	font-size: var(--font-size-2xl);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.home-not-only-chf__title-accent {
	color: var(--color-cornell-red);
}

.home-not-only-chf__text {
	order: 2;
	font-family: "Haskoy", sans-serif;
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-licorice);
}

.home-not-only-chf__text p {
	margin: 0;
}

.home-not-only-chf__text p + p,
.home-not-only-chf__text br + br {
	margin-top: 1em;
}

.home-not-only-chf__visual {
	order: 3;
	width: 100%;
	height: 13.125rem; /* 210px */
	border-radius: 1rem;
	overflow: hidden;
	margin: 0;
	flex-shrink: 0;
}

.home-not-only-chf__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.home-not-only-chf__cta {
	order: 4;
	align-self: center;
}

.home-trust {
	position: relative;
	height: 48.75rem;
	color: var(--color-white);
	overflow: hidden;
}

.home-trust::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 61, 35, 0) 56%, rgba(0, 61, 35, 0.92) 100%);
	pointer-events: none;
	z-index: 0;
}

.home-trust__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 75% 36%;
	z-index: 0;
}

.home-trust__content {
	position: absolute;
	left: 1.875rem;
	right: 1.25rem;
	top: 3.25rem;
	bottom: 2.4375rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	width: auto;
	max-width: 29rem;
	z-index: 1;
}

.home-trust__title {
	margin: 0;
	max-width: 28.5rem;
	font-family: "LT Wave", serif;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.home-trust__text {
	margin: auto 0 0;
	width: 100%;
	font-family: "Haskoy", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

.home-trust__cta {
	align-self: center;
}

.home-blog__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 3.5rem 1rem 3rem;
}

.home-blog h2 {
	width: 18.4375rem;
	text-align: center;
}

.home-blog__carousel {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.home-blog__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	gap: 1rem;
	width: 100%;
	padding: 0.5rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.home-blog__track::-webkit-scrollbar {
	display: none;
}

.home-blog__track > .home-blog__card {
	flex: 0 0 calc(100vw - 4rem);
	scroll-snap-align: center;
}

.home-blog .blog-reading-meta__item {
	font-size: var(--font-size-base);
}

.home-blog__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.home-blog__dot {
	width: 0.875rem;
	height: 0.875rem;
	background-color: var(--color-racing-green);
	border: none;
	padding: 0;
	cursor: pointer;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='72' height='70' viewBox='0 0 72 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36.0671 0C60.3293 0 72 10.4719 72 33.9528V35.5644C72 59.0518 60.3293 69.5173 36.0671 69.5173C11.805 69.5173 0 59.0453 0 35.5644V33.9528C0 10.4654 11.9329 0 36.0671 0Z' fill='black'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-image: url("data:image/svg+xml,%3Csvg width='72' height='70' viewBox='0 0 72 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36.0671 0C60.3293 0 72 10.4719 72 33.9528V35.5644C72 59.0518 60.3293 69.5173 36.0671 69.5173C11.805 69.5173 0 59.0453 0 35.5644V33.9528C0 10.4654 11.9329 0 36.0671 0Z' fill='black'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	transition: background-color 0.2s ease;
}

.home-blog__dot.is-current {
	background-color: var(--color-cornell-red);
}

.home-blog__cta {
	margin-top: 1.5rem;
}

.home-blog__cta {
	margin-top: 0;
}

@media (min-width: 64rem) {
	.home-hero__media {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.home-hero__media img {
		height: 100%;
	}

	.home-hero__inner {
		position: absolute;
		inset: 0;
		z-index: 1;
		padding: 10rem 9.0625rem 5.25rem 6.8125rem;
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12.1875rem;
	}

	.home-hero__copy {
		flex: 1 1 auto;
		align-self: center;
		max-width: 46.375rem;
		min-width: 0;
	}

	.home-hero__title {
		font-size: var(--font-size-5xl);
		max-width: 46.375rem;
	}

	.home-hero__subtitle {
		font-size: var(--font-size-lg);
		max-width: 46.375rem;
	}

	.home-metrics {
		padding: 4.125rem 16.71875rem;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow-x: visible;
		justify-items: center;
	}

	.home-metrics__item {
		flex: unset;
		min-width: unset;
	}

	.home-metrics__value {
		font-size: var(--font-size-3xl);
		white-space: normal;
	}

	.home-metrics__label {
		font-size: 1.75rem;
		white-space: normal;
	}

	.home-why__inner,
	.home-target__inner,
	.home-cash__inner,
	.home-blog__inner {
		padding: 5.5rem 7.5rem;
	}

	.home-why__inner {
		gap: 4.5rem;
	}

	.home-why__title,
	.home-target__title,
	.home-cash__title,
	.home-blog h2 {
		font-size: 3rem;
	}

	.home-why__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.home-cash__inner {
		grid-template-columns: 46.875rem 36.625rem;
		grid-template-areas:
			"image content"
			"image cta";
		align-items: center;
		column-gap: 5.5rem;
		row-gap: 6.5rem;
		padding: 6.5rem 7.5rem;
	}

	.home-cash__content {
		grid-area: content;
		gap: 2.5rem;
		width: 36.625rem;
	}

	.home-cash__image {
		grid-area: image;
		justify-self: start;
		width: 46.875rem;
		max-width: none;
		height: 31.25rem;
	}

	.home-cash__cta {
		grid-area: cta;
		justify-self: start;
		padding: 1rem 2.5rem;
		border-width: 3px;
		font-size: var(--font-size-lg);
	}

	.home-cash__text {
		max-width: 35.9375rem;
		font-size: var(--font-size-lg);
	}

	.home-why__grid {
		grid-template-columns: 41.3125rem 38.4375rem;
		grid-template-areas:
			"intro points"
			"card points";
		column-gap: 5.875rem;
		row-gap: 2.8125rem;
	}

	.home-why__intro {
		grid-area: intro;
		font-size: var(--font-size-lg);
		max-width: 39.4375rem;
	}

	.home-why__points {
		grid-area: points;
		gap: 2rem;
	}

	.home-why__point {
		padding-left: 2.25rem;
	}

	.home-why__point::before {
		width: 1.25rem;
		height: 1.125rem;
		border-radius: 999px;
	}

	.home-why__card {
		grid-area: card;
		align-self: start;
		width: 38rem;
		padding: 2rem;
		gap: 1rem;
	}

	.home-why__card-icon {
		width: 3.75rem;
		height: 3.75rem;
	}

	.home-why__card-copy {
		gap: 0.5rem;
	}

	.home-why__point {
		font-size: var(--font-size-lg);
	}

	.home-why__card-title {
		font-size: var(--font-size-md);
	}

	.home-why__card-text {
		font-size: var(--font-size-md);
	}

	.home-target__cards {
		width: 80rem;
		max-width: 100%;
		grid-template-columns: minmax(0, 39.875rem) minmax(0, 39.375rem);
		gap: 6.5rem;
	}

	.home-target__inner {
		gap: 6.5rem;
		padding: 6.5rem 7.375rem 10.25rem;
	}

	.home-target__card {
		height: auto;
		transition: transform 0.2s ease;
	}

	.home-target__card:hover,
	.home-target__card:focus-within {
		transform: scale(1.02);
	}

	.home-target__card img {
		height: 22.5rem;
	}

	.home-target__card-body {
		padding: 2rem 0 2.75rem;
	}

	.home-target__card--private .home-target__card-copy {
		width: 28.25rem;
	}

	.home-target__card--business .home-target__card-copy {
		width: 27.25rem;
	}

	.home-target__card-title {
		font-size: var(--font-size-2xl);
	}

	.home-target__card-text {
		font-size: var(--font-size-md);
	}

	.home-target__card-cta {
		margin-top: 2.75rem;
		padding: 1rem 2.5rem;
		border-width: 3px;
		font-size: var(--font-size-lg);
	}

	.home-not-only-chf {
		padding: 0;
	}

	.home-not-only-chf__inner {
		display: grid;
		grid-template-columns: 46.875rem 36.625rem; /* 750px 586px */
		grid-template-areas: "visual content";
		column-gap: 5.5rem;
		align-items: center;
		padding: 6.5rem 7.5rem; /* allineato al padding-left di home-why */
	}

	/* Restore content as a proper flex column on desktop */
	.home-not-only-chf__content {
		display: flex;
		flex-direction: column;
		gap: 4rem; /* 64px */
		grid-area: content;
		order: unset;
	}

	.home-not-only-chf__title {
		order: unset;
		font-size: 3rem;
		color: var(--color-licorice);
	}

	.home-not-only-chf__text {
		order: unset;
		font-size: var(--font-size-lg);
	}

	.home-not-only-chf__visual {
		order: unset;
		grid-area: visual;
		width: 46.875rem; /* 750px */
		height: 31.25rem; /* 500px */
		flex-shrink: unset;
	}

	.home-not-only-chf__visual img {
		object-position: center center;
	}

	.home-not-only-chf__cta {
		order: unset;
		align-self: flex-start;
		border-width: 3px;
		padding: 1rem 2.5rem; /* 16px 40px */
		font-family: "LT Wave", serif;
		font-size: var(--font-size-lg); /* 24px */
		font-weight: 700;
		min-height: 4.0625rem;
	}

	.home-trust {
		height: 60.5rem;
	}

	.home-trust__bg {
		object-position: center center;
	}

	.home-trust::after {
		display: none;
	}

	.home-trust__content {
		top: 50%;
		right: auto;
		bottom: auto;
		left: 7.75rem;
		gap: 2.5rem;
		align-items: flex-start;
		max-width: 30.4375rem;
		transform: translateY(-50%);
	}

	.home-trust__title {
		font-size: 3rem;
	}

	.home-trust__text {
		margin: 0;
		font-size: var(--font-size-lg);
	}

	.home-trust__cta {
		align-self: flex-start;
		min-height: 4.0625rem;
		padding: 1rem 2.5rem;
		border-width: 3px;
		font-size: var(--font-size-lg);
	}

	.home-blog__inner {
		gap: 6.5rem;
		padding: 3.5rem 7.5rem 5rem;
	}

	.home-blog h2 {
		width: 100%;
	}

	.home-blog__carousel {
		gap: 0;
	}

	.home-blog__track {
		display: grid;
		grid-template-columns: repeat(4, 21.375rem);
		gap: 2.5rem;
		overflow-x: visible;
		scroll-snap-type: none;
		justify-content: center;
		width: 100%;
		padding: 0;
	}

	.home-blog__track > .home-blog__card {
		flex: none;
	}

	.home-blog .blog-post-card {
		width: 21.375rem;
	}

	.home-blog__dots {
		display: none;
	}

	.home-blog__cta {
		padding: 1rem 2.5rem;
		border-width: 3px;
		font-size: var(--font-size-lg);
	}

	.site-footer {
		background-image: url("../images/footer_bg.webp");
	}

}

@media (min-width: 90rem) {
	.home-hero__subtitle {
		max-width: 33rem;
	}
}
