/*
 * KŠTM – global styles (child theme: assets/css/kstm.css)
 * Loaded on every page by helpers/kstm-assets.php, after Elementor's CSS.
 *
 * Contents:
 *   1. Base font
 *   2. Področje template (empty sections, loop cards, Smernice cards)
 *   3. Popups (Smernice + Elementor .kstm-popup-vir)
 *   4. O nas – Ekipa counters
 *   5. Scroll animations (fade up)
 *   6. Področje hero video
 *   7. Header (sticky, hide on scroll, mobile menu)
 *   8. Mobile typography – opt out per element with class kstm-mobilno-svoje
 */

body {
	font-family: "Mukta", sans-serif
}

.kstm-skrij-prazno:not(:has([data-e-type="e-collection-loop-item"], .kstm-smernica)) {
	display: none !important
}

/* Loop cards: external link filled -> show "pod-gumb-zunanji" (new tab), hide the internal one */
.pod-gumb-zunanji:not(:has(a[href^="http"])) {
	display: none !important
}

.pod-kartica:has(.pod-gumb-zunanji a[href^="http"]) .pod-gumb-notranji {
	display: none !important
}

.kstm-smernice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 625px));
	justify-content: center;
	gap: 20px
}

.kstm-smernice,
.kstm-popup {
	font-family: "Mukta", sans-serif
}

.kstm-smernica {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 405px;
	margin: 0;
	padding: 46px 37px 48px;
	border: 0;
	border-radius: 20px;
	background: #f4f4f4;
	color: #1e3250;
	font-family: "Mukta", sans-serif;
	font-size: inherit;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 0 0 rgba(30, 50, 80, 0);
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease
}

/* :focus too – the theme paints focused buttons red, and focus returns to the card when the popup closes */
.kstm-smernica:focus,
.kstm-smernica:hover,
.kstm-smernica:focus-visible {
	background: #f4f4f4;
	color: #1e3250;
	outline: 0
}

.kstm-smernica:hover,
.kstm-smernica:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 22px 45px rgba(30, 50, 80, .18)
}

.kstm-smernica:focus-visible {
	outline: 3px solid var(--kstm-accent, #42aeea);
	outline-offset: 3px
}

.kstm-smernica--dark,
.kstm-smernica--dark:focus,
.kstm-smernica--dark:hover,
.kstm-smernica--dark:focus-visible {
	background: #1e3250;
	color: #fff
}

.kstm-smernica--dark:hover,
.kstm-smernica--dark:focus-visible {
	box-shadow: 0 22px 45px rgba(30, 50, 80, .35)
}

.kstm-smernica__naslov {
	display: block;
	max-width: 530px;
	font-size: 60px;
	font-weight: 700;
	line-height: 70px
}

.kstm-smernica__ikona {
	display: block;
	margin-top: 40px;
	line-height: 0
}

.kstm-smernica__plus {
	position: absolute;
	right: 22px;
	bottom: 21px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #1e3250;
	color: #fff;
	transition: transform .7s cubic-bezier(.4, 0, .2, 1)
}

.kstm-smernica:hover .kstm-smernica__plus {
	transform: rotate(360deg)
}

/* Icon lines are re-drawn on hover (shapes have pathLength="1") */
.kstm-smernica__ikona svg g>* {
	stroke-dasharray: 1 1;
	stroke-dashoffset: 0
}

.kstm-smernica:hover .kstm-smernica__ikona svg g>* {
	animation: kstm-crta .6s cubic-bezier(.4, 0, .2, 1) both
}

.kstm-smernica:hover .kstm-smernica__ikona svg g>:nth-child(2) {
	animation-delay: .12s
}

.kstm-smernica:hover .kstm-smernica__ikona svg g>:nth-child(3) {
	animation-delay: .24s
}

.kstm-smernica:hover .kstm-smernica__ikona svg g>:nth-child(4) {
	animation-delay: .36s
}

.kstm-smernica:hover .kstm-smernica__ikona svg g>:nth-child(5) {
	animation-delay: .48s
}

@keyframes kstm-crta {
	from {
		stroke-dashoffset: 1
	}

	to {
		stroke-dashoffset: 0
	}
}

@media (prefers-reduced-motion:reduce) {

	.kstm-smernica,
	.kstm-smernica__plus {
		transition: none
	}

	.kstm-smernica:hover .kstm-smernica__plus {
		transform: none
	}

	.kstm-smernica:hover .kstm-smernica__ikona svg g>* {
		animation: none
	}
}

.kstm-smernica--dark .kstm-smernica__plus {
	background: #fff;
	color: #1e3250
}

.kstm-popup {
	width: min(900px, calc(100% - 48px));
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: #1e3250;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25)
}

.kstm-popup::backdrop {
	background: rgba(30, 50, 80, .75)
}

.kstm-popup__inner {
	position: relative;
	padding: 60px
}

.kstm-popup__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f4f4f4;
	color: #1e3250;
	cursor: pointer
}

