/* Dilus Labs – modern block theme styles */

:root {
	--dl-font: "Aktiv Grotesk", "Hanken Grotesk", sans-serif;
	--dl-red: #e1251b;
	--dl-red-dark: #b81c14;
	--dl-ink: #1d1d1b;
	--dl-text: #3b3b3a;
	--dl-muted: #7a7a78;
	--dl-line: #e8e8e6;
	--dl-soft: #f5f5f3;
	--dl-wide: 1160px;
	--dl-gutter: clamp(20px, 4vw, 40px);
	--dl-header-h: 88px;
	--dl-radius: 0;
	--fs-xs: 13px;
	--fs-sm: 15px;
	--fs-base: 18px;
	--fs-h4: 20px;
	--fs-h3: 24px;
	--fs-h2: clamp(26px, 3vw, 32px);
	--fs-h1: clamp(32px, 4.4vw, 48px);
	--dl-section: clamp(40px, 6vw, 72px);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
::selection { background: var(--dl-red); color: #fff; }

/* ---------- Layout ---------- */
.dl-site > * { margin-block: 0; }
.dl-main { margin: 0; }
.dl-main > .wp-block-post-content {
	margin: 0;
	padding: 0 var(--dl-gutter) clamp(64px, 9vw, 112px);
}
.dl-main > .wp-block-post-content > * { margin-block: 0; }
.dl-main > .wp-block-post-content > * + * { margin-top: var(--dl-section); }
.dl-main > .wp-block-post-content > .dl-banner + * { margin-top: var(--dl-section); }
.dl-main--loop { padding: 56px var(--dl-gutter) 96px; max-width: var(--dl-wide); margin: 0 auto; }
.dl-main > .wp-block-post-content > :first-child:not(.dl-banner) { margin-top: clamp(28px, 4vw, 48px); }
.dl-main > .wp-block-post-content > .dl-text:first-child { margin-top: var(--dl-section); }

.wp-block-image img { border-radius: 0; }
.dl-main figure { margin: 0; }

/* ---------- Header ---------- */
.dl-header-wrap {
	position: sticky;
	top: 0;
	z-index: 500;
	margin: 0;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--dl-line);
}
.admin-bar .dl-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .dl-header-wrap { top: 46px; } }

.dl-header {
	max-width: var(--dl-wide);
	height: var(--dl-header-h);
	margin: 0 auto;
	padding: 0 var(--dl-gutter);
	box-sizing: content-box;
	gap: 24px;
}
.dl-header > * { margin-block: 0; }
.dl-header .wp-block-shortcode { margin: 0; flex: 1 1 auto; display: flex; justify-content: flex-end; }

.dl-logo { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.dl-logo img { display: block; height: 54px; width: auto; }

.dl-nav { display: flex; align-items: center; gap: 28px; }
.dl-nav ul { list-style: none; margin: 0; padding: 0; }
.dl-menu { display: flex; align-items: center; gap: 4px; }
.dl-menu > li { position: relative; margin: 0; }
.dl-menu a {
	font-family: var(--dl-font);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
	color: var(--dl-ink);
}
.dl-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--dl-header-h);
	padding: 0 14px;
	transition: color .2s;
}
.dl-menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -1px;
	height: 2px;
	background: var(--dl-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s;
}
.dl-menu > li:hover > a,
.dl-menu > li:focus-within > a,
.dl-menu > li.current-menu-item > a,
.dl-menu > li.current-menu-ancestor > a { color: var(--dl-red); }
.dl-menu > li:hover > a::after,
.dl-menu > li:focus-within > a::after,
.dl-menu > li.current-menu-item > a::after,
.dl-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.dl-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: 0;
	box-shadow: none;
	z-index: 600;
}
.dl-menu > li:hover > .sub-menu,
.dl-menu > li:focus-within > .sub-menu { display: block; }
.dl-menu .sub-menu li { margin: 0; }
.dl-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 0;
	white-space: nowrap;
	font-weight: 500;
}
.dl-menu .sub-menu a:hover { background: var(--dl-soft); color: var(--dl-red); }

