:root {
    --bg-dark: #0f0f0f;
    --accent-red: #e63946;
    --text-light: #f5f5f5;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navbar Centrata */
nav {
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass);
    gap: 10px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
}

.logo span {
    color: var(--accent-red);
    font-weight: 300;
}

/* Cambio Lingua */
.lang-switch {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    font-style: inherit;
    opacity: 0.4;
    transition: var(--transition);
}

.lang-switch button.active {
    opacity: 1;
    color: var(--accent-red);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15,15,15,0.8), var(--bg-dark)),
                url('https://images.unsplash.com/photo-1579871494447-9811cf80d66c?q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 10px;
}

/* Grid Portfolio - Ottimizzata per Landscape */
.portfolio-grid {
    padding: 5rem 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

/* Card Styling - FIX IMMAGINI */
.card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-red);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene il formato delle tue foto 1920x1080 */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--glass);
}

.card-info {
    padding: 2rem;
}

.category-tag {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.card-info p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form di Contatto */
.booking-section {
    padding: 8rem 8%;
}

.booking-card {
    background: var(--glass);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--glass);
    max-width: 700px;
    margin: 0 auto;
}

.booking-card input, 
.booking-card textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.booking-card textarea {
    min-height: 150px;
    resize: none;
}

.booking-card input:focus, 
.booking-card textarea:focus {
    border-color: var(--accent-red);
    background: rgba(255,255,255,0.07);
    outline: none;
}

.btn-red {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-red:hover {
    background: #ff4d5a;
    transform: scale(1.02);
}

/* Footer */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--glass);
    opacity: 0.8;
}

/* Prezzo sulla card */
.card-price {
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent-red);
    font-weight: 700;
}

/* Sezione Dettaglio Piatto */
.menu-section {
    padding: 5rem 8%;
}

.detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

.detail-body {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.detail-price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent-red);
    font-weight: 700;
}

.detail-body > p {
    color: #c0c0c0;
    font-size: 1rem;
    line-height: 1.7;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
}

.detail-block .detail-label {
    display: block;
    color: var(--accent-red);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.detail-block p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--accent-red);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 50px;
}

.detail-qr {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-qr #detail-qr-code {
    display: inline-block;
    padding: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.detail-qr #detail-qr-code img,
.detail-qr #detail-qr-code canvas {
    display: block;
    border-radius: 6px;
}

.btn-close {
    margin-top: auto;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-close:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Sezione Orari & Posizione */
.info-section {
    padding: 5rem 8%;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #a0a0a0;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-6px);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.info-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 8px 0;
    color: #a0a0a0;
    line-height: 1.4;
}

.hours-table td:first-child {
    color: var(--text-light);
    font-weight: 600;
    padding-right: 1rem;
    white-space: nowrap;
}

.btn-map {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 10px 20px;
    border: 1px solid var(--accent-red);
    border-radius: 10px;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-map:hover {
    background: var(--accent-red);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .booking-card {
        padding: 2rem;
    }
    .detail-card {
        grid-template-columns: 1fr;
    }
    .detail-card img {
        min-height: 240px;
    }
    .detail-body {
        padding: 2rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}