/* Providno zaglavlje preko hero slike na /home/ (stranica 10) — samo na desktopu (>=981px, isti prag
   kao Divi-jev prelaz na hamburger meni), mobilni meni ostaje potpuno nedirano/isto kao i do sada.
   Isti stil/sadržaj menija (zajednički Divi raspored, nedirano) — menja se samo pozicija i providnost. */
@media (min-width: 981px) {
	.mn-divi-zaglavlje header.et-l--header {
		position: fixed;
		top: 20px;
		left: 0;
		right: 0;
		z-index: 1000;
		background: transparent;
		box-shadow: none;
		transition: background .3s, box-shadow .3s;
	}
	/* Divi paints its own solid white background on inner wrapper divs (the section and the menu
	   module itself), not just the outer <header> — make those transparent too, so the <header>
	   element above is the single place that controls background for both states. */
	.mn-divi-zaglavlje header.et-l--header .et_pb_section_0_tb_header,
	.mn-divi-zaglavlje header.et-l--header .et_pb_menu_0_tb_header {
		background: transparent !important;
	}
	.mn-divi-zaglavlje header.et-l--header .et_pb_menu__logo img {
		filter: brightness(0) invert(1);
		transition: filter .3s;
	}
	.mn-divi-zaglavlje header.et-l--header .maestral-main-menu .et-menu-nav > ul.et-menu > li > a {
		color: #fff !important;
		transition: color .3s;
	}
	/* Solid state once scrolled past the hero top (JS toggles this class) — same "puno" idea as the
	   custom header's own providno variant in zaglavlje.css, just applied to the shared Divi header. */
	.mn-divi-zaglavlje header.et-l--header.mn-zaglavlje-puno {
		background: color-mix(in srgb, #fff 94%, transparent);
		box-shadow: 0 1px 0 rgba(15, 45, 61, .12), 0 10px 30px -20px rgba(15, 45, 61, .33);
		backdrop-filter: blur(12px);
	}
	.mn-divi-zaglavlje header.et-l--header.mn-zaglavlje-puno .et_pb_menu__logo img {
		filter: none;
	}
	.mn-divi-zaglavlje header.et-l--header.mn-zaglavlje-puno .maestral-main-menu .et-menu-nav > ul.et-menu > li > a {
		color: var(--gcid-primary-color) !important;
	}
	/* Header no longer takes static space above the hero (now fixed/floating over it), so the hero's own
	   padding-top (which naslovna.css sets to 72px for the old static-header case) must go back to 0 —
	   otherwise it pushes .mn-hero-bg and the ::before gradient down too, since both are absolutely
	   positioned with inset:0, which CSS measures from the *padding* edge, not the border edge. That
	   would leave a blank gap above the photo instead of the header floating over it. The breathing room
	   the title/search-bar need to clear the floating header is added on .mn-wrap instead (a normal,
	   non-absolutely-positioned flex item), which doesn't have this quirk. */
	.mn-divi-zaglavlje .mn-hero {
		padding-top: 0;
	}
	.mn-divi-zaglavlje .mn-hero > .mn-wrap {
		padding-top: calc(var(--mn-header) + 72px + 20px);
	}
}
