* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c8102e;
    --secondary-color: #f4a127;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --gold-color: #d4af37;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.cart-icon:hover {
    background: #f5f5f5;
}

#cart-count {
    position: absolute;
    top: 0;
    right: 5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.hero {
    background: linear-gradient(135deg, #c8102e 0%, #8b0e1f 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #a00d26;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200,16,46,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-gold {
    background: var(--gold-color);
    color: white;
}

.btn-gold:hover {
    background: #b8941f;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 14px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.menu-preview {
    padding: 80px 0;
    background: #f9f9f9;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.menu-card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 8px;
    margin-bottom: 15px;
}

.menu-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.menu-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.rewards-banner {
    background: linear-gradient(135deg, var(--gold-color), #b8941f);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.rewards-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.rewards-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-section {
    padding: 80px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cta-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.cta-card:hover {
    transform: scale(1.05);
}

.cta-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #8b0e1f);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.menu-categories {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.category-btn:hover {
    background: var(--primary-color);
    color: white;
}

.menu-section {
    padding: 60px 0;
}

.menu-section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.menu-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.menu-item-img-wrap {
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
}

.menu-item-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.menu-item--drink {
    border: 1px solid #f0f0f0;
}

.menu-item--drink .menu-item-img-wrap {
    background: #f8f8f8;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item--drink .menu-item-img-wrap img {
    object-fit: contain;
}

.menu-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.menu-item-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-item-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.order-search input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.order-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cat-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.order-items-grid {
    display: grid;
    gap: 20px;
}

.order-cart {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.cart-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.cart-box h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.order-cart-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-row {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.booking-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
}

.rewards-hero {
    background: linear-gradient(135deg, var(--gold-color), #b8941f);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.rewards-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.rewards-levels {
    padding: 80px 0;
    background: #f9f9f9;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.level-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.level-card:hover {
    transform: translateY(-10px);
}

.level-badge {
    font-size: 60px;
    margin-bottom: 15px;
}

.level-requirement {
    color: var(--text-light);
    margin-bottom: 20px;
}

.level-card ul {
    text-align: left;
    list-style: none;
}

.level-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rewards-prizes {
    padding: 80px 0;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.prize-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.prize-card:hover {
    transform: scale(1.05);
}

.prize-points {
    background: var(--gold-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
}

.rewards-cta {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.kids-hero {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.kids-features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.kids-menu-section {
    padding: 60px 0;
}

.kids-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.kids-menu-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.kids-menu-card:hover {
    transform: translateY(-5px);
}

.kids-menu-img {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #ffe0e0, #fff0f0);
    border-radius: 8px;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 15px 0;
}

.kids-extras {
    padding: 60px 0;
    background: #f9f9f9;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.extra-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kids-info {
    padding: 60px 0;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.info-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.restaurants-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.regions-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-btn {
    padding: 12px 15px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.region-btn:hover,
.region-btn.active {
    background: var(--primary-color);
    color: white;
}

.map-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.italy-map {
    width: 100%;
    height: 400px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurants-grid {
    display: grid;
    gap: 20px;
}

.restaurant-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.restaurant-card:hover {
    transform: translateY(-5px);
}

.restaurant-features {
    padding: 60px 0;
    background: #f9f9f9;
}

.feature-item {
    text-align: center;
}

.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.tabs {
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 10px;
}

.tab-content > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-social.facebook {
    background: #3b5998;
    color: white;
}

.btn-social.google {
    background: #db4437;
    color: white;
}

.register-benefits {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.register-benefits h4 {
    margin-bottom: 10px;
}

.register-benefits ul {
    list-style: none;
}

.register-benefits ul li {
    padding: 5px 0;
    color: var(--text-dark);
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
}

.search-section {
    padding: 30px 0;
}

#location-search {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .order-layout,
    .booking-container,
    .restaurants-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .hero-buttons {
        flex-direction: column;
    }
}