/* CSS Custom Properties */
:root {
    /* Italian Color Palette */
    --primary-terracotta: #C7522A;
    --secondary-cream: #F5E6D8;
    --accent-gold: #E4A835;
    --deep-brown: #8B4513;
    --warm-black: #2C1810;
    --sage-green: #87A96B;
    --soft-white: #FEFBF7;

    /* Typography */
    --font-display: 'Italiana', serif;
    --font-body: 'Crimson Text', serif;

    /* Spacing */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max: 1200px;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(199, 82, 42, 0.15);
    --shadow-strong: 0 8px 40px rgba(44, 24, 16, 0.3);
    --gradient-overlay: linear-gradient(45deg, rgba(199, 82, 42, 0.9), rgba(139, 69, 19, 0.8));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--warm-black);
    background: var(--soft-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-terracotta);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--deep-brown);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-overlay);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/photo-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    filter: brightness(0.7) contrast(1.1);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: heroFadeIn 2s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--soft-white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: var(--accent-gold);
    display: block;
    font-style: italic;
    transform: rotate(-2deg);
    margin-top: 0.5rem;
}

.rating-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    animation: slideUp 2s ease-out 0.5s both;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    color: var(--warm-black);
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-description {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--soft-white);
    margin-bottom: 3rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideUp 2s ease-out 1s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 2s ease-out 1.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--deep-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--soft-white);
    color: var(--primary-terracotta);
    border: 2px solid var(--primary-terracotta);
}

.btn-secondary:hover {
    background: var(--primary-terracotta);
    color: var(--soft-white);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--soft-white);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 2rem;
    opacity: 0.8;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--soft-white);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-cream) 0%, var(--soft-white) 100%);
    z-index: -1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: var(--soft-white);
}

/* Menu Section */
.menu {
    padding: var(--section-padding) 0;
    background: var(--secondary-cream);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--soft-white) 0%, var(--secondary-cream) 100%);
    transform: skewY(-2deg);
    z-index: -1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.menu-item {
    background: var(--soft-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-terracotta);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.menu-item h3 {
    font-size: 1.5rem;
    color: var(--primary-terracotta);
    margin-bottom: 1rem;
}

.menu-item p {
    color: var(--deep-brown);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-terracotta);
    color: var(--soft-white);
    border-radius: 20px;
    font-size: 1.2rem;
}

/* Reviews Section */
.reviews {
    padding: var(--section-padding) 0;
    background: var(--soft-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--secondary-cream);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-terracotta);
    font-family: var(--font-display);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.review-author {
    font-weight: 600;
    color: var(--deep-brown);
}

.review-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--warm-black);
    margin-bottom: 1rem;
}

.review-date {
    color: var(--deep-brown);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: var(--deep-brown);
    color: var(--soft-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--soft-white);
    margin-bottom: 3rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    min-width: 3rem;
}

.contact-item h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--soft-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.contact-item p {
    color: var(--secondary-cream);
    line-height: 1.6;
}

.directions-link {
    color: var(--accent-gold) !important;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

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

.feature {
    background: var(--primary-terracotta);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.hours {
    background: var(--secondary-cream);
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--warm-black);
}

.hours h3 {
    color: var(--primary-terracotta);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary-terracotta);
}

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

.day {
    font-weight: 600;
    color: var(--deep-brown);
}

.time {
    color: var(--warm-black);
    font-weight: 600;
}

.time.closed {
    color: var(--primary-terracotta);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--warm-black);
    color: var(--secondary-cream);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-main h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--secondary-cream);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

.social-link {
    color: var(--secondary-cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--primary-terracotta);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--warm-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--deep-brown);
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    background: none;
    border: none;
    color: var(--soft-white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: var(--primary-terracotta);
    border: none;
    color: var(--soft-white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-gold);
    transform: scale(1.1);
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .lightbox-nav {
        padding: 0 1rem;
    }
}