/* Language switcher */
.dl-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--dl-line);
	border-radius: 0;
	background: #fff;
}
.dl-lang li { margin: 0; }
.dl-lang a {
	display: block;
	padding: 5px 11px;
	border-radius: 0;
	font-family: var(--dl-font);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-decoration: none;
	color: var(--dl-muted);
	transition: background .2s, color .2s;
}
.dl-lang a:hover { color: var(--dl-ink); text-decoration: none; }
.dl-lang a.is-active { background: var(--dl-red); color: #fff; }

.dl-nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 12px;
	margin-right: -12px;
	cursor: pointer;
}
.dl-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dl-ink); margin: 5px 0; border-radius: 0; transition: transform .2s, opacity .2s; }
.dl-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dl-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dl-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 999px) {
	:root { --dl-header-h: 64px; }
	.dl-logo img { height: 42px; }
	.dl-header .wp-block-shortcode { align-items: center; }
	.dl-nav-toggle { display: block; }
	.dl-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--dl-gutter) 20px;
		background: #fff;
		border-bottom: 1px solid var(--dl-line);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .1);
		max-height: calc(100vh - var(--dl-header-h));
		overflow-y: auto;
	}
	.dl-nav.is-open { display: flex; }
	.dl-menu { display: block; }
	.dl-menu > li { border-bottom: 1px solid var(--dl-line); }
	.dl-menu > li > a { height: auto; padding: 15px 0; font-size: var(--fs-sm); }
	.dl-menu > li > a::after { display: none; }
	.dl-menu .sub-menu { display: block; position: static; padding: 0 0 10px 14px; border: 0; box-shadow: none; background: none; }
	.dl-menu .sub-menu a { padding: 8px 0; color: var(--dl-muted); }
	.dl-lang { align-self: flex-start; margin-top: 18px; }
}

/* ---------- Banner ---------- */
.dl-banner {
	position: relative;
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	overflow: hidden;
}
.dl-banner > .wp-block-image { margin: 0; }
.dl-banner > .wp-block-image img {
	display: block;
	width: 100%;
	height: clamp(220px, 30vw, 400px);
	object-fit: cover;
}
.dl-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%);
	pointer-events: none;
}
.dl-banner__title {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: calc(var(--dl-wide) + 2 * var(--dl-gutter)) !important;
	margin: 0 auto !important;
	padding: 0 var(--dl-gutter);
}
.dl-main .dl-banner__title h1 {
	margin: 0;
	display: inline-block;
	padding: .47em .6em .29em; /* optically centres caps (Aktiv ascent > descent) */
	background: var(--dl-red);
	font-family: var(--dl-font);
	font-size: var(--fs-h1);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	color: #fff !important;
}

/* ---------- Text ---------- */
.dl-text, .dl-policy { max-width: var(--dl-wide); margin-inline: auto; }
.dl-text > p, .dl-policy > p, .dl-text > .dl-heading { max-width: 780px; }
.dl-text.dl-text--wide { max-width: var(--dl-wide); }
.dl-main h1, .dl-main h2, .dl-main h3, .dl-main h4, .dl-main h5 { font-family: var(--dl-font); color: var(--dl-ink); }
.dl-heading {
	margin: 0 0 22px;
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}
.dl-text p, .dl-policy p { margin: 0 0 1.1em; font-size: var(--fs-base); line-height: 1.75; color: var(--dl-text); }
.dl-text p:last-child { margin-bottom: 0; }
.dl-text .dl-lead { font-size: var(--fs-base); color: var(--dl-ink); }
.dl-small p, .dl-small.dl-policy p { font-size: var(--fs-sm); line-height: 1.7; }
.dl-main p a, .dl-main .dl-policy a { color: var(--dl-red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Columns ---------- */
.dl-main .wp-block-columns { gap: clamp(20px, 3vw, 32px); margin-bottom: 0; }
.dl-main .wp-block-column > * + * { margin-top: 0; }
.dl-cols.dl-small { column-gap: clamp(28px, 5vw, 64px); }
.dl-cols.dl-small p { margin: 0 0 1em; }
.dl-cols p strong { color: var(--dl-ink); }

/* ---------- Home ---------- */
.dl-hero img { width: 100%; height: auto; border-radius: 0; display: block; }

.dl-brands-cards { gap: 24px !important; }
.dl-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 44px 28px 34px;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: 0;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.dl-brand:hover { transform: translateY(-4px); border-color: #cfcfcb; }
.dl-brand .dl-brand__logo { margin: 0; width: 100%; display: flex; justify-content: center; }
.dl-brand .dl-brand__logo a { display: block; line-height: 0; }
.dl-brand .dl-brand__logo img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.dl-brand p { margin: 0; }
.dl-brand .dl-brand__kind {
	margin-top: 28px;
	font-family: var(--dl-font);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--dl-muted);
}
.dl-brand .dl-brand__link { margin-top: 6px; font-size: var(--fs-base); font-weight: 500; line-height: 1.4; }
.dl-brand .dl-brand__link a { color: var(--dl-red); text-decoration: none; }
.dl-brand .dl-brand__link a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) {
	.dl-brand { padding: 32px 24px 26px; }
}

.dl-eyebrow {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-block: calc(var(--dl-section) + 24px) -12px !important;
	max-width: var(--dl-wide) !important;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dl-muted) !important;
}
.dl-eyebrow::before, .dl-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--dl-line); }
.dl-eyebrow strong { font-weight: 700; }

