/* Hide mobile menu on desktop - Ultra specific rules */
@media screen and (min-width: 751px) {
	/* Hide mobile menu overlay - Ultra specific */
	body .mobile-menu-overlay,
	html body .mobile-menu-overlay,
	body[id] .mobile-menu-overlay,
	#header .mobile-menu-overlay,
	body #header .mobile-menu-overlay,
	html body #header .mobile-menu-overlay,
	body[id] #header .mobile-menu-overlay {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Hide mobile menu content - Ultra specific */
	body .mobile-menu-content,
	html body .mobile-menu-content,
	body[id] .mobile-menu-content,
	#header .mobile-menu-content,
	body #header .mobile-menu-content,
	html body #header .mobile-menu-content,
	body[id] #header .mobile-menu-content {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Hide mobile menu close button - Ultra specific */
	body .mobile-menu-close,
	html body .mobile-menu-close,
	body[id] .mobile-menu-close,
	#header .mobile-menu-close,
	body #header .mobile-menu-close,
	html body #header .mobile-menu-close,
	body[id] #header .mobile-menu-close {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Hide mobile menu items - Ultra specific */
	body .mobile-menu-item,
	html body .mobile-menu-item,
	body[id] .mobile-menu-item,
	#header .mobile-menu-item,
	body #header .mobile-menu-item,
	html body #header .mobile-menu-item,
	body[id] #header .mobile-menu-item {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Hide burger menu on desktop - Ultra specific */
	body #header .burgerMenu,
	html body #header .burgerMenu,
	body[id] #header .burgerMenu,
	#header .burgerMenu {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Hide any old burger menu structure - Ultra specific */
	body #header .burgerMenu p,
	html body #header .burgerMenu p,
	body[id] #header .burgerMenu p,
	#header .burgerMenu p {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	body #header .burgerMenu .tasto,
	html body #header .burgerMenu .tasto,
	body[id] #header .burgerMenu .tasto,
	#header .burgerMenu .tasto {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
}

