/* Base Styles */
:root {
    --primary-color: #CD212A;
    /* Italian Red */
    --secondary-color: #ffffff;
    /* White Background */
    --accent-color: #009246;
    /* Italian Green - subtle accents */
    --text-light: #333333;
    /* Main Text (Black) */
    --text-dark: #f4f4f4;
    /* Light Text for dark overlays */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: #fff;
    /* White text on red button */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-light);
    /* Black border */
    color: var(--text-light);
    /* Black text */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    /* White header */
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-reserve {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    color: var(--primary-color) !important;
}

.btn-reserve:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.btn-reserve::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    /* Light overlay */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #000;
    /* Black text */
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
    /* Dark grey text */
    font-weight: 700;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: #f9f9f9;
    /* Light grey background */
}

.about .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.about-image {
    display: none;
}

.about-image::after {
    display: none;
}

/* Menu Section */
.menu {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-item {
    background-color: #fff;
    /* White card */
    border: 1px solid #eee;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-img {
    height: 250px;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-img::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

#menu-img-1::after {
    content: '\f818';
}

/* fa-bacon (simulating carbonara) */
#menu-img-2::after {
    content: '\f6d7';
}

/* fa-drumstick-bite (meat/osso buco) */
#menu-img-3::after {
    content: '\f818';
}

/* fa-pizza-slice */

.menu-img img {
    display: none;
    /* Hide img tag since we are using CSS backgrounds/icons */
}

.menu-item:hover .menu-img img {
    transform: scale(1.05);
}

.menu-details {
    padding: 1.5rem;
    text-align: center;
}

.menu-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.menu-details p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.menu-details .price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.menu-footer {
    text-align: center;
}

/* Reviews */
.reviews {
    padding: 6rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.review-card {
    background-color: #fff;
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-card p {
    font-style: italic;
    color: #666;
    /* Darker grey for light mode */
    margin-bottom: 1rem;
}

.review-card .stars {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review-card span {
    font-weight: 700;
    color: var(--text-light);
}

/* Contact / Reservation */
.contact {
    padding: 6rem 0;
    background-color: #222;
    /* Dark theme contact */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    display: none;
    /* Remove pattern to show body bg cleanly if needed, or keep */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    color: #fff;
    /* White text for dark contact section */
}

.contact-info h2,
.reservation-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
}

.contact-info i {
    width: 30px;
    color: var(--primary-color);
}

.hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: #fff;
}

.social-links a:hover {
    color: var(--primary-color);
}

.reservation-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

input,
select {
    width: 100%;
    padding: 1rem;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    color: #333;
    font-family: var(--font-body);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

button[type="submit"] {
    width: 100%;
    cursor: pointer;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #111;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet / Mobile Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about .container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for now, add JS toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        /* White mobile menu */
        padding: 2rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: var(--text-light);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Full Menu Styles */
.menu-category {
    margin-bottom: 4rem;
}

.menu-category-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem 4rem;
}

.menu-list-item {
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
    /* Black dots */
    padding-bottom: 0.5rem;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.item-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.item-desc {
    font-size: 0.95rem;
    color: #666;
    /* Dark grey desc */
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .menu-list {
        grid-template-columns: 1fr;
    }
}