:root {
    --primary-color: #D92323;
    --secondary-color: #2C5530;
    --accent-color: #F2B705;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --section-bg: #F9F5F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
    height: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/margherita.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    width: 100%;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Menu Section */
.menu-section {
    padding: 6rem 0;
    background-color: var(--section-bg);
}

.menu-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.menu-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.menu-item p {
    padding: 0 1.5rem;
    color: var(--text-color);
}

.menu-item .price {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Order Section */
.order-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/diavola.jpeg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.order-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.order-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info, .footer-contact {
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #bf1f1f;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98);
        padding: 80px 2rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .cta-button {
        margin-top: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 0 1rem;
    }
}

/* Menu Page Styles */
.menu-page {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.menu-page h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.menu-category {
    margin-bottom: 3rem;
}

.menu-category h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-list-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.menu-list-item button.cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.item-header .price {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Order Page Styles */
.order-page {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.order-page h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.order-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    background: var(--section-bg);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
}

.category-tab:hover {
    background: #f0e6d8;
    transform: translateY(-1px);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 35, 35, 0.2);
}

.pizza-items {
    margin-bottom: 2rem;
}

.cart-summary {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.quantity-controls button:hover {
    transform: scale(1.1);
    background-color: #bf1f1f;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.delivery-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.delivery-form h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 35, 35, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-tab {
        width: calc(50% - 0.5rem);
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .cart-item-details {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .quantity-controls {
        justify-content: center;
    }

    .delivery-form {
        padding: 1.5rem;
    }

    .cart-summary {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-tab {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .menu-list-item {
        padding: 1.2rem;
    }

    .cart-total {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* AOS animations custom settings */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}