@media screen and (max-width: 750px) {
	
	#header {
		box-shadow: none;
	}
	
	/* Force hide desktop menu on mobile */
	#header .menu {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	
	/* Force show mobile menu overlay - Ultra specific */
	body #header .mobile-menu-overlay,
	html body #header .mobile-menu-overlay,
	body[id] #header .mobile-menu-overlay {
		display: flex !important;
		visibility: visible !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		background: rgba(0,0,0,0.7) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		z-index: 1000 !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: center !important;
		padding-top: 80px !important;
	}
	
	/* Force show mobile menu content - Ultra specific */
	body #header .mobile-menu-content,
	html body #header .mobile-menu-content,
	body[id] #header .mobile-menu-content {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		text-align: center !important;
		transform: translateY(20px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		max-width: 280px !important;
		width: 100% !important;
		padding: 0 20px !important;
	}
	
	/* Force show mobile menu items - Ultra specific */
	body #header .mobile-menu-item,
	html body #header .mobile-menu-item,
	body[id] #header .mobile-menu-item {
		display: block !important;
		visibility: visible !important;
		opacity: 0 !important;
		margin: 0.4rem 0 !important;
		transform: translateY(8px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	}
	
	/* Force show mobile menu close button - Ultra specific */
	body #header .mobile-menu-close,
	html body #header .mobile-menu-close,
	body[id] #header .mobile-menu-close {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: absolute !important;
		top: 15px !important;
		right: 15px !important;
		width: 40px !important;
		height: 40px !important;
		background: rgba(255,255,255,0.1) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		border: 1px solid rgba(255,255,255,0.2) !important;
		border-radius: 12px !important;
		cursor: pointer !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		align-items: center !important;
		justify-content: center !important;
		z-index: 1002 !important;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
		pointer-events: auto !important;
	}
	
	/* Force show mobile menu overlay */
	body #header .mobile-menu-overlay {
		display: flex !important;
		visibility: visible !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		background: rgba(0,0,0,0.7) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		z-index: 1000 !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: center !important;
		padding-top: 80px !important;
	}
	
	/* Force show mobile menu content */
	body #header .mobile-menu-content {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		text-align: center !important;
		transform: translateY(20px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		max-width: 280px !important;
		width: 100% !important;
		padding: 0 20px !important;
	}
	
	/* Force show mobile menu items */
	body #header .mobile-menu-item {
		display: block !important;
		visibility: visible !important;
		opacity: 0 !important;
		margin: 0.4rem 0 !important;
		transform: translateY(8px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	}
	
	/* Force show mobile menu close button */
	body #header .mobile-menu-close {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: absolute !important;
		top: 15px !important;
		right: 15px !important;
		width: 40px !important;
		height: 40px !important;
		background: rgba(255,255,255,0.1) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		border: 1px solid rgba(255,255,255,0.2) !important;
		border-radius: 12px !important;
		cursor: pointer !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		align-items: center !important;
		justify-content: center !important;
		z-index: 1002 !important;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
		pointer-events: auto !important;
	}
	
	/* Force show mobile menu when active - Ultra specific */
	body #header .mobile-menu-overlay.active,
	html body #header .mobile-menu-overlay.active,
	body[id] #header .mobile-menu-overlay.active {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
	
	/* Force show mobile menu content when active - Ultra specific */
	body #header .mobile-menu-overlay.active .mobile-menu-content,
	html body #header .mobile-menu-overlay.active .mobile-menu-content,
	body[id] #header .mobile-menu-overlay.active .mobile-menu-content {
		transform: translateY(0) !important;
	}
	
	/* Force show mobile menu items when active - Ultra specific */
	body #header .mobile-menu-overlay.active .mobile-menu-item,
	html body #header .mobile-menu-overlay.active .mobile-menu-item,
	body[id] #header .mobile-menu-overlay.active .mobile-menu-item {
		opacity: 1 !important;
		transform: translateY(0) !important;
	}
	
	/* Show burger menu on mobile - override style.css - Ultra specific */
	body #header .burgerMenu,
	html body #header .burgerMenu,
	body[id] #header .burgerMenu {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		position: fixed !important;
		top: 15px !important;
		right: 15px !important;
		width: 44px !important;
		height: 44px !important;
		background: rgba(0,0,0,0.2) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		border: 1px solid rgba(255,255,255,0.15) !important;
		border-radius: 12px !important;
		cursor: pointer !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		z-index: 1001 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
	}
	
	/* Hide old burger menu structure on mobile */
	#header .burgerMenu p {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}
	
	#header .burgerMenu .tasto {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}
	
	/* Override desktop hiding rules */
	@media screen and (max-width: 750px) {
		#header .burgerMenu {
			display: block !important;
			visibility: visible !important;
		}
		
		#header .burgerMenu img {
			width: 40px !important;
			height: 40px !important;
			filter: brightness(0) invert(1) !important;
			transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
			object-fit: contain !important;
		}
	}
	
	#header .menu {
		display: none;
		visibility: hidden;
	}
	
	/* Modern Glassmorphic Burger Menu */
	#header .burgerMenu {
		display: block;
		visibility: visible;
		position: fixed;
		top: 15px;
		right: 15px;
		width: 44px;
		height: 44px;
		background: rgba(0,0,0,0.2);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border: 1px solid rgba(255,255,255,0.15);
		border-radius: 12px;
		cursor: pointer;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1001;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	}
	
	#header .burgerMenu:hover {
		background: rgba(0,0,0,0.3);
		border-color: rgba(255,255,255,0.25);
		transform: scale(1.05);
		box-shadow: 0 12px 40px rgba(0,0,0,0.15);
	}
	
	
	#header .burgerMenu:hover img {
		transform: scale(1.1);
		opacity: 0.8;
	}
	
	/* Elegant animation when menu is open - Ultra specific */
	body #header .mobile-menu-overlay.active ~ #header .burgerMenu img,
	html body #header .mobile-menu-overlay.active ~ #header .burgerMenu img,
	body[id] #header .mobile-menu-overlay.active ~ #header .burgerMenu img {
		transform: scale(0.9) !important;
		opacity: 0.6 !important;
	}
	
	/* Modern Glassmorphic Overlay */
	.mobile-menu-overlay {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		background: rgba(0,0,0,0.7) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		z-index: 1000 !important;
		opacity: 0 !important;
		visibility: hidden !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: center !important;
		padding-top: 80px !important;
		pointer-events: none !important;
	}
	
	.mobile-menu-overlay.active {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
	
	.mobile-menu-content {
		text-align: center !important;
		transform: translateY(20px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		max-width: 280px !important;
		width: 100% !important;
		padding: 0 20px !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.mobile-menu-overlay.active .mobile-menu-content {
		transform: translateY(0);
	}
	
	.mobile-menu-item {
		margin: 0.4rem 0 !important;
		opacity: 0 !important;
		transform: translateY(8px) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		display: block !important;
		visibility: visible !important;
	}
	
	.mobile-menu-overlay.active .mobile-menu-item {
		opacity: 1 !important;
		transform: translateY(0) !important;
		display: block !important;
		visibility: visible !important;
	}
	
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(2) { transition-delay: 0.15s; }
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(3) { transition-delay: 0.2s; }
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(4) { transition-delay: 0.25s; }
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(5) { transition-delay: 0.3s; }
	.mobile-menu-overlay.active .mobile-menu-item:nth-child(6) { transition-delay: 0.35s; }
	
	.mobile-menu-item a {
		display: block;
		color: #ffffff;
		text-decoration: none !important;
		font-family: "Helvetica Neue", sans-serif;
		font-weight: 500;
		font-size: 15px;
		text-transform: uppercase;
		letter-spacing: 0.8px;
		padding: 0.7rem 1.2rem;
		border-radius: 12px;
		background: rgba(255,255,255,0.1);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border: 1px solid rgba(255,255,255,0.2);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		position: relative;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	}
	
	.mobile-menu-item a:hover {
		background: rgba(255,255,255,0.15);
		border-color: rgba(255,255,255,0.3);
		transform: translateY(-2px);
		box-shadow: 0 12px 40px rgba(0,0,0,0.15);
		text-decoration: none !important;
	}
	
	.mobile-menu-item a:active {
		transform: translateY(0);
		text-decoration: none !important;
	}
	
	.mobile-menu-item a:focus {
		text-decoration: none !important;
		outline: none;
	}
	
	.mobile-menu-item a:visited {
		text-decoration: none !important;
	}
	
	/* Modern Language Button */
	.mobile-menu-item .language-btn {
		background: rgba(255,255,255,0.1);
		border: 1px solid rgba(255,255,255,0.2);
		border-radius: 8px;
		padding: 0.4rem;
		cursor: pointer;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		margin: 0 auto;
		box-shadow: 0 6px 24px rgba(0,0,0,0.1);
	}
	
	.mobile-menu-item .language-btn:hover {
		background: rgba(255,255,255,0.15);
		border-color: rgba(255,255,255,0.3);
		transform: translateY(-2px) scale(1.05);
		box-shadow: 0 12px 40px rgba(0,0,0,0.15);
	}
	
	.mobile-menu-item .language-btn img {
		width: 16px !important;
		height: 16px !important;
		object-fit: contain !important;
		filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)) !important;
		max-width: 16px !important;
		max-height: 16px !important;
	}
	
	/* Modern Close Button */
	.mobile-menu-close {
		position: absolute !important;
		top: 15px !important;
		right: 15px !important;
		width: 40px !important;
		height: 40px !important;
		background: rgba(255,255,255,0.1) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		border: 1px solid rgba(255,255,255,0.2) !important;
		border-radius: 12px !important;
		cursor: pointer !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		z-index: 1002 !important;
		box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.mobile-menu-close:hover {
		background: rgba(255,255,255,0.15) !important;
		border-color: rgba(255,255,255,0.3) !important;
		transform: scale(1.05) !important;
		box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
	}
	
	/* Force show close button when menu is active */
	.mobile-menu-overlay.active .mobile-menu-close {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	
	.mobile-menu-close:before,
	.mobile-menu-close:after {
		content: '' !important;
		position: absolute !important;
		width: 16px !important;
		height: 2px !important;
		background: #ffffff !important;
		border-radius: 1px !important;
		transition: all 0.3s ease !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.mobile-menu-close:before {
		transform: rotate(45deg) !important;
	}
	
	.mobile-menu-close:after {
		transform: rotate(-45deg) !important;
	}
	
	.mobile-menu-close:hover:before,
	.mobile-menu-close:hover:after {
		background: #cccccc !important;
	}
	
	/* Force small language button image */
	.mobile-menu-overlay .language-btn img,
	.mobile-menu-item .language-btn img,
	button.language-btn img {
		width: 16px !important;
		height: 16px !important;
		max-width: 16px !important;
		max-height: 16px !important;
		object-fit: contain !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	/* Desktop language button styling */
	#header .menu .language-btn {
		background: rgba(255,255,255,0.1);
		border: 1px solid rgba(255,255,255,0.2);
		border-radius: 8px;
		padding: 8px;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		cursor: pointer;
		text-decoration: none;
		color: inherit;
	}
	
	#header .menu .language-btn:hover {
		background: rgba(255,255,255,0.15);
		border-color: rgba(255,255,255,0.3);
		transform: translateY(-1px);
	}
	
	#header .menu .language-btn img {
		width: 16px !important;
		height: 16px !important;
		object-fit: contain !important;
		filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)) !important;
	}
	
	/* Fix for aboutus page: prevent #second from covering card text */
	body#aboutus #second {
		margin-top: 200px !important;
		padding-top: 80px !important;
		position: relative !important;
		z-index: 10 !important;
	}
	
	/* Create intermediate section to fill the gap */
	body#aboutus #second::before {
		content: '' !important;
		position: absolute !important;
		top: -200px !important;
		left: 0 !important;
		width: 100% !important;
		height: 200px !important;
		background-color: rgba(0, 0, 0, 0.3) !important;
		z-index: -1 !important;
	}
	
	/* Ensure testimonials section has proper spacing on mobile */
	body#aboutus #testimonials1-f {
		margin-bottom: 20px !important;
		padding-bottom: 40px !important;
		position: relative !important;
		z-index: 5 !important;
	}
	
	/* Ensure the card text is fully visible */
	body#aboutus .mbr-testimonial .card-block {
		padding-bottom: 2rem !important;
		margin-bottom: 1rem !important;
	}
	
	/* Increase height of the testimonials card on mobile */
	body#aboutus .mbr-testimonial,
	body#aboutus .mbr-testimonial.card,
	body#aboutus .mbr-testimonial.mbr-testimonial-lg {
		height: 500px !important;
		max-height: 500px !important;
		min-height: 500px !important;
	}
	
}