.kstm-popup__close:focus {
	background: #f4f4f4;
	color: #1e3250;
	outline: 0
}

.kstm-popup__close:hover,
.kstm-popup__close:focus-visible {
	background: #1e3250;
	color: #fff
}

.kstm-popup__naslov {
	margin: 0 50px 30px 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	color: #1e3250
}

.kstm-popup__vsebina {
	font-size: 18px;
	line-height: 28px
}

.kstm-popup__vsebina>:first-child {
	margin-top: 0
}

.kstm-popup__vsebina>:last-child {
	margin-bottom: 0
}

.kstm-popup__vsebina ul,
.kstm-popup__vsebina ol {
	margin: 0 0 24px;
	padding-left: 24px
}

.kstm-popup__vsebina li {
	margin-bottom: 8px
}

.kstm-popup__vsebina li::marker {
	color: var(--kstm-accent, #42aeea)
}

.kstm-popup__vsebina a {
	color: #1e3250;
	text-decoration: underline
}

html:has(.kstm-popup[open]) {
	overflow: hidden
}

/* Popup open / close animation */
.kstm-popup[open] {
	animation: kstm-popup-in .4s cubic-bezier(.2, .7, .3, 1) both
}

.kstm-popup[open]::backdrop {
	animation: kstm-popup-fade .4s ease both
}

.kstm-popup.is-closing {
	animation: kstm-popup-out .25s ease both
}

.kstm-popup.is-closing::backdrop {
	animation: kstm-popup-fade .25s ease reverse both
}

@keyframes kstm-popup-in {
	from {
		opacity: 0;
		transform: translateY(30px) scale(.97)
	}

	to {
		opacity: 1;
		transform: none
	}
}

@keyframes kstm-popup-out {
	from {
		opacity: 1;
		transform: none
	}

	to {
		opacity: 0;
		transform: translateY(20px) scale(.98)
	}
}

@keyframes kstm-popup-fade {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

@media (prefers-reduced-motion:reduce) {

	.kstm-popup[open],
	.kstm-popup[open]::backdrop,
	.kstm-popup.is-closing {
		animation: none
	}
}

/* Popup "+" button (e-button with class kstm-popup-odpri) next to an image, e.g. O nas – Vodstvo:
   hovering anywhere on the frame (image or button) turns the button 360° like the Smernice cards. */
.elementor :is(.e-con, .e-div-block-base):has(> .e-button-base.kstm-popup-odpri) > .e-button-base.kstm-popup-odpri {
	transition: transform .7s cubic-bezier(.4, 0, .2, 1), background-color .3s, color .3s
}

.elementor :is(.e-con, .e-div-block-base):has(> .e-button-base.kstm-popup-odpri):hover > .e-button-base.kstm-popup-odpri {
	transform: rotate(360deg) scale(1.08);
	background-color: var(--kstm-navy, #1e3250);
	color: #fff
}

@media (prefers-reduced-motion:reduce) {

	.elementor :is(.e-con, .e-div-block-base):has(> .e-button-base.kstm-popup-odpri):hover > .e-button-base.kstm-popup-odpri {
		transform: none
	}
}

/* Domov – Prihajoči dogodki: the Loop Carousel styling is in the widget's own Custom CSS (Elementor → Advanced → Custom CSS). */

/* Slider (Domov novo – Prostori, Aktualni dogodki): loop layout with global class kstm-drsnik (+ kstm-drsnik-element on the item).
   Scrolling is CSS scroll-snap (in the global classes); kstm.js adds the dots + arrows row (.kstm-drsnik-nav) above the track.
   Dot colour: blue, or the red accent when the loop has class kstm-drsnik-akcent. */
.kstm-drsnik::-webkit-scrollbar {
	display: none;
}
/* Mouse drag (kstm.js): grab cursor, and while dragging no snap/smooth scrolling and no text selection */
@media (hover: hover) and (pointer: fine) {
	.kstm-drsnik {
		cursor: grab;
	}
}
.kstm-drsnik.je-vlecen {
	scroll-snap-type: none !important;
	scroll-behavior: auto !important;
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}
.kstm-drsnik.je-vlecen * {
	cursor: grabbing !important;
}
.kstm-drsnik-nav {
	--kstm-drsnik-barva: #42aeea;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 22px;
	margin-bottom: 17px;
}
.kstm-drsnik-akcent .kstm-drsnik-nav {
	--kstm-drsnik-barva: #c77676;
}
.kstm-drsnik-nav.je-skrita {
	display: none;
}
.kstm-drsnik-pike {
	display: flex;
	gap: 16px;
	padding-left: 8px;
}
.kstm-drsnik-pike button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kstm-drsnik-barva);
	opacity: 0.35;
	cursor: pointer;
	transition: opacity 0.3s;
}
.kstm-drsnik-pike button.je-aktivna,
.kstm-drsnik-pike button:hover {
	opacity: 1;
	background: var(--kstm-drsnik-barva);
}
.kstm-drsnik-puscice {
	display: flex;
	gap: 38px;
}
.kstm-drsnik-puscice button,
.kstm-drsnik-puscice button:hover,
.kstm-drsnik-puscice button:focus {
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	color: #1e3250;
	opacity: 0.35;
	cursor: pointer;
	transition: opacity 0.3s;
}
.kstm-drsnik-puscice button:hover {
	opacity: 1;
}
.kstm-drsnik-puscice button:disabled {
	opacity: 0.12;
	cursor: default;
}
@media (max-width: 767px) {
	.kstm-drsnik-puscice {
		display: none;
	}
}

/* O nas – Ekipa counters (grid kstm-stevci, total cell kstm-stevec-skupaj): full-width blue at 20% opacity, solid blue sweeps in left → right */
.kstm-stevci--start .kstm-stevec-skupaj {
	background: linear-gradient(rgba(66, 174, 234, .2), rgba(66, 174, 234, .2)), #fff !important;
	isolation: isolate
}

.kstm-stevci--start .kstm-stevec-skupaj::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--kstm-blue, #42aeea);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.1s cubic-bezier(.65, 0, .35, 1)
}

