/* ==========================================================================
   menu.css - Menu principale mooseek.com (tema Mooseek9)
   Da caricare DOPO style.css (vedi header.php).
   ========================================================================== */

/* ---- DESKTOP (base) ---- */
#menubar {
	background: linear-gradient(90deg, rgba(0, 34, 0, 1) 0%, rgba(0, 102, 0, 1) 35%, rgba(0, 204, 204, 1) 100%);
	box-shadow: none;
	color: #FFF;
	height: 50px;
	border-radius: 0px;
}

#menubar ul,
#menubar li {
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

#menubar ul {
	width: 100%;
	font-family: "Poppins", serif;
	text-transform: none;
	max-width: 1200px;
}

#menubar li {
	float: left;
	display: inline;
	position: relative;
}

#menubar a {
	display: block;
	line-height: 50px;
	padding: 0 10px;
	text-decoration: none;
	color: #FFFFFF;
	font-size: 17px;
}

#menubar .selected {
	background-color: #f1f1f1;
	color: black !important;
}

#menubar a.dropdown-arrow:after {
	content: "\25BE";
	margin-left: 5px;
}

#menubar li a:hover {
	color: #000;
	background: #fbfbfb;
}

#menubar input {
	display: none;
	margin: 0;
	padding: 0;
	height: 50px;
	width: 100%;
	opacity: 0;
	cursor: pointer
}

#menubar label {
	display: none;
	line-height: 50px;
	text-align: center;
	position: absolute;
	left: 35px
}

#menubar label:before {
	font-size: 2em;
	content: "\2261";
	margin-left: 20px;
}

#menubar ul.sub-menus {
	height: auto;
	overflow: hidden;
	width: 170px;
	background: #111;
	position: absolute;
	z-index: 99;
	display: none;
	box-shadow: none;
}

#menubar ul.sub-menus li {
	display: block;
	width: 100%;
}

#menubar ul.sub-menus a {
	color: #f0f0f0;
	font-size: 17px;
}

#menubar li:hover ul.sub-menus {
	display: block
}

#menubar ul.sub-menus a:hover {
	background: #fbfbfb;
	color: #444444;
}

/* ---- 1024px - 1200px: carattere un po' piu' piccolo ---- */
@media (min-width: 1024px) and (max-width: 1200px) {
	#menubar a {
		font-size: 16px;
	}
	#menubar ul.sub-menus a {
		font-size: 16px;
	}	
}

/* frecce >> e << : sempre nascoste su desktop (si attivano solo sotto i 1024px) */
#menubar .menu-arrow {
	display: none;
}

@media (max-width: 1023px) {

	:root {
		--menu-h: 40px; /* altezza barra: modificala qui se vuoi piu' alta/bassa */
	}

	#menubar {
		position: relative;
		width: 100vw;
		max-width: 100%;
		height: var(--menu-h);
		overflow: hidden;
	}

	/* nasconde il vecchio hamburger */
	#menubar input,
	#menubar label {
		display: none !important;
	}

	/* riga scorrevole */
	#menubar > ul {
		display: flex !important;
		flex-wrap: nowrap;
		position: static;
		width: 100%;
		max-width: none;
		height: var(--menu-h);
		max-height: none;
		margin: 0;
		padding: 0;
		background: transparent;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	#menubar > ul::-webkit-scrollbar {
		display: none;
	}

	#homemenu {
		display: block !important;
	}

	#menubar > ul > li {
		display: block;
		float: none;
		flex: 0 0 auto;
		width: auto;
		margin: 0;
	}

	#menubar > ul > li > a {
		display: block;
		padding: 0 14px;
		line-height: var(--menu-h);
		font-family: "Poppins", serif;
		font-size: 17px;
		white-space: nowrap;
	}

	/* niente sottomenu a tendina su touch (sarebbero tagliati dallo scroll) */
	#menubar ul.sub-menus {
		display: none !important;
	}

	#menubar a.dropdown-arrow:after {
		content: none;
	}

	/* frecce >> e << */
	#menubar .menu-arrow {
		display: none;
		position: absolute;
		top: 0;
		height: var(--menu-h);
		width: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		z-index: 5;
		align-items: center;
		justify-content: center;
		font-family: "Poppins", serif;
		font-size: 17px;
		font-weight: 700;
		line-height: 1;
		color: #fff;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	#menubar .menu-arrow.is-visible {
		display: flex;
	}

	#menubar .menu-arrow-left {
		left: 0;
		background: linear-gradient(90deg, rgba(0, 34, 0, 1) 55%, rgba(0, 34, 0, 0) 100%);
		justify-content: flex-start;
		padding-left: 8px;
	}

	#menubar .menu-arrow-right {
		right: 0;
		background: linear-gradient(270deg, rgba(0, 150, 150, 1) 55%, rgba(0, 150, 150, 0) 100%);
		justify-content: flex-end;
		padding-right: 8px;
		animation: menu-nudge 1.4s ease-in-out infinite;
	}

	@keyframes menu-nudge {
		0%, 100% { transform: translateX(0); }
		50%      { transform: translateX(3px); }
	}
}


/* ==========================================================================
   HEADER COMPATTO (logo + barra menu) - desktop, tablet e smartphone
   Riduce lo spazio verticale tra logo e menu.
   ========================================================================== */
#top {
	padding: 4px 10px;
}

/* l'immagine inline lascia ~6px vuoti sotto: la rendo a blocco */
#logo {
	margin-right: 20px;
	line-height: 0;
}

#logo img {
	display: block;
}

#logoright {
	margin-top: 0;
	margin-bottom: 0;
}

#searchup {
	margin: 0;
}

@media (max-width: 1023px) {

	#logo {
		margin-right: 0;
	}

	#logoright {
		margin: 0;
	}
}