.dl-pair img, .dl-wide-banner img { width: 100%; display: block; border-radius: 0; transition: transform .3s, box-shadow .3s; }

.dl-main > .wp-block-post-content > .dl-eyebrow + .dl-pair { margin-top: 48px; }
.dl-main > .wp-block-post-content > .dl-pair + .dl-wide-banner { margin-top: 28px; }

.dl-funds {
	align-items: center;
	padding: clamp(22px, 3vw, 34px);
	background: var(--dl-soft);
	border-radius: 0;
}
.dl-funds img { width: 100%; height: auto; display: block; }
.dl-funds .dl-funds__text { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--dl-muted); }
.dl-funds .dl-funds__text a { color: var(--dl-ink); }

/* Brand photo tiles on Innovation/Commitment */
.dl-brands .wp-block-image img { width: 100%; display: block; border-radius: 0; transition: transform .3s, box-shadow .3s; }
.dl-brands a:hover img { transform: translateY(-3px); }

/* ---------- Video ---------- */
.dl-video { max-width: var(--dl-wide); margin-inline: auto; }
.dl-video .wp-block-embed__wrapper { max-width: 780px; }
.dl-video .wp-block-embed__wrapper { border-radius: 0; overflow: hidden; background: #000; }

/* ---------- Footer ---------- */
.dl-footer-wrap { margin: 0; background: var(--dl-soft); border-top: 1px solid var(--dl-line); }
.dl-footer { max-width: var(--dl-wide); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--dl-gutter) 22px; box-sizing: content-box; }
.dl-footer__cols { align-items: center !important; margin: 0 !important; gap: 28px !important; }
.dl-footer .dl-logo img { height: 46px; }
.dl-footer .wp-block-shortcode { margin: 0; }
.dl-footer__text { margin: 0; font-size: var(--fs-sm); line-height: 1.75; color: var(--dl-text); }
.dl-footer__text a { color: var(--dl-ink); text-decoration: none; }
.dl-footer__text a:hover { color: var(--dl-red); }
.dl-footer__legal {
	margin: clamp(26px, 4vw, 40px) 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--dl-line);
	font-size: var(--fs-xs);
	color: var(--dl-muted);
}
@media (max-width: 781px) {
	.dl-footer__cols { gap: 20px !important; }
}

/* ---------- Back to top ---------- */
#dl-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 0;
	background: var(--dl-ink);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s, background .2s;
	z-index: 400;
	padding: 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
#dl-back-to-top:hover { background: var(--dl-red); }
#dl-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#dl-back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.dl-main > .wp-block-post-content > .dl-text--wide + .wp-block-columns { margin-top: 28px; }

.dl-footer__links { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); line-height: 1.75; }
.dl-footer__links li { margin: 0; }
.dl-footer__links a { color: var(--dl-ink); text-decoration: none; }
.dl-footer__links a:hover { color: var(--dl-red); }
.dl-footer__links a.cli_settings_button { background: none !important; color: var(--dl-ink) !important; padding: 0 !important; margin: 0 !important; border: 0 !important; font: inherit !important; cursor: pointer; }
.dl-footer__links a.cli_settings_button:hover { color: var(--dl-red) !important; }

/* Marató box: logo image + selectable text */
.dl-marato {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: clamp(16px, 2vw, 28px);
	padding: clamp(10px, 1.4vw, 16px) clamp(16px, 2.2vw, 28px);
	background: #4a66a5;
	color: #fff;
}
.dl-marato .dl-marato__logo { margin: 0; }
.dl-marato .dl-marato__logo img { display: block; height: clamp(44px, 5vw, 58px); width: auto; border-radius: 0; }
.dl-marato .dl-marato__text { margin: 0; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .45); font-size: var(--fs-sm); line-height: 1.5; color: #fff; }
@media (max-width: 781px) {
	.dl-marato { grid-template-columns: 1fr; }
	.dl-marato .dl-marato__text { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .45); }
}
.dl-main > .wp-block-post-content > .dl-pair + .dl-marato { margin-top: var(--dl-section); }

/* Footer: all columns aligned to the top */
.dl-footer__cols { align-items: flex-start !important; }
.dl-footer__cols > .wp-block-column { align-self: flex-start !important; }
.dl-footer .dl-logo { margin-top: 2px; }

.dl-marato { cursor: pointer; }
#cookie-law-info-bar, #cookie-law-info-again { box-shadow: none !important; }

/* Chaty widget on the left (back-to-top stays on the right) */
.chaty-widget.right-position, .chaty-widget { left: 22px !important; right: auto !important; }
.chaty-widget .chaty-channels, .chaty .chaty-widget .chaty-channels { left: 0 !important; right: auto !important; }
.chaty-widget .chaty-channel-list { left: 0 !important; right: auto !important; }
.chaty-widget .chaty-channels { align-items: flex-start !important; }
.chaty-widget .chaty-cta-main { left: 0 !important; right: auto !important; }