.kstm-stevci--polno .kstm-stevec-skupaj::before {
	transform: scaleX(1)
}

.kstm-stevci--start .kstm-stevec-skupaj p {
	transition: color .8s ease .25s
}

.kstm-stevci--start:not(.kstm-stevci--polno) .kstm-stevec-skupaj .onas-ekipa-stevilka {
	color: rgba(30, 50, 80, .3) !important
}

.kstm-stevci--start:not(.kstm-stevci--polno) .kstm-stevec-skupaj .onas-ekipa-oznaka {
	color: #1e3250 !important
}

/* Fade up (100px, 1s, ease-out) when 50% visible – see the footer script.
   Elementor: class kstm-anim (+ kstm-anim-100 = 100ms later), class kstm-mreza-anim on a grid = items one after another. */
.kstm-js .kstm-anim:not(.kstm-anim-konec),
.kstm-js .kstm-mreza-anim>:not(.kstm-anim-konec),
.kstm-fade {
	opacity: 0;
	transform: translateY(100px)
}

.kstm-js .kstm-anim.kstm-vidno,
.kstm-js .kstm-mreza-anim>.kstm-vidno,
.kstm-fade.kstm-vidno {
	opacity: 1;
	transform: none;
	transition: opacity 1s cubic-bezier(0, 0, .58, 1), transform 1s cubic-bezier(0, 0, .58, 1) !important;
	transition-delay: var(--kstm-zamik, 0ms) !important
}

@media (prefers-reduced-motion:reduce) {

	.kstm-js .kstm-anim,
	.kstm-js .kstm-mreza-anim>*,
	.kstm-fade {
		opacity: 1 !important;
		transform: none !important
	}
}

/* Popup from Elementor content (O nas – Vodstvo): block with class kstm-popup-vir,
   opened by an element with class kstm-popup-odpri in the same section */
