.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.category-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.category-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.category-card-image {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 80px;
	position: relative;
	overflow: hidden;
}

.category-card-image::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
	animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

.category-card-content {
	padding: 1.5rem;
	text-align: center;
}

.category-card-title {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.category-card-description {
	color: var(--text-secondary);
	font-size: 14px;
}

.back-button {
	display: inline-block;
	margin: 2rem 2rem 1rem;
	padding: 12px 24px;
	background: var(--primary-color);
	color: white;
	border-radius: 25px;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s ease;
}

.back-button:hover {
	background: var(--accent-color);
	transform: translateX(-5px);
}

/* Active menu item */
nav .nav-menu a.active {
	color: var(--accent-color);
	border-bottom: 2px solid var(--accent-color);
}

/* Category specific colors */
.category-rosse { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.category-bianche { background: linear-gradient(135deg, #27ae60 0%, #229954 100%); }
.category-calzoni { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.category-stuzzicherie { background: linear-gradient(135deg, #f4d03f 0%, #f7b731 100%); }
.category-bevande { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }

/* List View Styles - SIMPLE */
.menu-list {
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem;
}

.menu-item-list {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-item-list:last-child {
	border-bottom: none;
}

/* Image on left */
.menu-item-list-image,
.menu-item-list-image-placeholder {
	width: 100px;
	height: 100px;
	border-radius: 12px;
	flex-shrink: 0;
	object-fit: cover;
}

.menu-item-list-image-placeholder {
	background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
}

/* Content in middle */
.menu-item-list-content {
	flex: 1;
	min-width: 0;
}

.menu-item-list-info {
	margin-bottom: 0.3rem;
}

.menu-item-list-name {
	font-size: 20px;
	font-weight: bold;
	color: white;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.menu-item-list-price {
	font-size: 24px;
	font-weight: bold;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
	display: block;
}

.menu-item-list-description {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* View Toggle Buttons */
.view-toggle {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin: 2rem 0;
}

.view-btn {
	padding: 10px 24px;
	background: #1e1e1e;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	border-radius: 25px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
}

.view-btn:hover {
	background: var(--primary-color);
	color: white;
}

.view-btn.active {
	background: var(--primary-color);
	color: white;
}
.view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px; /* spazio tra icona e testo */
}

.view-btn .icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.view-btn svg {
	width: 18px;
	height: 18px;
}

/* Hide elements based on view */
.menu-grid.hidden,
.menu-list.hidden {
	display: none;
}

/* Mobile responsive for list view */
@media (max-width: 768px) {
	.menu-list {
		padding: 0.5rem;
	}

	.menu-item-list {
		gap: 1rem;
		padding: 1.25rem 0.5rem;
	}

	.menu-item-list-image,
	.menu-item-list-image-placeholder {
		width: 105px;
		height: 125px;
	}

	.menu-item-list-name {
		font-size: 18px;
	}

	.menu-item-list-price {
		font-size: 22px;
	}

	.menu-item-list-description {
		font-size: 13px;
	}

	/* Make view toggle buttons stack better on mobile */
	.view-toggle {
		flex-wrap: wrap;
		padding: 0 1rem;
	}

	.view-btn {
		flex: 1;
		min-width: 140px;
	}
}

/* Extra small devices */
@media (max-width: 480px) {
	.menu-item-list {
		gap: 0.75rem;
	}

	.menu-item-list-image,
	.menu-item-list-image-placeholder {
		width: 105px;
		height: 125px;
	}

	.menu-item-list-name {
		font-size: 16px;
	}

	.menu-item-list-price {
		font-size: 20px;
	}

	.menu-item-list-description {
		font-size: 12px;
	}
}

/* Lightbox for fullscreen images */
.lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
	animation: zoomIn 0.3s ease;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.lightbox-info {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	text-align: center;
	background: rgba(0, 0, 0, 0.7);
	padding: 15px 30px;
	border-radius: 10px;
	max-width: 80%;
}

.lightbox-name {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 5px;
}

.lightbox-price {
	font-size: 24px;
	color: var(--accent-color);
	font-weight: bold;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes zoomIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* Make images clickable */
.menu-item-image,
.menu-item-list-image {
	cursor: pointer;
	transition: transform 0.3s ease;
}

.menu-item-image:hover,
.menu-item-list-image:hover {
	transform: scale(1.05);
}

/* ============================================
   LANGUAGE SWITCHER - CON IMMAGINI BANDIERE VERE
   Usa CDN flagcdn.com - bandiere vere e professionali
============================================ */

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 1rem;
}

.lang-flag {
    min-width: 140px;
    height: 58px;
    padding: 0 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Bandiera vera da CDN */
.lang-flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    object-fit: cover;
    flex-shrink: 0;
}

/* Testo lingua - SEMPRE BIANCO */
.lang-flag-text {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
}

/* Hover effect */
.lang-flag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.25), rgba(243, 156, 18, 0.15));
}

.lang-flag:hover .lang-flag-text {
    color: white;
}

.lang-flag:hover .lang-flag-icon {
    transform: scale(1.1);
}

/* Active state */
.lang-flag.active {
    border-width: 3px;
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.3),
                0 8px 25px rgba(243, 156, 18, 0.6);
    transform: scale(1.05);
}

.lang-flag.active .lang-flag-text {
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .lang-flag {
        min-width: 120px;
        height: 52px;
        padding: 0 18px;
        gap: 10px;
    }
    
    .lang-flag-icon {
        width: 28px;
        height: 21px;
    }
    
    .lang-flag-text {
        font-size: 13px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .lang-flag {
        min-width: 105px;
        height: 48px;
        padding: 0 16px;
        gap: 8px;
    }
    
    .lang-flag-icon {
        width: 24px;
        height: 18px;
    }
    
    .lang-flag-text {
        font-size: 12px;
    }
}