/* Desktop header: menu + language switch sit on the bottom edge of the logo (its vertical bar) */
@media (min-width: 1000px) {
	.dl-header { height: auto; padding-top: 20px; padding-bottom: 20px; align-items: flex-end !important; }
	.dl-header .wp-block-shortcode { align-self: flex-end; align-items: flex-end; }
	.dl-nav { align-items: flex-end; }
	.dl-menu { align-items: flex-end; }
	.dl-menu > li > a { height: auto; line-height: 1; padding: 0 14px; margin-bottom: -2px; }
	.dl-menu > li > a::after { bottom: -9px; }
	.dl-lang { margin-bottom: -4px; }
}
.dl-header > p { margin: 0; line-height: 0; }
.dl-header > p:empty { display: none; }
@media (min-width: 1000px) {
	.dl-menu > li > a { margin-bottom: -1px; }
	.dl-lang { margin-bottom: 0; }
}
@media (min-width: 1000px) {
	.dl-menu .sub-menu { top: calc(100% + 22px); }
	.dl-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
}

/* Home hero: editable title on a red box over the image */
.dl-hero { position: relative; }
.dl-hero .dl-hero__img { margin: 0; }
.dl-hero .dl-hero__img img { display: block; width: 100%; height: auto; min-height: 240px; object-fit: cover; border-radius: 0; }
.dl-hero { --box: clamp(190px, 27vw, 340px); }
.dl-hero .dl-hero__box {
	position: absolute;
	right: clamp(14px, 6vw, 96px);
	top: calc(50% - var(--box) / 2);
	width: var(--box);
	height: var(--box);
	box-sizing: border-box;
	display: flex;
	align-items: flex-end;
	padding: clamp(16px, 2.2vw, 32px);
}
/* red square blended with the photo (multiply); text stays above, unblended */
.dl-hero .dl-hero__box::before { content: ""; position: absolute; inset: 0; background: var(--dl-red); mix-blend-mode: multiply; }
.dl-main .dl-hero .dl-hero__title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: clamp(26px, 3.6vw, 50px);
	font-weight: 800;
	line-height: 1.12;
	color: #fff !important;
}


/* Header gets more transparent once the page is scrolled */
.dl-header-wrap { transition: background .25s, border-color .25s; }
.dl-header-wrap.is-scrolled { background: rgba(255, 255, 255, .72); border-bottom-color: rgba(0, 0, 0, .05); }

/* Footer: thin vertical rule on the left of columns 2-4 */
@media (min-width: 782px) {
	.dl-footer__cols > .wp-block-column:nth-child(n+2) { border-left: 1px solid #cfcfcb; padding-left: 24px; }
}
.dl-footer__cols { align-items: stretch !important; }
.dl-footer__cols > .wp-block-column { align-self: stretch !important; }

/* Home brand cards: Vitfit logo a bit larger; grey caption bigger, web smaller */
.dl-brand .dl-brand__logo img { height: 58px; }
.dl-brands-cards .dl-brand:first-child .dl-brand__logo img { height: 72px; }
.dl-brand .dl-brand__kind { font-size: 15px; }
.dl-brand .dl-brand__link { font-size: var(--fs-sm); }
.dl-brand .dl-brand__logo { height: 72px; align-items: center; }
.dl-menu a, .dl-menu li > span, .dl-lang a { cursor: pointer; }

/* Compact header on scroll: smaller logo, shorter bar */
.dl-logo img, .dl-header { transition: height .25s ease, padding .25s ease; }
@media (min-width: 1000px) {
	.dl-header-wrap.is-scrolled .dl-header { padding-top: 10px; padding-bottom: 10px; }
	.dl-header-wrap.is-scrolled .dl-logo img { height: 36px; }
}
@media (max-width: 999px) {
	.dl-header-wrap.is-scrolled .dl-header { height: 52px; }
	.dl-header-wrap.is-scrolled .dl-logo img { height: 30px; }
}

/* Event banners: white fade on hover instead of lifting */
.dl-pair .wp-block-image a, .dl-wide-banner a { position: relative; display: block; line-height: 0; }
.dl-pair .wp-block-image a::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.dl-pair .wp-block-image a:hover::after { opacity: .35; }
.dl-pair a:hover img, .dl-wide-banner a:hover img { transform: none; }
/* Vitfit logo larger */
.dl-brands-cards .dl-brand:first-child .dl-brand__logo img { height: 88px; }
.dl-brand .dl-brand__logo { height: 88px; }