.kstm-popup .kstm-popup-vir,
body.elementor-editor-active .kstm-popup-vir {
	display: block !important
}

.kstm-popup li::marker {
	color: var(--kstm-accent, #42aeea)
}

/* Področje hero: video (ACF naslovni_video) replaces the image when set */
body.kstm-ima-video .pod-hero-video {
	display: block !important
}

body.kstm-ima-video .pod-hero-slika {
	display: none !important
}

body:not(.kstm-ima-video) .pod-hero-video {
	display: none !important
}

@media (max-width:1024px) {
	.kstm-smernice {
		grid-template-columns: minmax(0, 1fr)
	}

	.kstm-smernica {
		min-height: 320px
	}

	.kstm-smernica__naslov {
		font-size: 44px;
		line-height: 52px
	}
}

@media (max-width:767px) {
	.kstm-smernica {
		min-height: 260px;
		padding: 32px 24px 40px
	}

	.kstm-smernica__naslov {
		font-size: 32px;
		line-height: 38px
	}

	.kstm-popup__inner {
		padding: 56px 24px 32px
	}

	.kstm-popup__naslov {
		margin-right: 0;
		font-size: 28px;
		line-height: 34px
	}

	.kstm-popup__vsebina {
		font-size: 16px;
		line-height: 26px
	}
}

[data-elementor-type="header"] {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: transform .45s cubic-bezier(.4, 0, .2, 1)
}

@media (min-width:783px) {
	body.admin-bar [data-elementor-type="header"] {
		top: 32px
	}
}

@media (max-width:782px) and (min-width:601px) {
	body.admin-bar [data-elementor-type="header"] {
		top: 46px
	}
}

[data-elementor-type="header"].kstm-header-skrit {
	transform: translateY(calc(-100% - 50px))
}

@media (max-width:1024px) {
	[data-elementor-type="header"] .elementor-menu-toggle {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0 !important;
		background: none !important;
		border: 0
	}

	[data-elementor-type="header"] .elementor-menu-toggle svg {
		display: none !important
	}

	[data-elementor-type="header"] .elementor-menu-toggle::before,
	[data-elementor-type="header"] .elementor-menu-toggle::after {
		content: "";
		position: absolute;
		left: 9px;
		right: 9px;
		height: 2.5px;
		border-radius: 2px;
		background: #1e3250;
		transition: top .3s cubic-bezier(.77, 0, .18, 1), transform .3s cubic-bezier(.77, 0, .18, 1)
	}

	[data-elementor-type="header"] .elementor-menu-toggle::before {
		top: 16px
	}

	[data-elementor-type="header"] .elementor-menu-toggle::after {
		top: 25.5px;
		left: 17px
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active::before {
		top: 20.75px;
		transform: rotate(45deg)
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active::after {
		top: 20.75px;
		left: 9px;
		transform: rotate(-45deg)
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: fixed !important;
		top: var(--kstm-hdr, 72px) !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		height: calc(100dvh - var(--kstm-hdr, 72px));
		max-height: none !important;
		margin: 0 !important;
		padding: 16px 16px 48px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		transform: none !important;
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
		transition: clip-path .55s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .55s !important
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav.elementor-nav-menu__container {
		clip-path: inset(0 0 0 0);
		visibility: visible;
		transition: clip-path .55s cubic-bezier(.77, 0, .18, 1), visibility 0s !important
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown a.elementor-item {
		justify-content: space-between;
		padding: 16px 0 !important;
		border-bottom: 1px solid rgba(30, 50, 80, .12);
		background: none !important;
		font-family: "Mukta", sans-serif !important;
		font-size: 28px !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		color: #1e3250 !important
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown a.elementor-sub-item {
		padding: 12px 0 12px 16px !important;
		border-bottom: 1px solid rgba(30, 50, 80, .08);
		background: none !important;
		font-family: "Mukta", sans-serif !important;
		font-size: 20px !important;
		font-weight: 500 !important;
		color: #1e3250 !important
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown a:hover,
	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown a:focus-visible,
	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown a.elementor-item-active {
		color: #42aeea !important
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown>ul>li {
		opacity: 0;
		transform: translateY(-12px);
		transition: opacity .25s, transform .25s
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li {
		opacity: 1;
		transform: none;
		transition: opacity .4s ease, transform .4s ease
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(1) {
		transition-delay: 195ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(2) {
		transition-delay: 240ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(3) {
		transition-delay: 285ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(4) {
		transition-delay: 330ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(5) {
		transition-delay: 375ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(6) {
		transition-delay: 420ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(7) {
		transition-delay: 465ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(8) {
		transition-delay: 510ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(9) {
		transition-delay: 555ms
	}

	[data-elementor-type="header"] .elementor-menu-toggle.elementor-active+nav>ul>li:nth-child(10) {
		transition-delay: 600ms
	}

	html:has([data-elementor-type="header"] .elementor-menu-toggle.elementor-active) {
		overflow: hidden
	}

	/* Items with a submenu: the submenu is a full panel that slides in from the left (kstm.js toggles
	   .kstm-podmeni-odprt on the <li> and adds the back button .kstm-podmeni-nazaj). */
	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown li.menu-item-has-children>a .sub-arrow {
		transform: rotate(-90deg)
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown ul.sub-menu {
		display: block !important;
		position: fixed !important;
		top: var(--kstm-hdr, 72px) !important;
		left: 0 !important;
		right: auto !important;
		z-index: 2;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: calc(100dvh - var(--kstm-hdr, 72px));
		margin: 0 !important;
		padding: 16px 16px 48px !important;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff !important;
		border: 0 !important;
		box-shadow: none !important;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .5s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .5s
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown li.kstm-podmeni-odprt>ul.sub-menu {
		transform: none;
		visibility: visible;
		transition: transform .5s cubic-bezier(.77, 0, .18, 1), visibility 0s
	}

	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown ul.sub-menu a.elementor-sub-item {
		padding: 16px 0 !important;
		border-left: 0 !important;
		border-bottom: 1px solid rgba(30, 50, 80, .12) !important;
		font-size: 24px !important;
		font-weight: 600 !important;
		line-height: 1.2 !important
	}

	[data-elementor-type="header"] .kstm-podmeni-nazaj button {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin: 0;
		padding: 6px 0;
		border: 0;
		border-radius: 0;
		background: none;
		font-family: "Mukta", sans-serif;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		color: #1e3250;
		cursor: pointer
	}

	[data-elementor-type="header"] .kstm-podmeni-nazaj button:hover,
	[data-elementor-type="header"] .kstm-podmeni-nazaj button:focus-visible {
		color: #42aeea
	}

	[data-elementor-type="header"] .kstm-podmeni-nazaj svg {
		flex: 0 0 auto;
		width: 8px;
		height: 14px
	}

	[data-elementor-type="header"] .kstm-podmeni-naslov {
		margin: 12px 0 0;
		padding: 0 0 16px;
		border-bottom: 1px solid rgba(30, 50, 80, .12);
		font-family: "Mukta", sans-serif;
		font-size: 28px;
		font-weight: 700;
		line-height: 1.2;
		color: #1e3250
	}

	/* Tapped link that loads a new page: menu closes in 0.3 s together with the X → hamburger icon,
	   then kstm.js navigates (see kstm.js) */
	[data-elementor-type="header"].kstm-meni-hitro nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		transition: clip-path .3s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .3s !important
	}

	[data-elementor-type="header"].kstm-meni-hitro nav.elementor-nav-menu--dropdown ul.sub-menu {
		transition: transform .3s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .3s !important
	}

	[data-elementor-type="header"].kstm-meni-hitro nav.elementor-nav-menu--dropdown>ul>li {
		transition: opacity .2s, transform .2s !important
	}
}

[data-elementor-type="header"] .kstm-podmeni-nazaj {
	display: none
}

@media (max-width:1024px) {
	[data-elementor-type="header"] nav.elementor-nav-menu--dropdown .kstm-podmeni-nazaj {
		display: block
	}
}

.kstm-poudarek {
	color: var(--kstm-accent, #42aeea)
}

/* Mobile typography (site-wide): headings 32 / card headings 24 / descriptions 16 / short texts 12 / buttons 14 */
@media (max-width:767px) {

	.elementor h1.e-heading-base:not(.kstm-mobilno-svoje),
	.elementor h2.e-heading-base:not(.kstm-mobilno-svoje),
	.ko-hero__title,
	.ko-h1,
	.ko-h2,
	.ko-other__title,
	.kd__title,
	.kd-arhiv__title,
	.kd-box__naslov,
	.dg-panel__title,
	.dg-kontakt__title {
		font-size: 32px !important;
		line-height: 1.1 !important
	}

	.elementor .onas-podrocje-naslov:not(.kstm-mobilno-svoje),
	.elementor .pod-kartica-naslov:not(.kstm-mobilno-svoje),
	.elementor .domov-dogodek-naslov:not(.kstm-mobilno-svoje),
	.elementor .onas-dejavnost-naslov:not(.kstm-mobilno-svoje),
	.elementor .kontakt-ime:not(.kstm-mobilno-svoje),
	.kstm-smernica__naslov,
	.ko-other__name,
	.ko-card__title {
		font-size: 24px !important;
		line-height: 1.2 !important
	}

	.elementor .kstm-uvod:not(.kstm-mobilno-svoje),
	.elementor .kstm-opis:not(.kstm-mobilno-svoje),
	.elementor .prostori-opis:not(.kstm-mobilno-svoje),
	.elementor .kstm-harmonika-besedilo:not(.kstm-mobilno-svoje),
	.elementor .pod-sekcija-oznaka:not(.kstm-mobilno-svoje),
	.elementor .kontakt-funkcija:not(.kstm-mobilno-svoje),
	.elementor .kontakt-podatek:not(.kstm-mobilno-svoje),
	.ko-hero__sub,
	.ko-wysiwyg,
	.ko-wysiwyg p,
	.ko-wysiwyg li,
	.ko-acc__body,
	.dg-panel__lead,
	.dg-opis,
	.dg-opis p,
	.kd-wysiwyg,
	.kd-wysiwyg p,
	.kd-wysiwyg li,
	.kd-box__opis {
		font-size: 16px !important;
		line-height: 24px !important
	}

	.elementor .pod-kartica-opis:not(.kstm-mobilno-svoje),
	.elementor .onas-podrocje-opis:not(.kstm-mobilno-svoje),
	.elementor .onas-dejavnost-opis:not(.kstm-mobilno-svoje),
	.elementor .onas-podrocje-oznaka:not(.kstm-mobilno-svoje),
	.elementor .domov-dogodek-datum:not(.kstm-mobilno-svoje),
	.ko-other__text,
	.ko-card__text {
		font-size: 12px !important;
		line-height: 18px !important
	}

	.elementor .e-button-base:not(.kstm-popup-odpri):not(.kstm-mobilno-svoje),
	.elementor .kstm-gumb-obroba:not(.kstm-mobilno-svoje),
	.elementor .pod-kartica-gumb:not(.kstm-mobilno-svoje),
	.elementor .domov-dogodek-vec:not(.kstm-mobilno-svoje),
	.ko-btn,
	.ko-other__more,
	.dg-back {
		font-size: 14px !important;
		line-height: 20px !important
	}
}

/* Single dokumenti (single-dokumenti-arhiv.php) – mobile: texts 15px, archive 13px, tighter spacing */
@media (max-width:767px) {

	.kd-box__opis,
	.kd-wysiwyg,
	.kd-wysiwyg p,
	.kd-wysiwyg li,
	.kd-arhiv .kd-item__title {
		font-size: 15px !important;
		line-height: 22px !important
	}

	.kd-arhiv .kd-wysiwyg,
	.kd-arhiv .kd-wysiwyg p,
	.kd-arhiv .kd-wysiwyg li {
		font-size: 13px !important;
		line-height: 18px !important
	}

	.kd .kd-wysiwyg li {
		margin-bottom: .3em
	}

	.kd .kd-box__head {
		margin-bottom: 32px
	}

	.kd .kd-item__body {
		padding-bottom: 20px
	}

	.kd .kd__inner {
		padding-bottom: 40px
	}

	.kd .kd-arhiv {
		padding-top: 24px
	}

	.kd .kd-arhiv__title {
		margin-bottom: 24px
	}

	.kd .kd-arhiv .kd-item__head {
		min-height: 44px;
		padding: 6px 0
	}

	.kd .kd-arhiv .kd-item__body {
		padding-bottom: 14px
	}
}

@media (prefers-reduced-motion:reduce) {

	[data-elementor-type="header"],
	[data-elementor-type="header"] nav.elementor-nav-menu__container,
	[data-elementor-type="header"] nav ul.sub-menu,
	[data-elementor-type="header"] nav>ul>li {
		transition: none !important
	}
}