/* === STILE V2: DARK MODERN / BURGER JOINT === */
:root {
    --primary: #ff4757; /* Rosso Neon */
    --primary-dark: #ff6b81;
    --dark: #1e272e;
    --darker: #0d1216;
    --light: #2f3542;
    --white: #fff;
    --text: #d2dae2;
    --border: #444;
    --shadow: 0 5px 15px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background-color: var(--dark); line-height: 1.6; }
h1, h2, h3, .restaurant-name { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utility */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn-primary { 
    display: inline-block; background: var(--primary); color: var(--white); 
    padding: 12px 30px; border-radius: 8px; font-weight: bold; transition: 0.3s; border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 15px var(--primary); }
.btn-block { width: 100%; padding: 15px; font-size: 1.1rem; }

/* Pulsanti Navigazione Demo */
.back-link { font-size: 0.9rem; color: #777; }
.design-switcher {
    position: fixed; bottom: 20px; left: 20px; z-index: 2000;
    background: #000; padding: 5px; border-radius: 30px; display: flex; gap: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 1px solid #333;
}
.design-switcher a { color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }
.design-switcher a.active { background: var(--primary); font-weight: bold; }

/* --- STILI LANDING PAGE V2 --- */
.landing-body { background-color: var(--darker); }
.navbar { background: var(--dark); color: var(--white); padding: 1.5rem 0; border-bottom: 2px solid var(--primary); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); text-transform: uppercase; font-style: italic; }

.hero { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center;
    color: var(--white); text-align: center; padding: 8rem 1rem;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; color: #ddd; }

.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.menu-card { background: var(--light); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.menu-card h3 { color: var(--primary); border-bottom: 2px solid #444; padding-bottom: 0.8rem; margin-bottom: 1.5rem; }
.menu-list li { display: flex; justify-content: space-between; margin-bottom: 1rem; border-bottom: 1px solid #444; padding-bottom: 0.8rem; }
.menu-list li.total-price { border-top: 2px solid var(--primary); border-bottom: none; padding-top: 1rem; font-size: 1.2rem; margin-top: 1rem; color: var(--white); }

/* Box CTA Interattiva */
.interactive-cta-box {
    background: #000; color: var(--white); border-radius: 20px; overflow: hidden;
    display: flex; align-items: center; box-shadow: 0 0 30px rgba(255, 71, 87, 0.2); border: 1px solid var(--border);
}
.cta-content { padding: 3rem; flex: 1; }
.cta-content h3 { font-size: 2.2rem; color: var(--primary); margin-bottom: 1rem; }
.cta-image { flex: 1; height: 100%; min-height: 300px; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2); }
.glow-effect { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
footer { background: #000; padding: 30px 0; text-align: center; border-top: 2px solid var(--primary); margin-top: 40px; }

@media (max-width: 768px) {
    .interactive-cta-box { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
}

/* --- STILI APP INTERATTIVA V2 (app-v2.php) --- */
.app-body { background-color: var(--darker); padding-top: 130px; padding-bottom: 80px; }

.app-header {
    position: fixed; top: 0; left: 0; width: 100%; background: var(--dark);
    z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border-bottom: 1px solid var(--border);
}
.header-top { 
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
    background: #000; color: var(--white);
}
.restaurant-name { font-size: 1.1rem; color: var(--primary); font-style: italic; }
.back-btn { font-size: 0.9rem; color: #888; }
.table-info { font-size: 0.8rem; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; }

.categories-scroll {
    display: flex; overflow-x: auto; padding: 15px; background: var(--dark);
    gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-btn {
    white-space: nowrap; padding: 8px 16px; border-radius: 8px; border: 1px solid #444;
    background: var(--light); color: var(--text); font-weight: 500; cursor: pointer; transition: 0.2s;
}
.cat-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 0 10px rgba(255, 71, 87, 0.4); }

.products-container { padding: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.product-card {
    background: var(--light); border-radius: 12px; overflow: hidden; display: flex;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.2s; border: 1px solid transparent;
}
.product-card:active { border-color: var(--primary); }
.product-img { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; }
.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-title { font-weight: bold; font-size: 1rem; margin-bottom: 4px; color: var(--white); }
.product-desc { font-size: 0.8rem; color: #aaa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.product-price { font-weight: bold; color: var(--primary); font-size: 1.1rem; }
.add-btn { 
    background: #000; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #444; 
    color: var(--white); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.add-btn:active { background: var(--primary); border-color: var(--primary); }

/* Cart Bar */
.cart-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px; background: #000; color: var(--white);
    padding: 15px 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.8); cursor: pointer; z-index: 90; transition: 0.3s;
    border: 1px solid var(--primary);
}
.cart-info { display: flex; align-items: center; gap: 10px; }
.badge { background: var(--primary); color: var(--white); width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; }
.cart-total { font-weight: bold; font-size: 1.1rem; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    z-index: 1000; display: none; align-items: flex-end; backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal-content {
    background: var(--light); width: 100%; max-width: 500px; margin: 0 auto; color: var(--white);
    border-radius: 20px 20px 0 0; padding: 20px; max-height: 90vh; overflow-y: auto;
    display: flex; flex-direction: column; animation: slideUp 0.3s ease; border-top: 2px solid var(--primary);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 15px; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #fff; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.item-qty-control { display: flex; align-items: center; gap: 10px; background: #000; padding: 5px 10px; border-radius: 8px; border: 1px solid #444; }
.qty-btn { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--primary); font-weight: bold; }
.modal-footer { border-top: 1px solid #444; padding-top: 20px; margin-top: 20px; }
.final-total { font-size: 1.2rem; font-weight: bold; text-align: right; margin-bottom: 15px; color: var(--primary); }

/* Checkout Options */
.toggle-switch { display: flex; background: #000; padding: 4px; border-radius: 8px; margin: 15px 0; border: 1px solid #444; }
.toggle-btn { flex: 1; border: none; background: none; padding: 10px; border-radius: 6px; font-weight: 500; cursor: pointer; color: #888; }
.toggle-btn.active { background: var(--primary); color: var(--white); }
.order-form { background: #222; padding: 15px; border-radius: 8px; border: 1px solid #444; }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 4px; color: #aaa; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #444; border-radius: 6px; font-size: 1rem; background: #000; color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Success Modal */
.success-card { background: var(--light); padding: 40px; border-radius: 20px; text-align: center; max-width: 300px; width: 90%; color: var(--white); border: 2px solid var(--primary); }
.success-icon { font-size: 4rem; color: var(--primary); margin-bottom: 20px; text-shadow: 0 0 20px rgba(255, 71, 87, 0.5); }