/*
 * The header, on every page (see inc/forside.php). Up to 1024 px wide (phones
 * and tablets): a trimmed logo to the left and the menu button to the right.
 * Wider: the whole menu in the middle.
 */

picture.dp-logo { display: contents; }

@media (max-width: 1024px) {
	.elementor-3166 picture.dp-logo img { width: auto !important; height: 60px !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

	.elementor-3166 .elementor-element.elementor-element-fc2a61b { flex-direction: row; padding-left: 16px; padding-right: 16px; }

	/* More specific than the site's extra CSS, which centres the menu button. */
	header.elementor-location-header .elementor-element.elementor-element-fc2a61b .elementor-element.elementor-element-5c4178a3 { position: absolute !important; top: 50% !important; left: auto !important; right: 16px !important; z-index: 100 !important; transform: translateY(-50%) !important; }
}

/*
 * Tablet: the menu button and the drop-down, as on mobile. Elementor shows
 * them only below 768 px (the menu's «Breakpoint» setting), and the full menu
 * doesn't fit on one line at this width.
 */
@media (min-width: 768px) and (max-width: 1024px) {
	header.elementor-location-header .elementor-element.elementor-element-5c4178a3 { --nav-menu-icon-size: 20px; }
	header.elementor-location-header .elementor-nav-menu--dropdown-mobile .elementor-nav-menu--main { display: none; }
	header.elementor-location-header .elementor-nav-menu--dropdown-mobile .elementor-menu-toggle { display: flex; }
	header.elementor-location-header .elementor-nav-menu--dropdown-mobile .elementor-nav-menu--dropdown { display: block; }
	header.elementor-location-header .elementor-nav-menu--dropdown-mobile nav.elementor-nav-menu--dropdown.elementor-nav-menu__container { overflow-y: auto; margin-top: 15px !important; }
	header.elementor-location-header .elementor-element-5c4178a3 .elementor-nav-menu--dropdown a { padding-top: 14px; padding-bottom: 14px; }
}

/* PC: the menu in the middle, not pushed to the right. The menu fills the
   space beside the logo and centres its links there. */
@media (min-width: 1025px) {
	header.elementor-location-header .elementor-element.elementor-element-fc2a61b > .elementor-element.elementor-element-5c4178a3 { flex: 1 1 auto; min-width: 0; }
}

/* Wide screens: as much space on the right as the logo takes on the left,
   so the menu sits in the middle of the page. */
@media (min-width: 1440px) {
	header.elementor-location-header .elementor-element.elementor-element-fc2a61b > .elementor-element.elementor-element-5c4178a3 { padding-right: 180px; }
}
